A React web app that demonstrates real-time voice conversations using Outspeed's API.
python
anduv
for servernode
andnpm
for client (React)- Outspeed API key
Create a .env
file in the server
directory:
OUTSPEED_API_KEY=your_outspeed_api_key_here
Go to server directory:
cd server
Install dependencies:
uv sync
Run the server:
uv run fastapi dev server.py
The server will start on http://127.0.0.1:8000
Install dependencies:
npm install
Note
This will install @outspeed/client
and @outspeed/react
.
Start the React app:
npm run dev
- Make sure the server is running on port 8000
- Open the React app in your browser
- Click "Start Session" to begin a voice conversation
- Speak with the AI assistant (configured as a helpful but witty assistant with "sophie" voice)
- Click "Stop Session" to end the conversation
The app uses semantic voice activity detection, which intelligently detects when you've finished speaking (vs. just pausing) to minimize interruptions. For example, it won't interrupt you when you say "uh" or pause briefly while thinking.