Hello,
I am getting the following ALSA error when running eiq_genai_flow with asr enabled:
./eiq_genai_flow -i kasr --output-mode text
Target Device: i.MX95
ASR model used: whisper-small.en
LLM used: danube-onnx
##### Press Enter to start ASR #####
I'm listening!
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/confmisc.c:855:(parse_card) cannot find card 'default'
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such device
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/conf.c:5727:(snd_config_expand) Evaluate error: No such device
ALSA lib /usr/src/debug/alsa-lib/1.2.12/src/pcm/pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM sysdefault:CARD=default
Exception in thread audio_capture_thread:
Traceback (most recent call last):
File "threading.py", line 1075, in _bootstrap_inner
File "threading.py", line 1012, in run
File "asr/streaming/audio_capture.py", line 90, in capture_audio
File "asr/streaming/audio_capture.py", line 69, in open_pcm_device
alsaaudio.ALSAAudioError: No such device [sysdefault:CARD=default]
Both arecord and aplay are functional.
Here are the output of arecord:
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: wm8904audio [wm8904-audio], device 0: sai-tx-rx-wm8904-hifi wm8904-hifi-0 [sai-tx-rx-wm8904-hifi wm8904-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=wm8904audio
wm8904-audio, sai-tx-rx-wm8904-hifi wm8904-hifi-0
Default Audio Device
sysdefault:CARD=wm8904audio
wm8904-audio, sai-tx-rx-wm8904-hifi wm8904-hifi-0
Default Audio Device
Is there a way to configure the default audio card for eiq_genai_flow ?
Best regards,
Hervé
Hi Hervé,
This demo package is currently limited to i.MX95 and i.MX8P boards equipped with the WM8962 audio codec. That’s why it doesn’t work with boards using the WM8904 codec.
Unfortunately, this version doesn’t offer the option to change the codec configuration. However, the next release — planned for the end of Q4 — will introduce the ability to select both capture and playback codecs.
Thanks for your understanding, and best regards,
Pierre