Skip to main content
Create a streaming STT engine instance for real-time recognition with partial results and endpoint detection. This is ideal for live microphone input and conversational interfaces. For batch transcription of complete audio files, use createSTT() instead.

Parameters

options
StreamingSttInitOptions
required
Streaming STT initialization options.

Returns

Promise<StreamingSttEngine>
StreamingSttEngine
A streaming STT engine instance.

SttStream Interface

The stream object returned by engine.createStream() provides methods for feeding audio and getting recognition results.
SttStream
object

Examples

Basic Real-Time Recognition

Simplified with processAudioChunk()

The processAudioChunk() 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 (from detectSttModel) to a streaming model type.
Throws if the detected type doesn’t support streaming.

Example

getOnlineTypeOrNull()

Check if a detected model type supports streaming.
Returns the online model type if supported, or null if streaming is not available.

Example

See Also