LiveKit Agents plugin wrapping Smallest AI Atoms SDK for TTS, STT & Groq LLM
Project description
livekit-plugins-smallestai
A LiveKit Agents plugin integrating Smallest AI’s Atoms SDK for high-fidelity text-to-speech (TTS), streaming speech-to-text (STT), and Groq LLM support.
Features
-
TTS with Smallest AI Waves
Real-time audio generation via Atoms' Waves engine. -
Streaming STT
Two-way audio transcription using Atoms' ASR models. -
Groq LLM Integration
Chat powered by Groq Cloud’s llama-3.3-70b-versatile model.
Installation
pip install livekit-plugins-smallestai
Environment Variables
# Smallest AI Atoms API key
SMALLEST_API_KEY=sk-...
# TTS/STT model overrides (optional)
SMALLEST_TTS_MODEL=waves-v2
SMALLEST_TTS_VOICE=en-IN-female-neutral
SMALLEST_STT_MODEL=whisper-small
# Groq Cloud credentials
GROQ_API_KEY=groq-...
GROQ_MODEL=llama-3.3-70b-versatile
Usage
import os, asyncio
from livekit import AgentSession
from livekit_smallestai.tts import SmallestTTS
from livekit_smallestai.stt import SmallestSTT
from livekit_smallestai.llm_groq import GroqLLM
async def main():
session = AgentSession(
llm=GroqLLM(),
tts=SmallestTTS(),
stt=SmallestSTT(),
)
await session.say("Hello from Smallest AI & Groq!")
message = await session.chat([{"role":"user","content":"Welcome!"}])
print(message)
if __name__ == "__main__":
asyncio.run(main())
Development
# Build
python3 -m build
# Test
pip install pytest
pytest -q
# Publish
twine upload dist/*
License
MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livekit_plugins_smallestai-0.1.1.tar.gz.
File metadata
- Download URL: livekit_plugins_smallestai-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af8942385aa081690bf4c485512539c56ebe07bac46f9a5ee35606bc815544fa
|
|
| MD5 |
3b0f21dc15f45dd5faaca36b5a7e83e4
|
|
| BLAKE2b-256 |
7448429623ff930e24a241ae287705fe32cd8f8d5807e6871b2fa4f54b670499
|
File details
Details for the file livekit_plugins_smallestai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_smallestai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84ee8e48608ca69d1371ef9db39700921e4c90c660f9c6559c73a827c2367d07
|
|
| MD5 |
fe5eea1ebbbe058ce6da895154924b6a
|
|
| BLAKE2b-256 |
a62c9dbfef15bcce7b05d556e5ced2a951581c2949822db72964b991e956b06d
|