PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.43k stars 296 forks source link

||PaMacCore (AUHAL)|| Error on line 2499: err='-50', msg=Unknown Error #940

Open karnavplanetart opened 1 month ago

karnavplanetart commented 1 month ago

Hey I am trying to use pyaudio on MAC OS Sonoma Version 14.5 (23F79) MacBook Pro 2020

I am trying to use pyaudio to identify the silence and I am getting this error :

||PaMacCore (AUHAL)|| Error on line 2499: err='-50', msg=Unknown Error ||PaMacCore (AUHAL)|| Error on line 2499: err='-50', msg=Unknown Error

philburk commented 1 month ago

@karnavplanetart - Are you using any external peripherals like a USB audio interface or headphones?

That error may be coming from this recording code: https://github.com/PortAudio/portaudio/blob/2fa021931944b141302697f0750c3e5484888726/src/hostapi/coreaudio/pa_mac_core.c#L2499

Here is some info on error -50. https://www.osstatus.com/search/results?platform=all&framework=all&search=-50

karnavplanetart commented 1 month ago

no I am not using anything. However I am passing the audio to two codes one to transcribe and one to check silence and they both work perfectly fine on its own. but when I combine them it dosent work