You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A complete starter project for building voice AI apps with [LiveKit Agents for Python](https://github.com/livekit/agents).
8
-
9
-
The starter project includes:
10
-
11
-
- A simple voice AI assistant based on the [Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai/)
12
-
- Voice AI pipeline based on [OpenAI](https://docs.livekit.io/agents/integrations/llm/openai/), [Cartesia](https://docs.livekit.io/agents/integrations/tts/cartesia/), and [Deepgram](https://docs.livekit.io/agents/integrations/llm/deepgram/)
13
-
- Easily integrate your preferred [LLM](https://docs.livekit.io/agents/integrations/llm/), [STT](https://docs.livekit.io/agents/integrations/stt/), and [TTS](https://docs.livekit.io/agents/integrations/tts/) instead, or swap to a realtime model like the [OpenAI Realtime API](https://docs.livekit.io/agents/integrations/realtime/openai)
14
-
- Eval suite based on the LiveKit Agents [testing & evaluation framework](https://docs.livekit.io/agents/build/testing/)
15
-
-[LiveKit Turn Detector](https://docs.livekit.io/agents/build/turns/turn-detector/) for contextually-aware speaker detection, with multilingual support
- Integrated [metrics and logging](https://docs.livekit.io/agents/build/metrics/)
3
+
Welcome to the Voice Agent Hackathon! This template contains a ready-to-use voice agent built with [AssemblyAI](https://assemblyai.com) and [Rime](https://rime.ai). All you need to run it is a [LiveKit Cloud](https://cloud.livekit.io) project.
18
4
19
5
This starter app is compatible with any [custom web/mobile frontend](https://docs.livekit.io/agents/start/frontend/) or [SIP-based telephony](https://docs.livekit.io/agents/start/telephony/).
20
6
21
-
## Dev Setup
7
+
## Setup
22
8
23
-
Clone the repository and install dependencies to a virtual environment:
9
+
Step 1: Copy this repository (Click the green "Use this template" button on GitHub)
10
+
Step 2: Clone your new copy to your local machine
11
+
Step 3: Install dependencies using uv
24
12
25
13
```console
26
-
cd agent-starter-python
14
+
cd voice-agent-hackathon
27
15
uv sync
28
16
```
29
17
30
-
Set up the environment by copying `.env.example` to `.env.local` and filling in the required values:
18
+
Step 4: Set up the environment by copying `.env.example` to `.env.local` and filling in the required values from your [LiveKit Cloud](https://cloud.livekit.io) project
31
19
32
-
-`LIVEKIT_URL`: Use [LiveKit Cloud](https://cloud.livekit.io/) or [run your own](https://docs.livekit.io/home/self-hosting/)
20
+
-`LIVEKIT_URL`
33
21
-`LIVEKIT_API_KEY`
34
22
-`LIVEKIT_API_SECRET`
35
-
-`OPENAI_API_KEY`: [Get a key](https://platform.openai.com/api-keys) or use your [preferred LLM provider](https://docs.livekit.io/agents/integrations/llm/)
36
-
-`DEEPGRAM_API_KEY`: [Get a key](https://console.deepgram.com/) or use your [preferred STT provider](https://docs.livekit.io/agents/integrations/stt/)
37
-
-`CARTESIA_API_KEY`: [Get a key](https://play.cartesia.ai/keys) or use your [preferred TTS provider](https://docs.livekit.io/agents/integrations/tts/)
38
23
39
24
You can load the LiveKit environment automatically using the [LiveKit CLI](https://docs.livekit.io/home/cli/cli-setup):
40
25
@@ -56,19 +41,19 @@ Next, run this command to speak to your agent directly in your terminal:
56
41
uv run python src/agent.py console
57
42
```
58
43
59
-
To run the agent for use with a frontend or telephony, use the `dev` command:
44
+
## Web playground
60
45
61
-
```console
62
-
uv run python src/agent.py dev
63
-
```
46
+
## Web frontend
64
47
65
-
In production, use the `start` command:
48
+
This agent is compatible with the [LiveKit Agents Playground](https://agents-playground.livekit.io).
66
49
67
-
```console
68
-
uv run python src/agent.py start
69
-
```
50
+
To run the agent for the playground, use the `dev` subcomand:
70
51
71
-
## Frontend & Telephony
52
+
```shell
53
+
uv run agent.py dev
54
+
```
55
+
56
+
## Custom frontend & telephony
72
57
73
58
Get started quickly with our pre-built frontend starter apps, or add telephony support:
74
59
@@ -92,20 +77,8 @@ This project includes a complete suite of evals, based on the LiveKit Agents [te
92
77
uv run pytest
93
78
```
94
79
95
-
## Using this template repo for your own project
96
-
97
-
Once you've started your own project based on this repo, you should:
98
-
99
-
1.**Check in your `uv.lock`**: This file is currently untracked for the template, but you should commit it to your repository for reproducible builds and proper configuration management. (The same applies to `livekit.toml`, if you run your agents in LiveKit Cloud)
100
-
101
-
2.**Remove the git tracking test**: Delete the "Check files not tracked in git" step from `.github/workflows/tests.yml` since you'll now want this file to be tracked. These are just there for development purposes in the template repo itself.
102
-
103
-
3.**Add your own repository secrets**: You must [add secrets](https://docs.github.com/en/actions/how-tos/writing-workflows/choosing-what-your-workflow-does/using-secrets-in-github-actions) for `OPENAI_API_KEY` or your other LLM provider so that the tests can run in CI.
80
+
To run the tests in a CI environment, you must also [add repository secrets](https://docs.github.com/en/actions/how-tos/writing-workflows/choosing-what-your-workflow-does/using-secrets-in-github-actions) for `LIVEKIT_URL`, `LIVEKIT_API_KEY`, and `LIVEKIT_API_SECRET`.
104
81
105
82
## Deploying to production
106
83
107
-
This project is production-ready and includes a working `Dockerfile`. To deploy it to LiveKit Cloud or another environment, see the [deploying to production](https://docs.livekit.io/agents/ops/deployment/) guide.
108
-
109
-
## License
110
-
111
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
84
+
This project is production-ready and includes a working `Dockerfile`. To deploy it to LiveKit Cloud or another environment, see the [deploying to production](https://docs.livekit.io/agents/ops/deployment/) guide.
0 commit comments