LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pico2wave

text-to-speech synthesizer using the SVOX Pico engine

TLDR

Convert text to a WAV file using default language (en-US)
$ pico2wave -w [output.wav] "[Hello world]"
copy
Specify a language for synthesis
$ pico2wave --lang [de-DE] -w [output.wav] "[Hallo Welt]"
copy
Synthesize French text
$ pico2wave -l fr-FR -w [output.wav] "[Bonjour le monde]"
copy
Synthesize text read from a file
$ pico2wave -w [output.wav] "$(cat [input.txt])"
copy
Synthesize and play immediately
$ pico2wave -w /tmp/speech.wav "[text]" && aplay /tmp/speech.wav
copy

SYNOPSIS

pico2wave [options] -w wavfile text

DESCRIPTION

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.

PARAMETERS

-w, --wave file

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

LANGUAGES

$ en-US  - English (US)
en-GB  - English (UK)
de-DE  - German
es-ES  - Spanish
fr-FR  - French
it-IT  - Italian
copy

CAVEATS

Only six languages are supported. Output format is WAV only; use ffmpeg or sox to convert to other formats. Part of the libttspico-utils package. Text must be passed as a command-line argument, not via stdin.

HISTORY

Pico TTS was developed by SVOX and released as open source for Android, later packaged for Linux.

SEE ALSO

espeak(1), espeak-ng(1), flite(1), festival(1), aplay(1), sox(1)

Copied to clipboard
Kai