AutoVoice Synomyn in a command

Discussion in 'AutoApps' started by nachomagic, Apr 29, 2015.

  1. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Hi mates

    I've just discover this app and it's amazing, congratulations.

    I've created some tasker profiles, even using variables, this app really do it easily.

    At this moment I have a tasker profile with a command to lock the phone "Lock the phone" but sometimes I don't remember the exact word and I say "lock the mobile".

    At this moment I've created another profile for "lock the mobile" but I wonder if would be possible something like "lock the phone|mobile" in order to trigger using a unique voice command.

    In the same vein some times I say "lock phone" instead "lock THE phone" so I wonder I would be possible trigger when the recognized voice is quite similar but not exactly the command.

    Do not misunderstanding, I'm not complaining I'm asking because I'm really impressed and because of this I wonder how to do it in a different way than add more tasker profiles.

    Thanks in advance
     
  2. Thahim

    Thahim Member

    Joined:
    Mar 1, 2015
    Messages:
    181
    Likes Received:
    5
    You can check regex match option in autovoice recognized.
     
    nachomagic likes this.
  3. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Thanks

    I've solve the synonym with this command "lock the (phone|mobile) :)

    Now, I'm trying to figure using regex how to specify that "the" is optional.

    According with https://www.debuggex.com/ (the|) should work but don't work on autovoice

    I've also tried with (the|.) and (the)? but also don't work
     
    Last edited: Apr 29, 2015
    Thahim likes this.
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    This should work

    "lock (the )?(phone|mobile)"

    No quotes :)
     
  5. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Thanks for the reply

    I've tried and don't work.

    Lock the phone and lock the mobile works but lock phone or lock mobile don't work.

    By the way, I'm Spanish so I use Spanish language.

    Thanks in advance
     
  6. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Hi again @joaomgcd
    There was a misunderstanding, it don't work so the threat is not solved.

    Lock the phone works
    lock the mobile works
    lock mobile DON'T work
    lock phone DON'T work

    Edit: I've just update the app and now works, thanks mate :)
     
    Last edited: Apr 30, 2015
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Great. So everything's ok now? :)
     
    nachomagic likes this.
  8. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Yes, thank you :)
     

Share This Page