Fixed an issue where the RTVIProcessor was sending duplicate UserStartedSpeakingFrame and UserStoppedSpeakingFrame messages.

This commit is contained in:
Filipi Fuchter
2025-10-20 18:39:00 -03:00
parent a0c93ab6de
commit de46631bac
2 changed files with 4 additions and 0 deletions

View File

@@ -106,6 +106,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed an issue where the `RTVIProcessor` was sending duplicate
`UserStartedSpeakingFrame` and `UserStoppedSpeakingFrame` messages.
- Fixed an issue in `RivaSegmentedSTTService` where a runtime error occurred due - Fixed an issue in `RivaSegmentedSTTService` where a runtime error occurred due
to a mismatch in the _handle_transcription method's signature. to a mismatch in the _handle_transcription method's signature.

View File

@@ -1018,6 +1018,7 @@ class RTVIObserver(BaseObserver):
if ( if (
isinstance(frame, (UserStartedSpeakingFrame, UserStoppedSpeakingFrame)) isinstance(frame, (UserStartedSpeakingFrame, UserStoppedSpeakingFrame))
and (direction == FrameDirection.DOWNSTREAM)
and self._params.user_speaking_enabled and self._params.user_speaking_enabled
): ):
await self._handle_interruptions(frame) await self._handle_interruptions(frame)