Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate Google Voice Recognition in Android app

I want to introduce a new feature into my app: permanent voice recognition.

First of all I followed these posts:

Voice recognition

Speech recognition in Android

Offline Speech Recognition In Android (JellyBean)

and more others, plus other posts from different websites.

Problem: What actually I'm trying to do is to have a permanent voice recognition without displaying google's voice activity. For example: When I start the application the voice recognition should start and listen. When the recognizer matches some words then my app will do different actions accordingly. I do not like to press a button every time I want to do voice recognition, and also I do not like to appear anything on the screen to talk to. Can I do that?

Any suggestions are welcome. Thank you! :)

like image 345
Ispas Claudiu Avatar asked Jul 23 '14 11:07

Ispas Claudiu


People also ask

How do I integrate Google Assistant to Android app?

Open a google actions console in your browser and sign-in with your google account. Once you are signed in, you will be able to see the following screen in your browser. Click on Add/Import project and agree to the terms and condition of Action on Google.


1 Answers

Android can use voice recognition without any GUI. You can use SpeechRecognizer class to do this. But google doesn't allow you to use theirs voice tools for long time recognition. After 5-7 seconds of silence it will be stopped.

If you want to use limited comands vocabulary, you can use offline continious recognition like PocketSphinx.

like image 103
Rai220 Avatar answered Oct 27 '22 01:10

Rai220