The error occured in the audio processor, when it tries to start the audio streamer with pyAudio (pyaudio.PyAudio ().open). The error says "invalid number of channels".
how to control ESP8266 built-in LED to turn On/Off using voice command in PyCharm, I am using SpeechRecognition, pyttsx3, PyAudio python library so this way you could say voice commands and control ...