Portaudio not able to list my input audio device

Posted on

I installed portaudio on redhat 8.1 (Ootpa). When I execute the script pa_devs, located at portaudio/bin, it is not able to find any audio devices, even though I have connected an audio device.

I checked using sounddevice python library (import sounddevice as sd, sd.query_devices()) and able to see my audio device listed

I also checked using arecord -l and it also lists my audio device.

I need to use portaudio for my application and need to fix why portaudio is not able to identify the audio device.

Here is the output copied from my terminal for all these scenarios

[sembhayy@localhost third-party]$ cd portaudio
[sembhayy@localhost portaudio]$ cd bin
[sembhayy@localhost bin]$ ./pa_devs
PortAudio version: 0x00130600
Version text: 'PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4'

Number of devices = 0

[sembhayy@localhost bin]$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: I48K [I2S RX 16K TX 48K], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
[sembhayy@localhost bin]$ python3
Python 3.6.8 (default, Oct 11 2019, 15:04:54)
[GCC 8.3.1 20190507 (Red Hat 8.3.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import sounddevice as sd
sd.query_devices()
0 HDA Intel PCH: ALC283 Analog (hw:0,0), ALSA (2 in, 2 out)
1 HDA Intel PCH: HDMI 1 (hw:0,7), ALSA (0 in, 8 out)
2 HDA Intel PCH: HDMI 2 (hw:0,8), ALSA (0 in, 8 out)
3 HDA Intel PCH: HDMI 3 (hw:0,9), ALSA (0 in, 8 out)
4 HDA Intel PCH: HDMI 4 (hw:0,10), ALSA (0 in, 8 out)
5 I2S RX 16K TX 48K: USB Audio (hw:1,0), ALSA (2 in, 2 out)
6 sysdefault, ALSA (128 in, 128 out)
7 front, ALSA (0 in, 2 out)
8 surround40, ALSA (0 in, 2 out)
9 surround51, ALSA (0 in, 2 out)
10 surround71, ALSA (0 in, 2 out)
11 pulse, ALSA (32 in, 32 out)
12 dmix, ALSA (0 in, 2 out)
* 13 default, ALSA (32 in, 32 out)

Responses