AutoVoice Headset Button doesn't trigger Tasker while device is locked

Discussion in 'AutoApps' started by schlimbo, Jun 20, 2016.

  1. schlimbo

    schlimbo New Member

    Joined:
    Jun 20, 2016
    Messages:
    4
    Likes Received:
    1
    Hello,
    I use a wired headset (Bose SoundSport) when i use the voice search button on the headset remote while the smartphone screen is unlocked, everything works great, but when screen is off, autovoice do not start recognition.
    First thing i found out was that i have the problem described in the FAQ:
    "When I long-press my Bluetooth Headset’s button while my device’s screen is off, the screen turns off, but the device is still locked. If I unlock it, a prompt that allows me to choose the app to use shows up, but disappears to quickly to select the app. What can I do?"
    David T's solution doesn't work for me and also zbombattack's solution description here:
    https://www.reddit.com/r/tasker/comments/3ihp95/using_autovoice_with_screen_off/
    didn't work, but i found another fix for this:
    I checked my logcat and find out the Intent, which is trigger the app chooser prompt.
    Then i create a Tasker task too send this Intent while screen was on, the prompt pop up and i was able too make my choice.

    Tasker - Send Intent
    Action: android.speech.action.VOICE_SEARCH_HANDS_FREE
    Target: Activity

    But Autovoice still don't start the recognition. Here is the Log from Autovoice:
    Recognizer - 2016-06-20 20:07:57.333 - Finishing because recognition didn't start
    Recognizer - 2016-06-20 20:07:57.306 - Action: android.speech.action.VOICE_SEARCH_HANDS_FREE


    when i use voice search button on the headset remote while the screen is on, my Tasks are working.
    Following is in the log when everything is okay:
    Recognition - 2016-06-20 20:47:12.574 - No command recognized
    Recognition - 2016-06-20 20:47:12.555 - Clearing last command id
    Trigger Words - 2016-06-20 20:47:12.519 - Current trigger words:
    Trigger Words - 2016-06-20 20:47:12.499 - Added trigger words:
    Recognition - 2016-06-20 20:47:07.224 - Getting Voice command...
    Recognizer - 2016-06-20 20:47:07.204 - Not using headset.
    Recognizer - 2016-06-20 20:47:07.183 - Action: com.twofortyfouram.locale.intent.action.FIRE_SETTING
    Recognizer - 2016-06-20 20:47:04.341 - Trigger Tasker Profile with Bluetooth Button 2
    Recognizer - 2016-06-20 20:47:04.290 - Finishing because recognition didn't start
    Recognizer - 2016-06-20 20:47:04.268 - Triggering Bluetooth Button 2
    Recognizer - 2016-06-20 20:47:04.229 - Getting default recognition settings
    Recognizer - 2016-06-20 20:47:04.191 - Action: android.speech.action.WEB_SEARCH


    And my Bluetooth Headsets, which also working correctly, make a third Action: "android.intent.action.VOICE_COMMAND" and this trigger Tasker event "Autovoice BT Pressed"

    Here I see that i have three different possibility actions:
    Wired Headset screen off: android.speech.action.VOICE_SEARCH_HANDS_FREE
    Wired Headset screen on: android.speech.action.WEB_SEARCH
    Bluetooth Headset screen on or off: android.intent.actionVOICE_COMMAND

    The Tasker event "Autovoice BT Pressed (2)" is trigger by "android.speech.action.WEB_SEARCH".
    The Tasker event "Autovoice BT Pressed" is trigger by "android.intent.actionVOICE_COMMAND"

    For "android.speech.action.VOICE_SEARCH_HANDS_FREE" i can't find a tasker Event.

    Can anybody help me on these?


    My device is a HTC one M8 with cyanogenmod 13 (Android 6.0.1)
     

Share This Page