Hello,
I have made a audio recorder which can record audio and save file on my
phone. But the problem is i want to convert it to stream or byte array . I
will send this a server where it will encode and post process the data and
then pass it client phone. Is it possible to convert MediaRecorder data to
byte or stream?? Help please:
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(mFileName);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
try {
mRecorder.prepare();
} catch (IOException e) {
Log.e(LOG_TAG, "prepare() failed");
}
mRecorder.start();
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/65b28c41-406b-47a1-84b9-fa6dc3ae5152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.