claudius-chat-widget
    Preparing search index...

    Interface VoiceOptions

    Voice features. Pass to ChatWidget via the voice prop (or true for the defaults). Both halves rely on the browser's Web Speech API and render nothing where it is missing.

    interface VoiceOptions {
        autoSubmit?: boolean;
        input?: boolean;
        lang?: string;
        mode?: VoiceInputMode;
        output?: boolean;
    }
    Index

    Properties

    autoSubmit?: boolean

    Send the dictated message as soon as recognition ends.

    false

    input?: boolean

    Show the mic button for dictating messages.

    true

    lang?: string

    BCP-47 language tag for recognition and playback (e.g. "en-GB"). Defaults to a tag derived from the widget locale.

    How the mic button records.

    "toggle"

    output?: boolean

    Show the read-aloud control on completed assistant messages.

    true