Gemini LLM models 2.5 flash/lite support audio in ...
# ask-ai
n
Gemini LLM models 2.5 flash/lite support audio in and text out. So in pipeline mode is it possible to send raw audio instead of transcription?
t
Thanks for reaching out, Shrirang. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to let you know that Gemini LLM models like 2.5 flash/lite do support raw audio input in pipeline mode without the need for transcription. Models such as
gemini-2.5-flash-preview-native-audio-dialog
are thoughtfully designed to handle raw audio streams directly. Here’s a friendly guide to help you get started: • Make sure your audio input is in PCM format, with a 16 kHz sample rate and single channel. • Audio should be chunked into 50ms segments before sending it to the API. • Use models that specifically support native audio processing, like
gemini-2.5-flash-preview-native-audio-dialog
. • Don’t forget to set the
modalities
parameter to include audio. If you’d like, I’m here to help with any further details on setup or configurations—just let me know! Sources: Gemini Live API integration guide | LiveKit Docs | Docs::Agents | plugins/google/src/beta/realtime/api_proto.ts | Gemini Live API integration guide | LiveKit Docs | Large language model (LLM) integrations | LiveKit Docs
n
I am not talking about live or realtime models. Instead models like Gemini 2.5 pro or Gemini 2.5 flash. These are standard LLMs
t
Thanks for reaching out! I just want to make sure I understand your question correctly. Standard LLMs like Gemini 2.5 Pro or Flash usually work with text input rather than raw audio. Are you looking for some help on how to convert your audio into text before using these models, or are you wondering if these models can handle audio directly? I'm here to help you with whichever option you need!
n
I am sure that they can handle audio directly. I am curious if livekit still uses transcription with them or send raw audio?
t
For standard LLMs like Gemini 2.5 Pro or Flash, LiveKit doesn’t send raw audio directly. Instead, the audio is first transcribed into text before it’s processed by the LLM. This transcription step is an important part of the process and helps make sure everything works smoothly with the text-based input these models need. If you have any more questions or if anything isn’t clear, please don’t hesitate to reach out—I’m here to help! Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime... | plugins/google/src/models.ts | Google AI and LiveKit | LiveKit Docs | Large language model (LLM) integrations | LiveKit Docs | Docs::Agents