naxingyu / opensmile

A github repo of the openSMILE feature extraction tool.
http://www.audeering.com/research/opensmile
Other
214 stars 79 forks source link

No PortAudio audio devices were found! (Pa_CountDevices()=0) #37

Open Ehsan-Nirjhar opened 4 years ago

Ehsan-Nirjhar commented 4 years ago

I have installed Opensmile with port audio successfully and it is working fine offline. But, when I am trying the example using SMILExtract_ReleasePortaudio, it shows

(ERROR) [1] in cPortaudioSource : NO PortAudio devices found! Cannot record live audio!

==> LEVEL 'wave' +++ Buffersize(frames) = 4801 +++ nReaders = 1 [ 31.08.2020 - 20:39:58 ] (MSG) [2] in cComponentManager : successfully finished createInstances (2 component instances were finalised, 1 data memories were finalised) [ 31.08.2020 - 20:39:58 ] (MSG) [2] in cComponentManager : starting single thread processing loop [ 31.08.2020 - 20:39:58 ] (MSG) [2] in cPortaudioSource : recording from portAudio device with index -1 [ 31.08.2020 - 20:39:58 ] (ERROR) [1] in cPortaudioSource : error opening portaudio recording stream (code -9996) check samplerate(-> 48000 , maybe it is not supported?) maybe incorrect device? ("listDevices=1" in config file displays a list of devices)

chausner-audeering commented 3 years ago

Have you tried with each device listed by listDevices=1? Also, try different sampling rates for cPortaudioSource (either 44100 or 48000 usually work). If you specify a sampling rate that is not natively supported by the audio device, it will fail with the same error message.