Playing WAVE '/root/wav/taunt.wav': Unsigned 8 bit, Rate 22257 Hz, Mono
aplay: set_params:1387: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE
</code>
<code># aplay -D hw:3,0 ~/wav/taunt.wav
Playing WAVE '/root/wav/taunt.wav' : Unsigned 8 bit, Rate 22257 Hz, Mono
aplay: set_params:1387: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE
</code>
# aplay -D hw:3,0 ~/wav/taunt.wav
Playing WAVE '/root/wav/taunt.wav' : Unsigned 8 bit, Rate 22257 Hz, Mono
aplay: set_params:1387: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE
I did try using each of the suggested formats with -f, like
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code># aplay -D hw:3,0 ~/wav/taunt.wav -f S16_LE
Warning: format is changed to U8
Playing WAVE '/root/wav/taunt.wav': Unsigned 8 bit, Rate 22257 Hz, Mono
aplay: set_params:1387: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE
</code>
<code># aplay -D hw:3,0 ~/wav/taunt.wav -f S16_LE
Warning: format is changed to U8
Playing WAVE '/root/wav/taunt.wav' : Unsigned 8 bit, Rate 22257 Hz, Mono
aplay: set_params:1387: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE
</code>
# aplay -D hw:3,0 ~/wav/taunt.wav -f S16_LE
Warning: format is changed to U8
Playing WAVE '/root/wav/taunt.wav' : Unsigned 8 bit, Rate 22257 Hz, Mono
aplay: set_params:1387: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE
No idea what “Warning: format is changed to U8” means. Might be relevant.
FYI:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code># aplay -L
null
Discard all samples(playback) or generate zero samples(capture)
From some research, it seems that using the hw: specifier bypasses the asound config files. Therefore, I guess there’s config info in an asound config file that allows my device to play the wav when using id “sysdefault:CARD=wm8524audio”, but not “hw:3,0”. But, the default config file, /usr/share/alsa/alsa.conf is >600 lines of goodness. Can’t make heads of tails of it.
How can I find the info in the asound config file that allows it to work? How do I go about figuring out how to specify CLI args so that I can use hw: specifier?