NeuralChat TTS plugin unable to initialize due to missing dependency: librosa
alexsin368 opened this issue · 1 comments
The NeuralChat TTS plugin is unable to initialize when building the chatbot due to check_tts_dependency() in intel_extension_for_transformers/neural_chat/chatbot.py returning False. Image shown below. This is because the library "librosa" is not in the requirements file.
There are two ways to fix this (which I have verified myself), and will let the team decide:
-
Add librosa back into the requirements.txt file for the audio TTS plugin: https://github.com/intel/intel-extension-for-transformers/blob/main/intel_extension_for_transformers/neural_chat/pipeline/plugins/audio/requirements.txt
-
Remove librosa in chatbot.py: https://github.com/intel/intel-extension-for-transformers/blob/main/intel_extension_for_transformers/neural_chat/chatbot.py#L35