flaky-flower-79018
10/27/2025, 10:59 AMllm = 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"
Cheerslively-winter-88668
10/27/2025, 5:09 PM