View as Markdown

API reference: @salmonui/inputs/speech-to-text

SpeechToTextLocaleTextinterface

import type { SpeechToTextLocaleText } from '@salmonui/inputs/speech-to-text';
interface SpeechToTextLocaleText {
    readonly label?: string;
    readonly start?: string;
    readonly stop?: string;
    readonly unsupported?: string;
}

User-visible strings of SpeechToTextButton.

SpeechToTextLocaleText members (4)
NameSignatureDescription
labeloptionalreadonly label?: string;

Accessible name of an icon-only button. Default "Speech to text".

startoptionalreadonly start?: string;

Hint while idle or stopped. Default "Start listening".

stopoptionalreadonly stop?: string;

Hint while listening. Default "Stop listening".

unsupportedoptionalreadonly unsupported?: string;

Hint when the browser has no speech recognition.