We can extract text data from a speech by using speech recognition methods. There are many ways to carry out speech recognition in Angular, however, I’d like to focus on a simple method for this.

Here we use “Web Speech API” to recognize speech. Unfortunately, this API is only supported for a few browsers so I will list the supported browsers below:

  • Google chrome
  • Chrome for Android
  • Samsung Internet
  • QQ Browser
  • Baidu Browser

You can test this app in a browser from this list.

Okay, let’s begin. First of all, we have to create a new Angular project by using the below command in the terminal. I assume that you have installed Angular-CLI, but if you haven’t then the below command won’t work.

ng g new voice-recognition
cd ./voice-recognition

#speech-recognition #angular #web-speech-api #api #voice-recognition

Creating a Speech Recognition App in Angular
1.90 GEEK