audiorecord

Android AudioRecord class - process live mic audio quickly, set up callback function

穿精又带淫゛_ 提交于 2019-11-26 06:55:29
问题 I want to record audio from the mic and access it for possible playback in near real-time. I am unsure of how to use the Android AudioRecord class to record some mic audio and quickly access it. For the AudioRecord class, the official site says \'the app polls the AudioRecord object in time\', and \'the size of the buffer being filled determines the time-length of the recording before over-running unread data\'. Later it\'s suggested that a larger buffer should be used when polling less

Android audio FFT to retrieve specific frequency magnitude using audiorecord

左心房为你撑大大i 提交于 2019-11-26 04:36:28
问题 I am currently trying to implement some code using Android to detect when a number of specific audio frequency ranges are played through the phone\'s microphone. I have set up the class using the AudioRecord class: int channel_config = AudioFormat.CHANNEL_CONFIGURATION_MONO; int format = AudioFormat.ENCODING_PCM_16BIT; int sampleSize = 8000; int bufferSize = AudioRecord.getMinBufferSize(sampleSize, channel_config, format); AudioRecord audioInput = new AudioRecord(AudioSource.MIC, sampleSize,

Android AudioRecord example [closed]

亡梦爱人 提交于 2019-11-26 03:05:34
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I am designing an Android app and I need to implement an AudioRecord class to record the user\'s sound. After some research (that didn\'t provide enough information) and few failed attempts, I was wondering if anyone could help me by posting an example (code) on how to capture