to do on web without local install
https://colab.research.google.com/drive/1iAe7ZdxjUIuN6V4ooaCt0fACEGKEn7HW?usp=sharing
signin &/ fork
Local install::
tmpfs in ram should be more than 4gb mine failed to insall pytorch due to insufficient ram. so mount /tmp to another loc if its in tmpfs/ram
mkdir ~/opt/coquitts
virtualenv -p python3 ~/opt/coquitts
source ~/opt/coquitts/bin/activate
pip install tts
tts --list_models
Name format: type/language/dataset/model
1: tts_models/multilingual/multi-dataset/your_tts
2: tts_models/en/ek1/tacotron2
3: tts_models/en/ljspeech/tacotron2-DDC [already downloaded]
4: tts_models/en/ljspeech/tacotron2-DDC_ph
5: tts_models/en/ljspeech/glow-tts
6: tts_models/en/ljspeech/speedy-speech
7: tts_models/en/ljspeech/tacotron2-DCA
8: tts_models/en/ljspeech/vits
9: tts_models/en/ljspeech/fast_pitch
10: tts_models/en/vctk/sc-glow-tts
11: tts_models/en/vctk/vits
12: tts_models/en/vctk/fast_pitch
13: tts_models/en/sam/tacotron-DDC
14: tts_models/es/mai/tacotron2-DDC
15: tts_models/fr/mai/tacotron2-DDC
16: tts_models/uk/mai/glow-tts
17: tts_models/zh-CN/baker/tacotron2-DDC-GST
18: tts_models/nl/mai/tacotron2-DDC
19: tts_models/de/thorsten/tacotron2-DCA
20: tts_models/ja/kokoro/tacotron2-DDC
1: vocoder_models/universal/libri-tts/wavegrad
2: vocoder_models/universal/libri-tts/fullband-melgan
3: vocoder_models/en/ek1/wavegrad
4: vocoder_models/en/ljspeech/multiband-melgan
5: vocoder_models/en/ljspeech/hifigan_v2 [already downloaded]
6: vocoder_models/en/ljspeech/univnet
7: vocoder_models/en/vctk/hifigan_v2
8: vocoder_models/en/sam/hifigan_v2
9: vocoder_models/nl/mai/parallel-wavegan
10: vocoder_models/de/thorsten/wavegrad
11: vocoder_models/de/thorsten/fullband-melgan
12: vocoder_models/ja/kokoro/hifigan_v1
13: vocoder_models/uk/mai/multiband-melgan
tts --text "Text for TTS"
generates tts_output.wav in ~/
tts --text "Text for TTS" \
--model_name "<type>/<language>/<dataset>/<model_name>" \
--out_path folder/to/save/output.wav
tts --text "Text for TTS" \
--model_name "<type>/<language>/<dataset>/<model_name>" \
--vocoder_name "<type>/<language>/<dataset>/<model_name>" \
--out_path folder/to/save/output.wav
tts --text "Text for TTS" \
--model_path path/to/model.pth.tar \
--config_path path/to/config.json \
--out_path folder/to/save/output.wav
tts --text "Text for TTS" \
--config_path path/to/config.json \
--model_path path/to/model.pth.tar \
--out_path folder/to/save/output.wav \
--vocoder_path path/to/vocoder.pth.tar \
--vocoder_config_path path/to/vocoder_config.json
tts --model_name "<type>/<language>/<dataset>/<model_name>" --list_speaker_idxs # list the possible speaker IDs.
tts --text "Text for TTS." --out_path output/path/speech.wav --model_name "<language>/<dataset>/<model_name>" --speaker_idx "<speaker_id>"
#demo server
tts-server
firefox http://[::1]:5002/
tts-server --list_models # list the available models.
tts-server --model_name "<type>/<language>/<dataset>/<model_name>"
tts-server --model_name "<type>/<language>/<dataset>/<model_name>" \
--vocoder_name "<type>/<language>/<dataset>/<model_name>"
ex::
tts-server --model_name tts_models/multilingual/multi-dataset/your_tts
> Downloading model to ~/.local/share/tts/tts_models--multilingual--multi-dataset--your_tts
src
Comments
Post a Comment