Skip to content

Conversation

@vrtnis
Copy link
Contributor

@vrtnis vrtnis commented Aug 11, 2025

Quantizes audio_end_ms by flooring and clamping to ensure it’s always an integer, preventing realtime api errors with fractional speeds (e.g. 1.1).

Also, adds tests for both the base WebSocket and Twilio transport layers.

All tests pass including pnpm -r build-check.

Resolves #315

@changeset-bot
Copy link

changeset-bot bot commented Aug 11, 2025

🦋 Changeset detected

Latest commit: ef0446d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@openai/agents-extensions Patch
@openai/agents-realtime Patch
@openai/agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vrtnis vrtnis changed the title fix: quantize audio_end_ms to integer in interrupts for twilio realtime (#315) fix: quantize audio_end_ms to integer in interrupts for twilio realtime Aug 11, 2025
@seratch seratch added bug Something isn't working package:agents-realtime labels Aug 11, 2025
@seratch seratch merged commit b487db1 into openai:main Aug 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working package:agents-realtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Twilio RealtimeAgent crashes with "Invalid type for 'audio_end_ms': expected an integer, but got a decimal number instead." when speed is set to 1.1

2 participants