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. The generated application handles the server-side API request and audio playback while Rime generates the speech.

Prerequisites

To follow this guide, you need:

Step 1: Create your app

Paste the following prompt in Replit to build a voiceover studio app. It uses the Arcana model’s voice library to generate speech. You can modify this prompt to build your own app idea.
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. Click New configuration.
  4. Enter RIME_API_KEY as the key and paste your API key from app.rime.ai/tokens as the value
This keeps your key secure so that it never appears in your code or version history

Learn more

Refer to the following documentation to learn more about using Replit and Rime: