Skip to content
Closed
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
2 changes: 1 addition & 1 deletion genai/live/live-audio-with-txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function generateLiveConversation(
});

const voiceName = 'Aoede';
const modelId = 'gemini-2.0-flash-live-preview-04-09';
const modelId = 'gemini-live-2.5-flash-native-audio';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While updating the model to gemini-live-2.5-flash-native-audio here is a good step, it introduces an inconsistency with other related samples. Specifically, live-conversation-audio-with-audio.js also generates audio but continues to use the older 'gemini-2.0-flash-live-preview-04-09' model. For consistency and to ensure all relevant samples are up-to-date, please consider updating the model in other audio-generating samples in this directory as well.

const config = {
responseModalities: [Modality.AUDIO],
speechConfig: {
Expand Down
Loading