Exception in thread Thread-2:
Traceback (most recent call last):
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init_.py", line 750, in threaded_listen
audio = self.listen(s, 1, phrase_time_limit)
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init_.py", line 651, in listen
assert source.stream is not None, "Audio source must be entered before listening, see documentation for AudioSource; are you using source outside of a with statement?"
AssertionError: Audio source must be entered before listening, see documentation for AudioSource; are you using source outside of a with statement?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Software\MiniConda\envs\vioceAI\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "D:\Software\MiniConda\envs\vioceAI\lib\threading.py", line 917, in run
self._target(*self.args, **self.kwargs)
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init.py", line 754, in threaded_listen
if running[0]: callback(self, audio)
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init.py", line 201, in exit
self.stream.close()
AttributeError: 'NoneType' object has no attribute 'close'
Any tips on this?
Exception in thread Thread-2:
Traceback (most recent call last):
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init_.py", line 750, in threaded_listen
audio = self.listen(s, 1, phrase_time_limit)
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init_.py", line 651, in listen
assert source.stream is not None, "Audio source must be entered before listening, see documentation for
AudioSource; are you usingsourceoutside of awithstatement?"AssertionError: Audio source must be entered before listening, see documentation for
AudioSource; are you usingsourceoutside of awithstatement?During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Software\MiniConda\envs\vioceAI\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "D:\Software\MiniConda\envs\vioceAI\lib\threading.py", line 917, in run
self._target(*self.args, **self.kwargs)
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init.py", line 754, in threaded_listen
if running[0]: callback(self, audio)
File "D:\Software\MiniConda\envs\vioceAI\lib\site-packages\speech_recognition_init.py", line 201, in exit
self.stream.close()
AttributeError: 'NoneType' object has no attribute 'close'
Any tips on this?