I am trying to run a code, that is able to record audio from the mic.
But i am getting this error:
line 86, in record
stream = p.open(format=FORMAT,channels=CHANNELS,rate=RATE,output=True,input=True,frames_per_buffer=CHUNK)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, args, *kwargs)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 441, in _init_
self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid output device (no default output device)
I tried to uninstall pulseaudio, python but nothing is working
I am trying to run a code, that is able to record audio from the mic.
But i am getting this error:
line 86, in record
stream = p.open(format=FORMAT,channels=CHANNELS,rate=RATE,output=True,input=True,frames_per_buffer=CHUNK)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, args, *kwargs)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 441, in _init_
self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid output device (no default output device)
I tried to uninstall pulseaudio, python but nothing is working
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.