diff --git a/.changeset/tidy-lions-repair.md b/.changeset/tidy-lions-repair.md deleted file mode 100644 index 60af82fb..00000000 --- a/.changeset/tidy-lions-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@livekit/rtc-node': patch ---- - -Fix AudioSource.waitForPlayout resolving immediately with audio still queued. The internal playout promise could be left resolved ("latched") by the drain timer firing during a gap between captures, or by clearQueue()/pause; a later waitForPlayout() then consumed the stale resolution and reported playout complete ~queueSizeMs early, clipping the tail of agent speech on every turn in downstream consumers. The waiter is now discarded when released and lazily re-created on the next captureFrame, mirroring python-sdks. As part of this, waitForPlayout() now resolves immediately when no audio is queued instead of blocking until the next release. diff --git a/packages/livekit-rtc/CHANGELOG.md b/packages/livekit-rtc/CHANGELOG.md index 800d614b..2faa4a0f 100644 --- a/packages/livekit-rtc/CHANGELOG.md +++ b/packages/livekit-rtc/CHANGELOG.md @@ -1,5 +1,11 @@ # @livekit/rtc-node +## 0.13.31 + +### Patch Changes + +- Fix AudioSource.waitForPlayout resolving immediately with audio still queued. The internal playout promise could be left resolved ("latched") by the drain timer firing during a gap between captures, or by clearQueue()/pause; a later waitForPlayout() then consumed the stale resolution and reported playout complete ~queueSizeMs early, clipping the tail of agent speech on every turn in downstream consumers. The waiter is now discarded when released and lazily re-created on the next captureFrame, mirroring python-sdks. As part of this, waitForPlayout() now resolves immediately when no audio is queued instead of blocking until the next release. - [#693](https://github.com/livekit/node-sdks/pull/693) ([@chenghao-mou](https://github.com/chenghao-mou)) + ## 0.13.30 ### Patch Changes diff --git a/packages/livekit-rtc/package.json b/packages/livekit-rtc/package.json index 9f8a6ce0..b4ce7c47 100644 --- a/packages/livekit-rtc/package.json +++ b/packages/livekit-rtc/package.json @@ -3,7 +3,7 @@ "description": "LiveKit RTC Node", "license": "Apache-2.0", "author": "LiveKit", - "version": "0.13.30", + "version": "0.13.31", "main": "dist/index.js", "require": "dist/index.cjs", "types": "dist/index.d.ts",