-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [Errno -9986] Internal PortAudio error #430
Comments
HI,
||PaMacCore (AUHAL)|| Error on line 1277: err='-66748', msg=Unknown Error I tried to run guest Ubuntu VM under VirtualBox with passing input audio to it and works as expected there so it is something specific for MacOS. Please take a look as probably ppl have a similar problem Test snippet: fs = 44100 # Sample rate //Arek |
I believe also this is a duplicated issue as #395 looks the same |
Actually based on comments from other connected issues: |
Hi,
I'm programming with PortAudio / PyAudio. I installed the library with homebrew. On my windows Pc I never got this error.
Desktop
Simple sr code:
import speech_recognition as sr
r = sr.Recognizer()
mic = sr.Microphone()
with mic as source:
r.adjust_for_ambient_noise(source)
audio = r.listen(source)
transcript = r.recognize_google(audio)
print(transcript)
I always got this error:
||PaMacCore (AUHAL)|| Error on line 1277: err='-66748', msg=Unknown Error
Traceback (most recent call last):
File "/Users/fabianhoernlein/Desktop/testsr/main.py", line 6, in
with mic as so
File "/Users/fabianhoernlein/Desktop/testsr/venv/lib/python3.9/site-packages/speech_recognition/init.py", line 138, in enter
self.audio.open(
File "/Users/fabianhoernlein/Desktop/testsr/venv/lib/python3.9/site-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/Users/fabianhoernlein/Desktop/testsr/venv/lib/python3.9/site-packages/pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9986] Internal PortAudio error
Process finished with exit code 1
I tryed a lot around packages, reinstall, update, ...
thx for help,
Fabi
The text was updated successfully, but these errors were encountered: