Skip to content

AI voice assistant starter app for Flutter built with LiveKit

License

Notifications You must be signed in to change notification settings

livekit-examples/voice-assistant-flutter

Repository files navigation

Voice assistant app icon

Flutter Voice Assistant

This is a starter template for LiveKit Agents that provides a simple voice interface using the LiveKit Flutter SDK.

This template is compatible with iOS, macOS, and Android and is free for you to use or modify as you see fit.

Voice Assistant Screenshot

Getting started

The easiest way to get this app running is with the Sandbox for LiveKit Cloud and the LiveKit CLI.

First, create a new Sandbox Token Server for your LiveKit Cloud project.

Then, run the following command to automatically clone this template and connect it to LiveKit Cloud.

lk app create --template voice-assistant-flutter --sandbox <token_server_sandbox_id>

Install dependencies and run the app:

flutter pub get
flutter run

Note: You may need to configure signing certificates in Xcode if building to a real iOS device.

You'll also need an agent to speak with. Try our sample voice assistant agent for Python, Node.js, or create your own from scratch.

Note

To setup without the LiveKit CLI, clone the repository and then either create a .env with a LIVEKIT_SANDBOX_ID (if using a Sandbox Token Server), or open token_service.dart and add your manually generated URL and token.

Token generation

In a production environment, you will be responsible for developing a solution to generate tokens for your users which is integrated with your authentication solution. You should disable your sandbox token server and modify token_service.dart to use your own token server.

Contributing

This template is open source and we welcome contributions! Please open a PR or issue through GitHub, and don't forget to join us in the LiveKit Community Slack!

About

AI voice assistant starter app for Flutter built with LiveKit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published