BaseTransportOutput: allow pushing frames upstream
This commit is contained in:
@@ -91,6 +91,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed a `BaseOutputTransport` issue that was causing upstream frames to no be
|
||||||
|
pushed upstream.
|
||||||
|
|
||||||
- Fixed multiple issue where user transcriptions where not being handled
|
- Fixed multiple issue where user transcriptions where not being handled
|
||||||
properly. It was possible for short utterances to not trigger VAD which would
|
properly. It was possible for short utterances to not trigger VAD which would
|
||||||
cause user transcriptions to be ignored. It was also possible for one or more
|
cause user transcriptions to be ignored. It was also possible for one or more
|
||||||
|
|||||||
@@ -170,6 +170,8 @@ class BaseOutputTransport(FrameProcessor):
|
|||||||
# TODO(aleix): Images and audio should support presentation timestamps.
|
# TODO(aleix): Images and audio should support presentation timestamps.
|
||||||
elif frame.pts:
|
elif frame.pts:
|
||||||
await self._sink_clock_queue.put((frame.pts, frame.id, frame))
|
await self._sink_clock_queue.put((frame.pts, frame.id, frame))
|
||||||
|
elif direction == FrameDirection.UPSTREAM:
|
||||||
|
await self.push_frame(frame, direction)
|
||||||
else:
|
else:
|
||||||
await self._sink_queue.put(frame)
|
await self._sink_queue.put(frame)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user