Fixed an issue where the RTVIProcessor was sending duplicate UserStartedSpeakingFrame and UserStoppedSpeakingFrame messages.
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user