For “gemini-live-2.5-flash-preview” model - voice_name is not working. I tested it with “gemini-2.5-flash-native-audio-preview-09-2025”, it works well though.
geminiSession = await ai.live.connect({
model : “gemini-2.5-flash-native-audio-preview-09-2025”,
config: {
responseModalities: [Modality.AUDIO],
systemInstruction: {
parts: [{ text: `` }]
},
speechConfig: {
voiceConfig: {
prebuiltVoiceConfig: {
voiceName: “Autonoe” // Female voice
}
}
}
Hii StellaHoang,
Apologies for the delayed response.
Could you please provide the complete error message encountered while using the gemini-live-2.5-flash-preview model?
This will help us investigate the issue more effectively.
My apologies for not being clear, there was no error, it just if you set name for different voices for the non-native model, it wouldn’t work. The model would just randomly response with a different voice each time.
We didn’t observe it with the native model.