transcription_log_observer

Transcription logging observer for Pipecat.

This module provides an observer that logs transcription frames to the console, allowing developers to monitor speech-to-text activity in real-time.

class pipecat.observers.loggers.transcription_log_observer.TranscriptionLogObserver(*, name: str | None = None, **kwargs)[source]

Bases: BaseObserver

Observer to log transcription activity to the console.

Monitors and logs all transcription frames from STT services, including both final transcriptions and interim results. This allows developers to track speech recognition activity and debug transcription issues.

Only processes frames from STTService instances to avoid logging unrelated transcription frames from other sources.

async on_push_frame(data: FramePushed)[source]

Handle frame push events and log transcription frames.

Logs TranscriptionFrame and InterimTranscriptionFrame instances with timestamps and user information for debugging purposes.

Parameters:

data – Frame push event data containing source, frame, and timestamp.