PipelineTask: only call event handlers if a filter is matched

This commit is contained in:
Aleix Conchillo Flaqué
2025-03-13 18:39:11 -07:00
parent 676c5d9ba7
commit 1b3b4ee04a
3 changed files with 47 additions and 5 deletions

View File

@@ -14,7 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `on_frame_reached_upstream` and `on_frame_reached_downstream` event
handlers to `PipelineTask`. Those events will be called when a frame reaches
the beginning or end of the pipeline respectively.
the beginning or end of the pipeline respectively. Note that by default, the
event handlers will not be called unless a filter is set with
`PipelineTask.set_reached_upstream_filter()` or
`PipelineTask.set_reached_downstream_filter()`.
- Added support for Chirp voices in `GoogleTTSService`.