Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_smallestai-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_smallestai-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_smallestai-0.1.1.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_smallestai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 af8942385aa081690bf4c485512539c56ebe07bac46f9a5ee35606bc815544fa
MD5 3b0f21dc15f45dd5faaca36b5a7e83e4
BLAKE2b-256 7448429623ff930e24a241ae287705fe32cd8f8d5807e6871b2fa4f54b670499

See more details on using hashes here.

File details

Details for the file livekit_plugins_smallestai-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_smallestai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84ee8e48608ca69d1371ef9db39700921e4c90c660f9c6559c73a827c2367d07
MD5 fe5eea1ebbbe058ce6da895154924b6a
BLAKE2b-256 a62c9dbfef15bcce7b05d556e5ced2a951581c2949822db72964b991e956b06d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page