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:
Terminal output of rime login: the Rime logo, then the browser sign-in and a success message

Step 3: Hear your first voice

Run the built-in sample:
Hearing speech confirms that the CLI can authenticate and reach the TTS API. Terminal output of rime hello: the Rime logo, then the Vespera greeting playing on Coda

Synthesize your own text

rime tts sends your text to the voice (-s) and model (-m) you choose. This command reads a short sentence in the vespera voice on Coda:
Terminal output of rime tts with the vespera voice on Coda 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 313 Coda voices and 78 Mist v3 voices. 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. Use --format mp3 for MP3.

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 and Mist v3

TTS in Five Minutes

Use the API from Python or JavaScript