Skip to content

Commit

Permalink
aggregator(user_response): also handle small VADParams.stop_secs
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Jun 13, 2024
1 parent 0004d4a commit 1170b30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pipecat/processors/aggregators/user_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def __init__(
# S I T E -> X
# S I E T -> X
# S I E I T -> X
# S E T -> X
# S E I T -> X
#
# The following case would not be supported:
#
Expand All @@ -99,7 +101,7 @@ async def process_frame(self, frame: Frame, direction: FrameDirection):
# We might have received the end frame but we might still be
# aggregating (i.e. we have seen interim results but not the final
# text).
self._aggregating = self._seen_interim_results
self._aggregating = self._seen_interim_results or len(self._aggregation) == 0

# Send the aggregation if we are not aggregating anymore (i.e. no
# more interim results received).
Expand Down

0 comments on commit 1170b30

Please sign in to comment.