Skip to main content
Start using Rime’s TTS API in 60 seconds with the Rime CLI.

Prerequisites

  • A Rime account: Sign up free (you’ll sign in through the CLI)
  • macOS or Linux (the CLI runs on both)

Step 1: Install the CLI

Install the CLI with Rime’s installation script:
Shell script
Verify the installation:
After installation, you may need to open a new terminal or run source ~/.zshrc (or ~/.bashrc) for the rime command to be available.

Step 2: Log in

rime login opens the Rime dashboard in your browser. After you authenticate, the CLI saves your API key to ~/.rime/rime.toml:
Demo of the rime login command

Step 3: Hear your first voice

Run the built-in sample:
Hearing speech confirms that the CLI can authenticate and reach the TTS API. Demo of the rime hello command

Synthesize your own text

Generate speech from any text:
Demo of the rime tts command This plays the audio directly. To save it to a file instead:
Play it back with waveform visualization:
Demo of the rime play command

Try different voices and models

Rime has 184 Coda voices and more than 500 across the full model lineup. Swap the --speaker flag to change the voice:
coda and mistv3 output WAV by default. mistv2 and mist output MP3 by default. Use --format to override.

Generate a curl command

To call the API directly, generate a curl command:
The CLI prints a cURL command like this:
The generated command resolves your saved key at execution time with rime key, so it does not print the key. Add --oneline for single-line output.

CLI and API references

CLI Reference

Full command and flag reference

Voices

Browse the current voice catalog

Models

Compare Coda, Mist v3, and Mist v2

TTS in Five Minutes

Use the API from Python or JavaScript