← 返回命令列表

Linux command

festival 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Speak text

echo "[Hello world]" | festival --tts

Speak file contents

festival --tts [file.txt]

Start interactive mode

festival

Speak with specific voice

echo "[text]" | festival --tts --voice [voice_name]

Save speech to WAV

echo "[Hello]" | text2wave -o [output.wav]

List available voices

festival -b "(voice.list)"

说明

festival is a general-purpose speech synthesis system. It converts text to speech using various synthesis techniques and can be controlled interactively or through scripts. The system supports multiple languages and voices, and can be extended with new voices. It's used for accessibility, voice interfaces, and audio content generation.

参数

--tts
Text-to-speech mode (read from stdin).
-b _expression_
Evaluate Scheme expression.
-i
Interactive mode.
--voice _name_
Select voice.
--otype _type_
Output type (riff, aiff, etc.).
--server
Run as server.
--heap _size_
Heap size in bytes.
--help
Display help.

FAQ

What is the festival command used for?

festival is a general-purpose speech synthesis system. It converts text to speech using various synthesis techniques and can be controlled interactively or through scripts. The system supports multiple languages and voices, and can be extended with new voices. It's used for accessibility, voice interfaces, and audio content generation.

How do I run a basic festival example?

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

What does --tts do in festival?

Text-to-speech mode (read from stdin).