microphone

Record audio on Android with MediaPlayer as source?

这一生的挚爱 提交于 2019-12-17 19:39:03
问题 On Android, you can record audio from the microphone using the MediaRecorder class: MediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); I want to record some parts of audio being played by a MediaPlayer instance instead (or some other audio playback device). Is that possible? How would I set a custom audio source? To summarize; how do I stream audio into the MediaRecorder from an arbitrary audio source? 回答1: I don't think there is an API for that for now. Though it IS possible, you

HTML5 & getUserMedia - Record Audio & Save to Web Server after Certain Time

跟風遠走 提交于 2019-12-17 18:05:13
问题 I'm having some difficulties with getUserMedia with HTML5 whilst developing my web page. This is the first time I've tried to implement this to record a users audio input. Flash is not an option for this project as it has to be used on mobile devices too. I come here to see if anyone has experience with and knows how to implement an HTML5 with getUserMedia to record a users microphone for a certain amount of time (done with a session in PHP) and then saves and sends the audio file to a web

iOS check if application has access to microphone

百般思念 提交于 2019-12-17 17:55:15
问题 With the introduction of iOS 7, applications have to request microphone access when they want to record audio. How do I check if the application has access to the microphone? In the iOS 8 SDK I can use the AVAudioSessionRecordPermission enum, but how do I check this in iOS 7? Info: I don't want to request permission, I just want to check if the app has access to the microphone. (Like Location access): if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) { // Do

How does setMicrophoneMute() work?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 10:27:25
问题 I have been trying to use Android's AudioManager.setMicrophoneMute() without much success. That is, it simply refuses to mute the microphone, no matter what I do. I searched the web for some clues and I found several references reporting similar experience: AudioManger.setMicrophoneMute functionality not working?? setMicrophoneMute(boolean) doesn't work on some devices Unable to mute the microphone in Android Which begs the question: Does AudioManager.setMicrophoneMute() work at all? Is it

How does setMicrophoneMute() work?

こ雲淡風輕ζ 提交于 2019-12-17 10:27:18
问题 I have been trying to use Android's AudioManager.setMicrophoneMute() without much success. That is, it simply refuses to mute the microphone, no matter what I do. I searched the web for some clues and I found several references reporting similar experience: AudioManger.setMicrophoneMute functionality not working?? setMicrophoneMute(boolean) doesn't work on some devices Unable to mute the microphone in Android Which begs the question: Does AudioManager.setMicrophoneMute() work at all? Is it

How to addTrack in MediaStream in WebRTC

断了今生、忘了曾经 提交于 2019-12-17 06:53:47
问题 I'm using webrtc to communicate between to peers. I wan't to add new track to old generated stream, as I wan't to give functionality to users to switch their microphones during audio communications. The code I'm using is, Let "pc" be the peerConnection object through which audio communication takes place & "newStream" be the new generated MediaStream got from getUserMedia function with new selected microphone device. var localStreams = pc.getLocalStreams()[0]; localStreams.removeTrack

Detect tap with pyaudio from live mic

99封情书 提交于 2019-12-17 04:46:08
问题 How would I use pyaudio to detect a sudden tapping noise from a live microphone? 回答1: One way I've done it: read a block of samples at a time, say 0.05 seconds worth compute the RMS amplitude of the block (square root of the average of the squares of the individual samples) if the block's RMS amplitude is greater than a threshold, it's a "noisy block" else it's a "quiet block" a sudden tap would be a quiet block followed by a small number of noisy blocks followed by a quiet block if you never

How to detect a blow in the microphone with Unity and IOS

梦想的初衷 提交于 2019-12-13 11:51:26
问题 I'm aware that there are several threads with the same problem, but i haven't been able to make their solution work. I ended up creating this class: MicroController.h #import Foundation/Foundation.h> #import <AVFoundation/AVFoundation.h> #import <CoreAudio/CoreAudioTypes.h> #import <UIKit/UIKit.h> @interface MicroController : UIView < UITextFieldDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, AVAudioSessionDelegate > { AVAudioRecorder *recorder; NSTimer *levelTimer;

Set microphone volume in C#

你。 提交于 2019-12-12 17:32:22
问题 Is there a way to set the microphone volume in C# (normally done in control panel -> audio -> advanced, go to recording, and then dragging the slider)? I only want to set it to maximum, if that makes it any easier. Thanks! 回答1: I don't think there's a managed way to do this. I would look into the winmm dll. Here is a link to the available methods. Also, here's an example from CodeProject for how it could be used. 来源: https://stackoverflow.com/questions/848469/set-microphone-volume-in-c-sharp

WebRTC: allow Chrome to access microphone via Chrome Extension

▼魔方 西西 提交于 2019-12-12 14:20:21
问题 I am new to WebRTC and playing a bit with it. But everytime I reload the page to see latest changes in the code I have to allow Chrome to access my microphone. Now I have heard that it is possible to write an extension (app) to give this special site (right now localhost) the permission to always access the microphone. Other sites which will use the mic are not included in this extension. Does anybody know if this is possible and maybe how to do that? Thanks so far 回答1: It's not possible