Gemini Live API: change voice to Female

I’m following this Live API speech to speech sample. Is there a way to change the voice to female? It’s male by default.

Hey @Tina_Jasmine , You should be able to specify the voice_name in the configuration. For example, refer to the documentation link for a list of available voice names.

config = {
    "response_modalities": ["AUDIO"],
    "speech_config": {
        "voice_config": {"prebuilt_voice_config": {"voice_name": "Aoede"}}
    },
}