You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/i/miniconda3/envs/llm/lib/python3.9/site-packages/TTS/api.py", line 384, in tts_to_file
self._check_arguments(speaker=speaker, language=language, speaker_wav=speaker_wav, **kwargs)
File "/home/i/miniconda3/envs/llm/lib/python3.9/site-packages/TTS/api.py", line 237, in _check_arguments
if self.is_multi_lingual and language is None:
File "/home/i/miniconda3/envs/llm/lib/python3.9/site-packages/TTS/api.py", line 109, in is_multi_lingual
if "xtts" in self.model_name:
TypeError: argument of type 'NoneType' is not iterable
no error on TTS 0.16.3 version。 And in 0.16.3 version, when len(text) for one setence is large than 50, the rest of text can not convert to speech, which will be cut off.
In the script below, I get no voice for "品尝美食,享受美味与旋转的乐趣".
TTS version :
$ python -m pip list | grep TTS
TTS 0.17.4
To Reproduce
scripts:
from TTS.api import TTS
text = "游客可以登上观光球,欣赏上海全景和周边美景;或者在空中庭院中欣赏美景,感受大自然的气息;或者在旋转餐厅中品尝美食,享受美味与旋转的乐趣"
tts_model = TTS(model_path="./tacotron2-DDC-GST/model_file.pth", config_path="./tacotron2-DDC-GST/config.json", progress_bar=True, gpu=False)
tts_model.tts_to_file(text.replace("\n",",").replace(" ","")+"。", file_path="audio_out.wav")
It worked for me if I added tts_model.model_name="xtts" before calling tts_to_file, just as a workaround. It seems like for me the constructor for TTS wasn't working like I expected.
It worked for me if I added tts_model.model_name="xtts" before calling tts_to_file, just as a workaround. It seems like for me the constructor for TTS wasn't working like I expected.
Describe the bug
Run the below code and get error like:
no error on TTS 0.16.3 version。 And in 0.16.3 version, when
len(text)
for one setence is large than 50, the rest of text can not convert to speech, which will be cut off.In the script below, I get no voice for "品尝美食,享受美味与旋转的乐趣".
TTS version :
To Reproduce
scripts:
Expected behavior
No response
Logs
No response
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: