-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm writing an app which as part of its features routes its audio through the bluetooth earpiece. This works seamlessly with A2DP, but not with mono earpieces. After a bit of messing about, I have my app silencing its audio when an SCO earpiece connects and unmuting it when it disconnects. This isn't by design, but rather likely due to the fact that SCO audio requires that it be sent through the voice stream as 16 K mono, and I'm guessing my audio is stereo.
If I comment out the line of my code that sets my app to use STREAM_VOICE, then speech continues as normal. So I'm guessing that I just don't have mono audio as required by SCO. I'm using AudioManager.setBluetoothScoOn(). I attempted to use AudioManager.startBluetoothSco(), but that didn't work either. In that instance, audio got correctly routed to the voice stream, but came through my phone speaker through which call voices are normally heard. Then, when the earpiece powered down, a bunch of services on the phone appeared to crash. Does anyone have any pointers? This is under Android 2.2 on a G2, and the audio I'm attempting to work with is TTS. android.speech.tts.TextToSpeech doesn't appear to give me any control over the audio format, which was the first thing I checked. Am I missing something? Thanks. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkys9GMACgkQIaMjFWMehWLBbQCePMurshu4jXq6M2j9nG8AeorW 4dwAnRbfazVikop0pU0MccTlBj/gVZjD =Oibq -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

