Build LiveKit voice agents using Smallest AI TTS plugin.
This example provides scripts and tools to perform standalone audio generation and build Livekit voice assistants using the Smallest AI TTS plugin. Follow the steps below to set up and run the experiments.
You can find the code examples for this setup in the following GitHub repository:
Livekit Example Code Repository
To ensure your Python environment is isolated, create a virtual environment:
Activate the virtual environment:
On Linux/Mac:
On Windows:
Once the virtual environment is activated, install the required dependencies:
Sign in here: Livekit Cloud
After signing in, create a new project and copy the following tokens:
.env
FileCreate a .env
file in the project root directory. This file should contain the following keys with appropriate values:
To set up the Livekit plugin for smallest.ai, run the following commands:
generate_audio.py
To generate audio using the Smallest AI plugin as a WAV file, run the following command:
You can change the parameters in the script and try out different voices, languages, and texts.
minimal_assistant.py
To build a minimal Livekit voice assistant using the Smallest model, run the following command:
You can connect to the agent by visiting the following link:
.env
file before running the scripts.Build LiveKit voice agents using Smallest AI TTS plugin.
This example provides scripts and tools to perform standalone audio generation and build Livekit voice assistants using the Smallest AI TTS plugin. Follow the steps below to set up and run the experiments.
You can find the code examples for this setup in the following GitHub repository:
Livekit Example Code Repository
To ensure your Python environment is isolated, create a virtual environment:
Activate the virtual environment:
On Linux/Mac:
On Windows:
Once the virtual environment is activated, install the required dependencies:
Sign in here: Livekit Cloud
After signing in, create a new project and copy the following tokens:
.env
FileCreate a .env
file in the project root directory. This file should contain the following keys with appropriate values:
To set up the Livekit plugin for smallest.ai, run the following commands:
generate_audio.py
To generate audio using the Smallest AI plugin as a WAV file, run the following command:
You can change the parameters in the script and try out different voices, languages, and texts.
minimal_assistant.py
To build a minimal Livekit voice assistant using the Smallest model, run the following command:
You can connect to the agent by visiting the following link:
.env
file before running the scripts.