ChatTTS icon indicating copy to clipboard operation
ChatTTS copied to clipboard

如何切换女生音色呢

Open tomwangcn opened this issue 2 years ago • 4 comments

spk_stat = torch.load('ChatTTS/asset/spk_stat.pt')
rand_spk = torch.randn(768) * spk_stat.chunk(2)[0] + spk_stat.chunk(2)[1]
params_infer_code = {'spk_emb' : rand_spk, 'temperature':.3}
params_refine_text = {'prompt':'[oral_2][laugh_0][break_4]'}
  1. 是不是这个模型只有男生音色,没有女生音色?
  2. 如果想切换女生音色 代码应该怎么写呢?

tomwangcn avatar May 30 '24 11:05 tomwangcn

我理解的是调整speaker embed,就是代码里的spk_emb,先随机找到一个女生的然后固定用那个embed就行。

ain-soph avatar May 30 '24 19:05 ain-soph

Duplicate with #15 #63 #72 #80

ain-soph avatar May 30 '24 19:05 ain-soph

貌似在你要说的话里体现出是女生,例如:本姑娘怎么怎么样,就是女生

huguanglei123 avatar May 31 '24 05:05 huguanglei123

This issue was closed because it has been inactive for 15 days since being marked as stale.

github-actions[bot] avatar Jul 17 '24 04:07 github-actions[bot]