Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 1.75 KB

README.md

File metadata and controls

65 lines (51 loc) · 1.75 KB

License: CC BY-NC 4.0

Ryan-TTS

This repository is the code that can be used to run the model. Training will be added soon.

RyanSpeech dataset

Get the dataset from here

Installation

mkdir -p outputs/phoneme_files
mkdir outputs/wav_files
pip install -r requirements.txt

and install the latest torch

download the models and change the config.json to point to them.

Note: for now the tts models should be on the root of project, just like what we have in config.json

Running

Make sure you change the paths and port in run.sh

./run.sh

Using

To call it or ask a question:

curl --header "Content-Type: application/json" --request POST --data '{"input_text":"This is an awesome example."}' http://localhost:6666/api/tts

To download the wav files:

curl -o output.wav --header "Content-Type: application/json" --request POST --data '{"filename":"a1b8f97d-97c5-40c8-acd4-cbadca67abdf"}' http://localhost:3333/api/download

To delete:

curl --header "Content-Type: application/json" --request POST --data '{"filename":"a1b8f97d-97c5-40c8-acd4-cbadca67abdf"}' http://localhost:3333/api/delete

and delete all:

curl --header "Content-Type: application/json" http://localhost:3333/api/delete_all

Citation:

Please cite the dataset and the work:

@inproceedings{zandie21_interspeech,
  author={Rohola Zandie and Mohammad H. Mahoor and Julia Madsen and Eshrat S. Emamian},
  title={{RyanSpeech: A Corpus for Conversational Text-to-Speech Synthesis}},
  year=2021,
  booktitle={Proc. Interspeech 2021},
  pages={2751--2755},
  doi={10.21437/Interspeech.2021-341}
}