I was really excited to see the new media.AudioRecord class in the latest SDK. I am trying to build an application that requires that I have real-time access to the audio as it's being recorded through the microphone. The AudioRecord class accomplishes this and I am able to get it working as described in the docs.
However, I still have two more problems now: 1) I need to stream the audio to a server as it's being recorded. Linear PCM is not ideal for this since it is too big. I also want to store these files on the phone so I really need them to be smaller. I found an example of compression throuh A-law but this is only a 2:1 reduction in size. For all the other mobile platforms we've developed for, speex compression is available (20:1) through very simple API calls but that doesn't seem to be the case with Android. Is there any way to compress these audio files? I can work with anything on the server side (amr/speex/mp3/etc.). I looked into Jspeex, but it doesn't look like this can be used in Android because it relies on javax.sound. Please correct me if I am wrong. 2) I'd like to show a volume meter to the user to show him/her how loud he is speaking. I was able to do this with MediaRecorder.getMaxAmplitude(), but there doesn't seem to be a similar method for AudioRecord. Will I have to just do this myself by examining the audio data as it's recorded? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

