Hey mates, I'm having a strange issue where the ac...
# agents
f
Hey mates, I'm having a strange issue where the accent of my agent is changing every time I call a tool. My current setup Using Livekit for orchestrating OpenAi STS
Copy code
llm = openai.realtime.RealtimeModel(
            model="gpt-realtime-2025-08-28",
            api_key=os.environ["OPENAI_API_KEY"],
            voice="marin",
            temperature=0.6,
            input_audio_transcription=InputAudioTranscription(
                model="gpt-4o-transcribe",
                language="en",
            ),
            turn_detection=TurnDetection(
                type="semantic_vad",
                eagerness="auto",
                create_response=True,
                interrupt_response=True,
            ),
        )
        self.context_injected = False
        super().__init__(instructions=system_instruction, llm=llm)
What's happening I have prompted my agent to speak with an Australian accent (we are a localised product) which works, until one of the functions are called then then it defualts to the marin voice. strangly it's but is still respecting the other intstuctions in the prompt Things tried that didn't seem to work • Prompting the retain the accent after calling a tool (although telling it to say "cats are cute meow meow meow" after calling a function works well) • Having the tool return Nothing (run silently) Does anyone have any ideas on what could be causing this, do we think i've misconfigured something or does the tool calling do something weird to enforce a "clean voice" Cheers
l
This doesn't answer your question but this thread suggests a more specific prompt, perhaps including the region, would be more reliable.