Skip to content

Commit

Permalink
frame_processor: reset input queue flag with interruptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Dec 20, 2024
1 parent 4547609 commit 4375929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixed an issue that could cause the bot to stop talking if there was a user
interruption before getting any audio from the TTS service.

- Fixed an issue that would cause `ParallelPipeline` to handle `EndFrame`
incorrectly causing the main pipeline to not terminate or terminate too early.

Expand Down
1 change: 1 addition & 0 deletions src/pipecat/processors/frame_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ async def __internal_push_frame(self, frame: Frame, direction: FrameDirection):
raise

def __create_input_task(self):
self.__should_block_frames = False
self.__input_queue = asyncio.Queue()
self.__input_frame_task = self.get_event_loop().create_task(
self.__input_frame_task_handler()
Expand Down

0 comments on commit 4375929

Please sign in to comment.