Class: TimingStream

TimingStream

new TimingStream(optsopt)

Slows results down to no faster than real time.

Useful when running recognizeFile because the text can otherwise appear before the words are spoken

Parameters:
Name Type Attributes Description
opts Object <optional>
Properties
Name Type Attributes Default Description
emitAt * <optional>
TimingStream.END

set to TimingStream.START for a more subtitles-like output where results are returned as soon as the utterance begins

delay Number <optional>
0

Additional delay (in seconds) to apply before emitting words, useful for precise syncing to audio tracks. May be negative

Source: