mirror of
https://github.com/wassname/TTS.git
synced 2026-08-22 11:40:35 +08:00
* Adding inferencing notebook * added multispeaker explanation and usecase and renamed the file * Adding training tutorial * fixed dummy paths * fixed review comments * fixed metadata extension Co-authored-by: Eren Gölge <erogol@hotmail.com>
7.3 KiB
7.3 KiB
In [ ]:
! pip install -U pip
! pip install TTSIn [ ]:
! tts --list_modelsIn [ ]:
!tts --text "hello world" \
--model_name "tts_models/en/ljspeech/glow-tts" \
--out_path output.wav
In [ ]:
import IPython
IPython.display.Audio("output.wav")In [ ]:
# list the possible speaker IDs.
!tts --model_name "tts_models/en/vctk/vits" \
--list_speaker_idxs
In [ ]:
!tts --text "Trying out specific speaker voice"\
--out_path spkr-out.wav --model_name "tts_models/en/vctk/vits" \
--speaker_idx "p341"In [ ]:
import IPython
IPython.display.Audio("spkr-out.wav")In [ ]:
!wget https://github.com/coqui-ai/TTS/releases/download/speaker_encoder_model/config_se.json
!wget https://github.com/coqui-ai/TTS/releases/download/speaker_encoder_model/model_se.pth.tar
!wget https://github.com/coqui-ai/TTS/raw/speaker_encoder_model/tests/data/ljspeech/wavs/LJ001-0001.wavIn [ ]:
!tts --model_name tts_models/multilingual/multi-dataset/your_tts \
--encoder_path model_se.pth.tar \
--encoder_config config_se.json \
--speaker_wav LJ001-0001.wav \
--text "Are we not allowed to dim the lights so people can see that a bit better?"\
--out_path spkr-out.wav \
--language_idx "en"In [ ]:
import IPython
IPython.display.Audio("spkr-out.wav")