[kwlug-disc] Audio device not detected?
Khalid Baheyeldin
kb at 2bits.com
Tue Jun 3 15:13:45 EDT 2025
I found a workaround for the "Channels count non available" error.
Basically, it has to do with a .wav file generated by pico2wave being
mono, while the sound card is stereo.
So I use sox to do that part, as follows ...
# Generate the .wav file from the text
cat /tmp/input.txt |
/usr/bin/pico2wave -l 'en-US' -w foo.wav
# Convert the mono .wav file to stereo
/usr/bin/sox foo.wav stereo-foo.wav remix 1 0
# The stereo .wav file is played through the speaker
/usr/bin/aplay -q -D hw:1 stereo-foo.wav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20250603/90e4147b/attachment.htm>
More information about the kwlug-disc
mailing list