Skip to content

Commit 44d2bf0

Browse files
angelcaamaliennae
andauthored
chore(genai): Update live-audio-with-txt.js to gimini-live-2.5-flash-native-audio (#4222)
* chore(genai): Update gimini model to gimini-live-2.5-flash-native-audio * revert changes to test CI test * update to gemini-live-2.5-flash-native-audio * fix: remove global location to comply with model constraints * chore: formatting in live-audio --------- Co-authored-by: Jennifer Davis <sigje@google.com>
1 parent f26f6bf commit 44d2bf0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

genai/live/live-audio-with-txt.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const {GoogleGenAI, Modality} = require('@google/genai');
2020
const fs = require('fs');
2121

2222
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
23-
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
23+
const GOOGLE_CLOUD_LOCATION =
24+
process.env.GOOGLE_CLOUD_LOCATION || 'us-central1';
2425

2526
async function generateLiveConversation(
2627
projectId = GOOGLE_CLOUD_PROJECT,
@@ -33,7 +34,7 @@ async function generateLiveConversation(
3334
});
3435

3536
const voiceName = 'Aoede';
36-
const modelId = 'gemini-2.0-flash-live-preview-04-09';
37+
const modelId = 'gemini-live-2.5-flash-native-audio';
3738
const config = {
3839
responseModalities: [Modality.AUDIO],
3940
speechConfig: {

0 commit comments

Comments
 (0)