Using espeak on Alpine Linux: Difference between revisions

From Alpine Linux
mNo edit summary
m (This article is very silly. Updated it slightly for modern times. It could use a bit more polish, but this is a start.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Espeak =
= Espeak =


espeak (http://espeak.sourceforge.net/) multi-lingual speech synthesis is available in AlpineLinux 1.7.29 and above.  So this just begs the question... what cool things can you do with a router that talks?
[https://espeak.sourceforge.net/ espeak] multi-lingual speech synthesis is available in Alpine Linux 1.7.29 and above.   


But the first thing to do is just to get the router to talk.
== Installing ==
 
== Requirements ==
 
* the soundcard and oss modules must be loaded.
* use umix to set the volume on the sound card
* sox is required to play the voice (for some reason alpine espeak doesn't talk to /dev/dsp)


espeak can be installed by running:
{{cmd|# apk add {{pkg|espeak|arch=}}}}


== Example ==
== Example ==


For historical reasons, the canonical reference for speech synthesis on AlpineLinux is the phrase "'''Liver. Yes you heard me.  Liver.  There's nothing I can do about it.'''"
For historical reasons, the canonical reference for speech synthesis on Alpine Linux is the phrase "'''Liver. Yes you heard me.  Liver.  There's nothing I can do about it.'''"


To get your router to say, that, send the output of espeak to stdout, and pipe the result to sox's play command:
To get your Alpine Linux machine to say that, you can run the following espeak command:


  espeak --stdout "Liver. Yes you heard me.  Liver.  There's nothing I can do about it." | play  -t wav -
{{cmd|espeak "Liver. Yes you heard me.  Liver.  There's nothing I can do about it."}}


enjoy.
enjoy.
[[Category:Multimedia]]

Latest revision as of 08:31, 13 January 2024

Espeak

espeak multi-lingual speech synthesis is available in Alpine Linux 1.7.29 and above.

Installing

espeak can be installed by running:

# apk add espeak

Example

For historical reasons, the canonical reference for speech synthesis on Alpine Linux is the phrase "Liver. Yes you heard me. Liver. There's nothing I can do about it."

To get your Alpine Linux machine to say that, you can run the following espeak command:

espeak "Liver. Yes you heard me. Liver. There's nothing I can do about it."

enjoy.