How to use live-api websocket to translate text in real-time connection

i gaved a {

            "model": "models/gemini-2.5-flash-native-audio-preview-09-2025",

            "generationConfig": {

                responseModalities: \["TEXT"\],

            },

            "systemInstruction": {

                parts: \[{

                    text: "Please translate into the target language."

                }\]

            }

        } configuration, but received a  non-voice request websocket message.   how to fix it ?

Hi @HenryBaby, welcome to the community!

Could you please confirm what you are trying to achieve? Are you trying to translate text to text or text to audio?
Also, please check, this is the latest model: gemini-2.5-flash-native-audio-preview-12-2025

Thank you!