AutoVoice and Bluetooth

342 views
Skip to first unread message

Emilio Martínez

unread,
Jul 12, 2014, 3:35:56 AM7/12/14
to tas...@googlegroups.com
I created some profiles autovoice. I wish to recognize my voice only by the microphone of my car radio with bluetooth when connected. How is that done?

Because the microphone volume on my Samsung Galaxy S2 is very low. And do not know how to raise the microphone volume.

Sample Profile:

Perfil: AV_PruebaPantalla (7)
Priority: 10
Evento: AutoVoice Recognized [ Configuración:Command: "encender|apagar|inicio|bloqueo (regex)" ]
Entrada: AV_Pantalla (97)
A1: Secure Settings [ Configuración:Screen & Keyboard Lights On
Manual - On Paquete:com.intangibleobject.securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *encender* & %SCREEN ~ off ]
A2: Destruir Escena [ Nombre:Toggles Inc ] Si (if) [ %avcomm ~ *bloqueo* ]
A3: Secure Settings [ Configuración:Lock Device Paquete:com.intangibleobject.securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *apagar* & %SCREEN ~ on ]
A4: WidgetLocker [ Cmd:Activar ] Si (if) [ %avcomm ~ *bloqueo* & %SCREEN ~ on & %DTOUT > 31 ]
A5: Destruir Escena [ Nombre:Toggles Blq ] Si (if) [ %avcomm ~ *inicio* ]
A6: WidgetLocker [ Cmd:Desbloquear ] Si (if) [ %avcomm ~ *inicio* & %SCREEN ~ on & %DTOUT < 31 ]


Brandon Horwath

unread,
Jul 12, 2014, 4:22:19 AM7/12/14
to tas...@googlegroups.com
You need a profile based on BT connected that sets AutoVoice to use BT based recognition when voice prompt launches.

It's in the plugin actions set in tasker.

Emilio Martínez

unread,
Jul 12, 2014, 5:57:32 AM7/12/14
to tas...@googlegroups.com
Thank you very much, Brandon :-)

For example, create this profile?

Perfil: BluetoothConex (2)
Estado: Bluetooth conectado [ Nombre:Alpine CD Receiver Dirección:00:26:7E:E3:C6:31 ]
Entrada: AVBlu (29)
A1: AutoVoice Ctrl BT [ Configuración:Enabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]

Enable Auto Recognice BT and Auto Recognize BT Secondary in settings from AutoVoice?

Is higher the volume of the microphone bluetooth radio? More higher than the volume of the phone?

Brandon Horwath

unread,
Jul 12, 2014, 1:22:00 PM7/12/14
to tas...@googlegroups.com
Enable Auto Recognice BT and Auto Recognize BT Secondary in settings from AutoVoice?

Depends, if you want ;-) I don't. But, I like my music button on my headset the way it is. I'm suggesting tasker > action > AutoVoice Recognized > headset controls > (Use Headset/Use If Last) allows voice recognition through Bluetooth device

* note: that's my default task action on a BT primary button press ;-)

Is higher the volume of the microphone bluetooth radio? More higher than the volume of the phone?

I think I understand what you're saying, and I think you're referring to a microphones sensitivity level. That depends based on your BT device class, which varies greatly. Usually it's anywhere within -4dB, 0dB, and +20dB.

A -4dB device sounds like the user is down the far end of a hallway, whereas a +20dB almost sounds like someone's inside your head between your ears. Some BT radios can change microphone sensitivity levels, but it's device class determines it's range of viable performance.

Emilio Martínez

unread,
Jul 13, 2014, 3:32:55 AM7/13/14
to tas...@googlegroups.com
Thanks, Brandon.

I'll try with the profile of bluetooth connected and autovoice Ctrl BT, but without headset. Then I'll set the microphone volume of the car radio. The radio settings to configure the bluetooth to "Mic Gain" and "Phone Talk". I think it will "Mic Gain". It is possible from -5 to +5. Currently 0. I try to +3 or +5.

But it would be perfect to increase the microphone volume of my phone, Samsung Galaxy S2.

Emilio Martínez

unread,
Jul 13, 2014, 2:23:52 PM7/13/14
to tas...@googlegroups.com
I created this profile. I tried it in my car, but I have to speak very loudly. I tried it with toast activated. Works just as without the profile.

