audio-recording

How to save sound with Web Audio API and Tone.js in a browser

穿精又带淫゛_ 提交于 2019-12-25 17:59:05
问题 Using the above mentioned library whats the easiest way to save tunes on a server ? I trying to think of a way to record the sounds in the browser and be able to save them to the server. And would I be able to store them in a Database ? what is the best way to do so , can anyone explain a bit ? 回答1: The easiest method is to use the MediaRecorder API to capture a MediaStream, to which your audio graph is connected to. This will get you a recording, typically in Opus (unless you want Vorbis,

Record sound of a webaudio api's audio context

痞子三分冷 提交于 2019-12-25 07:08:33
问题 I am using web audio api in my project. Is there a way to record the audio data that's being sent to webkitAudioContext.destination? .wav files are playing in my browser, so there should be some way to store that data into a (.wav) file . i know this is possible, but not yet find any solution :( recorder.js can help me, but upto now i found it is only recording the microphone live input, is it possible to record my audio(.wav files) with the help of recorder.js? plz help i am using this

Concatenating Audio Buffers in ObjectiveC

↘锁芯ラ 提交于 2019-12-25 07:04:46
问题 First of all I am new bee on c and objective c I try to fft a buffer of audio and plot the graph of it. I use audio unit callback to get audio buffer. the callback brings 512 frames but after 471 frames it brings 0. (I dont know this is normal or not. It used to bring 471 frames with full of numbers. but now somehow 512 frames with 0 after 471. Please let me know if this is normal) Anyway. I can get the buffer from the callback, apply fft and draw it . this works perfect. and here is the

Two Audio Files Merged in one file, and save in the disk

吃可爱长大的小学妹 提交于 2019-12-25 03:09:05
问题 I'm trying to develop a basic program for editing audio and I'm having the following problem. I would pick two songs - separate files, no matter the format - and joining them into one. In this case, do a merge of these two files. Where would a responsible and sound with the lowest and one with the loudest sound in the foreground. Would still need to merge these two files, the final song to be saved to disk. Does anyone know help me, recommending any library could, code, or article? Thanks.

Video and audio mixer with audio recording capability using nodejs

孤人 提交于 2019-12-24 18:53:32
问题 How can I make a video and audio mixer with audio recording capability using nodejs. Also I want an editable waveform graph of audio. Is there any supporting package in nodejs? 回答1: Unless you are lucky enough to find a package that does exactly what you want, I suspect that using ffmpeg through a nodes wrapper of interface library such as the one below will be the easiest approach: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg This allows you use all the power and large user community

How can I modify the SpeakHere sample app to record in mono format on iPhone?

故事扮演 提交于 2019-12-24 17:15:12
问题 I am new to iPhone. Could you please help me to modify the SpeakHere app from Apple to record in mono format. What should I have to set for mChannelsPerFrame and what else should I set? I already change some part for record on linearPCM WAVE format. Here is link to speakHere. Here is what I think they allow me to change but I don't quite understand on sound: void ChangeNumberChannels(UInt32 nChannels, bool interleaved) // alter an existing format { Assert(IsPCM(), "ChangeNumberChannels only

MediaRecorder invalid state 16

假装没事ソ 提交于 2019-12-24 12:56:35
问题 I'm trying to record audio and save to the sdcard. I'm getting an invalid state exception. I've added the correct permissions eg record_audio and write_external_storage. I've prepared the MediaRecorder before calling start(). Why am i getting this exception. Thanks in advance. public void recordAudio() { audioFilePath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/myaudio.3gp"; try { mediaRecorder = new MediaRecorder(); mediaRecorder.setAudioSource(MediaRecorder.AudioSource

Java: Independently Capturing Audio From 2 Different Mic Inputs

我怕爱的太早我们不能终老 提交于 2019-12-24 11:37:33
问题 I am running a study where two participants will each wear a different microphone while discussing multiple topics. I need to be able to analyze each participant's audio input in Java — capturing two audio input streams independently . I cannot combine both input streams for analysis. Does anyone know if I can do this in Java, and how? I have come across this, which states "Commonly, only one input port can be open at a time, but an audio-input mixer that mixes audio from multiple ports is

AVCaptureSession with BluetoothHFP device

随声附和 提交于 2019-12-24 11:13:03
问题 I need to stream the voice data to server, so I can't use AVAudioRecorder. Here is my approach. set it Allow Bluetooth and activate it NSError* e; AVAudioSession* audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory:AVAudioSessionCategoryRecord withOptions:AVAudioSessionCategoryOptionAllowBluetooth error:nil]; [audioSession setActive:YES withOptions:0 error:&e]; I did setup the notification for AVAudioSessionRouteChangeNotification so I see the input source changed to

How to record audio in python for undetermined duration AND allow for pause and resume features?

吃可爱长大的小学妹 提交于 2019-12-24 09:59:49
问题 I'm writing a Python app to record audio as a WAV file until a user presses pause or stop . After pausing the audio, the user should also be able to resume recording. Additionally: The app can't know how long the recording will be beforehand The app should avoid running out of memory (since the recording could be very long). For example, it could write to the WAV file in real-time to prevent storing the growing recording in memory. What's a good approach for this problem? Can you please