← 返回命令列表

Linux command

flite 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Speak text

flite -t "[Hello world]"

Speak from file

flite -f [text.txt]

Save to audio file

flite -t "[Hello world]" -o [output.wav]

Use specific voice

flite -voice [rms] -t "[Hello world]"

List available voices

flite -lv

Speak input as phonemes

flite -p "[pau hh ax l ow w er l d]"

Read SSML input from file

flite -ssml -f [input.ssml]

说明

flite (Festival Lite) is a small, fast text-to-speech synthesis engine developed at Carnegie Mellon University. It converts text to audio using concatenative synthesis, producing speech from recorded fragments. The engine is designed for embedded systems with limited resources, providing reasonable quality without large runtime requirements. Multiple voices are available with different characteristics. flite works offline without internet connectivity, making it suitable for accessibility applications and audio generation.

参数

-t _TEXT_
Explicitly set input text string.
-f _FILE_
Explicitly set input filename.
-o _FILE_
Output audio to file (WAV format). If omitted or set to "play", audio is played on the default audio device. Set to "none" to discard output.
-p _PHONES_
Synthesize input as phonemes.
-voice _NAME_
Voice to use (name, filename, or URL).
-voicedir _DIR_
Directory containing voice data.
-lv
List available voices.
-ssml
Read input text/file in SSML mode.
-b
Benchmark mode.
-l
Loop endlessly.
-s _F=V_
Set feature to value (guesses type).
-v
Verbose mode.
--version
Display version number.
--help
Display help information.

FAQ

What is the flite command used for?

flite (Festival Lite) is a small, fast text-to-speech synthesis engine developed at Carnegie Mellon University. It converts text to audio using concatenative synthesis, producing speech from recorded fragments. The engine is designed for embedded systems with limited resources, providing reasonable quality without large runtime requirements. Multiple voices are available with different characteristics. flite works offline without internet connectivity, making it suitable for accessibility applications and audio generation.

How do I run a basic flite example?

Run `flite -t "[Hello world]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -t _TEXT_ do in flite?

Explicitly set input text string.