yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TurboLed:
Hi

I've created a small app that automatically switch your device into Bluetooth call mode when an app is playing an audio or when your GPS is giving directions. The benefit is that it will cut what you're currently listening from your car audio system to play the incoming call audio and go back to your current listening on your CD, MP3, FM radio, etc.

There are two ways of using AudioBT.

-One is a background service that monitors the audio focus and turn on the Bluetooth SCO proile when another app is temporarily requesting the audio focus. Unfortunately the first second of the audio might be cut when using this service (to be fixed with upcoming Xposed hook). Some applications do not request the audio focus properly so this might not always work.

-The other approach is an integrated TTS engine. Any app using tne Android TTS service can use the AudioBT TTS service for sending text to speech. AudioBT will automatically turn on the Bluetooth SCO profile before playing the text. Any TTS service or language can be selected in the AudioBT TTS parameters.

It is still experimental and user's feedback is appreciated.

Thank you!

https://play.google.com/store/apps/...51bGwsMSwxLDEsImNvbS50dXJib2xlZC5hdWRpb2J0Il0

Service intents (for use with Tasker)

com.turboled.audiobtplus.ON : Cat = Default, Target = Service. Turns ON the AudioBT Plus service.

com.turboled.audiobtplus.OFF: Cat = Default, Target = Service. Turns OFF the AudioBT Plus service.

com.turboled.audiobtplus.SCO_ENABLE : Cat = Default, Target = Service. Enables Bluetooth SCO channel audio.

com.turboled.audiobtplus.SCO_DISABLE : Cat = Default, Target = Service. Disables Bluetooth SCO channel audio.

