microphone

Flash - prompt user to remember camera and mic settings

早过忘川 提交于 2019-12-10 09:21:47
问题 I request my user from mic and camera setting on my website with Flash, but the remember checkbox does not show, so every time my user logs in he's requested once again for permissions, how can I make the checkbox show to avoid this? 回答1: Call Security.showSettings(SecurityPanel.PRIVACY) before trying to access the camera. Camera Class LiveDocs 回答2: var _mic:Microphone; _mic = Microphone.getMicrophone(<index>); if(_mic.muted){ Security.showSettings(SecurityPanel.PRIVACY); } You can use "muted

Python read microphone

房东的猫 提交于 2019-12-10 04:32:11
问题 I am trying to make python grab data from my microphone, as I want to make a random generator which will use noise from it. So basically I don't want to record the sounds, but rather read it in as a datafile, but realtime. I know that Labview can do this, but I dislike that framework and am trying to get better at python. Any help/tips? 回答1: You may be interested by PyAudio. I think you can get some bytes from the stream. Here is an interesting example 回答2: u can refer speech_recognition

Android: How to detect when a user stops talking into the microphone

杀马特。学长 韩版系。学妹 提交于 2019-12-09 11:22:33
问题 I have an Android application that begins recording from the microphone when the application starts. In my current version, the user must press a STOP button to stop recording. How do I detect that the user has stopped talking and use that to trigger the recorder to stop? Similar to what is implemented in the Speech Recognition functionality in Android. The user stops talking and then the speech is translated. I have seen other apps that do it, like Talking Tom type apps. As a side note I

How to release the microphone resource when another Android app needs it?

一个人想着一个人 提交于 2019-12-09 09:20:37
问题 I have implemented an Android background service (based in Pocket Sphinx) that continuously listens, detects and spots certain keywords when the phone's screen is on, and then reacts accordingly (for a domotic project). However, my app should always have a lower priority and I want it to release the microphone's resources when any other app needs to use it. Is there any system intent or system broadcast that I can receive when an app -wants- to use the microphone (so that my service can

Android: Amplitude value to Decibel value?

杀马特。学长 韩版系。学妹 提交于 2019-12-09 06:44:38
问题 I'm trying to get the decibel of noise being recored from mic on Android phone. I can get amplitude value and looking for the formula to convert it into decibel. I use following function of MediaRecorder to get amplitude. mediaRecorder.getMaxAmplitude() ; In another question I found the following formula. power_db = 20 * log10(amp / amp_ref); amp is amplitude but not sure what's amp_ref . Is there anyone knows the correct formula? 回答1: i think that is the correct formula. amp_ref is reference

Managed access to microphone input and system volume

泄露秘密 提交于 2019-12-09 04:55:18
问题 I am looking to do three things: Access data from the microphone. Really all I want to know is the overall volume of the sound sensed by the device. Set the microphone gain. Set the system volume. All of my windows dev experience is C#/WPF, so I'd like to stay managed. I do not need exceptionally high performance or realtime processing or anything. I've looked around and it seems like SlimDX might be a good wrapper for this, but even there I'm not sure where to start. Surely it can't be that

Is there ANY android emulator that supports microphone input?

假装没事ソ 提交于 2019-12-08 14:32:16
问题 So far I haven't been able to find any solution that would allow me to test voice input via microphone on the android emulator. I have been able to get away during development by limiting my testing to cheap Android phones (sorry, I don't have much money) but now some users complain that my app doesn't work on Android 3 and 4. So, I am desperately looking for an Android emulator (that can run on Windows 7) to help me test my microphone-based app on various Android versions (did I say

Android stereo recording. Exact same data from two different channels

你离开我真会死。 提交于 2019-12-08 13:17:09
问题 I'm trying to do stereo recording from my galaxy nexus phone. By its spec, the phone has 2 microphones build-in. Correct me if I'm wrong, 2 microphones will be used when stereo recording is supported on the device I get no errors initializing and using AudioRecord class to record stereo audio. But the results I'm getting from two audio channels are exactly the same. Has anyone encountered the same problem before? Any ideas? Thank you. The following code snippet is what I'm using for stereo

Android: record decibel from microphone

荒凉一梦 提交于 2019-12-08 12:22:55
问题 i've got problem on implementing this functionality in Android... i need only to output the decibel redorded from the microphone, and it's a thing that i can't understand: public class Noise extends Activity{ @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); MediaRecorder recorder=new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); Timer timer=new Timer(); timer.scheduleAtFixedRate(new RecorderTask(recorder), 0, 500); }

JavaFX support for microphone audio capture

怎甘沉沦 提交于 2019-12-08 07:51:42
问题 I am evaluating JavaFX for a project at work, but it appears that the platform does not support capturing audio using a microphone. I was under the impression that with JavaFX, one had access to "all of Java". If you can record using a microphone and an applet, why can't the same be accomplished using JavaFX? Are there workarounds to this limitation? Thanks. 回答1: There's no limitation - you are right in saying that it has access to "all of Java". Assuming that there is a microphone / sound