Skip to main content
In about a minute, you’ll hear a Rime voice in your terminal. The Rime CLI handles sign-in and playback, so you can try voices before you write any code.

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

rime tts sends your text to the voice (-s) and model (-m) you choose. This command reads “Hello from Rime.” in the celeste voice on Coda:
Demo of the rime tts command This plays the audio directly. Add -o to save it to a file you can replay or share instead:
Play it back with waveform visualization:
Demo of the rime play command

Try different voices and models

Rime has 287 Coda voices and more than 500 across the full model lineup. Swap the --speaker flag to change the voice. These commands keep the sentence the same, so you hear only what the voice and model change:
coda and mistv3 output WAV by default. mistv2 and mist output MP3 by default. Use --format to override.

Generate a curl command

When you’re ready to call the API from your own code, rime curl prints the HTTP request behind a rime tts 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