speech-recognition

OSError: No Default Input Device Available

眉间皱痕 提交于 2020-01-04 04:36:13
问题 I am trying speech recognition with SpeechRecognition package in python and facing problem when trying to work with microphone. I tested Microphone of my earphones , it is working fine and is being detected by my computer but my script is throwing error as if there is no mic connected. When I run the following script after installing pyAudio $python -m speech_recognition I get following error: Traceback (most recent call last): File "/home/harshita/anaconda3/lib/python3.6/runpy.py", line 193,

Speech recognition not working well

岁酱吖の 提交于 2020-01-04 03:45:07
问题 I have followed an article on Speech Recognition with Delphi (SAPI 5.3). http://edn.embarcadero.com/article/29583 I created a basic application. but the problem is that the application has got it all wrong ! it doesn't get what I am saying correctly. if i say for example : "word", it get "ward". and so on. is there any better way to do speech recognition anyone can give me ? 回答1: For any speech recognition tool, you do have to make sure you give it enough training so it can recognize the way

Google search via speech in c#

风流意气都作罢 提交于 2020-01-04 02:24:18
问题 I am making my own jarvis program and when I say "search for" + something I want to open Google and search for "something". Here my code...( I don't paste it all) private void Form1_Load(object sender, EventArgs e) { _recognizer.SetInputToDefaultAudioDevice(); _recognizer.LoadGrammar(new Grammar(new GrammarBuilder(new Choices(File.ReadAllLines(@"C:\Users\Cpyros\Desktop\lefteris\Commands.txt"))))); _recognizer.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(_recognizer

Google search via speech in c#

巧了我就是萌 提交于 2020-01-04 02:24:05
问题 I am making my own jarvis program and when I say "search for" + something I want to open Google and search for "something". Here my code...( I don't paste it all) private void Form1_Load(object sender, EventArgs e) { _recognizer.SetInputToDefaultAudioDevice(); _recognizer.LoadGrammar(new Grammar(new GrammarBuilder(new Choices(File.ReadAllLines(@"C:\Users\Cpyros\Desktop\lefteris\Commands.txt"))))); _recognizer.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(_recognizer

Detect installed languages for offline recognition

心不动则不痛 提交于 2020-01-03 07:14:08
问题 It is possible to determine via code which language packages are currently installed on a device? Tried this: Intent detailsIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS); sendOrderedBroadcast(detailsIntent, null, new LanguageDetailsChecker(), null, Activity.RESULT_OK, null, null); public class LanguageDetailsChecker extends BroadcastReceiver { private List<String> supportedLanguages; @Override public void onReceive(Context context, Intent intent) { Bundle results =

Using Android Voice Control launch my Activity

天涯浪子 提交于 2020-01-03 06:41:14
问题 I have read this post on SO and I have tried the code to launch my own speech recognition activity. It worked!. So my question is that how can I customize the action of the built in voice command button(hardware) to launch the activity which I have written instead of the built in voice search? I have thoroughly searched the net including this website. But I could not find a solution. I know that someone on SO has it!!! 回答1: You must use SpeechRecognizer instead of RecognizerIntent . It's a

Converting speech to text in iOS [closed]

久未见 提交于 2020-01-03 05:16:13
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm looking for a sample example which implements open ear or any other speech recognizer to convert speech into text. Is there any

How to embed Google Speech to Text API in Python program?

被刻印的时光 ゝ 提交于 2020-01-02 01:57:05
问题 I have a project in which I have created a chat program between a client and host, and I have to embed Speech to Text in it. Is there any way by which I can embed Google Speech to Text API in my program ?? 回答1: This is probably what you do not want to use in your case, but for other's who may need this for a one-off project, I hacked together a simple python client a while ago that uses the APIs built into Chrome for voice search: https://github.com/korylprince/python-google-transcribe For it

Error Domain=kAFAssistantErrorDomain Code=209 “(null)”

跟風遠走 提交于 2020-01-02 01:14:06
问题 I am facing an issue with the SFSpeechRecognizer . After few seconds of starting the application I start getting the error Error Domain=kAFAssistantErrorDomain Code=209 "(null)"" and "Error Domain=kAFAssistantErrorDomain Code=203 "Timeout" UserInfo={NSLocalizedDescription=Timeout, NSUnderlyingError=0x170049990 {Error Domain=SiriSpeechErrorDomain Code=100 "(null)"}} and the application stops recognization. I am trying to endAudio() and then again start it every 20 seconds as Apple does not

Does the iOS Speech API support grammar?

百般思念 提交于 2020-01-01 15:05:09
问题 I was investigating various Speech Recognition strategies and I liked the idea of grammars as defined in the Web Speech spec. It seems that if you can tell the speech recognition service that you expect “Yes” or “No”, the service could more reliably recognize a “Yes” as “Yes”, “No” as `No”, and hopefully also be able to say “it didn’t sound like either of those!”. However, in SFSpeechRecognitionRequest, I only see taskHint with values from SFSpeechRecognitionTaskHint of confirmation ,