knox / ChatTTS-14.py
0 likes
0 forks
1 files
Last active
1 | inputs_en = """ |
2 | chat T T S is a text to speech model designed for dialogue applications. |
3 | [uv_break]it supports mixed language input [uv_break]and offers multi speaker |
4 | capabilities with precise control over prosodic elements like |
5 | [uv_break]laughter[uv_break][laugh], [uv_break]pauses, [uv_break]and intonation. |
6 | [uv_break]it delivers natural and expressive speech,[uv_break]so please |
7 | [uv_break] use the project responsibly at your own risk.[uv_break] |
8 | """.replace('\n', '') # English is still experimental. |
9 | |
10 | params_refine_text = ChatTTS.Chat.RefineTextParams( |
knox / ChatTTS-13.py
0 likes
0 forks
1 files
Last active
1 | ################################### |
2 | # Sample a speaker from Gaussian. |
3 | |
4 | rand_spk = chat.sample_random_speaker() |
5 | print(rand_spk) # save it for later timbre recovery |
6 | |
7 | params_infer_code = ChatTTS.Chat.InferCodeParams( |
8 | spk_emb = rand_spk, # add sampled speaker |
9 | temperature = .3, # using custom temperature |
10 | top_P = 0.7, # top P decode |