1.0.1 • Published 4 years ago
ngx-speech-to-text v1.0.1
NgxSpeechToText - How to use
constructor(
private speechRecognitionService: SpeechRecognitionService
) { }
ngOnInit() {
this.speechRecognitionService.init();
this.speechRecognitionService.responseText$.subscribe(res => {
// DO something
}
this.speechRecognitionService.start();
...
...
}
ngOnDestroy() {
this.speechRecognitionService._destroy();
}
1.0.1
4 years ago