audio-recording

MediaRecorder.ondataavailable - data size is always 0

做~自己de王妃 提交于 2019-12-01 10:47:50
问题 I'm trying to record a user's voice in the browser using Web API Media Recorder. At this stage, all I'm trying to do with the audio once recorded is add it to the source of an audio element and play it back. When I stop the recorder, the 'ondataavailable' event is triggered, but the size of the data is 0, and nothing can be played back. Here's where my code is at. I'm using React. Any ideas would be very much appreciated! handleRecording (stream) { const recordedChunks = this.state

Fresh SpeakHere example app has error when recording audio in Simulator/Xcode

南楼画角 提交于 2019-12-01 10:47:25
I can't record audio using the SpeakHere example app from apple. When I run the app in Simulator from within Xcode, it starts up normally, but when I press the record button, the error "Thread 1: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)" occurs: The log message about the missing root view controller at app startup is already there BEFORE the above error occurs and it is probably not connected to my problem. I have downloaded the SpeakHere example project from the linked website (see top of this question), opened the fresh download in Xcode and directly started the app. I did not modify

background audio recording in iOS

我怕爱的太早我们不能终老 提交于 2019-12-01 10:13:11
问题 I have searched far and wide for documentation on how to record audio in the background and have come to the conclusion that specifying 'audio' in the plist file might work. But, because iOS 4 will terminate background apps when it runs low on memory, we must also take some steps to reduce our memory usage when we transition to the background. How do we reduce our memory usage? Also, does anybody know a sure shot way of recording audio in the background on iOS?? I unchecked the box in the

How to write file to external storage using superpowered SDK in android?

巧了我就是萌 提交于 2019-12-01 08:27:07
While implementing a project using superpowered for Android audio effects like flunge, echo, reverb etc I am able to make recording through native and write file in external storage, then using superpowered crossfader example I open that file and apply effects on it that works fine. Now I need to write the output file in external storage with applied effects but don't know how to do this. There are iOS examples for this like SuperpoweredOfflineProcessingExample , but I didn't find its solution for Android file. Any help will be highly appreciated to make audio output wav file with effects. I

Record AVAudioPlayer output using AVAudioRecorder

强颜欢笑 提交于 2019-12-01 08:14:42
In my app the user plays a sound by pressing a button. There are several buttons which can be played simultaneously. The sounds are played using AVAudioPlayer instances. I want to record the output of these instances using AVAudioRecorder. I have set it all up and a file is created and records but when I play it back it does not play any sound. It is just a silent file the length of the recording. Does anyone know if there is a setting I am missing with AVAudioPlayer or AVAudioRecorder? Thanks It is not possible to record AVAudioPlayer output as input to AVAudioRecorder for recording. You can

Measure speaker volume by recording playing sound with microphone

给你一囗甜甜゛ 提交于 2019-12-01 07:28:44
问题 I want to measure a system's speaker volume by playing a sound and listening for it on a local microphone at the same time. This is for a specific application. The exact recorded sound is not as important as differentiating between the microphone volume recorded before the sound is played and while it is playing. The idea is to warn the user if speakers are turned off or too low. How can I record a sound while playing it and determine a difference in volume? Are there are any managed

Record AVAudioPlayer output using AVAudioRecorder

会有一股神秘感。 提交于 2019-12-01 07:21:11
问题 In my app the user plays a sound by pressing a button. There are several buttons which can be played simultaneously. The sounds are played using AVAudioPlayer instances. I want to record the output of these instances using AVAudioRecorder. I have set it all up and a file is created and records but when I play it back it does not play any sound. It is just a silent file the length of the recording. Does anyone know if there is a setting I am missing with AVAudioPlayer or AVAudioRecorder?

internal audio recording program [closed]

吃可爱长大的小学妹 提交于 2019-12-01 06:46:14
NOTE: This isn't something that would use a mic. I want to INTERNALLY record audio. I would like to write a program in C# or Java that records audio data sent to the speakers in my computer. The end product would allow the user to hit a "record" button, and anything being played at the moment would be recorded internally until the user hits the "stop" button, at which point all data collected is saved to an audio file like a wav, mp3, etc. I have a MacBook Pro that runs Windows 7 in parallel. I have access to several PCs, so I also can work on a pure Windows platform. Ideally it wouldn't

How to write file to external storage using superpowered SDK in android?

不想你离开。 提交于 2019-12-01 06:22:22
问题 While implementing a project using superpowered for Android audio effects like flunge, echo, reverb etc I am able to make recording through native and write file in external storage, then using superpowered crossfader example I open that file and apply effects on it that works fine. Now I need to write the output file in external storage with applied effects but don't know how to do this. There are iOS examples for this like SuperpoweredOfflineProcessingExample, but I didn't find its solution

Record/capture internal sound playback of Android app and export mp3?

守給你的承諾、 提交于 2019-12-01 05:50:34
Is it possible to record the internal sound generated by the app? My app allows you to create and play back musical sequences. soundPool.play(soundIds[i], 1f, 1f, 1, 0, Constants.TIME_RATE); I'd like to be able to record the sequence and export to mp3. I've looked into Audio Capture but setAudioSource (int audio_source) only seems to accept MIC recording. Thanks No, there's no API for getting the audio output, even for your own app (actually that's not entirely true, because you can get it through the Visualizer API, but it would be of such low quality that I doubt it would be of any use for