The profile becomes green when my phone connects to the car stereo via bluetooth. But I still have the same problem. I set the car radio with various shapes, but nothing. When I talk on the phone with the car radio, they listen very well. But with this profile Tasker does not hear well. I set the volume bluetooth car radio. The volume of the bluetooth, I mean. In the configuration, I tried to "phone talk". Also with "mic gain". But nothing. Marked 0 db. I tried +5. Then I tried -5. Too, +3 or -3. Too, +2, -2...

I'm already desperate.

Perfil: Av_Bluetooth (88)
Estado: Bluetooth conectado [ Nombre:Alpine CD Receiver Dirección:00:26:7E:E3:C6:31 ]
Entrada: AvBluetoothConex (99)
A1: AutoVoice Ctrl BT [ Configuración:Disabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]

------------------------------------

Perfil: Av_Email (80)
Evento: AutoVoice Recognized [ Configuración:Command: "email emilio (regex)" ]
Entrada: AvCorreo (60)
A1: Secure Settings [ Configuración:Emilio Paquete:com.intangibleobject.securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *email emilio* ]

------------------------------------

Note: AutoVoice Continuous = "On"


------------------------------------




Brandon Horwath

unread,
Jul 13, 2014, 3:00:03 PM7/13/14
to tas...@googlegroups.com
You're still missing this:

A1: AutoVoice Recognize [ Configuration:
Voice command with headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 ]

It's found in the action > plugin > AutoVoice Recognized Command

Emilio Martínez

unread,
Jul 13, 2014, 5:01:25 PM7/13/14
to tas...@googlegroups.com
I'm so sorry, Brandon. But I do not understand. Do you mean this? Do not forget you also have a task that activates AutoVoice Continuous.

Perfil: Av_Bluetooth (88)
        Estado: Bluetooth conectado [ Nombre:Alpine CD Receiver Dirección:00:26:7E:E3:C6:31 ]
Entrada: AvBluetoothConex (99)
        A1: AutoVoice Ctrl BT [ Configuración:Disabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]

-------------------------------------------------------------------------


Perfil: Av_Email (80)
        Evento: AutoVoice Recognized [ Configuración:Command: "email emilio (regex)" ]
Entrada: AvCorreo (60)
 A1: AutoVoice Recognize [ Configuration:
Voice command with headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 ]

 A2: Secure Settings [ Configuración:Emilio Paquete:com.intangibleobject.
securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *email emilio* ]

----------------------------------------------------------------------------

Again, I also have a task that activates AutoVoice Continuous. With a button on the lock screen.

Brandon Horwath

unread,
Jul 13, 2014, 6:35:58 PM7/13/14
to tas...@googlegroups.com
AV Continuous doesn't work with BT ;-) there's your problem.

You need to use a recognized action.

Emilio Martínez

unread,
Jul 13, 2014, 6:46:25 PM7/13/14
to tas...@googlegroups.com
Aaaaaaa, I am the clumsiest person in the world! I did not know that. Thank you very much, Brandon. :-) Tomorrow I try as you say. I'm happy :-) I tell you how it went.

Emilio Martínez

unread,
Jul 13, 2014, 6:53:48 PM7/13/14
to tas...@googlegroups.com
Sorry Brandon ... So I put my profiles as in the previous post? But without activating AV continuous. Do not? Does that mean? I feel so bad speak English.

Brandon Horwath

unread,
Jul 13, 2014, 9:35:48 PM7/13/14
to tas...@googlegroups.com
You can have AV Continuous enabled still, I believe. Using the recognized action for BT will kick in the voice prompt for it.

Brandon Horwath

unread,
Jul 13, 2014, 9:36:56 PM7/13/14
to tas...@googlegroups.com
Aaaaaaa, I am the clumsiest person in the world! I did not know that.

No worries :-) most don't know that. AutoVoice doesn't specifically imply it either from what I recall.

Emilio Martínez

unread,
Jul 14, 2014, 5:50:37 AM7/14/14
to tas...@googlegroups.com
Now it is confirmed. I am the dullest man alive. I created these two profiles. I say "no" to the microphone of the car radio and not miss toast. Do not listen. But if I say "no" to the phone's microphone does listen. The mouth next to the phone's microphone. I don't understand :-(

Profile 1:

Perfil: Av_Bluetooth (88)
Estado: Bluetooth conectado [ Nombre:Alpine CD Receiver Dirección:00:26:7E:E3:C6:31 ]
Entrada: AvBluetoothConex (99)
A1: AutoVoice Ctrl BT [ Configuración:Disabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]

Profile 2:

