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
ValueError Traceback (most recent call last)
Cell In[1], line 2
1 import torch
----> 2 from TTS.api import TTS
4 # Get device
5 device = "cuda" if torch.cuda.is_available() else "cpu"
File c:\Users\Abbasian\Desktop\ps VsCode\FONT2_vnve\Lib\site-packages\TTS_init_.py:16
13 import torch
15 from TTS.config.shared_configs import BaseDatasetConfig
---> 16 from TTS.tts.configs.xtts_config import XttsConfig
17 from TTS.tts.models.xtts import XttsArgs, XttsAudioConfig
18 from TTS.utils.radam import RAdam
File c:\Users\Abbasian\Desktop\ps VsCode\FONT2_vnve\Lib\site-packages\TTS\tts\configs\xtts_config.py:5
2 from typing import List
4 from TTS.tts.configs.shared_configs import BaseTTSConfig
----> 5 from TTS.tts.models.xtts import XttsArgs, XttsAudioConfig
8 @DataClass
9 class XttsConfig(BaseTTSConfig):
10 """Defines parameters for XTTS TTS model.
11
12 Args:
(...)
... 2714 if is_keyword or not name.isidentifier():
-> 2715 raise ValueError('{!r} is not a valid parameter name'.format(name)) 2717 self._name = name
ValueError: 'in' is not a valid parameter name
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Describe the bug
ValueError: 'in' is not a valid parameter name
To Reproduce
import torch
from TTS.api import TTS
Get device
device = "cuda" if torch.cuda.is_available() else "cpu"
List available 🐸TTS models
print(TTS().list_models())
Init TTS
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
Run TTS
❗ Since this model is multi-lingual voice cloning model, we must set the target speaker_wav and language
Text to speech list of amplitude values as output
wav = tts.tts(text="Hello world!", speaker_wav="my/cloning/audio.wav", language="en")
Text to speech to a file
tts.tts_to_file(text="Hello world!", speaker_wav="my/cloning/audio.wav", language="en", file_path="output.wav")
Expected behavior
ValueError Traceback (most recent call last)
Cell In[1], line 2
1 import torch
----> 2 from TTS.api import TTS
4 # Get device
5 device = "cuda" if torch.cuda.is_available() else "cpu"
File c:\Users\Abbasian\Desktop\ps VsCode\FONT2_vnve\Lib\site-packages\TTS_init_.py:16
13 import torch
15 from TTS.config.shared_configs import BaseDatasetConfig
---> 16 from TTS.tts.configs.xtts_config import XttsConfig
17 from TTS.tts.models.xtts import XttsArgs, XttsAudioConfig
18 from TTS.utils.radam import RAdam
File c:\Users\Abbasian\Desktop\ps VsCode\FONT2_vnve\Lib\site-packages\TTS\tts\configs\xtts_config.py:5
2 from typing import List
4 from TTS.tts.configs.shared_configs import BaseTTSConfig
----> 5 from TTS.tts.models.xtts import XttsArgs, XttsAudioConfig
8 @DataClass
9 class XttsConfig(BaseTTSConfig):
10 """Defines parameters for XTTS TTS model.
11
12 Args:
(...)
...
2714 if is_keyword or not name.isidentifier():
-> 2715 raise ValueError('{!r} is not a valid parameter name'.format(name))
2717 self._name = name
ValueError: 'in' is not a valid parameter name
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Logs
No response
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: