audio-recording

Is it possible to capture the rendering audio session from another process?

北城以北 提交于 2019-11-28 01:42:00
I am taking my first dives in to the WASAPI system of windows and I do not know if what I want is even possible with the windows API. I am attempting to write program that will record the sound from various programs and break each in to a separate recorded track/audio file. From the reseacrch I have done I know the unit I need to record is the various audio sessions being rendered to a endpoint, and the normal way of recording is by taking the render endpoint and performing a loopback. However from what I have read so far in the MSDN the only interaction with sessions I can do is through

How to record and playback with NAudio using AsioOut

十年热恋 提交于 2019-11-28 00:36:43
I'm trying to get the sound input and send output directly with less latency possible with C#. I'm using the library NAudio that supports ASIO for better latency. In particular, I use the AsioOut object for recording and another for playback initialized with a BufferedWaveProvider , which is filled in a Callback function: OnAudioAvailable , which allows me to use the ASIO buffers. The problem is that I hear the sound with various glitches and with a bit of delay . I think the problem is in the function OnAudioAvailable where the buffer is filled with data taken as input from the sound card.

Why is it impossible to use the Speech Recorder on the Android emulator?

狂风中的少年 提交于 2019-11-27 23:33:08
问题 I am trying to run the Speech Recorder that comes with the Android 2.2 emulator. The problem is that the moment I click the "Record" button: It aborts with an error message "The application Speech Recorder (process com.android.speechrecorder) has stopped unexpectedly. Please try again." The problem is that trying again doesn't help. Now, I searched StackOverflow and I combed the entire Internet and I found many reports of the same problem, without any working solution. My conclusion is that,

Audio Recording and Streaming in Android

北城余情 提交于 2019-11-27 22:44:28
问题 I an developing an android app. I want to accomplish below feature. I will use my phone's built-in mic to record and at the same time i want the recorded audio to be played through either phone's speakers or headphones. Is it feasible? If yes, please help me in this. 回答1: Here is a simple Recording and Playback application. Uses Android AudioRecord and AudioTrack, Design : The recorded audio is written to a buffer and played back from the same buffer, This mechanism runs in a loop (using

Pause and Resume Audio recording in Android

白昼怎懂夜的黑 提交于 2019-11-27 21:23:49
问题 I am developing an audio recording application in Android 2.3 using MediaRecorder class. I have the following requirement : When an interruption occurs , say during recording a call occurs , pause recording . After the interruption is over and onResume of my recording activity is called , i have to resume recording from the point where it was paused . I could not find any MediaRecorder api to pause and resume recording . Only start() and stop() are available. Apart from recording two separate

iOS: Audio Recording File Format

别等时光非礼了梦想. 提交于 2019-11-27 20:34:37
问题 I am implementing the Audio recording. It works fine with caf & wave format. But the problem is file size is too big. So, can anyone help me for record audio with format which also played in window & file size is little low. The code I tried is below: dirPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); docsDir = [dirPaths objectAtIndex:0]; NSString *soundFilePath = [docsDir stringByAppendingPathComponent:@"sound.wave"]; NSLog(@"%@",soundFilePath);

How avoid automatic gain control with AudioRecord?

谁说胖子不能爱 提交于 2019-11-27 19:09:42
How can I do audio recordings using android.media.AudioRecord without any smartphone-manufacturer-dependent fancy signal processing like automatic gain control (AGC) and/or equalization, noise suppression, echo cancellation, ... just the pure microphone signal? Background MediaRecorder.AudioSource provides nine constants, DEFAULT and MIC initially being there, VOICE_UPLINK , VOICE_DOWNLINK , and VOICE_CALL added in API level 4, CAMCORDER and VOICE_RECOGNITION added in API 7, VOICE_COMMUNICATION added in API 11, REMOTE_SUBMIX added in API 19 but not available to third-party applications. But

Audio Recording and Streaming in Android

亡梦爱人 提交于 2019-11-27 19:07:26
问题 I an developing an android app. I want to accomplish below feature. I will use my phone's built-in mic to record and at the same time i want the recorded audio to be played through either phone's speakers or headphones. Is it feasible? If yes, please help me in this. 回答1: Here is a simple Recording and Playback application. Uses Android AudioRecord and AudioTrack, Design : The recorded audio is written to a buffer and played back from the same buffer, This mechanism runs in a loop (using

How to pause/resume a recording created with mediarecorder?

陌路散爱 提交于 2019-11-27 19:01:48
问题 I'm trying to pause a recording on an incoming call and resume it later. i'm using the andriod mediarecorder and trying to record in MPEG4 . I tried pause/resume with resetting/stopping a recording and starting it with the setOutputFile(fd) , fd being the filedescriptor of the audio file that was stopped/paused and hoped it would append but i had no luck. Is there a way to achieve this or append two recordings or should i give up on mediarecorder . code: private MediaRecorder media_recorder;

Trying to record audio but getting message “mediarecorder went away with unhandled events” and “Fatal signal 11 (SIGSEGV)…”

半城伤御伤魂 提交于 2019-11-27 15:40:51
问题 I am trying to record audio in android but I am facing a problem. I have start and stop buttons, "start" for starting recording and "stop" for stopping recording. The problem is, when I press the stop button then my application logs a message "W/MediaRecorder(635): mediarecorder went away with unhandled events". (Start function is saving the audio file properly.) Then, if I again press start or stop button then I get error message " A/libc(743): Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1