I'm developing an application to read any received sms (using espeak) when the phone is connected to a HandsFree device.
The device I'm using to test is a Sony car stereo like this one: http://www.jr.com/sony/pe/SON_MEXBT3900U/
The app is already able to detect when a sms is received and reads it, but the car stereo has to be in the "Bluetooth audio" function to any sound come out, even when connected to the phone through Bluetooth.
Tough, if I receive a phone call, the car stereo will automatically change from any function it was to "Bluetooth phone" and sound streamed from the phone will be played. That's what I'd like my application to do too, automatically change the stereo to the "Bluetooth phone" function when it has something to say.
I tried to achieve that playing with dbus, alsa and pulseaudio but no success until now. Anyone knows how to do it?
I'm developing an application to read any received sms (using espeak) when the phone is connected to a HandsFree device.
The device I'm using to test is a Sony car stereo like this one: http://www.jr.com/sony/pe/SON_MEXBT3900U/
The app is already able to detect when a sms is received and reads it, but the car stereo has to be in the "Bluetooth audio" function to any sound come out, even when connected to the phone through Bluetooth.
Tough, if I receive a phone call, the car stereo will automatically change from any function it was to "Bluetooth phone" and sound streamed from the phone will be played. That's what I'd like my application to do too, automatically change the stereo to the "Bluetooth phone" function when it has something to say.
I tried to achieve that playing with dbus, alsa and pulseaudio but no success until now. Anyone knows how to do it?
Last edited by traysh; 2011-08-31 at 15:30.