FrameProcessor: added processors/next/previous properties
This commit is contained in:
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Added `FrameProcessor` properties `processors`, `next` and `previous`.
|
||||||
|
|
||||||
- `ElevenLabsTTSService` now supports additional runtime changes to the `model`,
|
- `ElevenLabsTTSService` now supports additional runtime changes to the `model`,
|
||||||
`language`, and `voice_settings` parameters.
|
`language`, and `voice_settings` parameters.
|
||||||
|
|
||||||
|
|||||||
@@ -250,6 +250,36 @@ class FrameProcessor(BaseObject):
|
|||||||
"""
|
"""
|
||||||
return self._name
|
return self._name
|
||||||
|
|
||||||
|
@property
|
||||||
|
def processors(self) -> List["FrameProcessor"]:
|
||||||
|
"""Return the list of sub-processors contained within this processor.
|
||||||
|
|
||||||
|
Only compound processors (e.g. pipelines and parallel pipelines) have
|
||||||
|
sub-processors. Non-compound processors will return an empty list.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The list of sub-processors if this is a compound processor.
|
||||||
|
"""
|
||||||
|
return []
|
||||||
|
|
||||||
|
@property
|
||||||
|
def next(self) -> Optional["FrameProcessor"]:
|
||||||
|
"""Get the next processor.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The next processor, or None if there's no next processor.
|
||||||
|
"""
|
||||||
|
return self._next
|
||||||
|
|
||||||
|
@property
|
||||||
|
def previous(self) -> Optional["FrameProcessor"]:
|
||||||
|
"""Get the previous processor.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The previous processor, or None if there's no previous processor.
|
||||||
|
"""
|
||||||
|
return self._prev
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def interruptions_allowed(self):
|
def interruptions_allowed(self):
|
||||||
"""Check if interruptions are allowed for this processor.
|
"""Check if interruptions are allowed for this processor.
|
||||||
|
|||||||
Reference in New Issue
Block a user