microphone

How to get camera and microphone access in WKWebView cocoa?

纵然是瞬间 提交于 2019-11-28 13:06:18
问题 In my cocoa application I am using WKWebView and everything works fine, but when I try to make an Audio or Video call, it is not happening, as I don't have the permissions for camera and microphone. So, how can I get access to both. I've injected javascript is there any way so that we can allow Microphone and camera by default using script? i've tried allow(tried to resolve the promise) using below code, but still i am unable to access microphone. As this popup will not show in WKWebView so

Record audio on Android with MediaPlayer as source?

▼魔方 西西 提交于 2019-11-28 11:13:47
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? I don't think there is an API for that for now. Though it IS possible, you would have to have access to the device's buffer, down to the kernel/hardware level. Even if you find a way,

Enumerate audio input devices with WMI

怎甘沉沦 提交于 2019-11-28 09:51:51
问题 I am using NAudio in my C# project, and I am looking for a way to enumerate audio input devices (microphone etc.), so i can get full name of them (not only the 31-characters long name that i can get from NAudio). I went through a few posts where people were enumerating audio output devices with WMI: ManagementObjectSearcher objSearcher = new ManagementObjectSearcher( "SELECT * FROM Win32_SoundDevice"); ManagementObjectCollection objCollection = objSearcher.Get(); Is it possible to enumerate

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

妖精的绣舞 提交于 2019-11-28 06:06:50
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 server. If this isn't possible then is there any other way, perhaps with a Java applet? The js: <script>

iOS check if application has access to microphone

為{幸葍}努か 提交于 2019-11-28 05:52:26
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 something } codester In iOS7 there is no way to get the current status of microphone authorization .They have

Choose between built in mic and headset in iOS

别来无恙 提交于 2019-11-28 04:52:19
问题 We are developing an app that needs to change the audio route in iOS. We need to get some information from the mic input and then change to the internal mic of the device to record ambient sound. We have seen 2 topics from these pages: Forcing iPhone Microphone as Audio Input and Use built-in mic if Headset is plugged in but i guess there isn't any final word according to this situation. Now, the code works but we can select the route of the audio input. We haven't found anything in the

How to record audio on webpage (iOS, Android, PC/Mac) - no flash

馋奶兔 提交于 2019-11-28 03:59:33
I have a requirement to allow a user to record an audio file using their microphone, but it has to work without flash as it needs to work on iOS (mobile safari), Android browser or Chrome, and a modern browser on a PC/Mac. Is there a clean, simple HTML5 method for recording audio and posting to a server? I haven't been able to find anything. You can use the HTML5 WebAudio API . An introduction to audio and video capturing Capture audio & video in HTML5 A good library to record audio with samples Recorder.js A complete and working sample using Recorder.js How to record audio in Chrome with

Why is it impossible to use the Speech Recorder on the Android emulator?

狂风中的少年 提交于 2019-11-27 23:33:08
问题 I am trying to run the Speech Recorder that comes with the Android 2.2 emulator. The problem is that the moment I click the "Record" button: It aborts with an error message "The application Speech Recorder (process com.android.speechrecorder) has stopped unexpectedly. Please try again." The problem is that trying again doesn't help. Now, I searched StackOverflow and I combed the entire Internet and I found many reports of the same problem, without any working solution. My conclusion is that,

How to adjust microphone gain from C# (needs to work on XP & W7)

走远了吗. 提交于 2019-11-27 22:22:16
问题 First, note that I know there are a few questions like this already posted; however they don't seem to address the problem adequately. I have a C# application, with all the pInvoke hooks to talk to the waveXXX API, and I'm able to do capture and play back of audio with that. I'm also able to adjust speaker (WaveOut) volume with that API. The problem is that for whatever reason, that API does not allow me to adjust microphone (WaveIn) volume. So, I managed to find some mixer code that I've

Access microphone from a browser - Javascript

浪子不回头ぞ 提交于 2019-11-27 18:31:37
Is it possible to access the microphone (built-in or auxiliary) from a browser using client-side JavaScript? Ideally, it would store the recorded audio in the browser. Thanks! Here we capture microphone audio as a Web Audio API event loop buffer using getUserMedia() - time domain and frequency domain snippets of each audio event loop buffer is printed (viewable in browser console just hit key F12 or ctrl+shift+i ) <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>capture microphone audio into buffer</title> <script type="text/javascript"> var webaudio