android-audiorecord

Android AudioRecord which settings to record call

百般思念 提交于 2019-11-30 09:12:47
I use AudioRecord class to record the voice during a call. I am intererested to record only the voice of the person who owns the phone ( from the microphone). During the recording I would like to do some audio processing but this is offtopic for now. Android has the following AudioSources options: MediaRecorder.AudioSource.VOICE_CALL MediaRecorder.AudioSource.MIC MediaRecorder.AudioSource.VOICE_UPLINK MediaRecorder.AudioSource.VOICE_DOWNLINK Can you explain what is the differences among them. Ok MIC is obvious but VOICE_CALL vs VOICE_UPLINK vs VOICE_DOWNLINK ? Also I should choose a sample

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 to record audio file with better quality in android?

核能气质少年 提交于 2019-11-29 17:34:43
问题 I am creating one application which play recorded file on Android to iphone and vice-versa. now I am using , audioRecorder = new MediaRecorder(); audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); file recorded using this code having size 85 kb /15 sec and a very poor quality. if I use , audioRecorder = new MediaRecorder(); audioRecorder.setAudioSource

Android AudioRecord - Won't Initialize 2nd time

前提是你 提交于 2019-11-29 12:07:34
问题 Hej, im currently trying to get AudioRecord to work. Because I need it in a bigger project. But it seems to mess up a lot. I have been trying alot of things, so I went back to basic when I traced this bug. I am using my Samsung Galaxy S as my debugdevice. My problem is, first time after a reboot of my device I can initialize the AudioRecord object I create without problems. But the second time I run it, it won't initialize the AudioRecord object. I have tried several frequencies, fyi. Here is

Android: What Audio Mode should be set to send receive voice between devices

岁酱吖の 提交于 2019-11-28 04:03:28
问题 I am trying to stream voice/audio (two way) between two Android devices Tablet and Mobile (over java sockets). The Tablet can play received audio(voice) clearly, but the Mobile plays received audio as noise. Then i set this audio mode in the code on tablet: audioManager.setMode(AudioManager.MODE_IN_CALL); This now results in Mobile receiving clear voice. But the tablet goes silent, it does not play the received audio (or rather its not audible). I am not sure what combination (if any) of

android get device overall audio output in pcm

北城余情 提交于 2019-11-27 13:43:34
Is there any way to intercept or just-read the audio output in android device? I need to read the whole audio output in PCM from inside myActivity, including media player application in background, voice from calls, MediaPlayer istances inside myACtivity, etc., everything that's going to played by speakers. Actually, if it was possible to read them separately, would be great as well. I tried with AudioRecord , giving it as audioSource parameter every constant found in MediaRecorder.AudioSource with no luck, should I try different audioSources? Is it a so low-level task that has to be handled

How to adjust microphone sensitivity while recording audio in android

情到浓时终转凉″ 提交于 2019-11-27 13:21:56
I'm working on a voice recording app. In it, I have a Seekbar to change the input voice gain. I couldn't find any way to adjust the input voice gain. I am using the AudioRecord class to record voice. recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING, bufferSize); recorder.startRecording(); I've seen an app in the Google Play Store using this functionality. As I understand you don't want any automatic adjustments, only manual from the UI. There is no built-in functionality for this in Android, instead you have to modify

Android AudioRecord Supported Sampling Rates

∥☆過路亽.° 提交于 2019-11-27 03:03:42
I'm trying to figure out what sampling rates are supported for phones running Android 2.2 and greater. We'd like to sample at a rate lower than 44.1kHz and not have to resample. I know that all phones support 44100Hz but was wondering if there's a table out there that shows what sampling rates are valid for specific phones. I've seen Android's documentation ( http://developer.android.com/reference/android/media/AudioRecord.html ) but it doesn't help much. Has anyone found a list of these sampling rates?? The original poster has probably long since moved on, but I'll post this in case anyone

android get device overall audio output in pcm

北战南征 提交于 2019-11-26 16:30:02
问题 Is there any way to intercept or just-read the audio output in android device? I need to read the whole audio output in PCM from inside myActivity, including media player application in background, voice from calls, MediaPlayer istances inside myACtivity, etc., everything that's going to played by speakers. Actually, if it was possible to read them separately, would be great as well. I tried with AudioRecord, giving it as audioSource parameter every constant found in MediaRecorder.AudioSource

How to adjust microphone sensitivity while recording audio in android

好久不见. 提交于 2019-11-26 16:19:42
问题 I'm working on a voice recording app. In it, I have a Seekbar to change the input voice gain. I couldn't find any way to adjust the input voice gain. I am using the AudioRecord class to record voice. recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING, bufferSize); recorder.startRecording(); I've seen an app in the Google Play Store using this functionality. 回答1: As I understand you don't want any automatic adjustments,