android-audiorecord

Android AudioRecord example [closed]

不羁的心 提交于 2019-11-26 12:43:49
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 high quality sound using AudioRecord. I would really appreciate it. Thank you Rahul Baradia Here I am posting you the some code example which record good quality of sound using AudioRecord API . Note: If you use in emulator the sound quality will not much good because we are using sample rate 8k which only supports in

AudioRecord object not initializing

元气小坏坏 提交于 2019-11-26 10:16:31
In the below code my audioRecord object is not initializing. I tried moving it to the onCreate method and made it a global. I've logged the state and that returns a value of 1 which means ready to use. The debugger says that startRecording is being called on an uninitialized object. It is also saying that it could not get the audio source. Why am I getting these errors? package com.tecmark; import java.io.BufferedOutputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import android.app.Activity; import android.media.AudioFormat; import android

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