sounddevice.PortAudioError: Error opening InputStream: Internal PortAudio error [PaErrorCode -9986]
_my code is :_
import sounddevice as sd from scipy.io.wavfile import write
fs=44100 seconds=5
myrecording=sd.rec(int(seconds*fs), samplerate=fs,channels=1) sd.wait() write('output.wav',fs,myrecording)
and i am getting this error
File "/Users/i543481/internship-project/lastTry.py", line 7, in
i am using Macbook pro MacOs Bigsur version 11.0.1 speech_recognition was also not working and the error was internal portaudio error -9986 now i used sound device even this is throwing error. could someone help me fix this?
Same fix as #299
Uninstall portaudio and reinstall it using brew install portaudio --HEAD
brew install portaudio --HEAD did not work on bigsur 11.2.3 now...
It's working on my side with macOS 11.2.3, have you properly uninstalled it?