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();
}