Closed kyutums closed 3 years ago
I think @Edresson is on it.
You need to edit the path of the file in config.json based on your system. Currently, it is not done automatically.
Is this stored in the user directory which installed it via pip?
I second this... Seeing the exact same error as above -
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/ProjectsMac/TTS/tts_models--en--vctk--vits/speaker_ids.json'
Rather funny because I'm on a Mac and thought I did something silly. But this seems to be some dev's local environment being posted online.
My current solution is to give it the model_path folder for vctk-vits and that seems to work.
Found the issue here - https://github.com/coqui-ai/TTS/blob/c3082267073ed45b69993aa83437958b1c42615f/TTS/.models.json#L81
The referenced file - https://github.com/coqui-ai/TTS/releases/download/v0.2.0/tts_models--en--vctk--vits.zip
has the following in the config.json file on line 170 -
"speakers_file": "/home/ubuntu/ProjectsMac/TTS/tts_models--en--vctk--vits/speaker_ids.json",
I also noticed a few more absolute paths in other models.
In tts_models--en--vctk--sc-glow-tts -
"d_vector_file": "/home/erogol/.local/share/tts/tts_models--en--vctk--sc-glow-tts/speakers.json",
In ljspeech-dcattn-April-05-2021_01+52PM-0947822 -
"output_path": "/home/ubuntu/MyDrive/Trainings/sam/",
"phoneme_cache_path": "/home/ubuntu/en-us-phonemes/",
"datasets": [
{
"meta_file_train": "recording_script.xml",
"meta_file_val": null,
"name": "sam_accenture",
"path": "/home/ubuntu/MyDrive/Datasets/non-binary-voice-files/"
}
]
The output_path gets overridden easily, but speakers_file does not and I haven't tested it but possibly neither does the d_vector_file, so the first two models would fail.
I think these are being trained locally and uploaded manually to the release. So I don't see how I can help in fixing these. Could the devs or release lead please look into fixing these absolute paths?
Thanks!
Describe the bug Trying out TTS by typing
tts --text "Text for TTS" --model_name "tts_models/en/vctk/vits" --out_path /home/user/output.wav
resulted in odd errors. The one with the folder/home/ubuntu/ProjectsMac
was very odd as I did not pass any variables that are even remotely related to this.The complete results of the previous command are:
To Reproduce Steps to reproduce the behavior:
pip install TTS
)Expected behavior I expected TTS to create a .wav file with the audio noting "Text for TTS"
Environment (please complete the following information):
tts --text "Text for TTS" --model_name "tts_models/en/vctk/vits" --out_path /home/user/output.wav
Additional context
tts-server
worked and gave a working test site, buttts
raw didn't (errors above)