Code Examples Repository
You can find the code examples for this setup in the following GitHub repository: Livekit Example Code RepositoryCommon Steps
1. Create a Virtual Environment
To ensure your Python environment is isolated, create a virtual environment:-
On Linux/Mac:
-
On Windows:
2. Install Requirements
Once the virtual environment is activated, install the required dependencies:3. Sign in and Create a New Project on Livekit
Sign in here: Livekit Cloud After signing in, create a new project and copy the following tokens:4. Create a .env
File
Create a .env
file in the project root directory. This file should contain the following keys with appropriate values:
5. Install the Plugin
To set up the Livekit plugin for smallest.ai, run the following commands:Usage
1. Running generate_audio.py
To generate audio using the Smallest AI plugin as a WAV file, run the following command:
2. Running minimal_assistant.py
To build a minimal Livekit voice assistant using the Smallest model, run the following command:
3. Connect to the Agent Here
You can connect to the agent by visiting the following link: Livekit Agent PlaygroundNotes
- Ensure that you have added the correct API keys and other credentials in the
.env
file before running the scripts. - For any issues or questions, feel free to open an issue in the repository or contact us on Discord.