What is the function of "respect audio focus" field in the say action ?

1,310 views
Skip to first unread message

technogeezer

unread,
Oct 23, 2014, 1:05:46 PM10/23/14
to tas...@googlegroups.com
I am trying to get a stable connection between say and my car over bluetooth.  I'm using AutoVoice BT headset enable and disable but say operation is variable, randomly cutting off the first few words.

What does "respect audio focus" do?

Thanks

Pent

unread,
Oct 23, 2014, 1:30:51 PM10/23/14
to tas...@googlegroups.com

I am trying to get a stable connection between say and my car over bluetooth.  I'm using AutoVoice BT headset enable and disable but say operation is variable, randomly cutting off the first few words.

What does "respect audio focus" do?

Tells Tasker to be quiet when other apps want to be the only apps outputting sound.

Try disabling it if you're having trouble with Say stopping.

Pent

technogeezer

unread,
Oct 28, 2014, 7:10:21 AM10/28/14
to tas...@googlegroups.com
I tried this all week and it doesn't help.  Whether this option is checked or not, a couple of the first words in the say will not be spoken over the bluetooth connection with my car.  Fails about 80% of the time.

It may be a timing issue, though.  It appears that the phone takes a random amount of time to connect to the car via bluetooth.  Is there a way to know the car is connected before I call say?

HTH
Thanks


Pent

unread,
Oct 28, 2014, 7:15:42 AM10/28/14
to tas...@googlegroups.com


It may be a timing issue, though.  It appears that the phone takes a random amount of time to connect to the car via bluetooth.  Is there a way to know the car is connected before I call say?


Use a Bluetooth Connected state with the details of your car there.

You can test if it's active with e.g. a Profile Status state, or in a task with If %PACTIVE, Matches, *,nameofprofile,*

Pent

technogeezer

unread,
Oct 28, 2014, 8:07:53 AM10/28/14
to tas...@googlegroups.com
Thanks for your response!

I have a state machine set up which determines which WIFI or Bluetooth I am connected to or if I am not connected to anything.  The state is changed by a series of profiles that trigger when connected to the various known WIFIs or my car's bluetooth.  The Bluetooth profile is triggered by the Bluetooth connected state you mention above.  A global is set corresponding to the new connection and the state machine acts accordingly.  So Tasker must know it is connected through Bluetooth to my car.

However, when the car senses that the phone is near, it connects as a phone and as a 'audio device'.  After that, the car transfers contact information.  Thinking that there could be collisions, I wait ten seconds, turn on AutoVoice BT headset, wait one second and then 'say' something.  But even then, 80% of the time the first one to four words are cut off.

This may be a car issue, though.

HTH
Thanks

Matt R

unread,
Nov 1, 2014, 4:32:38 PM11/1/14
to tas...@googlegroups.com
Could be your TTS engine. You could try another one from the play store. Also, is "reduce resource usage" checked in the Tasker preferences?

Matt

technogeezer

unread,
Nov 3, 2014, 8:44:07 AM11/3/14
to tas...@googlegroups.com
Thanks, Matt R.

Tried two different TTS.  No change.  "Reduce resource usage" is NOT checked.  Why do you ask?

I was able to get consistent operation by changing the sequence above to,

* wait 10 secs
* turn on AutoVoice BT headset
* wait 3 secs
* 'say' something

The first wait of 10 secs is to allow the car to "connect" to both the phone and the audio player.  The car displays a message when each of these occurs.

Turning on the AutoVoice BT headset causes a "call in progress" state in my car.  The number of seconds the call has been "in progress" is shown.

The key to correct operation appears to be that 2nd wait.  When the 2nd wait is only 1 sec, words are cut off.  When the 2nd wait is set to 3 secs, all words are heard.

Thanks
Reply all
Reply to author
Forward
0 new messages