LinuxCommandLibrary

pico2wave

text-to-speech synthesizer using the SVOX Pico engine

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.

PARAMETERS

-w, --wave file

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

LANGUAGES

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

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)"

$
# 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)
copy

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community