AutoVoice Best Practices with Ok Google and Lollipop 5.0.1

Discussion in 'AutoApps' started by RichardU, Apr 10, 2015.

  1. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    I'm running the latest Tasker, Autovoice and Lollipop 5.0.1
    I currently have Android 5.0.1 Settings / My Device / Language and Input / set to "Enhanced Google services", and I have turned on "Ok Google" detection to "From any screen"
    This works pretty well (other than needing to say "Ok google" which seems like a brainwashing exercise).
    However, when I say, "Open Shades", AutoVoice executes the command properly, but then google also opens a browser window to a page about window shades.
    I'm sure there is a solution. In fact, there are probably dozens of solutions. So what is the best practice for using Autovoice with Lollipop 5.0.1 and Ok Google?

    BTW, thanks for setting up this forum, although a link to it from the old forum is broken.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    I just tried the link in the old forum and it worked for me. :)

    About your issue, can you try with this version? It should back out of the search results automatically. Thanks!
     
  3. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    If I go to: https://groups.google.com/forum/#!forum/joaomgcd and click on "Please use this forum from now on." It just reopens the same page. Might be I have a popup blocker going (Chrome).

    I uploaded the new version. It does not back out the search results. But perhaps my settings are wrong. Should Voice Input be set to Autovoice Hotword Detection, or to Enhanced Google Services?
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    yeah, must be. It opens fine for me :)

    That setting is actually irrelevant in regards to backing out of Google Search results.
    Can you please try this:
    - clear logs in AutoVoice
    - enable system logs and Google now logs in AutoVoice
    -do command
    -export logs and paste them here

    Thanks!
     
  5. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    Logs are below. I think these were also emailed to you. If this is not what you want, please provide more explicit instructions on how to access logs.

    I understand Voice Input doesn't matter with regard to backing out of Google Search results, but I'd still like to know what are best practices for this app. Should I use Google Now to monitor for the Ok Google command, or should I turn on Control Continuous in autovoice or some other scheme? There have been a lot of changes over time so it's hard to sort out what is currently recommended or what the trade-offs are.

    Thanks, Richard



    Trigger Words - 2015-04-13 11:24:22.766 - Removed trigger words:
    office
    Google Now - 2015-04-13 11:24:21.901 - Type: 2048;ClassName: android.support.v4.widget.DrawerLayout;Id: com.google.android.googlequicksearchbox:id/velvet_toplevel;Text: null
    Google Now - 2015-04-13 11:24:21.871 - Type: 2048;ClassName: android.webkit.WebView;Id: null;Text: null
    Google Now - 2015-04-13 11:24:21.855 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:21.845 - Type: 2048;ClassName: android.widget.LinearLayout;Id: null;Text: null
    Google Now - 2015-04-13 11:24:21.839 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/corpus_name;Text: Web
    Google Now - 2015-04-13 11:24:21.823 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:21.808 - Type: 2048;ClassName: android.webkit.WebView;Id: null;Text: null
    Google Now - 2015-04-13 11:24:21.795 - Results checker: Pressing back
    Google Now - 2015-04-13 11:24:21.789 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:21.761 - Type: 2048;ClassName: com.google.android.search.searchplate.SimpleSearchText;Id: com.google.android.googlequicksearchbox:id/search_box;Text:
    Google Now - 2015-04-13 11:24:21.619 - Type: 8192;ClassName: com.google.android.search.searchplate.SimpleSearchText;Id: com.google.android.googlequicksearchbox:id/search_box;Text:
    Profile Matches - 2015-04-13 11:24:19.946 - "music outside" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.882 - "voice" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.847 - "music crystal" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.835 - "driveway" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.821 - "music lincoln" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.807 - "music media" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.757 - "music living" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.700 - "music rock" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.659 - "music main" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.633 - "music all" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.511 - "music terrace" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.499 - "music dance" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.475 - "music keeping" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.443 - "messages|message|text" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.417 - "music motown" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.337 - "music master" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.306 - "music play room" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.266 - "music outside" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.203 - "voice" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.148 - "music crystal" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.131 - "driveway" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.115 - "music lincoln" matches "office": false
    Profile Matches - 2015-04-13 11:24:19.095 - "music media" matches "office": false
    Google Now - 2015-04-13 11:24:19.034 - Results checker: Command matched
    Google Now - 2015-04-13 11:24:19.025 - Should do google search: false
    Google Now - 2015-04-13 11:24:19.019 - It's a new voice command
    Recognition - 2015-04-13 11:24:19.006 - Clearing last command id
    Profile Matches - 2015-04-13 11:24:18.964 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-04-13 11:24:18.961 - "office" matches "office": true
    Profile Matches - 2015-04-13 11:24:18.950 - "play eat" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.751 - "music living" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.717 - "who is the (?<adj>(happiest|smartest|prettiest|funniest|cutest|sweetest|best|greatest|most beautiful))" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.688 - "show commands" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.665 - "patio light" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.640 - "play kitchen" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.620 - "music rock" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.596 - "front" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.581 - "entertain" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.559 - "music main" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.545 - "arm stay" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.520 - "music all" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.507 - "master shades down" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.495 - "keep light" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.478 - "master light" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.466 - "play demo" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.446 - "garage hall light" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.424 - "exit" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.405 - "night" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.391 - "pool light" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.380 - "music terrace" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.351 - "music dance" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.334 - "music keeping" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.318 - "media shades down" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.303 - "messages|message|text" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.290 - "master shades up" matches "office": false
    Profile Matches - 2015-04-13 11:24:18.268 - "music motown" matches "office": false
    Google Now - 2015-04-13 11:24:18.257 - Type: 2048;ClassName: android.webkit.WebView;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.250 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:18.243 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.218 - Type: 2048;ClassName: android.webkit.WebView;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.213 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:18.205 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.194 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.182 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.170 - Type: 2048;ClassName: android.webkit.WebView;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.165 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:18.158 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.151 - Type: 2048;ClassName: android.webkit.WebView;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.146 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:18.139 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Profile Matches - 2015-04-13 11:24:18.123 - "play tv" matches "office": false
    Google Now - 2015-04-13 11:24:18.110 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/corpus_name;Text: Phone
    Google Now - 2015-04-13 11:24:18.103 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:18.096 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/corpus_name;Text: Books
    Google Now - 2015-04-13 11:24:18.091 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:18.083 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/corpus_name;Text: Apps
    Google Now - 2015-04-13 11:24:18.077 - Results checker: Results appeared
    Google Now - 2015-04-13 11:24:18.070 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.057 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.046 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.035 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.024 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.014 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:18.001 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:17.989 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:17.977 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:17.964 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
    Google Now - 2015-04-13 11:24:17.954 - Type: 2048;ClassName: android.view.View;Id: null;Text: null
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    So, in that instance you said "office" and then the search results for "office" still remained on the screen?

    In my opinion, if you can use "Ok Google" then that is the best way to start voice recognition, but it really depends on what you want to do.
    You may want to use continuous in other situations as well if you don't want to have to say "Ok Google" but be aware that it uses more battery to do that.

    Hope this helps
     
  7. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    Correct. I said "office" and it replies "here are the listings for office" and shows what I think is a Now Card. Interestingly, if I go to my home screen, then long-press my home button to see open "windows" and select the Now Card that says, "office" Autovoice will (sometimes) re-execute the "office" command and immediately close the Now Card.
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    Do you think you could maybe make a screen capture video of that? Going by the logs it should be backing out correctly, so it's hard for me to understand what exactly the problem is. Sorry for the hassle.
     
  9. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    Here it is: https://www.dropbox.com/s/qwm984nipybn2ow/Autovoice.mp4?dl=0
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    But on that example the results go away right? Or was that you manually?
     
  11. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    I think when you see the phone interface at the end it is the video resetting. Regardless, the results do not go away in real life.
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    Do you own AutoInput? Just so we can try something...
     
  13. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    I don't own AutoInput. What would we do with it?
     
  14. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    Let's assume I get AutoInput. Now what?
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    Just wanted to try if you add a back action in your AutoVoice task, if it would back out of Google Now. can you try that please? In your task that reacts to "office", add a "AutoInput Global Action" at the end and use the back action. thanks again
     
  16. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    To be sure I didn't have any issues, I did a factory reset on this phone, reloaded all my software, and then added your back action as described. It made no difference. When I say "office" Google Now immediately responds with "Here are the listings for office." and then my task is executed through Tasker. If I repeat the command while still looking at the Now Card, it executes the command much more quickly and does not repeat "here are the listings for office."
     
  17. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    hmmm. does it also do that on any other command? For example, if you do a command like "this is a test command" and trigger a corresponding AutoVoice profile with that in Tasker, does it also stay on the google search results for that? Sorry for all the trouble.
     
  18. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    Yes. I have a bunch of commands that all pull up the Google Now card as well as executing in Tasker. After playing with this a lot, I have found that some of the Google Now cards are now backing out. It almost seems like a timing issue i.e. if the command executes fast enough, Autovoice will back out of the Google Now card, but if the command takes too long, it won't back out.
     
  19. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    Yeah, I found it hard to figure out exactly when the best time to press back is... Still trying to make it work better. Sorry for the trouble!
     
  20. RichardU

    RichardU Member

    Joined:
    Apr 10, 2015
    Messages:
    37
    Likes Received:
    1
    Don't know if you've pushed an update, or if reloading my phone has made a difference, but today one of my commands properly "backed out" for the first time.
     

Share This Page