AutoVoice Spanish Regex problem and Tasker

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

  1. nachomagic

    nachomagic New Member

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

    I son't know why but regex works great for English command but not for Spanish.

    Autovoice toast recognize well the command but not tasker profile is applied. It happens 90% with Spanish commands, if I to the same in English it works flawlessly.

    it happens even with the written commands and I've also tried with the alternative method option checked.

    does it has any sense?

    Thanks in advance
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Nope, that doesn't make much sense :) Regexes aren't language specific

    Can you give me an example of one that doesn't work?
    Thanks
     
  3. Lukkasss

    Lukkasss New Member

    Joined:
    May 1, 2015
    Messages:
    6
    Likes Received:
    0
    I don't know which command the OP is using, but I can confirm it, since I'm getting a similar issue... The AutoVoice get the command but it don't trigger the profile on Task...

    The command is: "essa é a (?<pessoa>[^\s]+)"

    When I say: "essa é a rafaela diga oi pra ela"

    the AutoVoice get the command, but it didn't do the Task...

    The task that I've created is: Say "Olá %pessoa, tudo bem com você?"

    I've a Sony Z2 NO ROOT

    Can you please, check that or advise me what to do?

    Thanks in advance.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    @Lukkasss
    Can you please try this:
    - clear logs in AutoVoice
    - enable system logs
    -do voice command
    -export logs and paste them here

    Thanks!
     
    Lukkasss likes this.
  5. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Hi joaomgcd and lukkasss sorry for the delay but I have two baby s.

    First of all I'm just started with regex so it could be my fault, if so sorry.

    My command «Volumen (al )? (?<PORCENTAJEVOL>.+)( por ciento)?»
    I've also tried with « Volumen (al )? (?<PORCENTAJEVOL>.+)(.+)?»

    What I say « volumen al 50 por ciento» but I'm trying that also work «volumen 50 por ciento» or even «volumen 50»

    The tasks is when you say the command %MVOL change according to (%porcentajevol*15)/100

    I'm on the mobile app and I don't see how attach the logs. I'm out of house till Monday, I'll do it ASAP

    Thanks mates

    Edit:

    This command works great
    «Volumen al (?<PORCENTAJEVOL>.+) por ciento» when I say « volumen al 50 por ciento»
     
    Last edited: May 1, 2015
  6. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    I can paste them

    I've said 4 sentences

    Volumen al 50 por ciento

    Volumen al 50

    Volumen 50

    Volumen 50 por ciento

    Trigger Words - 2015-05-01 17:26:56.146 - Removed trigger words:
    volumen al 50 por ciento
    Profile Matches - 2015-05-01 17:26:51.493 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:51.462 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:51.415 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:51.347 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:51.293 - "power metal" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:51.245 - "selfie" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:51.203 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:51.166 - "subir el volumen (?<subirvol>.+)" matches "volumen al 50 por ciento": false
    Trigger Words - 2015-05-01 17:26:51.134 - Current trigger words:
    volumen al 50 por ciento
    Trigger Words - 2015-05-01 17:26:51.123 - Added trigger words:
    volumen al 50 por ciento
    Recognition - 2015-05-01 17:26:51.063 - Got commands: Received possible commands:
    volumen al 50 por ciento

    Trigger Words - 2015-05-01 17:26:41.705 - Removed trigger words:
    volumen al 50
    Profile Matches - 2015-05-01 17:26:37.012 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 50": false
    Profile Matches - 2015-05-01 17:26:36.976 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 50": false
    Profile Matches - 2015-05-01 17:26:36.938 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 50": false
    Profile Matches - 2015-05-01 17:26:36.905 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen al 50": false
    Profile Matches - 2015-05-01 17:26:36.869 - "power metal" matches "volumen al 50": false
    Profile Matches - 2015-05-01 17:26:36.830 - "selfie" matches "volumen al 50": false
    Profile Matches - 2015-05-01 17:26:36.789 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 50": false
    Profile Matches - 2015-05-01 17:26:36.745 - "subir el volumen (?<subirvol>.+)" matches "volumen al 50": false
    Trigger Words - 2015-05-01 17:26:36.695 - Current trigger words:
    volumen al 50
    Trigger Words - 2015-05-01 17:26:36.685 - Added trigger words:
    volumen al 50
    Recognition - 2015-05-01 17:26:36.639 - Got commands: Received possible commands:
    volumen al 50

    Trigger Words - 2015-05-01 17:26:35.255 - Removed trigger words:
    volumen 50
    Profile Matches - 2015-05-01 17:26:30.631 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen 50": false
    Profile Matches - 2015-05-01 17:26:30.561 - "(habilitar|activar) (el )?bluetooth" matches "volumen 50": false
    Profile Matches - 2015-05-01 17:26:30.525 - "bloquear(el)?(teléfono|móvil)?" matches "volumen 50": false
    Profile Matches - 2015-05-01 17:26:30.489 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen 50": false
    Profile Matches - 2015-05-01 17:26:30.438 - "power metal" matches "volumen 50": false
    Profile Matches - 2015-05-01 17:26:30.395 - "selfie" matches "volumen 50": false
    Profile Matches - 2015-05-01 17:26:30.357 - "bajar el volumen (?<bajarvol>.+)" matches "volumen 50": false
    Profile Matches - 2015-05-01 17:26:30.294 - "subir el volumen (?<subirvol>.+)" matches "volumen 50": false
    Trigger Words - 2015-05-01 17:26:30.240 - Current trigger words:
    volumen 50
    Trigger Words - 2015-05-01 17:26:30.228 - Added trigger words:
    volumen 50
    Recognition - 2015-05-01 17:26:30.191 - Got commands: Received possible commands:
    volumen 50

    Trigger Words - 2015-05-01 17:26:28.436 - Removed trigger words:
    volumen 50 por ciento
    Profile Matches - 2015-05-01 17:26:23.738 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:23.711 - "(habilitar|activar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:23.673 - "bloquear(el)?(teléfono|móvil)?" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:23.643 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:23.618 - "power metal" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:23.576 - "selfie" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:23.512 - "bajar el volumen (?<bajarvol>.+)" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:23.448 - "subir el volumen (?<subirvol>.+)" matches "volumen 50 por ciento": false
    Trigger Words - 2015-05-01 17:26:23.425 - Current trigger words:
    volumen 50 por ciento
    Trigger Words - 2015-05-01 17:26:23.413 - Added trigger words:
    volumen 50 por ciento
    Recognition - 2015-05-01 17:26:23.365 - Got commands: Received possible commands:
    volumen 50 por ciento

    Trigger Words - 2015-05-01 17:26:21.840 - Removed trigger words:
    volumen 50 por ciento
    Profile Matches - 2015-05-01 17:26:17.268 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:17.216 - "(habilitar|activar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:17.170 - "bloquear(el)?(teléfono|móvil)?" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:17.122 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:17.083 - "power metal" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:17.027 - "selfie" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:16.959 - "bajar el volumen (?<bajarvol>.+)" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:16.905 - "subir el volumen (?<subirvol>.+)" matches "volumen 50 por ciento": false
    Trigger Words - 2015-05-01 17:26:16.821 - Current trigger words:
    volumen 50 por ciento
    Trigger Words - 2015-05-01 17:26:16.782 - Added trigger words:
    volumen 50 por ciento
    Recognition - 2015-05-01 17:26:16.743 - Got commands: Received possible commands:
    volumen 50 por ciento

    Trigger Words - 2015-05-01 17:26:15.390 - Removed trigger words:
    volumen al 50 por ciento
    Profile Matches - 2015-05-01 17:26:10.759 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:10.734 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:10.701 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:10.671 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:10.632 - "power metal" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:10.602 - "selfie" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:10.571 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:10.486 - "subir el volumen (?<subirvol>.+)" matches "volumen al 50 por ciento": false
    Trigger Words - 2015-05-01 17:26:10.364 - Current trigger words:
    volumen al 50 por ciento
    Trigger Words - 2015-05-01 17:26:10.352 - Added trigger words:
    volumen al 50 por ciento
    Recognition - 2015-05-01 17:26:10.315 - Got commands: Received possible commands:
    volumen al 50 por ciento

    Trigger Words - 2015-05-01 17:26:09.520 - Removed trigger words:
    volumen al 50 por ciento
    Profile Matches - 2015-05-01 17:26:04.921 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:04.882 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:04.844 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:04.785 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:04.753 - "power metal" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:04.714 - "selfie" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:04.650 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:26:04.586 - "subir el volumen (?<subirvol>.+)" matches "volumen al 50 por ciento": false
    Trigger Words - 2015-05-01 17:26:04.495 - Current trigger words:
    volumen al 50 por ciento
    Trigger Words - 2015-05-01 17:26:04.471 - Added trigger words:
    volumen al 50 por ciento
    Recognition - 2015-05-01 17:26:04.423 - Got commands: Received possible commands:
    volumen al 50 por ciento

    Trigger Words - 2015-05-01 17:25:50.577 - Removed trigger words:
    volumen al 50 por ciento
    Profile Matches - 2015-05-01 17:25:45.896 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:25:45.853 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:25:45.816 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:25:45.779 - "volumen (al )? (?<porcentajevol>.+)( por ciento)?" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:25:45.735 - "power metal" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:25:45.702 - "selfie" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:25:45.651 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 50 por ciento": false
    Profile Matches - 2015-05-01 17:25:45.595 - "subir el volumen (?<subirvol>.+)" matches "volumen al 50 por ciento": false
    Trigger Words - 2015-05-01 17:25:45.559 - Current trigger words:
    volumen al 50 por ciento
    Trigger Words - 2015-05-01 17:25:45.547 - Added trigger words:
    volumen al 50 por ciento
    Recognition - 2015-05-01 17:25:45.508 - Got commands: Received possible commands:
    volumen al 50 por ciento
     
  7. Lukkasss

    Lukkasss New Member

    Joined:
    May 1, 2015
    Messages:
    6
    Likes Received:
    0

    Hi, Here's my logs.



    Licensing - 2015-05-01 12:36:35.722 - Lite from Unlock Key: true
    Licensing - 2015-05-01 12:36:35.714 - com.joaomgcd.autovoice.unlock not present to check license
    Licensing - 2015-05-01 12:36:35.705 - Lite from In-App: true
    Licensing - 2015-05-01 12:36:35.696 - Lite from AutoApps: true
    AutoApps - 2015-05-01 12:36:35.686 - Checking license in AutoApps
    Trigger Words - 2015-05-01 12:36:22.829 - Removed trigger words:
    essa é a helen da oi pra ela
    Recognition - 2015-05-01 12:36:17.979 - Clearing last command id
    Profile Matches - 2015-05-01 12:36:17.931 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-01 12:36:17.915 - "essa é a (?<pessoa>[^\s]+)" matches "essa é a helen da oi pra ela": true
    Profile Matches - 2015-05-01 12:36:17.844 - "wifi" matches "essa é a helen da oi pra ela": false
    Trigger Words - 2015-05-01 12:36:17.817 - Current trigger words:
    essa é a helen da oi pra ela
    Trigger Words - 2015-05-01 12:36:17.789 - Added trigger words:
    essa é a helen da oi pra ela
    Recognition - 2015-05-01 12:36:17.682 - Got commands: Received possible commands:
    essa é a helen da oi pra ela

    Licensing - 2015-05-01 12:36:17.667 - Lite from Unlock Key: true
    Licensing - 2015-05-01 12:36:17.661 - com.joaomgcd.autovoice.unlock not present to check license
    Licensing - 2015-05-01 12:36:17.653 - Lite from In-App: true
    Licensing - 2015-05-01 12:36:17.645 - Lite from AutoApps: true
    AutoApps - 2015-05-01 12:36:17.634 - Checking license in AutoApps



    When I say it, it get recognized, because AutoVoice close the Google Now search, and the phone "beeps" two times and that's all, the phone don't "talk" anything back.


    I'm using the 7 day free license, doesn't know if that matters at all...

    I'll buy the full version, it's a great app, I'm just testing it out before...
     
    Last edited: May 1, 2015
  8. Lukkasss

    Lukkasss New Member

    Joined:
    May 1, 2015
    Messages:
    6
    Likes Received:
    0
    I think when you get the two beeps, it stops the android to say the text to you... i think it is "force cancelling" the Task, when the app close's the Google Now(after it recognized the command)
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    @nachomagic you have an extra space after "(al )? ". It should be "volumen (al )?(?<porcentajevol>.+)( por ciento)?"

    @Lukkasss that is being matched correctly. Probably the say action is failing. Try with a Tasker flash action instead. Thanks!
     
  10. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Thanks joaomgcd, but still don't work.
    I've done 3 tests.

    Volumen al 50 por ciento: nothing happends
    Volumen 50 por ciento: seems to trigger but with an incorrect value, like 0 instead 50
    Volumen 50: nothing happens

    These are the logs

    Trigger Words - 2015-05-04 13:23:22.125 - Removed trigger words:
    volumen 50
    Profile Matches - 2015-05-04 13:23:17.536 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen 50": false
    Profile Matches - 2015-05-04 13:23:17.485 - "(habilitar|activar) (el )?bluetooth" matches "volumen 50": false
    Profile Matches - 2015-05-04 13:23:17.448 - "bloquear(el)?(teléfono|móvil)?" matches "volumen 50": false
    Recognition - 2015-05-04 13:23:17.403 - Clearing last command id
    Profile Matches - 2015-05-04 13:23:17.351 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-04 13:23:17.332 - "volumen (al )?(?<porcentajevol>.+)( por ciento)?" matches "volumen 50": true
    Profile Matches - 2015-05-04 13:23:17.275 - "power metal" matches "volumen 50": false
    Profile Matches - 2015-05-04 13:23:17.240 - "selfie" matches "volumen 50": false
    Profile Matches - 2015-05-04 13:23:17.186 - "bajar el volumen (?<bajarvol>.+)" matches "volumen 50": false
    Profile Matches - 2015-05-04 13:23:17.141 - "subir el volumen (?<subirvol>.+)" matches "volumen 50": false
    Trigger Words - 2015-05-04 13:23:17.109 - Current trigger words:
    volumen 50
    Trigger Words - 2015-05-04 13:23:17.092 - Added trigger words:
    volumen 50
    Recognition - 2015-05-04 13:23:17.041 - Got commands: Received possible commands:
    volumen 50

    Trigger Words - 2015-05-04 13:23:16.861 - Removed trigger words:
    volumen 50 por ciento
    Profile Matches - 2015-05-04 13:23:12.316 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:23:12.276 - "(habilitar|activar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:23:12.233 - "bloquear(el)?(teléfono|móvil)?" matches "volumen 50 por ciento": false
    Recognition - 2015-05-04 13:23:12.189 - Clearing last command id
    Profile Matches - 2015-05-04 13:23:12.110 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-04 13:23:12.092 - "volumen (al )?(?<porcentajevol>.+)( por ciento)?" matches "volumen 50 por ciento": true
    Profile Matches - 2015-05-04 13:23:12.038 - "power metal" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:23:11.996 - "selfie" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:23:11.952 - "bajar el volumen (?<bajarvol>.+)" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:23:11.900 - "subir el volumen (?<subirvol>.+)" matches "volumen 50 por ciento": false
    Trigger Words - 2015-05-04 13:23:11.852 - Current trigger words:
    volumen 50 por ciento
    Trigger Words - 2015-05-04 13:23:11.839 - Added trigger words:
    volumen 50 por ciento
    Recognition - 2015-05-04 13:23:11.804 - Got commands: Received possible commands:
    volumen 50 por ciento

    Trigger Words - 2015-05-04 13:23:04.264 - Removed trigger words:
    volumen 50 por ciento
    Profile Matches - 2015-05-04 13:22:59.671 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:22:59.623 - "(habilitar|activar) (el )?bluetooth" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:22:59.556 - "bloquear(el)?(teléfono|móvil)?" matches "volumen 50 por ciento": false
    Recognition - 2015-05-04 13:22:59.515 - Clearing last command id
    Profile Matches - 2015-05-04 13:22:59.469 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-04 13:22:59.456 - "volumen (al )?(?<porcentajevol>.+)( por ciento)?" matches "volumen 50 por ciento": true
    Profile Matches - 2015-05-04 13:22:59.415 - "power metal" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:22:59.385 - "selfie" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:22:59.320 - "bajar el volumen (?<bajarvol>.+)" matches "volumen 50 por ciento": false
    Profile Matches - 2015-05-04 13:22:59.282 - "subir el volumen (?<subirvol>.+)" matches "volumen 50 por ciento": false
    Trigger Words - 2015-05-04 13:22:59.244 - Current trigger words:
    volumen 50 por ciento
    Trigger Words - 2015-05-04 13:22:59.236 - Added trigger words:
    volumen 50 por ciento
    Recognition - 2015-05-04 13:22:59.182 - Got commands: Received possible commands:
    volumen 50 por ciento

    Trigger Words - 2015-05-04 13:22:57.633 - Removed trigger words:
    volumen al 40 por ciento
    Profile Matches - 2015-05-04 13:22:53.116 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:53.081 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:53.034 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 40 por ciento": false
    Recognition - 2015-05-04 13:22:52.984 - Clearing last command id
    Profile Matches - 2015-05-04 13:22:52.910 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-04 13:22:52.895 - "volumen (al )?(?<porcentajevol>.+)( por ciento)?" matches "volumen al 40 por ciento": true
    Profile Matches - 2015-05-04 13:22:52.858 - "power metal" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:52.814 - "selfie" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:52.769 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:52.716 - "subir el volumen (?<subirvol>.+)" matches "volumen al 40 por ciento": false
    Trigger Words - 2015-05-04 13:22:52.610 - Current trigger words:
    volumen al 40 por ciento
    Trigger Words - 2015-05-04 13:22:52.592 - Added trigger words:
    volumen al 40 por ciento
    Recognition - 2015-05-04 13:22:52.553 - Got commands: Received possible commands:
    volumen al 40 por ciento

    Trigger Words - 2015-05-04 13:22:44.887 - Removed trigger words:
    volumen al 40 por ciento
    Profile Matches - 2015-05-04 13:22:40.268 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:40.230 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:40.180 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 40 por ciento": false
    Recognition - 2015-05-04 13:22:40.155 - Clearing last command id
    Profile Matches - 2015-05-04 13:22:40.111 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-04 13:22:40.096 - "volumen (al )?(?<porcentajevol>.+)( por ciento)?" matches "volumen al 40 por ciento": true
    Profile Matches - 2015-05-04 13:22:40.070 - "power metal" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:40.018 - "selfie" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:39.952 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:39.908 - "subir el volumen (?<subirvol>.+)" matches "volumen al 40 por ciento": false
    Trigger Words - 2015-05-04 13:22:39.860 - Current trigger words:
    volumen al 40 por ciento
    Trigger Words - 2015-05-04 13:22:39.846 - Added trigger words:
    volumen al 40 por ciento
    Recognition - 2015-05-04 13:22:39.786 - Got commands: Received possible commands:
    volumen al 40 por ciento

    Trigger Words - 2015-05-04 13:22:38.855 - Removed trigger words:
    volumen al 40 por ciento
    Profile Matches - 2015-05-04 13:22:34.326 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:34.280 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:34.246 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 40 por ciento": false
    Recognition - 2015-05-04 13:22:34.189 - Clearing last command id
    Profile Matches - 2015-05-04 13:22:34.112 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-04 13:22:34.096 - "volumen (al )?(?<porcentajevol>.+)( por ciento)?" matches "volumen al 40 por ciento": true
    Profile Matches - 2015-05-04 13:22:34.042 - "power metal" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:33.993 - "selfie" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:33.939 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:33.903 - "subir el volumen (?<subirvol>.+)" matches "volumen al 40 por ciento": false
    Trigger Words - 2015-05-04 13:22:33.829 - Current trigger words:
    volumen al 40 por ciento
    Trigger Words - 2015-05-04 13:22:33.819 - Added trigger words:
    volumen al 40 por ciento
    Recognition - 2015-05-04 13:22:33.765 - Got commands: Received possible commands:
    volumen al 40 por ciento

    Trigger Words - 2015-05-04 13:22:32.829 - Removed trigger words:
    volumen al 40 por ciento
    Profile Matches - 2015-05-04 13:22:28.295 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:28.256 - "(habilitar|activar) (el )?bluetooth" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:28.200 - "bloquear(el)?(teléfono|móvil)?" matches "volumen al 40 por ciento": false
    Recognition - 2015-05-04 13:22:28.175 - Clearing last command id
    Profile Matches - 2015-05-04 13:22:28.126 - No Last Command Id matches No Last Matched Command Id
    Profile Matches - 2015-05-04 13:22:28.115 - "volumen (al )?(?<porcentajevol>.+)( por ciento)?" matches "volumen al 40 por ciento": true
    Profile Matches - 2015-05-04 13:22:28.067 - "power metal" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:28.035 - "selfie" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:27.971 - "bajar el volumen (?<bajarvol>.+)" matches "volumen al 40 por ciento": false
    Profile Matches - 2015-05-04 13:22:27.916 - "subir el volumen (?<subirvol>.+)" matches "volumen al 40 por ciento": false
    Trigger Words - 2015-05-04 13:22:27.813 - Current trigger words:
    volumen al 40 por ciento
    Trigger Words - 2015-05-04 13:22:27.796 - Added trigger words:
    volumen al 40 por ciento
    Recognition - 2015-05-04 13:22:27.750 - Got commands: Received possible commands:
    volumen al 40 por ciento

    Trigger Words - 2015-05-04 13:22:11.254 - Removed trigger words:
    volumen al 40 por ciento
    Profile Matches - 2015-05-04 13:22:06.622 - "(deshabilitar|desactivar) (el )?bluetooth" matches "volumen al 40 por ciento": false
     
  11. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    "volumen 50" seemed to have worked for example. Make sure your task is correct. To make sure the task runs put a Tasker Flash action in the beginning of the task with some specific text. That way it's easier to check if it worked.
     
  12. nachomagic

    nachomagic New Member

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

    I've discover that thought somethimes the trigger is set, the value for the variable is not set correctly, this is why I don't see volume changes.

    I've created a popup with %porcentajevol and the 50 is not set with "volumen 50"
     
  13. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you try with the regex "volumen (al )?(?<porcentajevol>[0-9]+)( por ciento)?"
     
    nachomagic likes this.
  14. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Same result, sorry :(
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    What does %porcentajevol show with that one?
     
  16. nachomagic

    nachomagic New Member

    Joined:
    Apr 29, 2015
    Messages:
    18
    Likes Received:
    1
    Shows %porcentajevol

    I've checked it with the simplified command " volumen al (?<porcentajevol>[0-9]+) por ciento" and when I say "volumen al 50 por ciento" it shows 50

    With your command "volumen (al )?(?<porcentajevol>[0-9]+)( por ciento)?" the same phrase trigger (flash action appears) but the popup not appears
     
    Last edited: May 4, 2015
  17. Lukkasss

    Lukkasss New Member

    Joined:
    May 1, 2015
    Messages:
    6
    Likes Received:
    0
    @joaomgcd just a question... Why this regex doesn't work

    IN AUTOVOICE:
    Code (Text):
    ess(a|e) é (a|o) (?<pessoa>[^\s]+)
    IN TASKER:
    Code (Text):
    Olá %pessoa, como vai você?

    but this one does

    IN AUTOVOICE:
    Code (Text):
    ess(a|e) é (a|o) (?<pessoa>[^\s]+)
    IN TASKER:
    Code (Text):
    Olá %avword(4), como vai você?

    Seems that something isn't passing the right value to another.

    in the first regex, it should pass the variable to pessoa, but it doesn't, insted it passes "a|o" to the variable "pessoa"
     
    Last edited: May 5, 2015
  18. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    @Lukkasss and @nachomagic please check here
    The regex groups must all be named or have ?:
    Sorry forgot about that before :)

    Why do my variables not get correctly populated when using regex?
    You probably are using unnamed groups. In AutoVoice, you must name all groups for the variables to be correct.

    One neat trick though, is to ignore groups with “?:”, so you could do this for example “(?:turn|change) to channel (?<channel>[0-9]+)” and the (turn|change) group would be ignored, making the “channel” variable populate correctly. [​IMG]

    You can try out your regexes here. Make sure to change the regex language to PCRE so named groups will work [​IMG]
     
    Last edited: May 5, 2015
    nachomagic likes this.
  19. nachomagic

    nachomagic New Member

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

    Sincerely it exceed my knowledge.

    Could you please name the regex groups in my command as an example in order to teach me?

    "volumen (al )?(?<porcentajevol>[0-9]+)( por ciento)?"

    Thanks in advance

    Edit:

    Do you mean add ":?" to the optional groups?

    volumen :)?al )?(?<porcentajevol>[0-9]+)(?: por ciento)?
     
  20. joaomgcd

    joaomgcd Administrator Staff Member

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

    "volumen (?:al )?(?<porcentajevol>[0-9]+)(?: por ciento)?"
     
: Spanish, regex

Share This Page