Debug Processors¶
ghost_brain.modules.pipeline.debug
¶
Debug processors for pipeline inspection.
logger = logging.getLogger(__name__)
module-attribute
¶
AudioLogger
¶
Processor that logs details about audio frames passing through the pipeline.
__init__(name: str = 'AudioLogger') -> None
¶
Initialize the audio logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The display name used in log output. |
'AudioLogger'
|
process_frame(frame: Frame, direction: FrameDirection) -> None
async
¶
Process and potentially log an incoming frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frame
|
Frame
|
The frame to inspect and pass through. |
required |
direction
|
FrameDirection
|
The direction of the frame in the pipeline. |
required |