audio-recording

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

时光怂恿深爱的人放手 提交于 2019-11-30 10:21:11
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="audio/*" capture="microphone"> <input type="file" accept="audio/*" /> Capturing an image works as

How to record an FM audio in android?

流过昼夜 提交于 2019-11-30 10:06:45
i need to record the songs being played by a FM app. I checked the MediaRecorder.AudioSource but could not find what to use for setAudioSource can anyone please help me? thanks, Ramachandran.R There is no FM radio support in the Android SDK. Various device manufacturers may have hacked in their own FM radio support, but you would have to contact those manufacturers to learn what APIs, if any, they have for them. try this code int audioSource = MediaRecorder.AudioSource.VOICE_DOWNLINK; int sampleRateInHz = 8000; int channelConfig = AudioFormat.CHANNEL_CONFIGURATION_MONO; int audioFormat =

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

Recording calls in android why this not works

烈酒焚心 提交于 2019-11-30 07:59:32
I am starting a service from MainActivity, which run indefinitely looking for incoming and outgoing calls to record. Why is that the sample "switch-case" doesn't work? No error occurs but I can record only each of incoming and outgoing. The service is killed after recording the call, it will be recreated START_STICKY but never going to get started. Please help. Thanks in advance! Is there any other codes to record incoming and outgoing call in android? package com.exampled.demoserv; import java.io.File; import java.io.IOException; import android.app.Service; import android.content.Context;

How do I stop GC_CONCURRENT running so frequently?

こ雲淡風輕ζ 提交于 2019-11-30 07:27:41
I am using a thread which records the audio using AudioRecord class and placed in recorderBUffer (which is a linked list of Short[]) , a separate thread which does the encoding of this data and place it to a playerBuffer(linked list[]). For playing the Audio I am using AudioTrack class and onPeriodicNotification() I read the data from playerBuffer and write it to track. The code is simple and straight forwards as it appears. However it doesnt work the way it should. GC_CONCURRENT eats of all the time and which is causing AudioTrack restart so frequently(I guess!). I get following messages from

I want to call 20 times per second the installTapOnBus:bufferSize:format:block:

给你一囗甜甜゛ 提交于 2019-11-30 07:02:29
I want to waveform display in real-time input from the microphone. I have been implemented using the installTapOnBus:bufferSize:format:block:, This function is called three times in one second. I want to set this function to be called 20 times per second. Where can I set? AVAudioSession *audioSession = [AVAudioSession sharedInstance]; NSError* error = nil; if (audioSession.isInputAvailable) [audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:&error]; if(error){ return; } [audioSession setActive:YES error:&error]; if(error){ retur; } self.engine = [[[AVAudioEngine alloc] init]

How can I find out what Sampling rates are supported on my tablet?

穿精又带淫゛_ 提交于 2019-11-30 05:32:19
I have an app that works perfectly on a bunch of devices (Xoom, Xyboard, etc) but that fails at this line on the Galaxy 10.1 mrec.setAudioSamplingRate(44100); When I comment this line out, everything works swimmingly. (I'm not sure what rate it uses by default). My guess is that the device doesn't support this particular sample rate, but I'm not seeing anything in the docs for what method of what Object I can look to, to find out what the supported sample rates are. All help appreciated. Yes, Android does not provide an explicit method to check it but there is a work-around with AudioRecord

Android Media Recording: java.lang.RuntimeException: start failed

 ̄綄美尐妖づ 提交于 2019-11-30 04:16:28
问题 I am working on records a phone calls. When i start a record a phone call then it's unfortunately stop. & it's gives error MediaRecorder start fail -2147483648 . I refer this answer link. But i don't understand. Please tell me what is the problem in my code? Here is my Code. public class IncomingCall extends BroadcastReceiver { Context pcontext; private static MediaRecorder recorder; private boolean recordedStart = false; @SuppressWarnings("unchecked") public void onReceive(Context context,

Java - Broadcast voice over Java sockets

£可爱£侵袭症+ 提交于 2019-11-30 04:05:29
I have created a Server app that receives sound from client, i then broadcast this sound which is stored as bytes and send the bytes back to the clients that are connected to the server. now i am only using one client at the moment for testing and the client is receiving the voice back but the sound is stuttering all the time. Could some one please tell me what i am doing wrong? I think i understand some part of why the sound isn't playing smoothly but don't understand how to fix the problem. the code is bellow. The Client: The part that sends the voice to server public void captureAudio() {

WARNING: File.mkdir() is ignored

江枫思渺然 提交于 2019-11-30 02:50:30
问题 I've created a basic Audio Recording App using Media Recorder API's. I'm trying to create a folder in the SD card and to save my recorded files to that folder. I'm getting this warning with following code. File.mkdir() is ignored // Assign random number to avoid audio file from overwriting Long tsLong = System.currentTimeMillis()/1000; // Specify a Location for the recorded file to be stored in the SD card mFileName = Environment.getExternalStorageDirectory().getAbsolutePath() + "