audio-recording

Increase volume output of recorded audio

馋奶兔 提交于 2019-11-30 02:25:04
I am trying to make a call recording app in Android. I am using loudspeaker to record both uplink and downlink audio. The only problem I am facing is the volume is too low. I've increased the volume of device using AudioManager to max and it can't go beyond that. I've first used MediaRecorder, but since it had limited functions and provides compressed audio, I've tried with AudioRecorder. Still I havn't figured out how to increase the audio. I've checked on projects on Github too, but it's of no use. I've searched on stackoverflow for last two weeks, but couldn't find anything at all. I am

How can I record 2 microphone in Android simultaneously?

瘦欲@ 提交于 2019-11-30 00:53:50
I'm trying to record audio signals from 2 in-built microphone(bottom, top) at the same time. I can pick up bottom microphone signal using MediaRecorder.AudioSource.MIC and top microphone signal using MediaRecorder.AudioSource.CAMCORDER I can record separately but I want to record at the same time from 2 microphones. Does anyone know how to record simultaneously? I tried & or | operator but I can get only 1 channel signal. I use Galaxy S2 device. I will appreciate any response :) Thanks in advance. There is a misconception that in devices with 2 microphones, both the microphones will be used

How To Modify Android's Bluetooth Stack to Enable A2dp Sink

故事扮演 提交于 2019-11-30 00:29:48
I'm working on an audio recorder app that uses a bluetooth mic to record audio on to an Android device (Nexus 7 - rooted Android 4.4.2). It's currently implemented on HFP and everything is working fine. The bluetooth mic is implemented with Bluegiga's WT32 bluetooth module + a mic input, audio quality via HFP isn't great but it's sufficient for now. However, I'm now trying to change the bluetooth profile to A2dp, since there are two mic inputs (L/R) and WT32 supports A2dp (source). After much research I found that stock Android doesn't support A2dp (sink), and it's possible to modify Android's

get duration of audio file

我怕爱的太早我们不能终老 提交于 2019-11-29 20:43:03
I have made a voice recorder app, and I want to show the duration of the recordings in a listview. I save the recordings like this: MediaRecorder recorder = new MediaRecorder(); recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); folder = new File(Environment.getExternalStorageDirectory() + File.separator + "Audio recordings"); String[] files = folder.list(); int number = files.length + 1; String filename = "AudioSample" + number + ".mp3"; File output = new File(Environment.getExternalStorageDirectory() + File.separator +

MediaRecorder - record calls application

眉间皱痕 提交于 2019-11-29 17:46:21
im trying to develope application that recording calls. when im recording the output sound sounds very wired - electronic sounds instead the other person voice. here is my code: public class MainActivity extends Activity implements OnClickListener { private Boolean Recording; private Button btn_REC; private MediaRecorder mrec; private File audiofile = null; private static final String TAG = "SoundRecordingDemo"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Recording = false; mrec = new MediaRecorder(); btn_REC

How to mute the mic's audio input and recognize only the internal audio of the device by using Auriotouch

让人想犯罪 __ 提交于 2019-11-29 16:42:16
I have used auriotouch codes in my app and when i record the audio, it shows the audio waves . So, while recording the sound, the mic recognizes the audio input and then the waves would act accordingly to whatever the sound the mic receives. So far its fine. But now, when I click on the play button to play the sound I just recorded, the mic's input should be off, so that the waves would act only according to the audio I recorded before and the waves should not act even if I speak while it plays the previously recorded audio. So, its more or like muting the mic's input to avoid the recognition

Recording audio in Chrome for Android using web audio API and navigator.getUserMedia

我是研究僧i 提交于 2019-11-29 16:11:41
Chrome for Android versions 30 and 31 beta on Android 4.1 do not appear to correctly record audio using HTML5 web audio and navigator.webkitGetUserMedia. (Chrome 30+ on Android is supposed to support these APIs.) The symptom is that the code appears to work correctly, including displaying the prompt for whether or not to allow microphone access, but recorded data contains nothing but zeros. I created a simplified testcase (go to http://jsfiddle.net/JCFtK/ , and click Record button, then choose the appropriate option to allow it to access your microphone). The key part of the code is below (

Simultaneous record audio from mic and play it back with effect in python

旧城冷巷雨未停 提交于 2019-11-29 16:10:33
问题 My goal is to record my voice through the laptop mic and simultaneously adding an effect to it, in python. What I need is similar to a music effects pedal where you connect a guitar or mic and it adds reverb or echo or distortion, etc. I am using 'pyaudio' and 'wave' to record and play back audio. Using 'scikits.audiolab' to import audio as a array and to be able to edit this array with with functions such as invert, clip, tile, etc. This manipulation of the audio array lets me "add" effects

Safari and Recording Audio — HTML Media Capture / getUserMedia()

穿精又带淫゛_ 提交于 2019-11-29 16:03:29
问题 It looks like getUserMedia() is now the way to go for capturing audio recordings from a user. But that leaves out Safari and iOS Safari. Originally I had at least planned to included iOS Safari by taking advantage of the HTML Media Capture spec. From everything I've read, this is suppose to work. But from my tests, iOS will only offer the photo/video options. I've tried the following syntaxes with no luck: <input type="file" accept="audio/*;capture=microphone" /> <input type="file" accept=

Android : recording audio using audiorecord class play as fast forwarded

孤街醉人 提交于 2019-11-29 15:46:20
问题 I am trying to record a audio & stores into a sdcard as well as send to server. When I am trying to play recorded voice its playing,but not as I have recorded. If I record voice for 10mins it ll play for 4min i.e someone has pressed fast forward button with some noisy sound. I am not getting where I am going wrong. Can anybody say me how to solve this problem (should play how much i have recorded i.e 10min recorded then should play only 10mins). Here is the code.. sorry for posting bulk code.