Skip to content

Commit f26f6bf

Browse files
authored
chore(genai): Update live-transcribe-with-audio.js to gimini-live-2.5-flash-native-audio (#4223)
* chore(genai): Update gimini model to gimini-live-2.5-flash-native-audio * fix: remove global location to comply with model constraints
1 parent ed64390 commit f26f6bf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

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

2121
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
22-
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
22+
const GOOGLE_CLOUD_LOCATION =
23+
process.env.GOOGLE_CLOUD_LOCATION || 'us-central1';
2324

2425
async function generateLiveAudioTranscription(
2526
projectId = GOOGLE_CLOUD_PROJECT,
@@ -31,7 +32,7 @@ async function generateLiveAudioTranscription(
3132
location: location,
3233
});
3334

34-
const modelId = 'gemini-live-2.5-flash-preview-native-audio';
35+
const modelId = 'gemini-live-2.5-flash-native-audio';
3536
const config = {
3637
responseModalities: [Modality.AUDIO],
3738
inputAudioTranscription: {},

0 commit comments

Comments
 (0)