Trigger voice search in Android Auto programmatically ? - Android Software Development

Does anyone know the intent that should be used to trigger voice search on a phone running the Android Auto app ?
I have tried calling android.intent.action.VOICE_ASSIST - which does bring up voice search, but it appears to be the full google assistant window, as it covers 2/3 of the screen, and sits on top of the screen if no command is heard.
I also tried android.intent.action.VOICE_COMMAND, this looks more like the voice search that is started from within Android Auto (only covers the top 1/4 of the screen, and disappears when finished listening) - but this doesn't appear to accept any voice input.. despite showing that it's listening.
Anyone have any ideas if there are other actions that can be called to kick off the voice search ? - I'm basically looking to replicate touching the mic button in the top right of Android Auto.
Thanks!

Did you ever find an answer to this?

Related

[Q] N4 has no Voice Dialing / Voice Assitant?

I just received my phone today.I know that there is "Voice Search" and "Google Now" built in, but I cannot seem to launch them from the lock screen using a headset.
I have also tested the headset (3 button), and it does work; I can play and stop music both locked and unlocked screen and Google Now activates when I hold middle button unlocked, but nothing happens when the phone is on lock screen.
As far as I am concerned, "Google Now" & "Voice Search" are useless unless I can activate them while they are in my pocket, for driving and walking. Furthermore, when I ask it to send a message to someone, it simply displays the message, not repeating it to me, or asking me if I would like to send. I see lots of reviews, claiming "Google Now" is far superior to S-voice and Siri (iPhone) but in my opinion, they should not be categorized together, "Google Now" simply does not do the things I need it to do. If at any point, I need to look at the screen, or press something on the screen, the whole purpose of Voice activation is rendered useless. I cannot be the only one out there with this problem. I am open to any suggestions to solve this issue, or else I must go back to iPhone for the sake of the voice dialing that is headset activated, as well as the ability to read out my messages and send them.
I have tried 3rd party apps like Headset Button, with no luck and it still does not allow Google Now to run in the background with screen off, and requires another third party app, Screen Off & Lock to do just turn off the screen with a different combination of presses on the headset. The lack of any sort of physical button on the N4 is also another problem.
I am open to any suggestions or comments if I am simply just missing something from the features. Please excuse me if I sound rude or a hater, all I am trying to do is find out the problem to my issue, and potentially inform others if they have the same needs as me.
Cheers. :good:
So because it doesn't do the things YOU need it to do, they shouldn't be categorized together?
If you want to access Now with your headset then turn off the screen lock function.
AFAIK, I don't think Google Now will do the things you want it to do out of the box. If you're willing to use third-party apps, though, I think you may be able to get the behavior you need by using Tasker (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm). A quick search also turned up this app (https://play.google.com/store/apps/details?id=com.sonalight&hl=en), which supposedly can read/send text messages by voice alone.
As far as physical buttons go, well .. that's something you're just going to have to get used to, sorry
tengen said:
AFAIK, I don't think Google Now will do the things you want it to do out of the box. If you're willing to use third-party apps, though, I think you may be able to get the behavior you need by using Tasker
Click to expand...
Click to collapse
How would Tasker accomplish this?
thanks for all the responses
is there itleast a way i can activate voice dialing from my headset button, i feel like that must be a feature for driving
i now have no lock screen, and when holding down the middle button of my headset, still get nothing
please help.
vicson88 said:
thanks for all the responses
is there itleast a way i can activate voice dialing from my headset button, i feel like that must be a feature for driving
i now have no lock screen, and when holding down the middle button of my headset, still get nothing
please help.
Click to expand...
Click to collapse
I have the same issue , headset button doesn't start voice while screen is off even if there is no screen lock ... Bit daft
Sent from my Nexus 4 using xda premium

App Thought - Voice to Touch overlay

Hey guys,
I just had an idea, it may already exist may not but if not I was wondering how plausible/difficult it would be.
The idea is an overlay in which it converts custom voice commands to touch inputs, so say you want to set the voice command "Left Top" to click a location you have determined in the top left hand side of the screen, basically the app would work by recording the voice command then pressing on the screen where you want it to register the touch input.
This may not be possible but I just thought it was an idea mainly for hands free systems, by default you can generally use voice commands to enter apps but not to access functions within them.
Thanks
DJ666
Sent from my GT-I9505 using Tapatalk 4 Beta

Easy mode hides mute and headset buttons

My father has this device and has vision limitations and I set the display to use the Easy Mode. He told me that when he is on a call the mute and headset buttons don't show up. He has difficulty reading the top bar even with the large font selected. I think what would work for him instead of enlarging text in the bar would be to have a lock screen that has large icons/widgets that would be a way to fix this? Also is there a way for him to open either Waze or Google Navigation from a contact and also if S Voice would do this.
Also I don't want to anything that could be an issue with AT&T and his warranty. I know this might be a lot do but any help is appreciated.
Thanks
cjunkie said:
My father has this device and has vision limitations and I set the display to use the Easy Mode. He told me that when he is on a call the mute and headset buttons don't show up. He has difficulty reading the top bar even with the large font selected. I think what would work for him instead of enlarging text in the bar would be to have a lock screen that has large icons/widgets that would be a way to fix this? Also is there a way for him to open either Waze or Google Navigation from a contact and also if S Voice would do this.
Also I don't want to anything that could be an issue with AT&T and his warranty. I know this might be a lot do but any help is appreciated.
Thanks
Click to expand...
Click to collapse
1.) Easy Mode does disable those functions when you're in a call. On a phone call, the only options displayed are "Mute", "Hide/Unhide Keypad" and "End Call".
2.) There isn't a way to "fix" the native lock screen with larger icons/widgets. The only enhancements you can make is the clock/date size from small, medium or large. If you do want customization for the lock screen, maybe search the Play Store for a lock screen launcher they may add the customization you want.
3.) If he is using a Galaxy S 4, Google Navigation is integrated into Google Maps now. Voice commands with S Voice will open native apps pre-installed on the phone such as this. That shouldn't be a problem. Waze, which is not native and is installed via the Play Store, probably will not open via S Voice. Again, there may be easier ways to do it. For example, I don't use S Voice on my GS4, I use Google Now.
http://www.androidcentral.com/how-get-google-now-samsung-galaxy-s4
Easier and integrates well with Android devices.
Hope this info helps!

