mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-27 18:28:52 -05:00
1.4 KiB
1.4 KiB
title | date | draft | tags | medium_enabled |
---|---|---|---|---|
Text to Speech on Linux with Espeak | 2020-03-01T10:33:33-05:00 | false | true |
espeak
is a command line tool that lets you type in messages and have it said back to you.
To install on Ubuntu
sudo apt install espeak
It's as simple as running it and typing out what you want to say
{{< addaudio "/files/audio/20200301113507984.mp3" >}}
Delightly Linux wrote a great post describing the different features espeak
has.
Playing around with different voices and I can get something like this:
{{< addaudio "/files/audio/20200301115220550.mp3" >}}
You can also replicate the sound above by piping the text into espeak
echo "Warning warning the build has failed" | espeak -s 140 -v en+f4
Subset of Arguments
Argument | Description |
---|---|
-f | Text file to speak |
-p | Pitch adjustment from 0 to 99 (default: 50) |
-s | Speed in words per minute (default: 160) |
-v | Voice file from espeak-data/voices |
-w | Write output to WAV file instead of speakers |