Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions genai/live/live_conversation_audio_with_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# The number of audio frames to send in each chunk.
CHUNK = 4200
CHANNELS = 1
MODEL = "gemini-live-2.5-flash-preview-native-audio-09-2025"
MODEL = "gemini-live-2.5-flash-native-audio"

# The audio sample rate expected by the model.
INPUT_RATE = 16000
Expand Down Expand Up @@ -118,7 +118,7 @@ async def receive() -> None:
receive_task = asyncio.create_task(receive())
await asyncio.gather(send_task, receive_task)
# Example response:
# gemini-2.0-flash-live-preview-04-09
# gemini-live-2.5-flash-native-audio
# {'input_transcription': {'text': 'Hello.'}}
# {'output_transcription': {}}
# {'output_transcription': {'text': 'Hi'}}
Expand Down