Skip to main content
Build a Replit voiceover application that sends text to Rime and plays the returned audio. The Replit agent generates the application from the prompt below. Keep the Rime API key in Replit Secrets so it never reaches browser code.

Prerequisites

Step 1: Create your app

Paste the following prompt in Replit to build a voiceover studio app. It uses Coda, Rime’s current model, to generate speech. You can change the design or voice lineup, but keep the lines under Use Rime TTS so the agent wires up the endpoint and secret correctly.
The Replit agent generates code that reads the RIME_API_KEY from your Secrets and uses it to authenticate the app with the Rime API.

Step 2: Add your API key

Once Replit has created your app, add your Rime API key as a Secret:
  1. On the Replit dashboard, press Cmd + K (Mac) or Ctrl + K (Windows and Linux) to open the command palette.
  2. Search for Secrets and select it.
  3. Select New configuration.
  4. Enter RIME_API_KEY as the key and paste your API key from app.rime.ai/tokens as the value.
Replit stores the value as a Secret so it doesn’t appear in your code or version history. Run the app, paste a sentence, and generate a voiceover. If you hear it, the app is reading the secret and calling Rime. If generation fails, check that the secret is named exactly RIME_API_KEY, since that’s the name the generated code reads.

Learn more