recording

Is it possible to record sound played on the sound card?

半城伤御伤魂 提交于 2020-01-19 04:05:20
问题 Is it even remotely possible to record sound that is being played on the sound card? Supposedly, I am playing an audio file, what I need is to redirect the output to the disk. DirectShow or might be feasible. Any help is greatly appreciated, thanks. 回答1: You need to enable audio loopback device, and you will be able to record from in a stadnard way with all the well-known APIs (including DirectShow ). Loopback Recording Enabling "Stereo Mix" in Vista Capturing Window's audio in C# Once

Recording and saving sound from Flash AS3

倖福魔咒の 提交于 2020-01-16 18:46:10
问题 How can I record and save sound in flash AS3. I have writing access to the server and also access to PHP files. Any ideas? 回答1: As far as i know you have to stream the audio from the user to a Flash Media Server or Red5 server and save it there. This is one question i would love to find out i am wrong. 回答2: Record the data locally compress them to mp3 send the bytearray to the server to be saved 回答3: As of FP10 you can save files without the need for a server side. http://cookbooks.adobe.com

Recording and saving sound from Flash AS3

大憨熊 提交于 2020-01-16 18:45:28
问题 How can I record and save sound in flash AS3. I have writing access to the server and also access to PHP files. Any ideas? 回答1: As far as i know you have to stream the audio from the user to a Flash Media Server or Red5 server and save it there. This is one question i would love to find out i am wrong. 回答2: Record the data locally compress them to mp3 send the bytearray to the server to be saved 回答3: As of FP10 you can save files without the need for a server side. http://cookbooks.adobe.com

NullPointerException when recording is stopped android

杀马特。学长 韩版系。学妹 提交于 2020-01-15 06:01:12
问题 I'm trying to make an app that starts recording when a button is clicked, and when is clicked again it stops recording. I don't think I have problems when I'm recording, but when I click the button again the application crashes with NullPointerException and it is said that stop is called in invalid state 1 My code: package com.example.victwo; import java.io.IOException; import android.media.MediaRecorder; public class Audio { private String path; MediaRecorder myAudioRecorder = null; public

NullPointerException when recording is stopped android

允我心安 提交于 2020-01-15 06:00:06
问题 I'm trying to make an app that starts recording when a button is clicked, and when is clicked again it stops recording. I don't think I have problems when I'm recording, but when I click the button again the application crashes with NullPointerException and it is said that stop is called in invalid state 1 My code: package com.example.victwo; import java.io.IOException; import android.media.MediaRecorder; public class Audio { private String path; MediaRecorder myAudioRecorder = null; public

How to record using phone microphone on browsers?

瘦欲@ 提交于 2020-01-07 08:18:38
问题 I am trying to record a voice from browsers but it only works on chrome browser in my mac but the same doesn't work in any other browser. My goal is to record the voice from a phone from a browser. I have been trying this below example but it doesn't works on mobile browsers. It opens up the microphone but doesn't stop recording and never plays it back. I think the problem is somewhere around recorder.stop() which doesn't get called. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">

Enable ring/silent switch with AVAudioSessionCategoryPlayAndRecord

感情迁移 提交于 2020-01-07 04:55:12
问题 How do I make physical ring/silent switch work again when I want to play and record audio at the same time using AVAudioSessionCategoryPlayAndRecord? I just cannot find an answer to that anywhere. 回答1: AVAudioSessionCategoryPlayAndRecord is designed for audio-centric apps, where the purpose of the app is to play music. When this category is set, audio will not be silenced by the mute switch or the screen lock. VOIP apps and music apps desire this behavior. If you want audio to be silenced by

Sending android audio recorded file as an attachment of an email giving error when trying to read file (URI path not absolute)

杀马特。学长 韩版系。学妹 提交于 2020-01-06 15:33:09
问题 I'm saving an audio file using Media recorder and the following code: public class AudioRecorder { final MediaRecorder recorder = new MediaRecorder(); final String path; /** * Creates a new audio recording at the given path */ public AudioRecorder(String path) { this.path = sanitizePath(path); } public static String sanitizePath(String path) { if (!path.startsWith("/")) { path = "/" + path; } if(path.endsWith("/")){ path = path + "/"; } return path; } /** * Starts a new recording. */ public

Unity - Microphone check if silent

本小妞迷上赌 提交于 2020-01-04 09:36:29
问题 We use the standard method of recording audio in Unity: _sendingClip = Microphone.Start(_device, true, 10, 16000); where _sendingClip is the AudioClip and _device is the device name. I'd like to know when the user stops speaking, which can happen after 2 seconds, or even 10. I've looked at different sources to find an answer, but could not find one: https://forum.unity3d.com/threads/check-current-microphone-input-volume.133501/ http://answers.unity3d.com/questions/137170/how-to-check-if-the

MediaMuxer.nativeWriteSampleData always peroidically blocks for about one second during video recording

隐身守侯 提交于 2020-01-02 16:53:24
问题 I am doing android video recording using mediacodec + mediamuxer, and now I can record video and generate mp4 file which can be played. The problem is that I find the recorded video will seize for about one second some time. So I launched traceview and I find MediaMuxer.nativeWriteSampleData() cause the problem. Sometimes this function is very fast and returns within several micro-seconds, but sometimes this function is very slow and will consume about one second or so, and the video blocks