Parameters
Streaming STT initialization options.
Returns
A streaming STT engine instance.
SttStream Interface
The stream object returned byengine.createStream() provides methods for feeding audio and getting recognition results.
Examples
Basic Real-Time Recognition
Simplified with processAudioChunk()
TheprocessAudioChunk() method combines multiple operations into a single call, reducing latency:
Live Microphone Recognition
Custom Endpoint Detection
With Hotwords for Contextual Biasing
Multiple Concurrent Streams
Helper Functions
mapDetectedToOnlineType()
Map detected STT model type (fromdetectSttModel) to a streaming model type.
Example
getOnlineTypeOrNull()
Check if a detected model type supports streaming.null if streaming is not available.
Example
See Also
- createSTT() - For batch/offline transcription
- StreamingSttEngine Interface - Full interface documentation
- STT Types - Complete type definitions
- Audio Utilities - PCM audio capture and conversion