AutoVoice Error When Executing Yes/No Profile

Discussion in 'AutoApps' started by chrimen, Oct 12, 2018.

  1. chrimen

    chrimen New Member

    Joined:
    Oct 12, 2018
    Messages:
    8
    Likes Received:
    0
    There is a profile I found that I'd like to use for reading and responding to SMS. The profile works fine when you say yes, but if you say no along any of the dialog options it creates an error. I've been looking for ways to fix it or even create my own, but I'm still understanding tasker and the autotools. All help appreciated.

    Below is the profile
    SMS Read & Respond (30)
    A1: Say [ Text:New text from %SMSRN, do you want to hear it Engine:Voice:com.google.android.tts:eng-usa Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
    A2: AutoNotification Actions [ Configuration:Intercept Action ID: %anbutton1action Timeout (Seconds):0 ]
    A3: AutoVoice Recognize [ Configuration:Hide Dialog: true

    Voice command without headset
    Command: "yes"
    Use Regex Replacements: true Timeout (Seconds):120 ]
    A4: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
    A5: Say [ Text:%SMSRB Engine:Voice:com.google.android.tts:eng-usa Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:On ]
    A6: Say [ Text:Do you want to reply Engine:Voice:com.google.android.tts:eng-usa Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
    A7: AutoVoice Recognize [ Configuration:Hide Dialog: true

    Voice command without headset
    Command: "yes"
    Error if Not Recognized: true
    Error if No Match: true
    Use Regex Replacements: true Timeout (Seconds):120 ]
    A8: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
    A9: Say [ Text:What is the message you want to reply with Engine:Voice:com.google.android.tts:eng-usa Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
    A10: AutoVoice Recognize [ Configuration:Hide Dialog: true

    Voice command without headset
    Command: "all"
    Error if Not Recognized: true Timeout (Seconds):120 ]
    A11: Variable Set [ Name:%message To:%avcomm Recurse Variables:Off Do Maths:Off Append:Off ]
    A12: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
    A13: Say [ Text:Send message containing %message, is this correct Engine:Voice:com.google.android.tts:eng-usa Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
    A14: AutoVoice Recognize [ Configuration:Hide Dialog: true

    Voice command without headset
    Report Partial Results: false
    Command: "all"
    Error if Not Recognized: true
    Error if No Match: false
    Don't Trigger Conditions: false
    Use Regex Replacements: true Timeout (Seconds):120 ]
    A15: Goto [ Type:Action Number Number:7 Label: ] If [ %avcomm ~R no ]
    A16: Send SMS [ Number:%SMSRF Message:%message Store In Messaging App:Off SIM Card: ]
    A17: Say [ Text:Message sent Engine:Voice:com.google.android.tts:eng-usa Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    That happens because you set the first AutoVoice Recognize to only accept "yes" commands. Anything other than that will expectedly generate an error.
     
: autovoice

Share This Page