Audio file
-
Audio file
https://github.com/FunAudioLLM/CosyVoice/blob/main/asset/zero_shot_prompt.wav
-
TTS Text
收到好友从远方寄来的生日礼物,那份意外的惊喜与深深的祝福让我心中充满了甜蜜的快乐,笑容如花儿般绽放。
-
Prompt Text
希望你以后能够做的比我还好呦。
-
Audio file
output.wav
This model requires additional module.
pip3 install librosa
pip3 install soundfile
pip3 install inflect
pip3 install WeTextProcessing==1.0.3
Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.
For the sample wav,
$ python3 cosyvoice2.pyIf you want to specify audio and prompt_text, put the file path after the --input option and the prompt_text after the --prompt_text option.
$ python3 cosyvoice2.py --input zero_shot_prompt.wav --prompt_text "希望你以后能够做的比我还好呦。"You can specify tts_text by adding the --tts_text option.
$ python3 cosyvoice2.py --tts_text "收到好友从远方寄来的生日礼物,那份意外的惊喜与深深的祝福让我心中充满了甜蜜的快乐,笑容如花儿般绽放。"Pytorch
ONNX opset=17