Template for creating Ultravox demo that gets deployed to Vercel.
This was bootstrapped with create-next-app
.
- Create a new file called
.env.local
and add your Ultravox API key:
ULTRAVOX_API_KEY=your_ultravox_api_key_here
- Configure settings, system prompt, etc in demo-config.ts
- Install dependencies:
pnpm install
- Run
pnpm dev
- Navigate your browser to
http://localhost:3000
to use the application
To deploy to Vercel you will need to set an env var for the ULTRAVOX_API_KEY
You can use some query parameters (e.g. http://localhost:3000?showSpeakerMute=true
to enable different capabilities in the demo.
What | Parameter | Notes |
---|---|---|
Debug Logging | showDebugMessages=true |
Turns on some additional console logging. |
Speaker Mute Toggle | showSpeakerMute=true |
Shows the speaker mute button. |
Change Model | model=ultravox-70B |
Changes the model to what is specified. Note: the app will prepend fixie-ai/ to the value. |
Enable User Transcripts | showUserTranscripts=true |
Displays user transcripts. Otherwise, only Ultravox/agent transcripts are shown. |