audio-recording

How can I record AMR audio format on the iPhone?

前提是你 提交于 2019-11-28 07:39:09
A voice recorder doesn't need uncompressed Linear PCM audio. Compressed AMR would do fine. The iPhone framework built for recording audio is simple enough, but the only examples I've found for setting up the audio format (which come from Apple) use LinearPCM. I've tried various other combinations of values, but can't seem to get anything to work. Does anybody have any code that actually records AMR ? Edit: The AMR format is one of the options for setting the data type, but the other options (packet size, frame size, etc.) don't seem to match up no matter what I set them to. Edit: Here's what I

How to record voice in “wav” format in Android [closed]

会有一股神秘感。 提交于 2019-11-28 06:37:54
I have written a piece of code in Android that encodes audio in "3gpp" format, but I need to encode to "wav". I referred some forums and Android developer sites, they say Android does not support "wav" format. How do I accomplish this? 来源: https://stackoverflow.com/questions/4871149/how-to-record-voice-in-wav-format-in-android

How do I record audio with C#/WPF?

爱⌒轻易说出口 提交于 2019-11-28 06:07:15
I have an application to which I want to add the ability to import small audio snippets directly from a microphone device of some sort. I already allow importing of pictures and this works okay with disk files and cameras since cameras magically become disk devices when you attach them so a file import method works for both. Audio however is slightly different. I've already allowed for importing audio files off the disk but I want to add the capability to directly record from a microphone to a disk file or in-memory buffer. Does C#/WPF provide an easy way to do this? What's a good way to add

How to record sound produced by mixer unit output (iOS Core Audio & Audio Graph)

て烟熏妆下的殇ゞ 提交于 2019-11-28 04:12:00
I'm trying to record sound produced by a mixer unit output. For the moment, my code is based on the apple MixerHost iOS app demo : A mixer node is connected to a remote IO node on the audio graphe. And i try to set an input callback on the remote IO node input on the mixer output. I do something wrong but I can not find the error. Here is the code below. This is done just after the Multichannel Mixer unit Setup : UInt32 flag = 1; // Enable IO for playback result = AudioUnitSetProperty(iOUnit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output, 0, // Output bus &flag, sizeof(flag)); if

Calculate decibels

余生长醉 提交于 2019-11-28 04:10:54
I'm recording mic input using the XNA library (I don't think this is really technology specific, but it never hurts). Every time I get a sample I would like to calculate the decibels. I have done many searches on the internet and not found a rock solid example... Here is my attempt at calculating decibels from a sample: double peak = 0; for (var i = 0; i < _buffer.Length; i = i + 2) { var sample = BitConverter.ToInt16(_buffer, i); if (sample > peak) peak = sample; else if (sample < -peak) peak = -sample; } var decibel = (20 * Math.Log10(peak/32768)); If I output the decibel value to the screen

How to record audio on webpage (iOS, Android, PC/Mac) - no flash

馋奶兔 提交于 2019-11-28 03:59:33
I have a requirement to allow a user to record an audio file using their microphone, but it has to work without flash as it needs to work on iOS (mobile safari), Android browser or Chrome, and a modern browser on a PC/Mac. Is there a clean, simple HTML5 method for recording audio and posting to a server? I haven't been able to find anything. You can use the HTML5 WebAudio API . An introduction to audio and video capturing Capture audio & video in HTML5 A good library to record audio with samples Recorder.js A complete and working sample using Recorder.js How to record audio in Chrome with

How do I capture the audio that is being played?

人走茶凉 提交于 2019-11-28 03:59:15
Does anyone know how to programmatically capture the sound that is being played (that is, everything that is coming from the sound card, not the input devices such as a microphone). Assuming that you are talking about Windows, there are essentially three ways to do this. The first is to open the audio device's main output as a recording source. This is only possible when the driver supports it, although most do these days. Common names for the virtual device are "What You Hear" or "Wave Out". You will need to use a suitable API (see WaveIn or DirectSound in MSDN) to do the capturing. The

PCM audio amplitude values?

我的梦境 提交于 2019-11-28 03:58:14
I am starting out with audio recording using my Android smartphone. I successfully saved voice recordings to a PCM file. When I parse the data and print out the signed, 16-bit values, I can create a graph like the one below. However, I do not understand the amplitude values along the y-axis. What exactly are the units for the amplitude values? The values are signed 16-bit, so they must range from -32K to +32K. But what do these values represent? Decibels? If I use 8-bit values, then the values must range from -128 to +128. How would that get mapped to the volume/"loudness" of the 16-bit values

How to request run-time recording permission on Android 6.0?

两盒软妹~` 提交于 2019-11-28 02:17:25
问题 Since Android 6.0, we need to request permissions during app runtime. In my app, i'm using local storage, camera, geolocation and audio recording permissions. So, requesting for local storage, camera and geolocation is ok with that snippet : https://github.com/appcelerator-developer-relations/appc-sample-ti510/blob/master/app/controllers/permissions.js But i've not found how to request for audio recording permission...I actually use titutorial.audiorecorder module for Android and it crashes

Line stereo/2-channel recording

旧巷老猫 提交于 2019-11-28 02:01:39
问题 Are there any Android devices available that support multi-channel (stereo) recording via line-in? With the devices I tested (Nexus 4, HTC Buzz, Motorola Xoom ..), it is possible to set AudioFormat.CHANNEL_IN_STEREO, but I only receive one active channel. Is this a gerneral limitation of Android due to licensing issues or is this depending on the manufacturer/hardware, i.e. there is only one A/D converter for input or some such? Any experiences, thoughts or ideas on this topic? 回答1: Are there