LinuxCommandLibrary

pico2wave

TLDR

Convert text to speech

$ pico2wave -w [output.wav] "[text to speak]"
copy
Specify language
$ pico2wave -l [en-US] -w [output.wav] "[Hello world]"
copy
French synthesis
$ pico2wave -l fr-FR -w [output.wav] "[Bonjour le monde]"
copy
Pipe to audio player
$ pico2wave -w /dev/stdout "[text]" | aplay
copy

SYNOPSIS

pico2wave [options] -w wavfile text

DESCRIPTION

pico2wave is a text-to-speech synthesizer using the SVOX Pico engine. It converts text to a WAV audio file, supporting multiple languages.
Small, efficient TTS suitable for embedded systems.

PARAMETERS

-w, --wave file

Output WAV file (required).
-l, --lang lang
Language code.

EXAMPLES

$ # Basic synthesis
pico2wave -w hello.wav "Hello, how are you?"

# German
pico2wave -l de-DE -w german.wav "Guten Tag"

# Play directly
pico2wave -w /tmp/speech.wav "Hello" && aplay /tmp/speech.wav

# From file
pico2wave -w output.wav "$(cat text.txt)"
copy

LANGUAGES

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

CAVEATS

Limited language support. Output is WAV only. Part of libttspico package. Quality varies by language.

HISTORY

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

SEE ALSO

espeak(1), festival(1), aplay(1), sox(1)

Copied to clipboard