plivo tts works with Plivo Text-to-Speech: list the voices, turn text into an audio file, manage pronunciation lexicons, and see what you have generated. Requires Plivo CLI v1.3.3 or later; tts voice and the regional English codes need v1.4.1. After logging in, list the voices for a language:
- Replace
<values>with your own and omit[flags]unless adding options. Global flags: see Configuration. tts speakis billed per character, so it needs--yes. Preview it first with--dry-run.- Realtime text-to-speech for voice agents is a WebSocket API with no CLI command. See Realtime, or install the text-to-speech skill.
Pick a voice
Each voice speaks one language.--language and --gender filter the list in the CLI; the API has no filters.
From v1.4.1,
tts voices -o json and tts voice show a lexicon field: whether the voice can use a pronunciation lexicon.
Turn text into an audio file
--dry-run prints the request and the character count and sends nothing. Without --yes, speak is refused with DESTRUCTIVE_REFUSED (exit 5).
- For a phone call, use
mulaworalaw: 8 kHz audio that needs no conversion. - Text that was cut off, starts with a byte order mark (BOM) or isn’t UTF-8 is refused before the send. So is an
--outthe CLI can’t write. - The audio is saved only when the whole file arrives. If something fails after the request was sent, the request may already be billed: the error says so. Compare
plivo tts usagewith the reading from before, and don’t send it again blindly.
Pronunciation lexicons
A lexicon holds up to 100 rules, each a word and how to say it.--kind sets how every value is written: ipa, arpa (ARPAbet) or respell. See Pronunciation.
Use it from a coding agent
plivo skill install tts installs the text-to-speech skill (v1.3.3). Your coding agent picks a voice, checks your credit, previews the request and sends it only after you agree. It also covers the realtime WebSocket API, which has no CLI command. See Build with an AI coding agent.