Perfil: Av_Off (10)
Evento: AutoVoice Recognized [ Configuración:Command: "no (regex)" ]
Entrada: AvOff (12)
A1: AutoVoice Recognize [ Configuración:No Dialog: true
Language Model: Free FormVoice command without headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Recognize Cuenta atrás (segundos):0 ]
A2: Secure Settings [ Configuración:Lock Device Paquete:com.intangibleobject.securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *no* ]

Brandon Horwath

unread,
Jul 14, 2014, 1:40:22 PM7/14/14
to tas...@googlegroups.com
A1: AutoVoice Recognize [ Configuración:No Dialog: true
Language Model: Free FormVoice command without headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Recognize Cuenta atrás (segundos):0 ]

Look ^

Change 'without headset' to 'with'.

You need something like this... my third profile I made, and the fifth task ;-)

Profile: AutoVoice Home Launch Conditions (3)
Priority: 7
State: Assistant Event for Tasker [ Configuration:Enabled ]
State: Not Variable Value [ %WIN ~ *Home*/*Google* ]
Enter: AutoVoice Recognition (5)
A1: If [ %PACTIVE ~R Caller Recording Disable ]
A2: System Volume [ Level:7 Display:Off Sound:Off ]
A3: Media Volume [ Level:15 Display:Off Sound:Off ]
A4: BT Voice Volume [ Level:15 Display:Off Sound:Off ]
A5: AutoVoice Recognize [ Configuration:Voice command with headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 Continue Task After Error:On ] If [ %PACTIVE ~R Caller Recording Disable ]
A6: Vibrate [ Time:200 ] If [ %SILENT ~ vibrate ]
A7: Else
A8: AutoVoice Recognize [ Configuration:Voice command without headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 Continue Task After Error:On ]
A9: End If

This sets my AutoVoice device recognition. %PACTIVE ~ *,Caller Recording Disable,* anytime a Bluetooth device is connected with my phone. In turn, my device defaults to recognizing the BT if it is connected and I tap a tasker voice recognized task shortcut. You'll notice otherwise it'll default to using 'without headset'. This is how you setup tasker to automatically make necessary changes without changing anything.

Don't be too hard on yourself! It's challenging to understand and implement.

Emilio Martínez

unread,
Jul 14, 2014, 2:54:59 PM7/14/14
to tas...@googlegroups.com
Thank you very much for your interest, Brandon. You are helping me a lot. There are several problems in this case :-) I'm a newbie with Tasker. Just one month ago I met Tasker. And try to learn. I've created about 15 or 20 profiles, but are basic. They work very well. But this project I think it is hard for me. Also, I do not speak English correctly, and do not know if I've explained well from the beginning. I just want to order my phone, when I go to my car, call some contacts in my phone book, or turn on the phone screen, or turn off the display of the phone, and other simple things. All this if you are doing now. Now it works perfectly, but I have to put my mouth close to the microphone from my phone, but because AV does not hear my commands. Then it occurred to me that maybe you can use the microphone on my car radio handsfree. Use the microphone of my radio Alpine CD, and not use the microphone on my phone. Because I think the microphone of my radio Alpine CD has the highest volume. Also, I think I can set the volume of my radio microphone Alpine CD. In the settings there is "Mic Gain". Currently 0 db. But when I receive an incoming call, for example, I hear very well. And I can set the volume of the microphone ("Mic Gain") to +1, +2, +3, +4 and +5 db. And also to -1, -2, -3, -4 and -5 db.


I think it could work very well. Do not?? Not sure if I understood you correctly. Really sorry. Tomorrow I will not be back in the car to try. Now I can not try :-(

Do you think that would work so successfully? I just think that too so I tried and did not work. It may be that I'm wrong and have not tried the option you tell me.
Not sure if I have to remove "regex", or remove any command on any of the actions. Or put the command "no" in some action, state or event. I'm not sure, certainly.

So just try this change? (Change: Colour Red)


Note: Sorry to be so awkward and ask a lot.

Profile 1:

Perfil: Av_Bluetooth (88)
        Estado: Bluetooth conectado [ Nombre:Alpine CD Receiver Dirección:00:26:7E:E3:C6:31 ]
Entrada: AvBluetoothConex (99)
        A1: AutoVoice Ctrl BT [ Configuración:Disabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]


Profile 2:

Perfil: Av_Off (10)
        Evento: AutoVoice Recognized [ Configuración:Command: "no (regex)" ]
Entrada: AvOff (12)
        A1: AutoVoice Recognize [ Configuración:No Dialog: true
Language Model: Free FormVoice command with headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Recognize Cuenta atrás (segundos):0 ]
        A2: Secure Settings [ Configuración:Lock Device Paquete:com.intangibleobject.

Brandon Horwath

unread,
Jul 14, 2014, 3:41:07 PM7/14/14
to tas...@googlegroups.com
It's a pleasure to help another user. I totally understand your confusion concerning this, it's not a 'typical' tasker type setup. I apologize for the confusion with my English, I have a tendency to use... well, I'll stop myself there and just keep it simple ;-)

Perhaps the limited number of 'supoorting' profiles is limiting your ability to apply conditions automatically in this case. Keep in mind, what you're trying to accomplish is BT voice device recognition opposed to mobile device voice recognition. I believe it's possible, and you're on the right track... I've gotten this to work for me.

The difference with this series of profiles/tasks opposed to most in tasker is that you need a 'method' to initiate an AutoVoice Recognition context. I have two on my device, one setup as a 'hard button' (using 'Event Assistant for Tasker') the other as a shortcut icon on my homescreen.

From what I can tell, you have AV Continuous active. However, AV Continuous doesn't work with BT devices. As result, you need a method that manually initiates a voice recognition prompt through BT with headset.

I see you have profile(s), but no 'launch' type task.

Profile 1:

Perfil: Av_Bluetooth (88)
Estado: Bluetooth conectado [ Nombre:Alpine CD Receiver Dirección:00:26:7E:E3:C6:31 ]
Entrada: AvBluetoothConex (99)
A1: AutoVoice Ctrl BT [ Configuración:Disabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]

Change A1 to 'Enable BT headset audio'... you want audio sent to your Alpine unit when connected, correct?

Profile 2:

Perfil: Av_Off (10)
Evento: AutoVoice Recognized [ Configuración:Command: "no (regex)" ]
Entrada: AvOff (12)
A1: AutoVoice Recognize [ Configuración:No Dialog: true
Language Model: Free FormVoice command with headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Recognize Cuenta atrás (segundos):0 ]
A2: Secure Settings [ Configuración:Lock Device Paquete:com.intangibleobject.
securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *no* ]

This is the correct action setting in A1, but not quite in the ideal placement. This is from your voice recognized profile, and at the point a voice is recognized there's no point in activating voice recognition through BT, correct?

I would suggest, you need this to automate your actions:
A launch style task, assigned as a task shortcut on your homescreen.

The reason is this, you're limited in that there is no way to 'launch' a voice recognition prompt through the BT device (least, not on most vehicles), so you must do so from your mobile device. You must launch the prompt, since BT voice recognition doesn't work with AV Continuous.

The launch task posted above is one such method. Based on a BT device being connected, the Voice Prompt recognition provided is altered. An alternative (albeit very sloppy) is using a AutoVoice recognized action condition with headset when connected to the profile followed by a KillApp action immediately (which in my experience terminates an active voice prompt [but, not one that's timed-out]) and doing the reverse (recognition without headset then kill process) as an exit task, and every other instance of AutoVoice Recognized use the 'use if last' setting.

After checking, I do disable AV Continuous if enabled as part of a headset connected profile check.

Profile: Headset Connected (479)
State: BT Connected [ Name:LG HBS730 Address:00:18:6B:40:E1:32 ]
Enter: Headset Connected (480)
A1: If [ %AVCONTINUOUS ~ true ]
A2: AutoVoice Continuous [ Configuration:
Stopping continuous voice recognition Package:com.joaomgcd.autovoice Name:AutoVoice Continuous Timeout (Seconds):0 ]
A3: Zoom State [ Element:AutoVoice Toggle.w / Switcher1 State:1 ]
A4: Zoom State [ Element:Master.w / AutoVoice Continuous Toggle State:1 ]
A5: Say [ Text:Background voice monitoring deactivated Engine:Voice:default:default Stream:5 Pitch:%Voice_pitch Speed:%Voice_speed Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] If [ %SILENT ~ off ]
A6: End If
A7: Stop [ With Error:Off Task:Headset Connected ]

If, by some chance you have a device that AutoVoice conditions can recognize as a launch task, this will help you:

AutoVoice Recognition Headset (22)
A1: System Volume [ Level:7 Display:Off Sound:Off ]
A2: Media Volume [ Level:15 Display:Off Sound:Off ]
A3: BT Voice Volume [ Level:15 Display:Off Sound:Off ]
A4: AutoVoice Recognize [ Configuration:Voice command with headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 ]

Keep in mind, AutoVoice has voice prompt start upon BT device button press recognition... I'm not completely sure this actually initiates the prompt with BT headset recognition enabled, or disabled... but I suspect the prompt will launch with headset recognition enabled.

In short, I think there is an essential manual launch task you're missing to initiate the voice prompt recognition you desire before a voice recognition event occurs.

Hope this helps ;-)

Emilio Martínez

unread,
Jul 14, 2014, 4:25:29 PM7/14/14
to tas...@googlegroups.com
Brandon, I think I understood some things. I'll explain briefly. Sure you know what I mean:

I have created several buttons on a scene. Scene on my lock screen (Widget Locker). Too, i have Minimalistic Text. When double tap in widget from lock screen (widget transparent, invisible)... voilá... Scene! Several buttons: bluetooth, wifi,... voz (AV Continuous On/Off). voz white (visible, AV Continuous On). voz grey (not visible). voz grey (visible, AV Continuous Off). voz white (not visible). Enabled/Disabled AV Continuous :-). Even turn off "voz" with AutoVoice.

I enable "voz" (AV Continuous On) and profile 1 and profile 2. Not? Enough?

Task button "voz":

Task1:

AVContOn (13)
A1: AutoVoice Continuous [ Configuración:
Starting continuous voice recognition without headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Continuous Cuenta atrás (segundos):0 ]
A2: Establecer variable [ Nombre:%Voz A:on Calcular:Apagado Añadir:Apagado ]
A3: Decir [ Texto:Hola. Puedes hablar Motor: Voz:com.samsung.SMT:spa-ESP Stream:5 Tono:5 Velocidad:5 Respect Audio Focus:Encendido Network:Apagado Continuar tarea inmediatamente:Apagado ]
A4: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz desactivado Establecer:Falso Tiempo de animación (ms):0 ]
A5: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz activado Establecer:Verdadero Tiempo de animación (ms):0 ]

Task2:

AVContOff (102)
A1: AutoVoice Continuous [ Configuración:
Stopping continuous voice recognition Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Continuous Cuenta atrás (segundos):0 ]
A2: Establecer variable [ Nombre:%Voz A:off Calcular:Apagado Añadir:Apagado ]
A3: Decir [ Texto:Adiós Motor: Voz:com.samsung.SMT:spa-ESP Stream:5 Tono:5 Velocidad:5 Respect Audio Focus:Encendido Network:Apagado Continuar tarea inmediatamente:Apagado ]
A4: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz activado Establecer:Falso Tiempo de animación (ms):0 ]
A5: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz desactivado Establecer:Verdadero Tiempo de animación (ms):0 ]

Emilio Martínez

unread,
Jul 15, 2014, 7:33:10 PM7/15/14
to tas...@googlegroups.com
I am sorry. No longer do that. I've done 1000 tests. Nothing. The microphone of my Alpine CD not listen to my commands. Please help.

I created these two profiles. I tried with AV Continuous On and AV Continuous Off. Nothing.

:-(

Perfil: Av_Bluetooth (88)
Priority: 7
Estado: Bluetooth conectado [ Nombre:Alpine CD Receiver Dirección:00:26:7E:E3:C6:31 ]
Entrada: AvBluetoothConex (99)
A1: AutoVoice Ctrl BT [ Configuración:Enabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]

Perfil: Av_Apagar_Prueba (10)
Evento: AutoVoice Recognized [ Configuración:Command: "apagar (regex)" ]
Entrada: AvOffPrueba (12)
A1: AutoVoice Recognize [ Configuración:No Dialog: true
Language Model: Free FormVoice command with headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Recognize Cuenta atrás (segundos):0 ]
A2: Secure Settings [ Configuración:Lock Device Paquete:com.intangibleobject.securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *apagar* ]

Please, help.

Brandon Horwath

unread,
Jul 15, 2014, 9:02:36 PM7/15/14
to tas...@googlegroups.com
Perfil: Av_Apagar_Prueba (10)
Evento: AutoVoice Recognized [ Configuración:Command: "apagar (regex)" ]
Entrada: AvOffPrueba (12)
A1: AutoVoice Recognize [ Configuración:No Dialog: true
Language Model: Free FormVoice command with headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Recognize Cuenta atrás (segundos):0 ]
A2: Secure Settings [ Configuración:Lock Device Paquete:com.intangibleobject.securesettings.plugin Nombre:Secure Settings Cuenta atrás (segundos):0 ] Si (if) [ %avcomm ~ *apagar* ]

Testing this command launchs a voice prompt. Which IS what you want, but NOT with the context for the profile.

You want a command the launches the prompt when a button is pressed on your widget locker.

Emilio Martínez

unread,
Jul 16, 2014, 6:00:14 PM7/16/14
to tas...@googlegroups.com
Correct? I think that work fine. Button in scene in lock screen (Widget Locker and Minimalistic Text).

I think it works ok, but do not know if it can be improved.

Tarea 1 (On)

PruebaOn (103)
A1: AutoVoice Ctrl BT [ Configuración:Enabling Headset Sound Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Ctrl BT Cuenta atrás (segundos):0 ]
A2: AutoVoice Recognize [ Configuración:No Dialog: true
Language Model: Free FormVoice command with headset Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Recognize Cuenta atrás (segundos):0 ]
A3: Establecer variable [ Nombre:%Voz A:on Calcular:Apagado Añadir:Apagado ]
A4: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz desactivado Establecer:Falso Tiempo de animación (ms):0 ]
A5: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz activado Establecer:Verdadero Tiempo de animación (ms):0 ]

Tarea 2 (Off)

PruebaOff (107)
A1: AutoVoice Continuous [ Configuración:
Stopping continuous voice recognition Paquete:com.joaomgcd.autovoice Nombre:AutoVoice Continuous Cuenta atrás (segundos):0 ]
A2: Establecer variable [ Nombre:%Voz A:off Calcular:Apagado Añadir:Apagado ]
A3: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz activado Establecer:Falso Tiempo de animación (ms):0 ]
A4: Visibilidad del Elemento [ Nombre Escena:Toggles Inc Coincidir Elemento:Voz desactivado Establecer:Verdadero Tiempo de animación (ms):0 ]

Furthermore, two problems:

One,

I tried profile, status (connected Bluetooth) and task input and output. No works well. It works ok if input / output / input. Bluetooth connected is not event. Is state.

Two,

"On" enabled, I can not listen music,... Alpine Radio CD / screen: "NO NAME". Only "NO NAME".

Brandon Horwath

unread,
Jul 16, 2014, 9:38:38 PM7/16/14
to tas...@googlegroups.com
Furthermore, two problems:

One,

I tried profile, status (connected Bluetooth) and task input and output. No works well. It works ok if input / output / input. Bluetooth connected is not event. Is state.

Yeah, that won't work. As I mentioned, you want BT connected to activate a profile name context for use in reference within the task action flow. The action flow of the launch task which initiates the voice prompt should activate either a prompt using headset recognition (if the profile referenced is active) or a voice prompt without headset recognition if that profile active context is not found.

Two,

"On" enabled, I can not listen music,... Alpine Radio CD / screen: "NO NAME". Only "NO NAME".

Ah. Then deactivate this after whatever response desired is supplied. You could also check if %MTRACK is set, pause, route audio, wait till say action completes, route audio back, and resume play within an action flow if you desired.

Hope this helps.

Emilio Martínez

unread,
Jul 17, 2014, 3:19:53 PM7/17/14
to tas...@googlegroups.com
It's interesting, but I think that I do not understand well.

Brandon Horwath

unread,
Jul 17, 2014, 6:27:13 PM7/17/14
to tas...@googlegroups.com
Sorry to cause confusion.

What is the description of the launch task used in your lock screen widgetlocker?

Here's mine, which details which prompt to initiate. This is why you need:

AutoVoice Recognition (5)
A1: If [ %PACTIVE ~R Caller Recording Disable ]
A2: System Volume [ Level:7 Display:Off Sound:Off ]
A3: Media Volume [ Level:15 Display:Off Sound:Off ]
A4: BT Voice Volume [ Level:15 Display:Off Sound:Off ]
A5: AutoVoice Recognize [ Configuration:Voice command with headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 Continue Task After Error:On ] If [ %PACTIVE ~R Caller Recording Disable ]
A6: Vibrate [ Time:200 ] If [ %SILENT ~ vibrate ]
A7: Else
A8: AutoVoice Recognize [ Configuration:Voice command without headset Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):0 Continue Task After Error:On ]
A9: End If

The profile 'Caller Recording Disable' is active whenever a BT connection is present.

As result, when this task is run a voice prompt using BT recognition appears if a device is connected. Otherwise, a voice prompt for phone recognition is used.

I think the problem here, is you haven't constructed a method dynamically that allows the desired prompt to appear. Tasker needs to know if a BT device is connected and change the actions as result.

Reply all
Reply to author
Forward
0 new messages