can I use gemini flash for multimodal voice to tex...
# ask-ai
c
can I use gemini flash for multimodal voice to text output and use elevenlabs for the TTS?
t
Thanks for reaching out, Subham. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, you can use Gemini Flash for multimodal voice-to-text processing and ElevenLabs for text-to-speech (TTS) output. Here’s how you can set it up: • First, configure the Gemini Live API to provide text-only responses. This way, it will process the voice input and give you text output. • Then, pair it with ElevenLabs TTS in your
AgentSession
to take care of the speech synthesis part. Here’s a friendly example in Python to guide you:
Copy code
from livekit.agents import AgentSession
from livekit.plugins import google, elevenlabs

# Configure Gemini Live API for text-only responses
gemini_model = google.beta.RealtimeModel(
    model="gemini-2.0-flash-live-001",
    modalities=["TEXT"],  # Text-only output
    voice=None,  # Disable Gemini's built-in TTS
)

# Configure ElevenLabs TTS
elevenlabs_tts = elevenlabs.TTS(
    model="eleven_flash_v2_5",
    voice_id="EXAVITQu4vr4xnSDxMaL",  # Default voice
)

# Combine in AgentSession
session = AgentSession(
    model=gemini_model,
    tts=elevenlabs_tts,
)
With ElevenLabs, you also have the flexibility to customize voices, stability, and latency settings to fit your needs. If you’d like, I’m here to help walk you through those options or assist with any part of the setup. Just let me know! Sources: ElevenLabs TTS plugin guide | LiveKit Docs | livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/tts.p... | Gemini Live API plugin | LiveKit Docs | ElevenLabs TTS | LiveKit Docs | pipeline-tts/tts_comparison/README.md
c
Does livekit have support for groq?
t
Absolutely! LiveKit warmly welcomes integration with Groq for real-time AI applications through the LiveKit Agents framework. Groq offers some wonderful capabilities such as: • Speech-to-Text (STT): Enjoy fast transcription with models like
whisper-large-v3
, supporting multiple languages to make your experience smooth. • Text-to-Speech (TTS): Experience high-speed TTS in English and Arabic using
playai-tts
, perfect for diverse needs. • Large Language Models (LLM): Benefit from fast inference with open models like
gpt-oss-120b
. To get started with Groq integration, you can easily install the plugin by running:
Copy code
pip install livekit-plugins-groq
Just make sure you have a Groq Cloud account and set your
GROQ_API_KEY
as an environment variable. If you’d like, I’m here to guide you through the setup process—just let me know! Sources: Groq STT plugin guide | LiveKit Docs | Groq and LiveKit | LiveKit Docs | livekit-plugins/livekit-plugins-groq/livekit/plugins/groq/py.typed
c
how do I use
GPT OSS 20B 128k
as my llm only?
t
I'm happy to guide you through using
GPT OSS 20B
as your LLM in LiveKit! Just follow these simple steps: 1. First, install the Groq plugin:
Copy code
pip install livekit-plugins-groq
1. Next, set your Groq API key:
Copy code
export GROQ_API_KEY=your_api_key_here
1. Then, initialize the LLM in your agent code like this:
Copy code
from livekit.plugins import groq

llm = groq.LLM(model="openai/gpt-oss-20b")
If you prefer, you can also use Baseten:
Copy code
from livekit.plugins import baseten

llm = baseten.LLM(model="openai/gpt-oss-20b")
Just a quick note: while
GPT OSS 20B
is supported, the 128k context length isn’t fully confirmed yet. If having that 128k context length is super important for your project, you might want to try a model like Perplexity's
sonar-large-128k
, which explicitly supports it. Please feel free to reach out if you'd like help testing context length or if you want to explore switching to a high-context model—I’m here to assist you every step of the way! Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py | OpenAI LLM models | LiveKit Docs | Build voice, video, and physical AI | LiveKit | Baseten LLM plugin guide | LiveKit Docs
c
is groq the only way to use gpt oss models
t
Hi there! I just wanted to let you know that Groq isn’t the only way to use GPT OSS models in LiveKit. You’ve got some great options like Baseten and Cerebras as well. For example: • Baseten: They offer lower pricing and a smooth integration through their Baseten plugin. • Cerebras: They provide OpenAI-compatible inference and are nicely supported via LiveKit Inference. If you’d like, you can set these up either by configuring their plugins directly or by using LiveKit Inference, which handles billing and integration automatically. Just let me know if you want me to walk you through the steps for any specific provider—I’m here to help! Sources: OpenAI LLM models | LiveKit Docs | Large language models (LLM) | LiveKit Docs | Build voice, video, and physical AI | LiveKit | Baseten LLM plugin guide | LiveKit Docs | Groq LLM plugin guide | LiveKit Docs