Skip to main content
Go from zero to using Rime’s TTS API in 60 seconds using the Rime CLI.

Prerequisites

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

Step 1: Install the CLI

Pick your preferred installation method.
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

This opens your browser to the Rime dashboard. Authenticate there, and the CLI saves your API key to ~/.rime/rime.toml automatically. Demo of the rime login command

Step 3: Hear your first voice

Demo of the rime hello command

Synthesize your own text

Now that the CLI is set up, 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 offers 94+ voices. Swap the --speaker flag to change the voice:
coda, mistv3, arcana, and arcanav2 output WAV by default. mistv2 and mist output MP3 by default. Use --format to override.

Generate a curl command

Need to integrate with the API directly? Generate a ready-to-use curl command:
Add --show-key to include your actual API key in the output, or --oneline for easy copy-paste.

Next steps

CLI Reference

Full command and flag reference

Voices

Browse all 94+ available voices

Models

Compare models: Coda, Arcana, Mist v3, Mist v2

TTS in Five Minutes

Use the API from Python or JavaScript