0.1.3 • Published 4 years ago

@developertown/use-speech-recognition v0.1.3

Weekly downloads
10
License
MIT
Repository
-
Last release
4 years ago

use-speech-recognition

A react hook to easily use the WebSpeech Recognition API

Usage

// options
const defaultOptions = {
  autoStart: false,
  continuous: false,
  interimResults: true,
  onResult: (e: Event) => {},
  onDisconnect: (e: Event) => {},
  onStart: (e: Event) => {},
};

const {
  transcript,
  interimTranscript,
  finalTranscript,
  status,
  listening,
  resetTranscript,
  startListening,
  stopListening,
} = useSpeechRecognition(options);
0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago