Looking for a way to open the "VOICE INPUT" button from keyboard

963 views
Skip to first unread message

Nir S

unread,
Jul 24, 2013, 4:56:14 PM7/24/13
to tas...@googlegroups.com
Hello

I'm making a task to send SMS through voice command.
I'm useing "get voice" to get the heart command: "send sms (to)" 
Then i use "compose sms" to make a new sms, and in the "number" i put "%VOICE3" (after i split the voice variable) 

Now a new sms pop up on the screen just like i wanted,
Now i want to open the google voice input (the button of the microphone in the keyboard) to be able to write the contact of the SMS with voice recognition.

I don't find any way to open that voice input through tasker, it's very important to my to use that voice input because the SMS is written in different language than ENGLISH so i can you "get voice" and they use "type" because "type" can handle only English.

Please help ! 

Thank you 

Brandon Horwath

unread,
Jul 24, 2013, 5:37:46 PM7/24/13
to tas...@googlegroups.com
Secure setting plugin -> launch activity -> app. Google -> VoiceSearchActivity

Hope this helps!

Nir S

unread,
Jul 24, 2013, 8:00:09 PM7/24/13
to tas...@googlegroups.com
Thank you for trying to help me

I download {secure setting plugin) and choosed "launch activity" now when i'm in the app list i dont see any app called "google", there are many type of google apps there, which one should i choose?

Brandon Horwath

unread,
Jul 24, 2013, 8:04:39 PM7/24/13
to tas...@googlegroups.com
Mine just has app, Google that contains activity, VoiceSearchActivity.

You're looking for that activity to launch.

Maybe, your device doesn't have the same app, the same version, or that launch ability? :-(

Nir S

unread,
Jul 24, 2013, 8:19:21 PM7/24/13
to tas...@googlegroups.com
I have many apps but none of them is just "google"

I have nexus 4 with aokp rom (rooted)

Brandon Horwath

unread,
Jul 24, 2013, 9:02:10 PM7/24/13
to tas...@googlegroups.com
There's your problem (should be my signature).

I'd jump on the developer forums for your Rom and see if there is a compatible kernel or something suitable for your use.

Nir S

unread,
Jul 24, 2013, 9:31:08 PM7/24/13
to tas...@googlegroups.com
There is no other way?

This "voicesearchactivity" open the google search voice recognition or it open the voice input just like the microphone button inside the keyboard?

Rich D

unread,
Jul 24, 2013, 9:40:30 PM7/24/13
to tas...@googlegroups.com

> There is no other way?

I believe you can do it with a intent.  Try Googling it.. Although  they can be difficult to figure out sometimes.....

Rich D

unread,
Jul 24, 2013, 10:11:08 PM7/24/13
to tas...@googlegroups.com

I think this is what you are looking for. The shell script.....

input keyevent 111; input keyevent 111; input keyevent 111

Will invoke voice input, just put it in the action / script / run shell

It does require root..

Nir S

unread,
Jul 25, 2013, 12:20:51 AM7/25/13
to tas...@googlegroups.com
I opened a new task just to try what you said and nothing happend.
in the "command" inside "run shell" I need to write "input keyevent 111; input keyevent 111; input keyevent 111"

thats it?

I managed to find a solution but it have to be a better way
I open the keyboard with "dpad - press"
Then I open the "select input method" menu
Then with "dpad" i press 1 time down and press again, that choosing the voice input

The problem is that it's look very not professional and messy
The second problem is that i don't know how much times i need to press "down" in the "select input method" because it depend on what language is selected recently


Maybe i'm missing something ? all i want to do is to say "write massage" and then it will open the sms window and will ask me to say the context of the message, there is a lot of programs in the market that doing that
Why i cant find any info on google about how to do that? :\

Brandon Horwath

unread,
Jul 25, 2013, 1:31:59 AM7/25/13
to tas...@googlegroups.com
If all you're looking for is voice integration use AutoVoice.

But, yes. To answer your uestion the voicesearchactivity is exactly like long-pressing the keyboard, only it is for Google now, not keyboard input.

Pretty sure what you want to do what you're looking for is AutoVoice.

Rich D

unread,
Jul 25, 2013, 5:15:38 AM7/25/13
to tas...@googlegroups.com

> I opened a new task just to try what you said and nothing happend.
> in the "command" inside "run shell" I need to write "input keyevent 111; input keyevent 111; input keyevent 111"
>
> thats it?

You did not mention if you are rooted?
You need to tick the "use root" option in the shell command.

If you are testing this with the play button you need a small wait in the task then go to any text box and tap it.  The device needs to be in a open text box for this command to work as you want..

Rich D

unread,
Jul 25, 2013, 5:21:59 AM7/25/13
to tas...@googlegroups.com

> You did not mention if you are rooted?
> You need to tick the "use root" option in the shell command.
>
> If you are testing this with the play button you need a small wait in the task then go to any text box and tap it.  The device needs to be in a open text box for this command to work as you want..

Ahhh, I just tested again. For my device I need to be using the stock keyboard. It does not work with swift key for example..

I have a moto droid 4 running 2.3.6.   Rooted
Version 1.6u1m

Rich..

Nir S

unread,
Jul 25, 2013, 10:05:36 AM7/25/13
to tas...@googlegroups.com
I'm rooted and when i did what you said it just take me out of the massage..

Anyway after a lot of searching i find a solution
I use "input tap x y"
I found the "x/y" of this button by enabling "pointer location" in the "developer option"
So now the device is tap the microphone button ! 

I'm so happy right now ! :)
Thank you for you help
Reply all
Reply to author
Forward
0 new messages