Facing problem while building voice assistant

I was following this tutorial to integrate voice assistant in my chat bot. 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.

How can I solve this problem?

Hey @mhmohona, I see the problem is due to microphone make sure you have plugged in the microphone while testing the voice assistant :blush:

Thank you for your reply. I had my microphone plugged in while testing. But it didnt change anything.