[BUG] tts-plugin module not matching pypi name causes failure to load
Opened this issue · 0 comments
mikejgray commented
Description
In an edge case where the module
of a TTS plugin does not match its PyPi name, and tts.package_spec
is not available, the audio service will attempt to infer a package to install from PyPi based on tts.module
. When it cannot find that package, the service errors out and does not load TTS, even if the plugin is available from extra_dependencies.audio
.
Steps to Reproduce
extra_dependencies:
audio:
- neon-tts-plugin-coqui-remote
tts:
module: mozilla_remote
mozilla_remote: 127.0.0.1/api/tts
The issue is resolved by adding tts.package_spec: neon-tts-plugin-mozilla-remote
.
Relevant Code
neon_audio/neon_audio/utils.py
Line 70 in 3c78dea
Other Notes
No response