Hi guys have you seen the new gpt-realtime model? ...
# agents
e
Hi guys have you seen the new gpt-realtime model? Someone already started playing around with it? Is it good?
w
I just tried plugging it in and I've had some issues. It started replying in random languages until I added agent instructions to only speak english. Also, I noticed that the
transcription_node
override function stopped getting called. Anyone have any idea why?
r
w
Thanks @refined-appointment-81829. Yeah I agree with @curved-area-30247 it's a little snappier but not sure why my
transcription_node
isn't getting called the same way it was. I'm trying to get word level timestamps. This is my agent setup:
Copy code
session = AgentSession[StoryState](
        userdata=StoryState(),
        stt=openai.STT(
            model="whisper-1",
            api_key=os.getenv("OPENAI_API_KEY"),
            language="en",
            use_realtime=False
        ),
        # llm=openai.LLM(model="gpt-4o-mini"),
        llm=openai.realtime.RealtimeModel(
            modalities=["text"]
        ),
        tts=cartesia.TTS(
            model="sonic-2",
            voice="62305e79-9d39-4643-b003-5e0b096fe4f4",  # madison happy
            language="en",
            api_key=os.getenv("CARTESIA_API_KEY")
        ),
        vad=silero.VAD.load(),
        user_away_timeout=16.0,
        use_tts_aligned_transcript=True
    )
d
I don't think realtime API sends back word level timestamps
are you trying to use it and the STT together?
w
yes, is that not possible? I tried
use_realtime=False
but that didn't work
d
are you trying to use STT or the realtime API? it seems that both are being set..
because OAI realtime API produces transcripts, I'm not sure that we are using the ones coming from whisper.. could you share a bit about what you are trying to accomplish?
w
Yes, I am trying to use the new realtime model and receive word level timestamps for a front-end use case. Is that possible?