audio-recording

UIImpactFeedbackGenerator Not Working When Audio Device Added to AVCaptureSession

怎甘沉沦 提交于 2020-12-29 03:01:06
问题 Adding microphone audio input to AVCaptureSession seems to disable UIImpactFeedbackGenerator . let audioDevice = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeAudio) let audioDeviceInput = try AVCaptureDeviceInput(device: audioDevice) if self.session.canAddInput(audioDeviceInput) { self.session.addInput(audioDeviceInput) } Once the audio device is removed, feedback resumes. Is this normal behavior? Is there a way around this? I notice stock iOS Camera app in video mode and long

Android - mute microphone while recording video

一个人想着一个人 提交于 2020-08-02 06:33:29
问题 I'm recording a video with the camera, using the MediaRecorder class, after following a tutorial similiar to this http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1375&recipeFrom=ViewTOC And I want while recording, to be able to mute / unmute the microphone. How's that possible? I'm setting the audio source at start mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); But

Android - mute microphone while recording video

可紊 提交于 2020-08-02 06:33:05
问题 I'm recording a video with the camera, using the MediaRecorder class, after following a tutorial similiar to this http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1375&recipeFrom=ViewTOC And I want while recording, to be able to mute / unmute the microphone. How's that possible? I'm setting the audio source at start mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); But

MediaDevices.getUserMedia() How can I set audio constraints (sampling rate/bit depth)?

我们两清 提交于 2020-06-28 06:01:40
问题 With browser Web API, I'd like to set MediaDevices.getUserMedia constraints attributes, suitable to record audio speech (voice messages), e.g. setting these parameters: mono 16bit 16KHz Here my code: const mediaStreamConstraints = { audio: { channelCount: 1, sampleRate: 16000, sampleSize: 16, volume: 1 }, video: false } navigator.mediaDevices.getUserMedia(mediaStreamConstraints) .catch( err => serverlog(`ERROR mediaDevices.getUserMedia: ${err}`) ) .then( stream => { // audio recorded as Blob

Error when installing a tap on audio engine input node

这一生的挚爱 提交于 2020-05-13 19:20:40
问题 whenever the code reaches inputNode.installTap(onBus: 0, bufferSize: 1024, format: recordingFormat) {[weak self] (buffer:AVAudioPCMBuffer, when:AVAudioTime) , app is crashing with following error Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: format.sampleRate == hwFormat.sampleRate' I tired removing taps before adding another and I'm making sure I'm not adding more than one tap. what is weird is that the app is working fine

Error when installing a tap on audio engine input node

走远了吗. 提交于 2020-05-13 19:18:05
问题 whenever the code reaches inputNode.installTap(onBus: 0, bufferSize: 1024, format: recordingFormat) {[weak self] (buffer:AVAudioPCMBuffer, when:AVAudioTime) , app is crashing with following error Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: format.sampleRate == hwFormat.sampleRate' I tired removing taps before adding another and I'm making sure I'm not adding more than one tap. what is weird is that the app is working fine

saving .wav files without showdialog in C#

浪子不回头ぞ 提交于 2020-04-30 08:27:55
问题 Problem: I don't want the user to decide which location the recorded WAV file should be saved,the wav file should save in c:\ . for example when button 2 is clicked the wav file saves to "c:\" . I hope you guys can help me. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; //voice recorder namespace recorder { public

saving .wav files without showdialog in C#

人走茶凉 提交于 2020-04-30 08:23:42
问题 Problem: I don't want the user to decide which location the recorded WAV file should be saved,the wav file should save in c:\ . for example when button 2 is clicked the wav file saves to "c:\" . I hope you guys can help me. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; //voice recorder namespace recorder { public