Trevixal API
    Preparing search index...

    Interface SpeechOptions

    interface SpeechOptions {
        lang?: string;
        onChange?: () => void;
        onError?: (message: string) => void;
    }
    Index
    lang?: string

    The language to hear and to speak, as a BCP 47 code; the page's by default.

    onChange?: () => void

    Told whenever dictation or reading starts or stops, to show it.

    onError?: (message: string) => void

    Told why dictation or reading stopped on its own: the microphone refused, no network for the browser's recognition service, no voice to read with. Without it a failure looked like a menu entry that did nothing.