simulstream.server.speech_processors.build_speech_processor
- simulstream.server.speech_processors.build_speech_processor(speech_processor_config: SimpleNamespace) SpeechProcessor
Instantiate a SpeechProcessor subclass based on configuration.
The configuration should specify the fully-qualified class name in the
typefield (e.g."simulstream.server.speech_processors.MyProcessor").- Parameters:
speech_processor_config (SimpleNamespace) – Configuration for the speech processor.
- Returns:
An instance of the configured speech processor.
- Return type:
- Raises:
AssertionError – If the specified class is not a subclass of SpeechProcessor.