img-cli

speech

Turn text into speech.

Quick start

img-cli speech -m vibetoken:minimax/speech-2.8-hd "Welcome back." --voice English_Graceful_Lady -o hello.mp3

Usage

img-cli speech [text...] -m <provider:model> [flags]

Pass the text as arguments, with --prompt, or as - to read stdin.

Flags

Flag Meaning
-m, --model provider:model, or a model of the default provider (required)
-p, --prompt Text, or - for stdin
--voice Voice id
--speed Speaking speed, such as 1.2
--format Audio format, such as mp3 or wav
-o, --out Save the result to this file or directory (default: the current directory)
--timeout How long to wait for the result (default 20m)
--poll-interval Time between status checks, for providers that run speech as a task

Plus the global flags. img-cli models show <provider:model> lists a model's voices and formats.

See also