Wednesday, April 6, 2011

[android-developers] Bluetooth Walkie Talkie

Hi,

I am trying to implement a walkie talkie set between two android
mobile phones using bluetooth connection. But I am not sure how to
send audio data as a stream through bluetooth. So far I am trying to
use media recorder to capture audio.

mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);

mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(mFileName);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

This is part of the code that I took from android.com. I believe that
this will simply save the sound file at path specified by "mFileName"
however I wish to transmit it through bluetooth instead of saving it.

Aditya

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate