Open 7sharp9 opened 1 year ago
arecord -Dmic_out -c2 -r48000 -fS32_LE -twav -d5 -R10000 -Vstereo test.wav
This does indeed work so the HW seems to work its just the cliprecord.py
does not seem to work correctly.
Check aplay -l
and aplay -L
these should give you an idea of what output devices you have.
Then try editing this line: https://github.com/pimoroni/pirate-audio/blob/d9d7cadf1686860dcbfe42b74d34454942cba2d4/clip-recorder/cliprecord.py#LL354C30-L354C30
To:
recordamajig = Recordamajig(output_device="your_device")
Might be that a Raspberry Pi OS update has changed the device names.
pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
mic_hw
mic_rt
mic_plug
mic_filter
mic_out
usbstream:CARD=adau7002
adau7002
USB Stream Output
hw:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
Direct hardware device without any conversions
plughw:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
Hardware device with all software conversions
default:CARD=vc4hdmi
vc4-hdmi, MAI PCM i2s-hifi-0
Default Audio Device
sysdefault:CARD=vc4hdmi
vc4-hdmi, MAI PCM i2s-hifi-0
Default Audio Device
hdmi:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
HDMI Audio Output
dmix:CARD=vc4hdmi,DEV=0
vc4-hdmi, MAI PCM i2s-hifi-0
Direct sample mixing device
usbstream:CARD=vc4hdmi
vc4-hdmi
USB Stream Output
default
is listed with the -L
but it doesnt find it in the python script, I dont think I have any devices listed that have an actual output?
If I list the devices with python3 -m sounddevice
pi@raspberrypi:~ $ python3 -m sounddevice
0 adau7002: bcm2835-i2s-adau7002-hifi adau7002-hifi-0 (hw:0,0), ALSA (2 in, 0 out)
1 sysdefault, ALSA (128 in, 0 out)
2 lavrate, ALSA (128 in, 0 out)
3 samplerate, ALSA (128 in, 0 out)
4 speexrate, ALSA (128 in, 0 out)
5 upmix, ALSA (8 in, 0 out)
6 vdownmix, ALSA (6 in, 0 out)
7 mic_hw, ALSA (2 in, 0 out)
8 mic_rt, ALSA (2 in, 0 out)
9 mic_plug, ALSA (128 in, 0 out)
10 mic_filter, ALSA (128 in, 0 out)
11 mic_out, ALSA (128 in, 0 out)
> 12 default, ALSA (128 in, 0 out)
@7sharp9 did you ever figure this out. I am having the same problem
Any ideas on what to check?