Speech Pipeline¶
This module contains the speech pipeline which manages the components for processing speech.
-
class
spokestack.pipeline.
SpeechPipeline
(input_source, stages)[source]¶ -
Pipeline for managing speech components.
- Parameters
-
-
input_source (
Any
) – source of audio input -
stages (
List
[Any
]) – components desired in the pipeline -
**kwargs – additional keyword arguments
-
-
property
context
¶ -
Current context
- Return type
-
event
(function=None, name=None)[source]¶ -
Registers an event handler
- Parameters
-
-
function (
Optional
[Any
]) – event handler -
name (
Optional
[str
]) – name of event handler
-
- Return type
-
Any
- Returns
-
Default event handler if a function not specified
-
property
is_running
¶ -
State of the pipeline
- Return type
-
bool