AutoVoice Multi-word trigger not recognised

Discussion in 'AutoApps' started by DaveN, Aug 7, 2017.

  1. DaveN

    DaveN New Member

    Joined:
    Aug 6, 2017
    Messages:
    2
    Likes Received:
    0
    To get started I've a simple autovoice profile/task:
    • Profile: Speak Rec (3)
    • Event: AutoVoice Recognized [ Configuration:Easy Commands: speak ]
    • Enter: Node Red (4)
    • A1: Flash [ Text:%avcomms() Long:Off ]
    • A2: Beep [ Frequency:14003 Duration:400 Amplitude:50 Stream:3 ]
    Using the self test command with the single word 'speak' works.
    However if I add a second word (e.g. now) the profile is not recognised. The log output is:

    OS Build NRD90M.G920FXXU5EQFH
    OS Code 24
    Device SM-G920F
    Manufacturer samsung
    Product zerofltexx
    Trigger Words - 2017-08-07 09:18:32.925 - Removed trigger words:
    speak now
    Profile Matches - Hard - 2017-08-07 09:18:28.030 - "Anything" matches "speak now": false
    Profile Matches - Easy - 2017-08-07 09:18:28.029 - "speak" matches "speak now": false
    Trigger Words - 2017-08-07 09:18:27.921 - Added trigger words:
    speak now
    Trigger Words - 2017-08-07 09:18:27.921 - Current trigger words:
    speak now
    Recognition - 2017-08-07 09:18:27.897 - Got commands: Received possible commands:
    speak now
    The toast appears but the task is not triggered.
    I've tried all sorts of configurations and have now started again with cleared app data (tasker & autovoice). Google Now integration is enabled.
    It's probably obvious but I can't see it even after trying for 2 days! Any pointers would be appreciated
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    If you want to recognize both "speak" and "speak now" use the filter

    Code (Text):
    speak,speak now

    If you want to match speak followed by anything else use the filter

    Code (Text):
    speak $anything
    and you'll have a %anything variable with whatever comes after speak :)
     
    DaveN likes this.
  3. DaveN

    DaveN New Member

    Joined:
    Aug 6, 2017
    Messages:
    2
    Likes Received:
    0
    Thanks. I may well have misunderstood, especially reading the older documentation, but I missed the use of the $ variable in the command filter
     

Share This Page