No touch input after update to Lollipop

Need help as my phone became barely usable aftaer OTA update.
The top end of the screen (about 1 cm top to down) is not responding to touch. I cant tap any input in common use cases like using google search box widget, answering a call while in app using the new call feature, tap Send when composing an email and so on...
The only case this part of screen is active is when pulling down the notification bar, tapping objects like the clock (time display) Setting icon etc'. So I beleave this is not a hardware issue.
I did wipe the catch with no help and reset to factory setting with no help as well.
Did anyone experiance the same issue?
Any idea how can I overcome this except down grading back to 4.4.2?
Any easy trick for some one who is not a developer or deeply technical?
THANKS!

Google Assistant Issues

Hey guys just need a little help.
When I first got this phone I swear I remember using Google Assistant from the Home Screen, saying "Ok Google". "Navigate to the nearest Burger King". And it goes straight to Maps in Navigation.
Now it doesn't work. She just goes "Ok Burger King" then big full white screen remains. I've also tried using Assistant from Home saying "where is the nearest Gas Station" and she just says "found 14 in the nearest 5 km" while maintaining the same white screen that Assistant has.
I thought it was a problem with GMaps as some other commands like "send text", "open Chrome" or "watch YouTube S8 review" work, but some don't. For example, If I go "amazon spigen cases", assistant replies "these are the results, the top result is from amazon" . I think the Assistant is doing the work it's just the full screen white screen doesn't disappear therefore blocking the results.
The only thing I remember changing significantly on the phone is the immersive mode hack. I turned it off and it still wont work.
If the community has ideas it would be greatly appreciated.
Thank you

Categories

Resources