Skip to main content

Installation

Install the React SDK using your preferred package manager:

Prerequisites

Before using the React SDK, you’ll need:
  1. Outspeed API Key: Get your API key from the Outspeed Dashboard
  2. Backend Token Endpoint: A server endpoint to generate ephemeral keys for client authentication

Backend Setup

Environment Variables

Add your Outspeed API key to your server’s environment variables:
Never expose your Outspeed API key in client-side code. Always generate ephemeral tokens on your backend server.

Session Configuration

The React SDK uses a SessionConfig object to configure voice sessions:
Want to use a different voice? See all available voices you can choose from.

Configuration Options

You can find available voices here

Next Steps

Now that you have the SDK installed and configured, you can start building voice AI applications: