Skip to content

Template for creating Ultravox demo that gets deployed to Vercel.

License

Notifications You must be signed in to change notification settings

fixie-ai/ultravox-demo-template-vercel

Repository files navigation

ultravox-demo-template-vercel

Template for creating Ultravox demo that gets deployed to Vercel.

This was bootstrapped with create-next-app.

Set-up

  1. Create a new file called .env.local and add your Ultravox API key:
ULTRAVOX_API_KEY=your_ultravox_api_key_here
  1. Configure settings, system prompt, etc in demo-config.ts
  2. Install dependencies:
pnpm install
  1. Run
pnpm dev
  1. Navigate your browser to http://localhost:3000 to use the application

Deployment

To deploy to Vercel you will need to set an env var for the ULTRAVOX_API_KEY

Query Params

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.

About

Template for creating Ultravox demo that gets deployed to Vercel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published