Interface SpeechSessionEventMap

interface SpeechSessionEventMap {
    state_changed: ((event) => void);
    vad_result: ((result) => void);
    speech_started: ((event) => void);
    speech_ended: ((event) => void);
    significant_pause: ((pauseDurationMs) => void);
    utterance_captured: ((event) => void);
    transcript_final: ((event) => void);
    wake_word_detected: ((event) => void);
    synthesis_started: ((event) => void);
    synthesis_completed: ((event) => void);
    error: ((event) => void);
}

Properties

state_changed: ((event) => void)

Type declaration

vad_result: ((result) => void)

Type declaration

speech_started: ((event) => void)

Type declaration

speech_ended: ((event) => void)

Type declaration

significant_pause: ((pauseDurationMs) => void)

Type declaration

    • (pauseDurationMs): void
    • Parameters

      • pauseDurationMs: number

      Returns void

utterance_captured: ((event) => void)

Type declaration

transcript_final: ((event) => void)

Type declaration

wake_word_detected: ((event) => void)

Type declaration

synthesis_started: ((event) => void)

Type declaration

synthesis_completed: ((event) => void)

Type declaration

error: ((event) => void)

Type declaration