微信扫码
与创始人交个朋友
我要投稿
import ChatTTSfrom IPython.display import Audiochat = ChatTTS.Chat()chat.load_models(compile=False) # Set to True for better performancetexts = ["PUT YOUR TEXT HERE",]wavs = chat.infer(texts, )torchaudio.save("output1.wav", torch.from_numpy(wavs[0]), 24000)
#################################### Sample a speaker from Gaussian.rand_spk = chat.sample_random_speaker()params_infer_code = {'spk_emb': rand_spk, # add sampled speaker'temperature': .3, # using custom temperature'top_P': 0.7, # top P decode'top_K': 20, # top K decode}#################################### For sentence level manual control.# use oral_(0-9), laugh_(0-2), break_(0-7)# to generate special token in text to synthesize.params_refine_text = {'prompt': '[oral_2][laugh_0][break_6]'}wav = chat.infer(texts, params_refine_text=params_refine_text, params_infer_code=params_infer_code)#################################### For word level manual control.text = 'What is [uv_break]your favorite english food?[laugh][lbreak]'wav = chat.infer(text, skip_refine_text=True, params_refine_text=params_refine_text, params_infer_code=params_infer_code)torchaudio.save("output2.wav", torch.from_numpy(wavs[0]), 24000)https://colab.research.google.com/github/Kedreamix/ChatTTS/blob/main/ChatTTS_infer.ipynb#scrollTo=_xrONBIj9oxo
53AI,企业落地应用大模型首选服务商
产品:大模型应用平台+智能体定制开发+落地咨询服务
承诺:先做场景POC验证,看到效果再签署服务协议。零风险落地应用大模型,已交付160+中大型企业
2024-11-13
秘塔AI上线"知识库",他们直接超进化成AI搜索完全体了。
2024-11-12
Agent智能大揭秘:企业如何利用AI代理驱动高效增长!
2024-11-12
AI经营|多Agent择优生成商品标题
2024-11-12
下载超5000万次,获千万美元投资的Buddy.ai如何做AI老师+游戏化学习?
2024-11-11
每周一问大模型 | 大模型初创公司To B的金矿在哪?
2024-11-11
智能问数,是如何帮助水果贸易提效200%的
2024-11-10
重磅盘点丨那些 AI 公司悄咪咪上线的产品(十四)
2024-11-09
ChatGPT对Chegg的伤害还在继续
2024-07-20
2024-07-18
2024-07-16
2024-07-25
2024-07-14
2024-07-24
2024-08-13
2024-08-06
2024-06-22
2024-07-21