simulstream.server.speech_processors.base.BaseSpeechProcessor

class simulstream.server.speech_processors.base.BaseSpeechProcessor(config: SimpleNamespace)

A partial implementation of SpeechProcessor that provides common logic for handling incremental speech-to-text processing.

This class defines the high-level workflow of processing an incoming audio chunk (preprocessing, generation, updating history, building outputs), while leaving the model-specific details to subclasses.

Subclasses must implement the abstract helper methods to define how audio is preprocessed, tokens are generated, and histories are updated.