Update README.md
Browse files
README.md
CHANGED
|
@@ -76,7 +76,7 @@ cosyvoice = CosyVoice2('ASLP-lab/Cosyvoice2-Yue', load_jit=False, load_trt=False
|
|
| 76 |
prompt_speech_16k = load_wav('zero_shot_prompt.wav', 16000)
|
| 77 |
|
| 78 |
# instruct usage
|
| 79 |
-
for i, j in enumerate(cosyvoice.inference_instruct2('
|
| 80 |
torchaudio.save('instruct_{}.wav'.format(i), j['tts_speech'], cosyvoice.sample_rate)
|
| 81 |
```
|
| 82 |
|
|
|
|
| 76 |
prompt_speech_16k = load_wav('zero_shot_prompt.wav', 16000)
|
| 77 |
|
| 78 |
# instruct usage
|
| 79 |
+
for i, j in enumerate(cosyvoice.inference_instruct2('收到朋友从远方寄嚟嘅生日礼物,嗰份意外嘅惊喜同埋深深嘅祝福令我心入面充满咗甜蜜嘅快乐,笑容好似花咁绽放。', '用粤语说这句话', prompt_speech_16k, stream=False)):
|
| 80 |
torchaudio.save('instruct_{}.wav'.format(i), j['tts_speech'], cosyvoice.sample_rate)
|
| 81 |
```
|
| 82 |
|