Page 1 of 1

Voice commands

Posted: 21 Jul 2016 06:09
by Ankit Bindal
Hi,

1.
How does voice command trigger works?
Tried to read its description, but didn't understand....
I want to perform some action when i speak some code word in my Bluetooth headset?
Am i using correct trigger?
And does it need some special settings in phone??

2.
Does Media button event trigger works with Bluetooth headset ?

Re: Voice commands

Posted: 21 Jul 2016 18:43
by Martin
Hi,

1. The system can request to process a voice command by sending an intent with action android.intent.action.VOICE_COMMAND. Some bluetooth headsets have a button to request a voice command. In this case, Automagic would be shown as an app to process this request. The trigger would be executed when Automagic is selected.

2. Not sure, probably depends on Android version and headset in use. Just try if it works on your device. You can also use action Reregister Media Button Receiver in case another app handles the buttons.

Regards,
Martin