@ngx-lcp/speech-recognition
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@ngx-lcp/speech-recognition

Simple service to listen to the person using the microphone.

Build Status

Security Notice

This lib is still in development.

Install

npm i @ngx-lcp/speech-recognition

Usage

import { NgxSpeechRecognitionService, SpeechRecognitionResponse, SpeechRecognitionError } from '@ngx-lcp/ngx-speech-recognition';

...
constructor(private speechRecognitionService: NgxSpeechRecognitionService) {}

start(): void {
  this.speechRecognitionService.start(
    (speechRecognition: SpeechRecognitionResponse) => {
      console.log(speechRecognition);
    },
    (error: SpeechRecognitionError) => {
      console.error(error);
    }
  );
}

stop(): void {
  this.speechRecognitionService.stop();
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @ngx-lcp/speech-recognition

Weekly Downloads

1

Version

0.2.0

License

none

Unpacked Size

46.2 kB

Total Files

21

Last publish

Collaborators

  • lcpereira