android Programming Glossary: tempfloatbuffer
Voice Detection in Android Application http://stackoverflow.com/questions/7955041/voice-detection-in-android-application int numberOfReadBytes 0 byte audioBuffer new byte bufferSizeInBytes boolean recording false float tempFloatBuffer new float 3 int tempIndex 0 int totalReadBytes 0 byte totalByteBuffer new byte 60 44100 2 While data come from microphone... sample short audioBuffer i audioBuffer i 1 8 totalAbsValue Math.abs sample numberOfReadBytes 2 Analyze temp buffer. tempFloatBuffer tempIndex 3 totalAbsValue float temp 0.0f for int i 0 i 3 i temp tempFloatBuffer i if temp 0 temp 350 recording false .. 2 Analyze temp buffer. tempFloatBuffer tempIndex 3 totalAbsValue float temp 0.0f for int i 0 i 3 i temp tempFloatBuffer i if temp 0 temp 350 recording false Log.i TAG 1 tempIndex continue if temp 350 recording false Log.i TAG 2 recording..
Android: Listener to record sound if any sound occurs http://stackoverflow.com/questions/9323452/android-listener-to-record-sound-if-any-sound-occurs int numberOfReadBytes 0 byte audioBuffer new byte bufferSizeInBytes boolean recording false float tempFloatBuffer new float 3 int tempIndex 0 int totalReadBytes 0 byte totalByteBuffer new byte 60 44100 2 While data come from microphone... sample short audioBuffer i audioBuffer i 1 8 totalAbsValue Math.abs sample numberOfReadBytes 2 Analyze temp buffer. tempFloatBuffer tempIndex 3 totalAbsValue float temp 0.0f for int i 0 i 3 i temp tempFloatBuffer i if temp 0 temp 350 recording false Log.i.. 2 Analyze temp buffer. tempFloatBuffer tempIndex 3 totalAbsValue float temp 0.0f for int i 0 i 3 i temp tempFloatBuffer i if temp 0 temp 350 recording false Log.i TAG 1 tempIndex continue if temp 350 recording false Log.i TAG 2 recording..
|