tvraman/emacspeak

No speech on Fedora

serezlan opened this issue · 5 comments

Hello,

I found problem running emacspeak on Fedora 34. It does not output any speech with espeak or outloud.

espeak:

  • Running servers/espeak, no error message
  • executing "say something" on the prompt produce nothing.

outloud:

  • Running servers/outloud produce the following error

Using SoX
Found 2 languages.
allocating 65536 16 bit samples, 5.944308 seconds of audio.
19Error setting output buffer.

while executing

"load $tclTTS/atcleci.so"
(file "./outloud" line 483)

I've recompiled both native-espeak and linux-outloud successfully.

Thanks

Solved it.

The solution is two fold:

  1. Replace pipewire with pulseaudio
  2. Add required packages
  • alsa-plugins-pulseaudio
  • sox
  • sox-devel

Btw, do not use older version emacspeak with espeak. It may not work and of course not supported.
Use newer version with espeak-ng.

I have the exact same problem. I installed
alsa-plugins-pulseaudio
sox
sox-devel
and the problem still exists. How did you figure out what the problem was because there are no errors (at least in my case)?

Have you replace pipewire with pluseaudio?

to troubleshoot, try with espeak-ng server first:

  • Make sure your using emacspeak 53 or later
  • From emacspeak directory, goto server/native-linux directory
    • run "make clean && make"
    • Fix any missing dependency problem, if any
    • Go up one level there you should find executable espeak script file.
  • Execute that file and in the prompt run "say hello"
    • You should hear espeak say "hello"

You can repeat similar steps above with linux-outloud:

  • Run "make clean && make" on servers/linux-outloud directory
    • Fix any dependency problem
    • Go up one directory and execute script file outloud there
    • If you're greeted with a prompt without any error, you should be good to go.
    • If not, perhaps some packages are missing.

I found clue of needed packages from emacspeak-voxin-installer script for debian

LIST_EMACSPEAK_MUST="alsa-utils libasound2-plugins libasound2-dev libespeak-dev libsox-fmt-mp3 sox tcl8.6-dev tclx8.4 libxml2-dev"

Replacing pipewire did the trick. I was interested in knowing how you guessed that pipewire is the culprit and needs to be replaced.

It was in the emacspeak mailing list. One of the user tried installing arch on VM with pipewire and emacspeak failed to work.