linux - Python alsaaudio and pjsip conflict -


i writing app in python uses pocketsphinx , pjsip use pocketsphinx keyword search wakeup app , pjsip phone problem when try call "call" function , after returning listen keyword , error message pjsip cannot open sound device:

pjsua_aud.c  ..opening sound device (speaker + mic) pcm@16000/1/20ms alsa_dev.c  ...alsa lib pcm_hw.c:1557:(snd_pcm_hw_open) open '/dev/snd/pcmc0d0c' failed (-16): device or resource busy pjsua_aud.c  ..unable open sound device: unknown error audio driver (pjmedia_eaud_syserr) [status=420002] operation=make_call(), error=unknown error audio driver (pjmedia_eaud_syserr) 

this error happens when try return keyword function uses alsaaudio

so question how can open same audio device pjsip , alsaaudio?


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -