PyAudio
In order to install PyAudio on a Ubuntu machine, one needs to first install the pre-requisites
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
sudo apt-get install ffmpeg libav-tools
And then install the pip
package
pip install pyaudio
SoundDevice
In order to record things with
Without the ReSpeaker,
Without the ReSpeaker | With the ReSpeaker |
---|---|
0 HDA Intel PCH: ALC298 Analog (hw:0,0), ALSA (2 in, 0 out) | 0 HDA Intel PCH: ALC298 Analog (hw:0,0), ALSA (2 in, 4 out) |
1 HDA Intel PCH: HDMI 0 (hw:0,3), ALSA (0 in, 8 out) | 1 HDA Intel PCH: HDMI 0 (hw:0,3), ALSA (0 in, 8 out) |
2 HDA Intel PCH: HDMI 1 (hw:0,7), ALSA (0 in, 8 out) | 2 HDA Intel PCH: HDMI 1 (hw:0,7), ALSA (0 in, 8 out) |
3 HDA Intel PCH: HDMI 2 (hw:0,8), ALSA (0 in, 8 out) | 3 HDA Intel PCH: HDMI 2 (hw:0,8), ALSA (0 in, 8 out) |
4 HDA Intel PCH: HDMI 3 (hw:0,9), ALSA (0 in, 8 out) | 4 HDA Intel PCH: HDMI 3 (hw:0,9), ALSA (0 in, 8 out) |
5 HDA Intel PCH: HDMI 4 (hw:0,10), ALSA (0 in, 8 out) | 5 HDA Intel PCH: HDMI 4 (hw:0,10), ALSA (0 in, 8 out) |
6 HDA NVidia: HDMI 0 (hw:1,3), ALSA (0 in, 8 out) | 6 HDA NVidia: HDMI 0 (hw:1,3), ALSA (0 in, 8 out) |
7 HDA NVidia: HDMI 1 (hw:1,7), ALSA (0 in, 8 out) | 7 HDA NVidia: HDMI 1 (hw:1,7), ALSA (0 in, 8 out) |
8 HDA NVidia: HDMI 2 (hw:1,8), ALSA (0 in, 8 out) | 8 HDA NVidia: HDMI 2 (hw:1,8), ALSA (0 in, 8 out) |
9 ReSpeaker 4 Mic Array (UAC1.0): USB Audio (hw:2,0), ALSA (6 in, 0 out) | |
9 sysdefault, ALSA (128 in, 0 out) | 10 sysdefault, ALSA (128 in, 128 out) |
11 front, ALSA (0 in, 4 out) | |
12 surround40, ALSA (0 in, 4 out) | |
13 surround51, ALSA (0 in, 4 out) | |
14 surround71, ALSA (0 in, 4 out) | |
10 hdmi, ALSA (0 in, 8 out) | 15 hdmi, ALSA (0 in, 8 out) |
11 pulse, ALSA (32 in, 32 out) | 16 pulse, ALSA (32 in, 32 out) |
17 dmix, ALSA (0 in, 2 out) | |
12 default, ALSA (32 in, 32 out) | 18 default, ALSA (32 in, 32 out) |