AutoVoice Can't get English Natural Language Task working from Google Assistant

Discussion in 'AutoApps' started by qpkorr, May 14, 2020.

  1. qpkorr

    qpkorr New Member

    Joined:
    Jan 3, 2019
    Messages:
    7
    Likes Received:
    0
    Hi,

    First - thank you SO much for all your awesome products. Android wouldn't be half what it is without you.

    Alas, I've been struggling for a couple of days to get a Natural Language Command working from Google Assistant - I'm guessing I'm probably missing something simple, but I can't seem to find what. If this is related to the sticky on this forum (from 2019-10-26) - my apologies - my impression from the reddit post (2019-10-31) was that this problem was fixed, for English at least - though why wasn't this sticky updated... I'm confused. If the IFTTT solution was required, would the sticky here say that? Anyway - I've tried to understand, and *think* it should be working now, hence my question.

    I've got a Profile with a basic task thus:

    Profile: Find Songs By Artist (72)
    Restore: no
    Event: AutoVoice Natural Language [ Configuration:Commands: find songs by artist ]
    Enter: Find Songs By Artist (73)
    A1: Flash [ Text:Searching for songs by %artist Long:Off ]

    and a natural language intent thus:

    {
    "auto": true,
    "contexts": [],
    "events": [],
    "fallbackIntent": false,
    "id": "5f792fae-d0d4-4b2a-a76e-722898fd83ca",
    "name": "find songs by artist",
    "priority": 500000,
    "responses": [
    {
    "action": "findsongsbyartist",
    "affectedContexts": [],
    "messages": [
    {
    "displayText": "searching for music by $artist",
    "platform": "google",
    "speech": [
    "searching for music by $artist"
    ],
    "ssml": "searching for music by $artist",
    "textToSpeech": "searching for music by $artist",
    "type": "0",
    "useStringArrayAsSpeech": false
    }
    ],
    "parameters": [
    {
    "dataType": "@sys.music-artist",
    "isList": false,
    "name": "artist",
    "prompts": [
    "What artist?"
    ],
    "required": true,
    "value": "$artist"
    }
    ],
    "resetContexts": false
    }
    ],
    "userSays": [
    {
    "count": 2,
    "data": [
    {
    "alias": "",
    "meta": "",
    "text": "find songs by ",
    "userDefined": false
    },
    {
    "alias": "artist",
    "meta": "@sys.music-artist",
    "text": "cake",
    "userDefined": false
    }
    ],
    "id": "46a3e854-3890-4bb1-908f-93c2a7a7ed41",
    "isTemplate": false
    },
    {
    "count": 2,
    "data": [
    {
    "alias": "",
    "meta": "",
    "text": "find music by ",
    "userDefined": false
    },
    {
    "alias": "artist",
    "meta": "@sys.music-artist",
    "text": "cake",
    "userDefined": false
    }
    ],
    "id": "f1769cf2-0fd4-41ac-9ceb-af115a645bce",
    "isTemplate": false
    },
    {
    "count": 2,
    "data": [
    {
    "alias": "",
    "meta": "",
    "text": "search for music by ",
    "userDefined": false
    },
    {
    "alias": "artist",
    "meta": "@sys.music-artist",
    "text": "cake",
    "userDefined": false
    }
    ],
    "id": "2436d7ac-7d88-4486-89a1-3311845a04d5",
    "isTemplate": false
    },
    {
    "count": 2,
    "data": [
    {
    "alias": "",
    "meta": "",
    "text": "search for songs by ",
    "userDefined": false
    },
    {
    "alias": "artist",
    "meta": "@sys.music-artist",
    "text": "cake",
    "userDefined": false
    }
    ],
    "id": "508c210c-13f7-4d97-a83b-e53999283dc1",
    "isTemplate": false
    }
    ],
    "webhookForSlotFilling": false,
    "webhookUsed": false
    }

    I set up a dialogflow account and got the v1 and v2 methods working I believe - it says "Access tokens verified!" when I click accept in setup.

    When I run a Test Command, of "find songs by Cake" it works, and I hear the response.

    But when I say "Ok Google, ask AutoVoice to find songs by cake", AutoVoice appears to be called, saying
    "Command sent: find songs by cake", then it writes
    "AutoVoice has left the conversation", without triggering anything. I don't hear the response from Autovoice, and the Flash in my tasker profile doesn't show up.

    Here's logs from AutoVoice:

    version 3.6.2

    Source com.android.vending
    OS Build QP1A.190711.020.G985FXXU1ATD3
    OS Code 29
    Device SM-G985F
    Manufacturer samsung
    Product y2sxx

    Trigger Words - 2020-05-14 23:53:26.011 - Current trigger words:
    find songs by Cake
    Recognition - 2020-05-14 23:53:26.006 - Got commands: Received possible commands:
    find songs by cake

    Remote - 2020-05-14 23:53:25.997 - Received remote command: find songs by Cake;source: googleassistant

    I'd be tremendously grateful if you could tell me what I'm missing here! Ah... one thought - I'm set up for English (Australian) - but I just tried switching to English (United States) but the result was the same.

    Thank you,
    John
     
    Last edited: May 15, 2020
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hi there :) Thanks for the post.

    Did you enable Natural Language for Google Assistant in the AutoVoice > Natural Language > Commands screen at the bottom?
     
  3. qpkorr

    qpkorr New Member

    Joined:
    Jan 3, 2019
    Messages:
    7
    Likes Received:
    0
    Ah :) Thanks, that might well be the issue.

    I was a bit confused by that one actually - I tried selecting it, but it said "This will enable you to use all your natural language commands on the Amazon Echo and Google Home." But I don't have either of those devices, so I wasn't sure that I still needed to do this.

    Also, it talked about deleting my "normal" commands from under AutoVoice -> Personal Assistant - but when I went in there, it flashed up a screen "Assistant on Phone" which appeared to be about making AutoVoice replace Google Assistant, which I didn't want to do.

    Combining the confusion from the above, with the need for a subscription, was enough to make me back out again. (Oh - and I purchased AutoShare last week, primarily to support you, since whilst it looked like it might be useful, thus far I've simply sent intents from Tasker - so this was another nudge not to subscribe right now.)

    As you can see from my code above, it's a rather simple query, which I later got working via an AutoVoice Recognized command.

    Anyway - thank you. I get a bit confused by Google Assistant vs Google Now vs Google Home vs AutoVoice Recognized, nor am I particularly clear on just how clever Natural Language is and how much I need it over a standard Recognized command.

    But hopefully soon I can sit down with your 7 day trial subscription and test things out more.

    Thanks very much for the clarification!
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry about that. :) It's just that initially Google only made it work on Google Home and not on the phone's assistant and I never got around to changing that text :p

    Just to clarify though, you can use the natural language features locally (without Google Assistant) all you want :) So you can test it out thoroughly that way.
     

Share This Page