2025-03-14 21:59:59 -06:00
|
|
|
# espeak
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
> A multi-lingual software speech synthesizer.
|
|
|
|
|
> Note: `espeak` is considered discontinued, as development has shifted to `espeak-ng`.
|
|
|
|
|
> More information: <https://manned.org/espeak>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Speak a phrase aloud:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`espeak "{{text}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Speak text from `stdin`:
|
|
|
|
|
|
|
|
|
|
`echo "{{text}}" | espeak`
|
|
|
|
|
|
|
|
|
|
- Speak the contents of a [f]ile:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`espeak -f {{path/to/file}}`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Speak using a specific [v]oice:
|
|
|
|
|
|
|
|
|
|
`espeak -v {{voice}} "{{text}}"`
|
|
|
|
|
|
|
|
|
|
- Speak at a specific [s]peed (default is 160) and [p]itch (default is 50):
|
|
|
|
|
|
|
|
|
|
`espeak -s {{speed}} -p {{pitch}} "{{text}}"`
|
|
|
|
|
|
|
|
|
|
- Output the audio to a [w]AV file instead of speaking it directly:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`espeak -w {{path/to/output.wav}} "{{text}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- List all available voices:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`espeak --voices`
|