audio-recording

audio capture in metro apps

不打扰是莪最后的温柔 提交于 2019-12-07 08:47:36
问题 I need to perform low-level audio capture in my Windows 8 Metro-style app. I guess I need to use the IAudioClient interface, but how to get that interface? Microsoft says "A client obtains a reference to an IAudioClient interface for an audio endpoint device by using one of the techniques described in IMMDevice Interface.." http://msdn.microsoft.com/en-us/library/windows/desktop/dd370865(v=vs.85).aspx but IMMDevice interface is not supported for Metro-style apps. How does one get an

Speech recognition for recorded audio files in .3gp or wav format [duplicate]

℡╲_俬逩灬. 提交于 2019-12-07 02:56:27
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Voice recognition on android with recorded sound clip? I am developing an Android app which will record audio to a file, and then use speech recognition to get text from the recorded speech. Is there a speech recognition library available for this sort of task? How can I get started? 回答1: Get start with this tutorial where you can learn speech to text conversion in Android with it's speech API Also see: Speech

Android: No such file or directory found error?

泄露秘密 提交于 2019-12-07 02:16:26
I'm playing and recording an audio simultaneously in order to perform audio matching analysis using musicg API. I'm getting the following error/s everytime I run my app: V/playRecordAudio: Playing sound & recording stopped W/System.err: java.io.FileNotFoundException: /storage/emulated/0: open failed: EISDIR (Is a directory) W/System.err: at libcore.io.IoBridge.open(IoBridge.java:452) W/System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:87) W/System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:127) W/System.err: at java.io.FileOutputStream.<init>

How can I obtain the native (hardware-supported) audio sampling rates in order to avoid internal sample rate conversion?

丶灬走出姿态 提交于 2019-12-07 01:24:13
问题 Can anybody point me to documentation stating the native sampling rates on the different iPhone versions in order to avoid core-audio internal sampling rate conversion? Edit: Otherwise, can you please point me to a source code example of how can I get those values programmatically? Edit: This Apple document (page 26) refers to a Canonical audio format, but only makes mention of sample type (PCM) and bit depth (16-bit). It doesn't mention any native sampling rates supported directly by the

From naudio.Wave.WaveIn to Stream ?

微笑、不失礼 提交于 2019-12-06 16:28:05
问题 I copied this code and i don't understand it but i know what it does when it's finished (output -- sourceStream) ... NAudio.Wave.WaveIn sourceStream = null; NAudio.Wave.DirectSoundOut waveOut = null; NAudio.Wave.WaveFileWriter waveWriter = null; sourceStream = new NAudio.Wave.WaveIn(); sourceStream.DeviceNumber = 2; sourceStream.WaveFormat = new NAudio.Wave.WaveFormat(16000, NAudio.Wave.WaveIn.GetCapabilities(2).Channels); NAudio.Wave.WaveInProvider waveIn = new NAudio.Wave.WaveInProvider

Downsample the audio from buffer inputs from 48000 to 16000

江枫思渺然 提交于 2019-12-06 15:03:58
I have the recorder.js which will record the audio and takes buffer inputs but I want to downsample the audio buffers but I am lot confused where to call it though I have written it. Please check my function and if possible please suggest where to call it. import InlineWorker from 'inline-worker'; export class Recorder { config = { bufferLen: 4096, numChannels: 2, mimeType: 'audio/mp3' }; recording = false; callbacks = { getBuffer: [], exportWAV: [] }; constructor(source, cfg) { Object.assign(this.config, cfg); this.context = source.context; this.node = (this.context.createScriptProcessor ||

Record audio streaming with Ruby (on Rails)

我是研究僧i 提交于 2019-12-06 14:58:04
问题 I need to record some radio programs and make them available for later listening. I have looked into the Shoutcast API for getting the audio streams resources, but don't have a clue how to record an audio broadcast and save it in an audio file . I'm looking for any Ruby libraries, or even some information on how to get started. 回答1: You can save the stream in a file, for example : require 'net/http' require 'uri' url = URI.parse('http://your.stream.domain.com/') Net::HTTP.start(url.host, url

How can I capture audio input from 2 mics of my android phone real time and simultaneously

ぐ巨炮叔叔 提交于 2019-12-06 13:55:33
问题 I have a requirement where I need audio from both the mics on my android phone simultaneously in order to do some signal processing using Eclipse. Do you think it is possible to do this? Also can you suggest a method to start recording for both mics realtime simultaneously? For two instances of class AudioRecord, if I pass audio source as MIC and CAMCORDER respectively, will I be able to capture two separate mic inputs simultaneously? I am not sure if the mics will work in parallel, and also

Method captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection only called a few times

为君一笑 提交于 2019-12-06 13:37:49
I'm capturing audio from external bluetooth microphone. But I can't record anything. This method is only called one time, at the beginning of the current AvCaptureSession. - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection After that I never get called this method for process the audio. For instantiate the capture session I do this: self.captureSession.usesApplicationAudioSession = true; self.captureSession.automaticallyConfiguresApplicationAudioSession = true; [[AVAudioSession

Incoming voice not getting recorded in Samsung S7, S8 and Gionee A1

北城以北 提交于 2019-12-06 12:02:45
I am using this link to record voice when there is any incoming call. Link Url this approach works fine with all device except when i run this code on Samsung S7 , S8 and Gionee A1 The voice of the other side is not getting recorded. Please use this code below to achieve this it works well on all devices. import java.io.File; import java.io.IOException; import java.lang.Exception; import java.util.Date; import java.text.SimpleDateFormat; import android.os.IBinder; import android.app.Service; import android.app.Notification; import android.app.NotificationManager; import android.app