微信扫码
添加专属顾问
我要投稿
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=_xrONBIj9oxo53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2025-12-07
基于多 Agent 协作的智能营销闭环:洞察、触达与转化
2025-12-04
AI+销售,就是对传统售货员的降维打击
2025-12-04
GEO:AI搜索时代的内容战略重构与认知竞争新前沿
2025-11-30
农资行业数字化营销与AI搜索优化趋势探讨
2025-11-25
用AI做装修报价,这家团队融资超2千万美元,YC与多家建筑巨头投资
2025-11-21
某AI砍价营销活动安全事故分析与思考
2025-11-21
Adobe 19 亿美元收购GEO先锋 Semrush:打通 AI 时代内容营销闭环
2025-11-21
Nano Banana Pro实测!用Lovart搞定全流程营销,效率开挂!
2025-11-21
2025-10-19
2025-11-06
2025-09-30
2025-09-19
2025-10-07
2025-09-29
2025-10-09
2025-11-05
2025-11-21
2025-09-30
2025-06-26
2025-06-15
2025-06-03
2025-05-29
2025-05-26
2025-05-22
2025-05-21