Traceback (most recent call last):


 "D:/Rudra/Python/J.A.R.V.I.S/test.py", line 9, in recordAudio

audio = r.listen(source, timeout=1, phrase_time_limit=10)


 "C:\Users\testing\AppData\Local\Programs\Python\Python37-32\lib\site-packages\speech_recognition\__init__.py", line 639, 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?

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/logbook/handlers.py", line 216, in handle

self.emit(record)


 "/usr/local/lib/python3.6/site-packages/dbt/logger.py", line 461, in emit

'too many messages received before initilization!'
AssertionError: too many messages received before initilization!
