Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set threshold, prefix_padding_ms, silence_duration_ms for turn detection #64

Open
mfugate-ywcss opened this issue Jan 2, 2025 · 0 comments

Comments

@mfugate-ywcss
Copy link

Good Afternoon,

We would like to customize threshold, prefix_padding_ms, silence_duration_ms for turn detection,
What would be the best way to achieve this?
Thanks

realtime_model = RealtimeModel(
modalities=["text", "audio"],
instructions="Give brief, concise answers.",
voice="alloy",
turn_detection=openai.realtime.ServerVadOptions(
threshold=0.6, prefix_padding_ms=200, silence_duration_ms=500,
),
temperature=0.7,
max_output_tokens=1500,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant