microphone

Python Speech Recognition: 'module' object has no attribute 'microphone'

与世无争的帅哥 提交于 2019-12-21 04:50:44
问题 Running the following code on a macbook air 64 bit, testing the code on python 2.7 and python 3.4 import speech_recognition as sr r = sr.Recognizer() with sr.microphone() as source: audio = r.listen(source) try: print("You said " + r.recognize(audio)) except LookupError: print("Could not understand audio") When i try python 2.7, I keep getting the error of : Traceback (most recent call last): File "star.py", line 3, in <module> with sr.microphone() as source: AttributeError: 'module' object

How to detect blow in android device microphone

我怕爱的太早我们不能终老 提交于 2019-12-21 04:49:22
问题 How can I detect when the user blows into the device microphone? This would then be used to trigger some action by the app. 回答1: The job of detecting when a user blows into the microphone is separable into two parts: (1) taking input from the microphone and (2) listening for a blowing sound. The noise/sound of someone blowing into the mic is made up of low-frequency sounds. We’ll use a low pass filter to reduce the high frequency sounds coming in on the mic; when the level of the filtered

Voice Recording/Saving in Delphi

泪湿孤枕 提交于 2019-12-20 15:29:51
问题 Is there a component or code that allows the following: Record a spoken word (or words) and save it/them to a file that can be played back. The file must be able to be played back on XP, Vista and Windows 7. The file can be either stand alone or saved to a datasource. [Using Delphi 7 for creating apps on XP and using Absolute Database.] 回答1: The functions in MMSystem.pas let you do this using Windows API. You can either use high-level functions such as the MCI functions and PlaySound, or low

Access webcam and microphone input in VB.net

余生颓废 提交于 2019-12-20 06:13:43
问题 How can you access the webcam and microphone in VB.net, assuming the user even has one? I fail to see a My.Computer.Webcam or My.Computer.Microphone, both of which would probably have been a nice addition. Thanks for the help! If there is no easy method for doing this, what is the name of the driver that handles this and what methods should I use to make this work? 回答1: Cyclone, you can use DirectShow .Net Library to access the webcam and microphone here a example Webcam using DirectShow.NET

How to detect user giving microphone permission on iOS?

╄→гoц情女王★ 提交于 2019-12-19 06:50:08
问题 So the thing is that I need to call some function after user gives (or declines) a permission to use the microphone. I already saw this: [[AVAudioSession sharedInstance] requestRecordPermission:^(BOOL granted) { if (granted) { // Microphone enabled code [self someFunction]; } else { // Microphone disabled code } }]; However, this works only to detect current state. If the current state is "no" and popup shows and user gives the permission - the function will not be called. That's because in

How can I record 2 microphone in Android simultaneously?

半城伤御伤魂 提交于 2019-12-18 10:56:41
问题 I'm trying to record audio signals from 2 in-built microphone(bottom, top) at the same time. I can pick up bottom microphone signal using MediaRecorder.AudioSource.MIC and top microphone signal using MediaRecorder.AudioSource.CAMCORDER I can record separately but I want to record at the same time from 2 microphones. Does anyone know how to record simultaneously? I tried & or | operator but I can get only 1 channel signal. I use Galaxy S2 device. I will appreciate any response :) Thanks in

How do you enable a microphone input in the android emulator

痴心易碎 提交于 2019-12-18 07:29:21
问题 I have been on a rough ride trying to do something using the Speech recognition on an android emulator. Having finally installed the market place and the Google Voice Search app - I am so close to enabling my emulator to do what I want - recognize my speech. First I need to enable the emulator to record audio , or at least think that a microphone is present. I believe adb used to have the -mic option - however I dont think it exists anymore. Has anyone done this or can anyone shed some light

How do you enable a microphone input in the android emulator

孤街醉人 提交于 2019-12-18 07:29:09
问题 I have been on a rough ride trying to do something using the Speech recognition on an android emulator. Having finally installed the market place and the Google Voice Search app - I am so close to enabling my emulator to do what I want - recognize my speech. First I need to enable the emulator to record audio , or at least think that a microphone is present. I believe adb used to have the -mic option - however I dont think it exists anymore. Has anyone done this or can anyone shed some light

Record audio to NSData

北慕城南 提交于 2019-12-18 03:44:25
问题 I have set up a TCP connection between two iPhones and I am able to send NSData packages between the two. I would like to talk into the microphone and get the recording as an NSData object and send this to the other iPhone. I have successfulyl used Audio Queue Services to record audio and play it but I have not managed to get the recording as NSData. I posted a question about converting the recording to NSData when using Audio Queue Services but it has not got me any further. Therefore I

Linux pipe audio file to microphone input

假装没事ソ 提交于 2019-12-18 01:14:08
问题 I'm looking for a way to feed audio data from a file into the microphone so when 3rd party applications (such as arecord or Chromium's "search by voice" feature) use the microphone for audio input, they receive the audio data from the file instead. Here's my scenario : An application I wrote records audio data from the microphone (using ALSA) and saves it to a file (audioFile0.raw). At some unknown point in time in the future, some unknown 3rd party application (as in, something I did not