com.turboled.audiobtplus.PLAY : Cat = Default, Mime Type = audio/*, Data = file uri (file:///*), Target = Service. Plays an audio file through the bluetooth channel. No need to call SCO_ENABLE or SCO_DISABLE. Specify file name in Data.

To play notifications through Bluetooth with Tasker, create a new task with the following steps:

-Say to file (Misc), text = %NTITLE, file = /sdcard/Download/1.wav. Use standard TTS engine (Pico, Google, SVox, etc...), EnhancedTTS or AudioBT+ TTS are not supported.

-Send an intent (Misc), action = com.turboled.audiobtplus.PLAY, cat = Default, Mime type = audio/*, Data = file:///sdcard/download/1.wav, Target = Service.

Add a new profile with Event -> UI -> Notification and link with the task created above.

Add the task to any profile triggered on Notification *,*. Make sure Tasker is enabled in your Accessibility parameters.
[Android Apps and Games] hoss_n2:
Re: [APP][4.0+] AudioBT: Use Bluetooth incoming call for GPS audio

Links please
[Android Apps and Games] TurboLed:
Well, it was right there on the Google Play image... I added an hyperlink below.
[Android Apps and Games] TurboLed:
New version 2.2.0 to be published soon on Google Play. Attempt to fix compatibility issue with some devices. If you tried this app on your phone and it didn't work, try the upcoming version.

Thanks
[Android Apps and Games] sebistan:
I've tried your app with my alpine cde 133bt, but the tts-messages were still send to the normal bluetooth audio-out channel, so I have to manually switch from tuner to bluetooth mode. Both the service and the custom tts-engine didn't work. Your app is exactly what i've been looking for, so let me know if there is anything I can do, to help fix this.

my setup: I have a motorola razr running on android 4.0, which connects to the radio with the HFP and with the A2DP profile. turning a2dp off in the bluetooth settings redirected the tts-messages to the mobile speaker.
[Android Apps and Games] TurboLed:
Hi,

I've got other similar complains from Motorola users. I have not been able to figure out the problem yet. Are you able to provide me with a Logcat when you start the AudioBT service ?

Also can you test BTMono, which is a similar app but that leaves the audio channel open (incoming call) ? If BTMono works my app should work. However BTMono is from a different author and uses more permissions.

Thanks
[Android Apps and Games] sebistan:
i tried btmono yesterday, it works. I will get back to you with the logcat later
[Android Apps and Games] TurboLed:
At the same time, you could try 2 test versions I created. The first one adds more permissions (Bluetooth_admin and network_access). The second one use Call mode instead of Communiation mode. Please tell me if one of these works on your device.

Here's the link to both APK:

https://docs.google.com/folder/d/0B2XwV7ab33OAY2tiVVRTWGRRTVE/edit?usp=sharing
[Android Apps and Games] sebistan:
here is the logcat record, i hope it helps. i started recording, started your service and pressed the test audio button.

i also tried the two test versions, they both did not work, same behaviour as the original one :(

edit: aparantly i'm not allowed to post external links (or edit my post for 5 minutes). i've attached the logcat output
[Android Apps and Games] TurboLed:
Thanks for your help. Where's the log ? Ah there it is :)
[Android Apps and Games] TurboLed:
Hey sebistan, thanks A LOT for your logcat. I saw an error about a missing BROADCAST_STICKY permission. I've create a new version AudioBT-Sticky at the same link: https://docs.google.com/folder/d/0B2XwV7ab33OAY2tiVVRTWGRRTVE/edit?usp=sharing

Your help is a blessing. Now if that works, I'll be more than happy to give you the unlimited version if you send me your email address (in a private message).
[Android Apps and Games] sebistan:
yay, that would be great. unfortunately, it is still not working, but we are getting closer :)

when i start the new version, my car audio system switches briefly to calling mode and back to the tuner. But after that, all other sounds are still beeing routed to the standard speaker. I've attached the logcat
[Android Apps and Games] TurboLed:
There is something odd going on, now that it successfully go into communication mode, it cannot track the audio focus. Your phone/ROM is acting way differently than some others.

I've attempted a fix (AudioBT-focus.apk), please test. I turn off commuication mode between audio, however I fear that it will take too long to switch on and you will lose the first seconds of audio when a message is playing.

I believe the TTS should work (even without the fix above) as it doesn't use audio focus. You can test by playing the sample in the settings.

Thanks!
[Android Apps and Games] TurboLed:
After looking at Android source code I figured out the focus problem was fixed in JB Android 4.1.1 and up, so anyone running my app with ICS have the same problem. If you have success with my fix above and you don't see a significant delay when playing the audio I could publish a new version with a workaround for ICS, otherwise I will have no other choice than to put a notice regarding incompatibility with ICS.
[Android Apps and Games] sebistan:
the fix also does not work, the audio test is still coming from the music channel. the tts-service is not working either. in none of the test versions. i guess i have to wait for the jb update.
[Android Apps and Games] TurboLed:
Please provide me with a logcat with the focus fix... There's probably something else going on. If you get the incoming call to come up during initialization, that's a good start.
[Android Apps and Games] sebistan:
sorry, i had a lot to do, could not make it any faster. Here is the logcat from my focus-fix-test, same procedure as last year :)
[Android Apps and Games] TurboLed:
Hi seb,

I finally decided to install ICS on my phone. And indeed, it doesn't work well. I see that I cannot prevent the call mode to steal the audio focus in this Android version. For now I don't have any idea out of my head.

However, TTS works on my phone with ICS but not with the fix version. Make sure you turn off the AudioBT service when testing TTS. And maybe send me a logcat while testing the TTS (playing the "Listen to an example" in the TTS settings).
[Android Apps and Games] bman12479:
Hi I just wanted to tell you that I recently bought a dice mediabridge for my car and the only issue I was having and it was really bothering me was that when I was in Sirius satellite mode and my phone connected through Bluetooth that the phone calls would come right through but not the navigation if in use.This bothered me because it was a lack of integration that should be there. I searched the web for a few weeks pretty thoroughly and discovered that this was a very common issue reported in threads but no solution at all from anyone.The other day I came across your app and it is wonderful it does exactly what I was looking for and I'm sure once word gets out it will get alot of downloads. My only issues with it is that it does seem a little buggy which I totally understand.A few times the other day it wouldn't activate and I had to reboot my phone to get it to work I have a Verizon note 2. And also a few times the audio just came through as static and not understandable but after playing with it got it to work again.Is development still being worked on for the app? Thanks again.
[Android Apps and Games] TurboLed:
Hi bman.

First thanks for your comments, those are always appreciated. I wrote the app for myself after knowing that some older non-Android phones and iPhone had this capability. Thanks to Android, the API allows to route audio through Bluetooth SCO although only in very recent versions of Android. Hopefully someday it will be better supported by the OS.

My app has an unexpected success since the beginning, however sales have decreased in the last few weeks. About half the people downloading the trial have ICS 4.0 which is not very well supported except for the TTS engine and nothing I can do to fix it yet.

I've pretty much stopped doing updates as the app has become stable enough on most devices; however I don't have much feedback from users and am not aware of all the bugs and if they are fixable. I'm still ready to publish fix whenever one is found.

Cheers!
[Android Apps and Games] TurboLed:
Try going to the application setting and disable the bluetooth permission. See attached screenshots
[Android Apps and Games] arboeh:
I'll try it on my way home in half an hour. Thank you for your quick reply!
[Android Apps and Games] creadle:
Hello, i have a Samsung Galaxy s4 with Android 4.4.2. I want thats Audiobt read my whatsapp messages, but i dont work.

I have enable notification Access and select Google TTS, not Audiobt h TTS.

Can help me?
[Android Apps and Games] TurboLed:
Hi, did you check WhatsApp in the list of applications (in the Settings/Notification for AudioBT Plus). There is an Application setting and you need to select WhatsApp in the list.

I tried here and I don't see any problem. Sorry
[Android Apps and Games] creadle:
Yes, i select whatsapp, but i dont hear. My music mute, when i got a message, but i dont hear it.
[Android Apps and Games] arboeh:
"Fix" not working. Problem still the same... [emoji17]
[Android Apps and Games] TurboLed:
I think the best you can do is Stop the AudioBT service before you switch to POIBase...
[Android Apps and Games] TurboLed:
Can you attach a logcat? Install the Catlog app and send me the log after seeing the problem please.

Also, do you hear anything when you click the Audio Test ON button?

EDIT: After some investigation, there seems to be an SDK incompatibility issue with Android 4.4 (KitKat), not present in Lollipop. I will investigate and fix soon.
[Android Apps and Games] TurboLed:
It should be fixed now, in version 3.1.3 :)
[Android Apps and Games] creadle:
[MENTION=5150700]Turbol[/MENTION]oad it works (with Samsung TTS) but only the First message would be read. @ 2nd message, only Musik Stopps playing
[Android Apps and Games] TurboLed:
Please try checking the "Reset Sco call mode" setting. See if it makes a difference. Also I would like to have a logcat from you.

I will investigate at the same time.
[Android Apps and Games] creadle:
Was allready activated.

When next Time in my car, i save logcat file:)
[Android Apps and Games] TheKaser:
Hi TurboLed, I've been using you app for a while now, but it changed a bit its behavior with recent updates.

In Waze, when you have instructions like "in two kilometers, turn left", the voice makes a pause in the comma, and audioBT disconnects and reconnects. So, it goes "in two kms", music for half a second, "turn left".

It also gets stuck when using voice commands of Waze, as soon as you open the voice dialog it just keeps hold of the audio forever. A stop service is needed to resume normal activity.

Also, I just bought Bluetooth earphones, and audioBT is triggered when connected to them, avoiding music playback. Could you make a sort of Bluetooth device filtering for the automatic service connection?
[Android Apps and Games] typhoonikan:
I have been looking for this app for a few years now! So excited. However, I see that it has been mentioned a few times about stealing audio focus. How might I tell tasker to pause my music player if it is playing before AudioBT plays over bluetooth, then play the music again?
[Android Apps and Games] TurboLed:
I found out that the Waze behavior was broken in Xposed. I have made a new fix in 3.1.5.

I will have to do a separate fix for that. Right now, it should work better without Xposed enabled.

In your earphones BT settings, can you disable the phone audio support? (Keep only audio support). Of course you won't be able to make phone calls...
[Android Apps and Games] TurboLed:
So, you want to cut the music when using the PLAY intent?

I will add a focus event in the next release (3.1.6) but this is a bit out of the scope of AudioBT since you're using A2DP for music, so you're using AudioBT as a service for playing messages without taking advantage of the SCO feature.

Tasker has an audio focus request option in the Say intent, but not in the Play music intent, which would do what you want...
[Android Apps and Games] TheKaser:
Hi, I don't have my earphones with me right now but I disabled the phone audio option. I will try it later. A workaround I though of is having AudioBT service not run on connect and launch it using tasker whenever BT is connected to the car.

Thanks for those fixes :D
[Android Apps and Games] typhoonikan:
Well my purpose here is so that the music playing via AUX doesn't bleed over into Bluetooth, as it has done. Does this make sense?

Pause music on AUX/Headphone ---> Connect bluetooth ---> Play notification ---> Disconnect bluetooth ---> Resume Aux/Headphone.
[Android Apps and Games] TurboLed:
I understand. My point was, since the music is already coming from your phone, all you need is the music to pause and the audio to play through the same channel. The purpose of AudioBT is to cut sources of music other than the phone itself.
[Android Apps and Games] Jeff@56:
I am trying to use AudioBT for redirection of iCoyote notifications to my car's hand free.

It does not run verry well.

At the end of iCoyote messages, AudioBT does not release the SCO chanel, I have to manualy end the call on the car's hands free.

My configuration:

Phone: Samsung S5 mini (SM-G800F)

Rom: Android 4.4.2 with root

AudioBTplus 3.1.5 (with xPosed module activated)

iCoyote 8.1.9

Hands free: Parrot CK3100
[Android Apps and Games] TurboLed:
Thanks for the notice.

I'm currently working on a fix for iCoyote. The issue came with the latest fix for Waze. Now I need to make sure everything works for both.

Watch for the next release.
[Android Apps and Games] Jeff@56:
I have installed and tested rev.3.1.6, this revision works fine when audio stream is set to "notification", this is not the case if audio stream is set to "media".
[Android Apps and Games] Bonumy:
---------- Post added at 02:35 PM ---------- Previous post was at 02:33 PM ----------

What setting of audiobt are you using?

I have the same parrot ck3100, but I can not get it work.

Thank you.
[Android Apps and Games] Jeff@56:
Page "General": Not any box checked

Page "General": Audio delay = 0.7sec.

Page "Notifications": Not any box checked

Page "Advanced": Only "Reset SCO call mode" box checked

Page "Modules": "AudioBT" box checked

Rgds
[Android Apps and Games] Bonumy:
Thanks for your answer. But it did not work for me.

When the Navigation (waze, igo) talk the parot ck3100 show call (interup radio) and I see the time going. But its just silent. No instructions from speakers in the car.

I am on cm12.1 galaxy note n7000. Using Audio BT plus.

Last things. Are you using any tts voice or just the simply Google voice?

Odesláno z mého GT-N7000 pomocí Tapatalk
[Android Apps and Games] Jeff@56:
I use Samsung TTS voice.

Rgds
[Android Apps and Games] Bonumy:
I don't have and I did not find such an application

Odesláno z mého GT-N7000 pomocí Tapatalk
[Android Apps and Games] Jeff@56:
It's a TTS engine that was allready installed when I purchased my Smartphone

Rgds
[Android Apps and Games] adi55:
New Sygic 15.5.9 version don't work with AudioBT

The newest version of Sygic - 15.5.9 - brings "Bluetooth car audio integration" witch conflicts with AudioBT. I'll be happy if you resolve the problem asap.
[Android Apps and Games] iw2fuah:
TTS issue

I have an issue with AudioBT+TTS; it show following message and doesn't work:

English (united states) is not supported.

in TTS setting i have set language and main TTS to United states and Samsung voice. I was using this setting for a while but at the moment I have this issue and I cannot stream to my car's BT. Any Idea how to fix?

:confused:
[Android Apps and Games] TurboLed:
Just for curiosity; what are you using TTS with? Do you really need to use the AudioBT+ TTS ? I almost removed it from the package since it's not really useful to me...
[Android Apps and Games] yeye.phone:
Hello,

I have a problem with audiobt when i receive or do a call with phone connected by Bluetooth at my car. I need to switch sound on the hp phone and re switch on audio by Bluetooth to ear sound of the call. I have trying without AudioBt plus, and it's ok.

For information, i'am on galaxy s4 mini on last cyanogenmod nightlies.

Last Xposed too.

With waze or map, i haven't issues.
[Android Apps and Games] TurboLed:
Try checking "Reset SCO Call mode" in Advanced settings.
[Android Apps and Games] yeye.phone:
OK i will try next week, my car is in a coachbuilder...?
[Android Apps and Games] Jeff@56:
Since a few weeks, I use AudioBTplus 3.1.7, at the end of iCoyote messages, AudioBT now release the SCO chanel but I am facing a new issue.

When connected to my car's hand free, I cannot initiate phone call.

The phone dials the number but when the contact answer, SCO chanel remain "open" and I get no sound.

The contact can hear me (at a very low level), but I cannot hear him.

It works well for received call, not for emitted calls.
[Android Apps and Games] biffcoorbit:
This did not work for me.
[Android Apps and Games] biffcoorbit:
I have noticed that the you tube application cannot play videos when AudioBT is running.
[Android Apps and Games] krakout:
Had the same issue with HTC FM, but I guess that's just the way it works...
[Android Apps and Games] Jeff@56:
I have try checking "Reset SCO Call mode" in Advanced settings. Issue remain the same.

I have found an alternate solution, but it is not very convenient when driving a car.

I have to switch "off" bluetooth and then switch it "on" again to hear sound of the call.
[Android Apps and Games] yeye.phone:
Hello,

With or without RSO call mode, i have the same issue. No sound of the call.
[Android Apps and Games] TurboLed:
If any application tries to steal the audio focus, AudioBT will want to take it back, otherwise the service would stop working. That's per design...
[Android Apps and Games] krakout:
Yes, that's kind of what I assumed, that's why I didn't report it. I thought it was only logical.
[Android Apps and Games] yeye.phone:
To solve my problem, I've created 2 profils on tasker.

See pictures.

I'm not tasker expert, but it works well.
[Android Apps and Games] rbox:
[MENTION=4524752]TurboLed[/MENTION]

I used to have llama set up to start the service/stop the service when the bluetooth connected to my car. But I had to factory reset without having a backup, and now I can't remember how I got llama to work. Can you explain what the settings would be for llama?
[Android Apps and Games] krakout:
I've been having a small problem ever since updating to MarshMallow on my M8. Maybe it's ROM-related, maybe it isn't...

When I connect to my car's audio, the unit switches to BT Phone and stays there - I can't switch ot other sources. I have to disable/reenable BT some times to get control back.

Anyone's got an idea?
[Android Apps and Games] zuifon:
Hello, on my phone AudioBT works fine with Waze but with Icoyote all sentences are cut. I have only the end. Modifying the delay doesn't change anything.
[Android Apps and Games] TNCS:
I have decide to ditch Play Service after I no longer can tolerate the battery drain. Now I find out AudioBT is only available on PlayStore.. Any chance for author to consider other platform, such as Amazon?
[Android Apps and Games] cxc1:
I'm trying to use the app with my Samsung Galaxy S6 (Verizon) and 2016 Honda Pilot. When I start the "Audio Test ON" I get the following message on my car: "Bluetooth phone has been connected. Would you like to transfer the call". Neither the "Yes" or the "No" options on the car make that future notifications are played though the car speakers.

Disabling "Media audio" on my phone's bluetooth setting doesn't seem to make a difference. Is there a way to make AudioBT work with my phone and car? (BTW, rooting my phone isn't an option.)

Thanks.
[Android Apps and Games] tangcla:
Hi [MENTION=4524752]TurboLed[/MENTION],

I enabled AudioBT TTS service on my Nexus 5x and now it force closes every time I try to change settings, or even change it back to the default Google TTS service.

Apart from using the TTS service, is it possible for AudioBT to be more intelligent about when to enable - instead of just turning on when BT is connected, can it turn on ONLY when a certain Bluetooth device is connected? So it will turn on when connected to the car, but not for Bluetooth headphones.
[Android Apps and Games] zorka:
Is there a way to autostart AudioBT only when a bluetooth to a certain device is made? Since I upgrade my Huawei watch to wear 1.4, AudioBT also starts when the watch is connected (which I don't want to)
[Android Apps and Games] TurboLed:
Right now it is not possible to select which device triggers the Auto-Start, but this feature has been requested by many users.

However in each BT device setting, there's an Audio mode and Audio call mode. If you disable Audio call mode it will not trigger the Auto-Start but you won't be able to do phone calls with that device.
[Android Apps and Games] deepsix_69:
You can use tasker (probably llama also) and the intents in the first post of this thread to start the service based on what Bluetooth device is connected.
[Android Apps and Games] tangcla:
I've noticed that when I am using AudioBT Plus, phone calls do not seem to go through the BT device properly. Is this normal, or expected behaviour?
[Android Apps and Games] TurboLed:
Hi. I think there is a bug that creates a conflict with phone calls and I am working on a fix. I'm quite busy these days so it will take at least a week before I release.
[Android Apps and Games] TurboLed:
[MENTION=6837140]davcataa[/MENTION] I understand your concern. But with so many BT units and phones available today, it's hard to give precise support. Some combinations work, some others don't. In the app you have some Advanced settings that you can play with (Force virtual call, reset SCO call) that you should give a try.
[Android Apps and Games] davcataa:
I've tried them all but no luck. Your app works fine in KK 4.4.2 and 4.4.4 but it crashes in both LP 5.0.2 and 5.1.1. I found my old Jabbra headset so I am using that now with BTMono and have not had any issues. I tried using the Jabbra with AudioBt and it crashed almost instantly. Oh well, I'll just stick with the headset and BTMono. You have a great idea with AudioBt but unfortunately it just doesn't work for my setup.