Linux command
espeak 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Speak text
espeak "[Hello world]"
Speak from file
espeak -f [text.txt]
Set voice/language
espeak -v [en-us] "[Hello]"
Adjust speed
espeak -s [150] "[Hello]"
Save to audio
espeak -w [output.wav] "[Hello]"
List available voices
espeak --voices
Adjust pitch
espeak -p [50] "[Hello]"
说明
eSpeak is a compact, open-source text-to-speech synthesizer supporting many languages. It uses formant synthesis, producing a distinctive robotic voice but requiring minimal resources. The tool converts text to speech output through speakers or audio files. Multiple languages and voices are available with adjustable speed, pitch, and other parameters. eSpeak is useful for accessibility, automated announcements, and applications requiring speech synthesis without large voice databases.
参数
- -f _FILE_
- Read text from file.
- -v _VOICE_
- Voice name or language.
- -s _SPEED_
- Speed in words per minute.
- -p _PITCH_
- Pitch (0-99).
- -w _FILE_
- Write output to WAV file.
- --voices
- List available voices.
- -m
- Interpret SSML markup.
- --help
- Display help information.
FAQ
What is the espeak command used for?
eSpeak is a compact, open-source text-to-speech synthesizer supporting many languages. It uses formant synthesis, producing a distinctive robotic voice but requiring minimal resources. The tool converts text to speech output through speakers or audio files. Multiple languages and voices are available with adjustable speed, pitch, and other parameters. eSpeak is useful for accessibility, automated announcements, and applications requiring speech synthesis without large voice databases.
How do I run a basic espeak example?
Run `espeak "[Hello world]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _FILE_ do in espeak?
Read text from file.