Closed agilebean closed 1 year ago
Can't reproduce.
If you have stopped downloading before, the model folder is created but the folder is empty so TTS thinks there is the model. You need to remove that folder manually from ~/.local/shared/tts
Thanks, however I found that the ~/.local/shared/tts
folder is empty.
As this issue is relevant for Apple Silicon users, they might find it useful if you reopen this issue.
The error persists but differs from model to model. With --model_name tts_models/en/ek1/tacotron2, the following error is thrown:
Traceback (most recent call last):
File "/Users/chaehan/mambaforge/envs/tts/bin/tts", line 8, in <module>
sys.exit(main())
File "/Users/chaehan/TTS/TTS/bin/synthesize.py", line 370, in main
synthesizer.save_wav(wav, args.out_path)
File "/Users/chaehan/TTS/TTS/utils/synthesizer.py", line 172, in save_wav
self.tts_model.ap.save_wav(wav, path, self.output_sample_rate)
File "/Users/chaehan/TTS/TTS/utils/audio/processor.py", line 707, in save_wav
scipy.io.wavfile.write(path, sr if sr else self.sample_rate, wav_norm.astype(np.int16))
File "/Users/chaehan/mambaforge/envs/tts/lib/python3.10/site-packages/scipy/io/wavfile.py", line 766, in write
fid = open(filename, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: 'output/speech.wav'
In my case, on Ubuntu, deleting everything under ~/.local/share/tts solved my problem.
I've got the same error on my MacBook. Looking at the manage.py
file I suspect that an unfinished model download can create this situation.
Lines 239-240 of manage.py
:
if os.path.exists(output_path):
print(f" > {model_name} is already downloaded.")
When a model download fails or gets manually interupted, the if
statement will still evaluate to True
since the path would have been created for the download and the script will erroneously expect that the model file is already downloaded which may not be the case.
FWIW, the folder to delete under mac OS is:
/Users/<username>/Library/Application Support/tts
NB: Don't forget to enclose the path with quotes (') when trying to delete it due to the spaces in the fodler path.
@erogol should be relatively easy to reproduce by pressing Ctrl+C during the model download (probably should be the same on other platforms as well):
> Downloading model to /Users/<username>/Library/Application Support/tts/tts_models--multilingual--multi-dataset--your_tts
4%|██▎ | 17.7M/425M [01:53<28:41, 237kiB/s]
it happens under windows- but there is no /.local/shared/tts folder, and even deleting the entire venv and uninstalling tts does not fix it.
@christiandarkin On Windows the default folder where models are stored is something like C:\Users\...\AppData\Local\tts\
Describe the bug
Describe the bug
On an Apple Silicon M1 with MacOS Ventura, I could replicate the following for
After the installation process (see To Reproduce section), the following commands work:
However, the following command does not work:
It throws this error:
To Reproduce
Installed TTS repo with mamba:
Expected behavior
No response
Logs
Environment
Additional context
No response