FORUMS

Moto X Style, Moto X Play and Moto G Forums Are Here!

The latest family members of the new generation of Motorola devices are … more

Galaxy Unpacked: What is Samsung Going to Unveil?

Amidst all the hype of the OnePlus 2 and the rain of Moto 2015 news, Samsung tried … more

Arrow Launcher: Good Effort Without Direction

Microsoft’s Android expansion has been well received on the productivity front, but … more

Two New Moto X and New Moto G – Specs & Details

Today’s Moto event just ended and now we have a clear look at all of … more

[APP][4.0+] AudioBT: Use Bluetooth incoming call for GPS audio

96 posts
Thanks Meter: 32
 
By TurboLed, Member on 29th January 2013, 12:32 PM
Post Reply Subscribe to Thread Email Thread
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. 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/d...C5hdWRpb2J0Il0



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), 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.
Last edited by TurboLed; 1st July 2013 at 04:30 PM.
The Following 4 Users Say Thank You to TurboLed For This Useful Post: [ View ]
 
 
29th January 2013, 01:10 PM |#2  
hoss_n2's Avatar
Senior Member
Flag cairo
Thanks Meter: 283
 
More
Re: [APP][4.0+] AudioBT: Use Bluetooth incoming call for GPS audio
Quote:
Originally Posted by 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. 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!



Links please

Sent from my GT-N8000 using XDA Premium HD app
29th January 2013, 01:18 PM |#3  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by hoss_n2

Links please

Well, it was right there on the Google Play image... I added an hyperlink below.
The Following User Says Thank You to TurboLed For This Useful Post: [ View ]
2nd February 2013, 11:14 PM |#4  
OP Member
Thanks Meter: 32
 
More
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
9th February 2013, 03:23 PM |#5  
Junior Member
Thanks Meter: 5
 
More
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.
The Following User Says Thank You to sebistan For This Useful Post: [ View ]
10th February 2013, 03:45 PM |#6  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by 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.

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
10th February 2013, 05:06 PM |#7  
Junior Member
Thanks Meter: 5
 
More
i tried btmono yesterday, it works. I will get back to you with the logcat later
The Following User Says Thank You to sebistan For This Useful Post: [ View ]
10th February 2013, 05:43 PM |#8  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by sebistan

i tried btmono yesterday, it works. I will get back to you with the logcat later

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/0B2...it?usp=sharing
10th February 2013, 06:30 PM |#9  
Junior Member
Thanks Meter: 5
 
More
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
Attached Files
File Type: txt 2013-02-10-18-59-22.txt - [Click for QR Code] (50.4 KB, 60 views)
Last edited by sebistan; 10th February 2013 at 06:34 PM.
The Following User Says Thank You to sebistan For This Useful Post: [ View ]
10th February 2013, 06:33 PM |#10  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by 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

Thanks for your help. Where's the log ? Ah there it is
Last edited by TurboLed; 10th February 2013 at 06:37 PM.
10th February 2013, 06:48 PM |#11  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by 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

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/0B2...it?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).

Read More
Post Reply Subscribe to Thread

Tags
bluetooth gps audio car navigation
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes