You're reading the Rask v1.0.0 guides.View source
All guides

ISpeechRecognition

Dictation — turn spoken audio into text.

  • Wraps: SpeechRecognition API (webkitSpeechRecognition)
  • MDN: SpeechRecognition
  • Home: Rask.Core.Browser (all hosts)
  • Shape: subscription (pushes each result to a callback)
  • Availability: Web/Server ✅ (Chromium-only) · PWA/WASM ✅ (Chromium-only)

The counterpart to ISpeechSynthesis. Call StartAsync(onResult, options) from a user gesture — it prompts for microphone access and returns an IAsyncDisposable; dispose it to stop listening and release the microphone. Each RecognitionResult carries the Transcript, whether it IsFinal, and a Confidence. SpeechRecognitionOptions sets the Lang (BCP-47), Continuous listening (restarts after each utterance until disposed), and InterimResults (emit live hypotheses as well as final transcripts). Browser support is Chromium-family; gate on IsSupportedAsync. Needs microphone permission.

See also