Search code examples
text-to-speechchatbotvoice-recognitionrasa-corerasa

Facing problem while integrating voice assistant in rasa chatbot


I was following this tutorial to integrate voice assistant in my chatbot. When I was in the Implementing the text-to-speech component stage, I have downloaded deepspeech_test_prediction.py file and kept it inside deepspeech_test_prediction.py file and ran this command.

python deepspeech_test_prediction.py

After this, I am facing this error.

enter image description here

How can I solve this problem?

I had my headphone plugged in my device.


Solution

  • It seems like your input/output audio device isn't being recognised properly by pyaudio. There's steps described here on how to check the config of pyaudio, and potential steps on how to resolve it here