Hello everyone, I am trying limit my session trans...
# agents
f
Hello everyone, I am trying limit my session transcription to english only. and block the user from interuppting the agent while he speaks. both have options for, but both are not working. greatly appreciate any help :) heres my code:
Copy code
openai.realtime.RealtimeModel(
                voice=voice_name,
                model=model_name, # "gpt-realtime-mini"
                input_audio_transcription=realtime.AudioTranscription(
                    model="gpt-4o-mini-transcribe",
                    language="en",
                ),
                turn_detection=TurnDetection(
                    type="semantic_vad",
                    eagerness="low",
                    create_response=True,
                    interrupt_response=False
                    )
            )
l
Using https://github.com/livekit-examples/python-agents-examples/blob/main/realtime/openai-realtime.py I configured the LLM as follows and the agent is uninterruptible:
Copy code
llm=openai.realtime.RealtimeModel(
            turn_detection=TurnDetection(
                type="server_vad",
                threshold=0.5,
                prefix_padding_ms=300,
                silence_duration_ms=500,
                create_response=True,
                interrupt_response=False,  # This prevents user from interrupting the agent
            )
        ),
For realtime agents, should modify the instructions to tell the assistant to use English, if that's what you want
You are a helpful voice AI assistant.  Please speak in English
f
Hey @lively-winter-88668 thanks for the reply. I tested with the same exact settings for turn detection and it is not working. I can still interupt the agent. Anything I could be missing?
l
Strange, did you try with the example rather than adding those settings to your own project?
f
@lively-winter-88668 Just retried with the example and I can still interrupt. Here is a link to a thread on the same topic: https://livekit-users.slack.com/archives/C0816MD6LCR/p1754085226040079 Just want to make sure its an offical known issue. Thank you.