# Develop a voice recognition App in Ionic 2

**URL:** <https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234>\
**Category:** ionic-v3\
**Created:** [December 5, 2016, 6:17am UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234 "2016-12-05T06:17:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![riteshbhat17](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@riteshbhat17](https://forum.ionicframework.com/u/riteshbhat17)\
**Post date:** [December 5, 2016, 6:17am UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/1 "2016-12-05T06:17:01Z")

</div>

I want to develop a software which can recognize the voice and convert it to text and initiate a website like google(passing the text as a parameter). And this text(which was converted from voice) should be searched in google(or anyother website of choice)

If you have any idea how to do it …please reply  
thanks

---

<div class="post-metadata">

**Author:** ![msegers](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/msegers/32/105205_2.png) [@msegers](https://forum.ionicframework.com/u/msegers)\
**Post date:** [December 5, 2016, 8:49am UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/2 "2016-12-05T08:49:22Z")

</div>

You’ll need an external service for this. Voice recognition in javascript only is not going to work. And to embed some algorithms to keep track of that inside the app itself is not going to work either.

I don’t know if there are API’s you can send snippets of sound files to, but my best bet is to google if services like this are offered by f/e google.

---

<div class="post-metadata">

**Author:** ![msegers](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/msegers/32/105205_2.png) [@msegers](https://forum.ionicframework.com/u/msegers)\
**Post date:** [December 5, 2016, 8:49am UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/3 "2016-12-05T08:49:46Z")

</div>

Then still I’m not sure if it would be able to recognize the user, maybe just translate to text.

---

<div class="post-metadata">

**Author:** ![riteshbhat17](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@riteshbhat17](https://forum.ionicframework.com/u/riteshbhat17)\
**Post date:** [December 5, 2016, 5:31pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/4 "2016-12-05T17:31:44Z")

</div>

I saw that thyere are some libraries for vioce recognition…so is there a way we can use that in our project?

---

<div class="post-metadata">

**Author:** ![SwenVogel](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@SwenVogel](https://forum.ionicframework.com/u/SwenVogel)\
**Post date:** [December 5, 2016, 6:01pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/5 "2016-12-05T18:01:28Z")

</div>

Maybe you can use [https://api.ai/](https://api.ai/), they offer also an cordova plugin.

---

<div class="post-metadata">

**Author:** ![rlouie](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rlouie/32/134973_2.png) [@rlouie](https://forum.ionicframework.com/u/rlouie)\
**Post date:** [December 8, 2016, 4:32pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/6 "2016-12-08T16:32:40Z")

</div>

I’d say start with using the browser’s built in speech recognition. I’m not sure if the native browser that ionic runs on supports this, but my guess would be that it does, at least in newer OS versions. I taught a workshop on this at a Code Day over the summer, so I actually have a really simple walkthrough available here: [http://www.roblouie.com/article/222/code-day-summer-2016-voice-driven-web-apps/](http://www.roblouie.com/article/222/code-day-summer-2016-voice-driven-web-apps/)

If using the native browser api doesn’t work out for you, this plugin looks to provide a nice wrapper to both the browser speech recognition and the phone’s speech recognition: [https://github.com/macdonst/SpeechRecognitionPlugin](https://github.com/macdonst/SpeechRecognitionPlugin)

Somewhere between those two things you should be good to go.

---

<div class="post-metadata">

**Author:** ![coze](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/coze/32/98286_2.png) [@coze](https://forum.ionicframework.com/u/coze)\
**Post date:** [December 9, 2016, 9:24pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/7 "2016-12-09T21:24:46Z")

</div>

Another thing you can do is keep an eye out for Lex. This is the technology Amazon uses on Echo.

> **[Amazon Lex – Build Conversation Bots](https://aws.amazon.com/lex/)**
>
> Amazon Lex is a service for building conversational interfaces into any application using voice and text. Powered by Alexa.

They’ll probably have some kind of javascript SDK.

---

<div class="post-metadata">

**Author:** ![Pizarro](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@Pizarro](https://forum.ionicframework.com/u/Pizarro)\
**Post date:** [December 10, 2016, 6:11pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/8 "2016-12-10T18:11:50Z")

</div>

other service its Google Speech . [https://cloud.google.com/speech/](https://cloud.google.com/speech/)

---

<div class="post-metadata">

**Author:** ![veljkoz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/veljkoz/32/105106_2.png) [@veljkoz](https://forum.ionicframework.com/u/veljkoz)\
**Post date:** [December 12, 2016, 3:39pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/9 "2016-12-12T15:39:09Z")

</div>

As already mentioned you should send your recordings to the online services. Which one depends on you - we’ve only looked at Google and Microsoft, and they’re both a payed service (there’s basically two options - translating word-for-word or entire sentences/recordings).

Google offers speach to text via their cloud services (i.e. you have to have an app id running in their cloud) and Microsoft’s version was simply buying a key to call the service. I’m not sure about the billing amount so you should check that with the provider.

As for the quality, surprisingly, none of them proved as good as their assistants do it (i.e. Google search is recognizing much better than through the offered API, and Microsoft Cortana is doing awesome job compared to theirs API which is right next to non-operational). I’m not sure why is this the case, but you should have this in mind before you go too far away in your project…

Also worth of mention is the free Chrome browser plugin which works awesome and can be used in web apps, but I’m not sure if there’s some plugin like it for cordova…

---

<div class="post-metadata">

**Author:** ![appstacksolutions](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@appstacksolutions](https://forum.ionicframework.com/u/appstacksolutions)\
**Post date:** [February 8, 2018, 5:58pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/10 "2018-02-08T17:58:04Z")

</div>

Have you tried integrating amazon lex in your ionic app ? I am using amazon mobile hub but wondering how can I integrate Lex with aws-amplify … any idea ?

---

<div class="post-metadata">

**Author:** ![praveeshree077](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@praveeshree077](https://forum.ionicframework.com/u/praveeshree077)\
**Post date:** [January 23, 2019, 5:28pm UTC](https://forum.ionicframework.com/t/develop-a-voice-recognition-app-in-ionic-2/72234/11 "2019-01-23T17:28:51Z")

</div>

Bro, I am in the same boat as you, struggling to get the amazon lex into ionic using amplify.  
Amplify documentation is really not helpful. Please help if you have got any solution for this.
