Hi everyone. Merry xmas. I have been looking relentlessly for over a week to see if doing what I need to do is possible on the Android system and going crazy in the process.
I know you can read input in from the MIC via two ways 1. new AudioRecord(MediaRecorder.AudioSource.MIC... and whatever parameters This way you CAN access the buffer in realtime. OR 2. MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); This way it seems to write it out to a file and you CAN NOT seem to access the buffer at all while it is doing that. Given the two ways to read data from the MIC. Is there ANY way that you know to analyze amplitude and frequency in REALTIME. I know most streaming data seems to need the length of the file before it can do this. Although I noticed in your Audacity you SEEM to show the frequency WHILE you are recording. This is EXACTLY what I want to do from the mic on the android system. All I really need to do is run events when it is detected that someone speaks while on a phone call. I DO NOT need a specific words. I just need to run one event when it is detected that someone speaks at all (I am doing a little animation). Specifically the incoming persons voice while on a phone call. I know I can't use javax, android development doesn't want that. Speech recognition doesn't seem to all be there (at least for my HTC HERO which is running 1.5) so that is a dead end. So am thinking of analyzing amplitude and frequency is the way to do go if that is possible. I might have to write and read from the output file for MediaRecorder at the same time is my next line of thinking using threads/locking etc.. Additionally as mentioned above, if you can also tell me if there is ANYWAY at all to also separate (to analyze) the incoming callers voice in the MIC from the outgoing callers voice in the data-stream (I am thinking STEREO, LEFT, RIGHT when it comes to samples/frames) because the UPLINK, DOWNLINK ways do not seem to be supported (buggy from everywhere I have read) or just plain not available at all in 1.5 so they are not even an option. Thank you for your time and have a wonderful holiday. -Chris -- 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

