← 返回命令列表

Linux command

pico2wave 命令

文本

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

常用示例

Convert text to a WAV file using default language (en-US)

pico2wave -w [output.wav] "[Hello world]"

Specify a language for synthesis

pico2wave --lang [de-DE] -w [output.wav] "[Hallo Welt]"

Synthesize French text

pico2wave -l fr-FR -w [output.wav] "[Bonjour le monde]"

Synthesize text read from a file

pico2wave -w [output.wav] "$(cat [input.txt])"

Synthesize and play immediately

pico2wave -w /tmp/speech.wav "[text]" && aplay /tmp/speech.wav

说明

pico2wave is a text-to-speech synthesizer using the SVOX Pico engine. It converts text supplied on the command line into a WAV audio file. The output is always 16-bit mono PCM at 16 kHz. Six languages are supported.

参数

-w, --wave _file_
Output WAV file path (required).
-l, --lang _lang_
Language code (default: en-US). See LANGUAGES section for supported values.

FAQ

What is the pico2wave command used for?

pico2wave is a text-to-speech synthesizer using the SVOX Pico engine. It converts text supplied on the command line into a WAV audio file. The output is always 16-bit mono PCM at 16 kHz. Six languages are supported.

How do I run a basic pico2wave example?

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

What does -w, --wave _file_ do in pico2wave?

Output WAV file path (required).