audio-recording

How to play an audio if we pass NSData?

此生再无相见时 提交于 2019-12-01 05:16:46
I converted this path (file://localhost/var/mobile/Applications/8F81BA4C-7C6F-4496-BDA7-30C45478D758/Documents/sound.wav) which is an audio file i.e, recorded. I am converting this path to NSData. NSData is : Example : <00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 64617461 1cf50200 32003200 e2ffe2ff 3cff3cff 08fe08fe 44fe44fe 04fe04fe e6fde6fd 95fd95fd 96fe96fe b9feb9fe .....................................................................................................

iPhone AVCaptureDeviceInput How to Set Quality of Audio Capture?

橙三吉。 提交于 2019-12-01 01:09:22
The following code is working fine (some checking and code eliminated) at 44100 depth 2 which seems to be the default. Since this interface is usable, but not documented well, anyone know of how to change the default quality? audioCaptureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeAudio]; captureSession = [[AVCaptureSession alloc] init]; audioInput = [AVCaptureDeviceInput deviceInputWithDevice:audioCaptureDevice error:&error]; [captureSession addInput:audioInput]; audioOutput = [[AVCaptureAudioDataOutput alloc] init]; [audioOutput setSampleBufferDelegate:self queue:dispatch

ImportError No module named pyaudio

走远了吗. 提交于 2019-11-30 23:05:54
I am writing a program in Python on RaspberryPi, But I am getting an error ImportError No module named pyaudio After that I tried git clone http://people.csail.mit.edu/hubert/git/pyaudio.git but again get another fatal: destination path 'pyaudio' already exists and is not an empty directory. Can you please guide me that how do I install PyAudio in RaspberryPi Remove the directory PyAudio which already presen in /home/pi and then try these steps sudo apt-get install git sudo git clone http://people.csail.mit.edu/hubert/git/pyaudio.git sudo apt-get install libportaudio0 libportaudio2

ImportError No module named pyaudio

二次信任 提交于 2019-11-30 18:52:17
问题 I am writing a program in Python on RaspberryPi, But I am getting an error ImportError No module named pyaudio After that I tried git clone http://people.csail.mit.edu/hubert/git/pyaudio.git but again get another fatal: destination path 'pyaudio' already exists and is not an empty directory. Can you please guide me that how do I install PyAudio in RaspberryPi 回答1: Remove the directory PyAudio which already presen in /home/pi and then try these steps sudo apt-get install git sudo git clone

WARNING: File.mkdir() is ignored

∥☆過路亽.° 提交于 2019-11-30 18:27:38
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() + "/AudioRecordTest/"; File path = new File(mFileName); if(!path.exists()) { path.mkdir(); } mFileName += "

Simultaneous record audio from mic and play it back with effect in python

天涯浪子 提交于 2019-11-30 15:57:30
My goal is to record my voice through the laptop mic and simultaneously adding an effect to it, in python. What I need is similar to a music effects pedal where you connect a guitar or mic and it adds reverb or echo or distortion, etc. I am using 'pyaudio' and 'wave' to record and play back audio. Using 'scikits.audiolab' to import audio as a array and to be able to edit this array with with functions such as invert, clip, tile, etc. This manipulation of the audio array lets me "add" effects to the original audio. I am having a problem, which isn't really a problem, it's just not the effect I

MediaRecorder class starts recording audio after slight delay

帅比萌擦擦* 提交于 2019-11-30 14:26:21
问题 I am having an issue with the MediaRecorder class. When I call the start() method, the recorder starts recording(audio) but after some delay (The delay is quite noticeable - approximately 1 second). I have seen this happening on Android 2.3 devices, specifically Samsung Nexus S. This issue does not appear on Android 1.6 (G1) or any version of Android emulators. Could you please confirm if you are seeing this issue and if there exists a solution for the same? Is this a documented bug? 回答1:

Can anyone suggest how to record audio from microphone on a website using html5 and javascript

流过昼夜 提交于 2019-11-30 13:54:01
I want to record audio using javascript and html5, there is device element in html5 but i dont know to use it. Found no examples for the same. No current stable browser supports the Stream API (formally known as <device> ), so in practical terms — you can't. The lack of examples using it is a consequence of this. If you want to play with it, you have to use development branches of Chrome. There is a demo of voice input here . currently, there are three ways to do it as wav all code client-side, uncompressed recording], you can check out --> http://github.com/mattdiamond/Recorderjs as mp3 [ all

How does Google Keep do Speech Recognition while saving the audio recording at the same time?

倖福魔咒の 提交于 2019-11-30 13:05:21
Android's SpeechRecognizer apparently doesn't allow to record the input on which you're doing speech recognition into an audio file. That is, either you record voice using a MediaRecorder (or AudioRecord for that matter) or you do Speech Recognition with a SpeechRecognizer, in which case the audio isn't recorded into a file (at least not one you can access); but you can't do both at the same time. The question of how to achieve recording audio and doing speech recognition at the same time in Android has been asked several times, and the most popular "solution" is to record a flac file and use

Android : recording audio using audiorecord class play as fast forwarded

[亡魂溺海] 提交于 2019-11-30 10:32:31
I am trying to record a audio & stores into a sdcard as well as send to server. When I am trying to play recorded voice its playing,but not as I have recorded. If I record voice for 10mins it ll play for 4min i.e someone has pressed fast forward button with some noisy sound. I am not getting where I am going wrong. Can anybody say me how to solve this problem (should play how much i have recorded i.e 10min recorded then should play only 10mins). Here is the code.. sorry for posting bulk code.. public class Audio_Call extends Activity { private static final int RECORDER_BPP = 16; private static