Open S0mbre opened 5 years ago
The reason is there might be firewall or something which would be blocking the listeining of events for the microphone. Additionally, if you are using pycharm there might be something which you blocked the hardware access (for the firewall grant of Pycharm)
Hi! Thanks for the suggestion. Could you give a tip on where to look for blocking in Windows 10? -- Iskander 17.09.2019, 08:54, "Muhammad Shafay Amjad" notifications@github.com:The reason is there might be firewall or something which would be blocking the listeining of events for the microphone. Additionally, if you are using pycharm there might be something which you blocked the hardware access (for the firewall grant of Pycharm)—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
for me the function for getting working mics does not even exist!
The reason is there might be firewall or something which would be blocking the listeining of events for the microphone. Additionally, if you are using pycharm there might be something which you blocked the hardware access (for the firewall grant of Pycharm)
Thanks @shafaypro. Uninstall my antivirus worked to me,
Steps to reproduce
Expected behaviour
I expected the sample to act the same as the inbuilt testing when you enter
python -m speech_recognition
. Actually, this latter command never fails and does exactly what it's supposed to do: finds and initializes the mic correctly etc... Which seems magic to me, 'cos the main.py file in the Lib\site-packages\speech_recognition\ is almost the same as the 'microphone_recognition.py' example file.Actual behaviour
Console output:
System information
(Delete all the statements that don't apply.)
My system is Windows 10 x64 My Python version is 3.7.2 My SpeechRecognition library version is 3.8.1 My PyAudio library version is 0.2.11 My working microphones are: NONE! (
sr.Microphone.list_working_microphones()
always returns an empty dict!)