Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

voice directory not automatically recreated if deleted #68

Closed
goldyfruit opened this issue May 30, 2024 · 0 comments · Fixed by OpenVoiceOS/ovos-plugin-manager#232
Closed
Labels
bug Something isn't working

Comments

@goldyfruit
Copy link
Member

If I delete /home/goldyfruit/.cache/mycroft/ovos-tts-plugin-polly/Danielle and don't restart ovos-audio the Danielle directory is not automatically recreated which generate this error:

May 30 10:14:20 mark2 ovos-audio[13164]: 2024-05-30 10:14:20.418 - audio - ovos_audio.service:execute_tts:387 - ERROR - TTS synth failed! [Errno 2] No such file or directory: '/home/goldyfruit/.cache/mycroft/ovos-tts-plugin-polly/Danielle/en-us/909dfd09c925ad0ff1a90a3304131d6c.mp3'
May 30 10:14:20 mark2 ovos-audio[13164]: Traceback (most recent call last):
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_audio/service.py", line 384, in execute_tts
May 30 10:14:20 mark2 ovos-audio[13164]:     self.tts.execute(utterance, ident, listen,
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_plugin_manager/templates/tts.py", line 506, in execute
May 30 10:14:20 mark2 ovos-audio[13164]:     self._execute(sentence, ident, listen, **kwargs)
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_plugin_manager/templates/tts.py", line 590, in _execute
May 30 10:14:20 mark2 ovos-audio[13164]:     audio_file, phonemes = self.synth(sentence, ctxt)
May 30 10:14:20 mark2 ovos-audio[13164]:                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_plugin_manager/templates/tts.py", line 632, in synth
May 30 10:14:20 mark2 ovos-audio[13164]:     audio.path, phonemes = self.get_tts(sentence, str(audio),
May 30 10:14:20 mark2 ovos-audio[13164]:                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 30 10:14:20 mark2 ovos-audio[13164]:   File "/home/goldyfruit/.venvs/ovos/lib/python3.12/site-packages/ovos_tts_plugin_polly/__init__.py", line 81, in get_tts
May 30 10:14:20 mark2 ovos-audio[13164]:     with open(wav_file, "wb") as f:
May 30 10:14:20 mark2 ovos-audio[13164]:          ^^^^^^^^^^^^^^^^^^^^
May 30 10:14:20 mark2 ovos-audio[13164]: FileNotFoundError: [Errno 2] No such file or directory: '/home/goldyfruit/.cache/mycroft/ovos-tts-plugin-polly/Danielle/en-us/909dfd09c925ad0ff1a90a3304131d6c.mp3'
@JarbasAl JarbasAl added the bug Something isn't working label May 30, 2024
JarbasAl added a commit to OpenVoiceOS/ovos-plugin-manager that referenced this issue Jun 2, 2024
JarbasAl added a commit to OpenVoiceOS/ovos-plugin-manager that referenced this issue Jun 2, 2024
* ensure cache dir exists

fixes OpenVoiceOS/ovos-audio#68

* handle empty string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants