Linux command
espeak-ng 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Speak text
espeak-ng "[Hello world]"
Use specific voice
espeak-ng -v [en-gb] "[Hello]"
Read from file
espeak-ng -f [document.txt]
Output to WAV
espeak-ng -w [output.wav] "[Hello]"
Adjust speaking rate
espeak-ng -s [175] "[Hello]"
List voices
espeak-ng --voices
Use phoneme input
espeak-ng -x "[h@l'oU]"
说明
espeak-ng (eSpeak New Generation) is a fork of eSpeak with active development, additional features, and improved voice quality. It's a formant-based speech synthesizer supporting 100+ languages. The tool provides text-to-speech capabilities for accessibility, voice assistants, and applications. It includes improvements in pronunciation rules, language support, and phoneme handling over the original eSpeak. espeak-ng is the default TTS engine in many Linux distributions and speech synthesis frameworks.
参数
- -v _VOICE_
- Select voice/language.
- -f _FILE_
- Read from file.
- -w _FILE_
- Write to WAV file.
- -s _SPEED_
- Words per minute.
- -p _PITCH_
- Pitch adjustment.
- -x
- Input is phonemes.
- --voices
- List voices.
- --help
- Display help information.
FAQ
What is the espeak-ng command used for?
espeak-ng (eSpeak New Generation) is a fork of eSpeak with active development, additional features, and improved voice quality. It's a formant-based speech synthesizer supporting 100+ languages. The tool provides text-to-speech capabilities for accessibility, voice assistants, and applications. It includes improvements in pronunciation rules, language support, and phoneme handling over the original eSpeak. espeak-ng is the default TTS engine in many Linux distributions and speech synthesis frameworks.
How do I run a basic espeak-ng example?
Run `espeak-ng "[Hello world]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v _VOICE_ do in espeak-ng?
Select voice/language.