Files
cheatsheet-tldr/tldr/espeak
2025-11-29 00:20:05 +00:00

39 lines
812 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# espeak
> A multi-lingual software speech synthesizer.
> Note: `espeak` is considered discontinued, as development has shifted to `espeak-ng`.
> More information: <https://manned.org/espeak>.
- Speak a phrase aloud:
`espeak "{{text}}"`
- Speak text from `stdin`:
`echo "{{text}}" | espeak`
- Speak the contents of a [f]ile:
`espeak -f {{path/to/file}}`
- 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:
`espeak -w {{path/to/output.wav}} "{{text}}"`
- List all available voices:
`espeak --voices`