New Tool Radar

AI Image & Voice

How to Use a Multi-Speaker Piper Voice With –speaker

Pick which speaker talks in a multi-speaker Piper voice with the --speaker number, starting from 0.

Schematic diagram with four steps: pick a multi-speaker voice, set --speaker to 1, speak a sentence, then compare it with speaker 0.

Some Piper voices have more than one speaker inside them: one voice file, several voices. The --speaker option picks which one talks, by number, starting from 0.

Set the speaker number

Speak with the speaker you want: echo 'Hello!' | piper --model <multi-speaker-voice> --speaker 1 --output_file hello.wav. The default speaker is 0, so --speaker 0 is the same as leaving it out. Try each number in turn and listen — the voice’s config file lists how many speakers it has, and a number past the last speaker is an error, not a new voice.

echo 'Hello!' | piper --model <multi-speaker-voice> --speaker 1 --output_file hello.wav
# default speaker is 0; try 0, 1, 2... and listen

A multi-speaker voice is still one voice file: the speakers share the model’s style and language, and only the voice itself differs. If you need two genuinely different voices — different accents, different languages — use two voice files, not two speaker numbers.

Try it: four checks

Check What you should see If you do not see it
Multi-speaker voice The voice has more than one speaker Check the voice’s config
Speaker set The –speaker number is in the command Default is 0
Voice differs Speaker 1 sounds different from speaker 0 Listen to both
Number valid The number is below the speaker count Past the last is an error

Expected result. We checked the Piper README, which documents the –speaker option for multi-speaker voices with a default of 0. We did not use a multi-speaker voice on this machine.

Limits

This guide covers the –speaker option only. The speakers in one voice share its style and language. We did not test any voice ourselves.

Sources

See all
AI Image & Voice

How to Remove a Background in Canva

Remove a photo background in Canva with Background Remover, then fix the edges with the Erase and Restore brushes.