AiSpeechButton

Speech Button

Speech-to-text button for dictating into the prompt.

Uses the browser Web Speech API (Chrome/Safari).

Usage

<AiPromptInput v-model="input">
  <template #actions>
    <AiSpeechButton @result="(t) => input += t" />
  </template>
</AiPromptInput>

Props

Prop Type Default Description
languagestring'en-US'
continuousbooleanfalse
interimResultsbooleantrue
disabledbooleanfalse

Events

Event Payload
@resulttranscript: string, isFinal: boolean
@start
@stop
@errorstring

Slots

  • default
  • icon