import { SpeechRecognition } from '@awesome-cordova-plugins/speech-recognition/ngx';
constructor(private speechRecognition: SpeechRecognition) { }
...
this.speechRecognition.isRecognitionAvailable()
  .then((available: boolean) => console.log(available))
this.speechRecognition.startListening(options)
  .subscribe(
    (matches: string[]) => console.log(matches),
    (onerror) => console.log('error:', onerror)
  )
this.speechRecognition.stopListening()
this.speechRecognition.getSupportedLanguages()
  .then(
    (languages: string[]) => console.log(languages),
    (error) => console.log(error)
  )
this.speechRecognition.hasPermission()
  .then((hasPermission: boolean) => console.log(hasPermission))
this.speechRecognition.requestPermission()
  .then(
    () => console.log('Granted'),
    () => console.log('Denied')
  )