-3

I have an application that contains voice commands. I would like to access these voice commands without pressing any button, only with a voice command .As in Chrome ("Ok google").

In Google developers in the section "adding voice capabilities", to "declare app-providedvoice actions "explains how to define a label to start the app but does not work me.

The app is for a mobile

Thank You

Donis
  • 76
  • 1
  • 7
  • 1
    You need a service for that. Btw, what's the question? – Mike Clark Feb 20 '15 at 12:15
  • how should we help you without any code example??? – nano_nano Feb 20 '15 at 12:17
  • web-developers for android: https://developer.android.com/training/wearables/apps/voice.html says if my manifest file put this: Intent-filter> Activity> Application> I can start the StartRunActivity activity by saying "MyRunningApp" but this does not happen – Donis Feb 23 '15 at 15:47
  • actually it works but you have to say "OK Google, START my running app". With OK Google you trigger Google, with START you trigger the regular start of apps procedure and myRunningApp is the intent. It worked for me but it takes some some until it works. I don't know yet why. – Simon Dec 31 '16 at 11:46

1 Answers1

0

You can use the api of google

http://developer.android.com/reference/android/speech/package-summary.html

http://www.androidhive.info/2014/07/android-speech-to-text-tutorial/

and you can convert the text returned into commands

Hope that will help you