You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
examples/realtime/push_to_talk_app.py is grossly outdated #2715
Correction: PR #2926 updates the broken Session import path in examples/realtime/push_to_talk_app.py and adds a turn_detection attribute guard for session variants where that field may not exist.
Thanks for flagging this, and sorry the example broke as the SDK evolved! #2926 fixes the stale Session import and updates turn-detection handling to the current session layout. Once it merges, please pull the updated example from main.
We’re closing this to track the remaining work in that PR. If the updated example still fails, or we’ve closed this by mistake, please flag it here with the traceback and SDK version—we’re happy to revisit.
Activity
karpetrosyan commentedon Oct 29, 2025
It's push to talk because you need to press a button to start real-time communication.
I guess there was just an outdated import. Does this fixed version work for you?
Code here:
Rishirandhawa commentedon Mar 3, 2026
Opened a fix PR: https://github.com/openai/openai-python/pull/2926\n\nIt updates the broken import path in and adds a small guard for session variants that may not expose .
Rishirandhawa commentedon Mar 3, 2026
Correction: PR #2926 updates the broken Session import path in examples/realtime/push_to_talk_app.py and adds a turn_detection attribute guard for session variants where that field may not exist.
marcuswood-oai commentedon Sep 14, 2026
Thanks for flagging this, and sorry the example broke as the SDK evolved! #2926 fixes the stale Session import and updates turn-detection handling to the current session layout. Once it merges, please pull the updated example from main.
We’re closing this to track the remaining work in that PR. If the updated example still fails, or we’ve closed this by mistake, please flag it here with the traceback and SDK version—we’re happy to revisit.
fix(example): refresh realtime push_to_talk_app session types (#2926)