On 4/17/25 23:21, Gregory Nowak via Dng wrote:
> On Thu, Apr 17, 2025 at 12:19:13PM -0400, fsmithred via Dng wrote:
>> Thanks for testing. I was encouraged by your report to try to get speech
>> working here on my laptop that lists HDMI as card 0, and I managed to do it
>> by creating /etc/asound.conf to set card 1 as the default. Is that how
>> others deal with it?
>
> I can only speak to how I deal with it, though using asound.conf isn't
> a method I tried using. I just edit the last line of
> /etc/default/espeakup before I start espeakup. I haven't needed sound
> for anything else in the minimal ISO so far, so that's as far as I got
> with setting cards there.
>
If I just edit /etc/default/speakup, I only get speech in console. To get
speech on the desktop, I had to set the default card in /etc/asound.conf.
Instructions for use are after the links.
link to iso:
https://get.refracta.org/files/experimental/devuan-live-speech-daedalus-amd64-20250413_2106.iso
sha256sum:
https://get.refracta.org/files/experimental/devuan-live-speech-daedalus-amd64-20250413_2106.iso.sha256
a1514738dd84f97d4b292b5307ac6120e819f90b8618e7200eee1c13085eb24e
devuan-live-speech-daedalus-amd64-20250413_2106.iso
The first item in the boot menu will take you to the desktop, logged in as
unprivileged user, devuan.
The second item in the boot menu brings you to runlevel 3, which is
configured for console only, also logged in as devuan.
/etc/default/espeakup is set to use card 0. To change that, run as root:
set-card <id>
where <id> is the card id number or name.
To get to the desktop, you can run
init 2
If you don't get speech on the desktop, run the second script which sets
the default card in /etc/asound.conf.
set-default-card <id>
And then log out of the desktop and log in again for it to take effect.
Example: My laptop lists HDMI as card 0 but I need to use PCH, which is
card 1. I boot to console, become root and run
set-card 1
set-default-card 1
init 2
There's a third script, reset-card which deletes /etc/asound.conf and
resets /etc/default/espeakup to use card 0.
Warning: These are not the most robust scripts. If the line with
ALSA_CARD= is commented, then set-card won't do anything to change the
file. I plan to change that so it always does the right thing.