From: john@360.example.360--text follows this line--
To: ~geb/numen@lists.sr.ht
Subject: Mic input not working Broadwell SRT-286
arecord: main:831: audio open error: No such file or directory
Hi, I'm helping Didier Spaier try to get voice input working on Slint
Linux, but I'm having issues with my HP Spectre 13 360. Sound output works
fine, but have been unable to get voice input working with numen. I do
know that the system can 'hear' me from using Pavucontrol and observing
the input bars when I speak.
When I try to run numen, I get:
john[~]$ numen
ALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave
john[~]$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: broadwellrt286 [broadwell-rt286], device 0: System
Playback/Capture
(*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: broadwellrt286 [broadwell-rt286], device 3: Loopback (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
Any help appreciated!
regards, jf
John Friedson
Date: Mon, 14 Oct 2024 15:14:23 -0500
Message-ID: <87ldyqwig0.fsf@360.example.360>
Hi (fellow!) John,
Numen currently uses the arecord command to get audio from the microphone,
so I'd start by investigating with arecord itself. I find `arecord -L`
more useful than `arecord -l`, it gives you the device names you can
specify with `arecord -D <device>` (and `numen --mic=<device>').
This is what numen uses under the hood:
arecord -q -fS16_LE -c1 -r16000 -D <device>
where device is "sysdefault:CARD=Microphone" or "default", depending on
whether "sysdefault:CARD=Microphone" is present in output of `arecord -L`.
If I run:
arecord -q -fS16_LE -c1 -r16000 -D sysdefault:CARD=Microphone | aplay -
I can hear myself echoed from my speakers (it's the same whether I'm
using my ATR2100x or Blue Yeti), but it seems you might have to specify
a different device name from `arecord -L`.
This is what my `arecord -L` output is for completeness:
null
Discard all samples (playback) or generate zero samples (capture)
pipewire
PipeWire Sound Server
default
Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=Microphone
ATR2100x-USB Microphone, USB Audio
Default Audio Device
front:CARD=Microphone,DEV=0
ATR2100x-USB Microphone, USB Audio
Front output / input
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front output / input
If you find the device name that works, try it with `numen --mic=<device>`
Hope that's a bit of a help at least and you figure it out!
John
I get similar with:
$ arecord -q -fS16_LE -c1 -r16000 -D CARD=Microphone
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM CARD=Microphone
arecord: main:850: audio open error: No such file or directory
But this works:
$ arecord -q -fS16_LE -c1 -r16000 -D sysdefault:CARD=Microphone
So try with the device name bit before the : also.