speech-recognition

SpeechRecognizer ERROR_SERVER when running not offline languages

懵懂的女人 提交于 2020-01-24 23:27:20
问题 Everything is fine when I run this having English set as default language, but when I run it on any language that is not available offline I keep getting error 4 (ERROR_SERVER), even if I turn on Internet connection. I fixed it some time ago by changing language model to LANGUAGE_MODEL_WEB_SEARCH. But I added some other features and it is not working again no matter what I change here. What I have already tried to do: Read all other related questions on Stack Overflow. Manually set speech

How can i fix language for the grammar does not match the language of the speech recognizer error in vb

狂风中的少年 提交于 2020-01-24 18:17:19
问题 Hello in visual basic I am attempting to create a speech recognition system that can help me out with my life on the computer. I called my assistant Jarvis. For this project I imported system.speech.dll. And now im receiving this error: An error occurred creating the form. See Exception.InnerException for details. The error is: The language for the grammar does not match the language of the speech recognizer. Here is my code Imports System.Speech.Recognition Imports System.Speech.Recognition

ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card arecord: main:722: audio open error: No such file or directory

ぐ巨炮叔叔 提交于 2020-01-24 08:36:30
问题 i am working on speech recognition . for this i am using "alsa-utils" but when i try to use this script #!/bin/bash echo “Recording… Press Ctrl+C to Stop.” arecord -D plughw:1,0 -q -f cd -t wav | ffmpeg -loglevel panic -y -i – -ar 16000 -acodec flac file.flac > /dev/null 2>&1 echo “Processing…” wget -q -U “Mozilla/5.0” –post-file file.flac –header “Content-Type: audio/x-flac; rate=16000” -O – “http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium” | cut -d” -f12 >stt.txt

ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card arecord: main:722: audio open error: No such file or directory

为君一笑 提交于 2020-01-24 08:36:12
问题 i am working on speech recognition . for this i am using "alsa-utils" but when i try to use this script #!/bin/bash echo “Recording… Press Ctrl+C to Stop.” arecord -D plughw:1,0 -q -f cd -t wav | ffmpeg -loglevel panic -y -i – -ar 16000 -acodec flac file.flac > /dev/null 2>&1 echo “Processing…” wget -q -U “Mozilla/5.0” –post-file file.flac –header “Content-Type: audio/x-flac; rate=16000” -O – “http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium” | cut -d” -f12 >stt.txt

portaudio.h: No such file or directory

半腔热情 提交于 2020-01-24 03:29:06
问题 I got the following error while trying to install pyaudio using pip3 in ubuntu 16.04: Collecting pyaudio Downloading PyAudio-0.2.11.tar.gz Installing collected packages: pyaudio Running setup.py install for pyaudio ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mxgvewdb/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install -

Speech Recognition duration setting issue in python

此生再无相见时 提交于 2020-01-23 09:55:39
问题 I have an audio file in Wav format that I want to transcribe: My code is: import speech_recognition as sr harvard = sr.AudioFile('speech_file.wav') with harvard as source: try: audio = r.listen(source) #print("Done") except sr.UnknownValueError: exec() r.recognize_google(audio) I do receive an output: Out[20]: 'thank you for calling my name is Denise who I have a pleasure speaking with hi my name is Mary Jane. Good afternoon Mary Jane I do have your account open with your email' However,

C# return speech phonetic without recognize it

天涯浪子 提交于 2020-01-23 09:47:07
问题 I'm trying to make a human like dictionary (db) of Persian speech, so I tried to speak and have c# produce it phonetically, but the problem is I cant find any event to find what I spoke. For example, we have SpeechRecognized event but it fired after recognizing the speech. Here is my code sample: <pre> <code> SpeechRecognizer rec = new SpeechRecognizer(); public Form1(){ InitializeComponent(); rec.SpeechRecognized += rec_SpeechRecognized(rec_SpeechRecognized); // this will fire after

SpeechRecognition is not working in firefox

試著忘記壹切 提交于 2020-01-22 22:22:03
问题 I am trying to test webspeech-api of firefox but encountering an error in the console saying ReferenceError: SpeechRecognition is not defined . I have even enabled media.webspeech.recognition.enable and media.webspeech.synth.enabled flags in about:config. Is there a way to make SpeechRecognition work on firefox? 回答1: According to this blog post from January 21, 2016 by Chris Mills (a senior tech writer at Mozilla) you can't use it yet in web environment on FF ... ... because the UX/UI to

SpeechRecognition is not working in firefox

☆樱花仙子☆ 提交于 2020-01-22 22:21:48
问题 I am trying to test webspeech-api of firefox but encountering an error in the console saying ReferenceError: SpeechRecognition is not defined . I have even enabled media.webspeech.recognition.enable and media.webspeech.synth.enabled flags in about:config. Is there a way to make SpeechRecognition work on firefox? 回答1: According to this blog post from January 21, 2016 by Chris Mills (a senior tech writer at Mozilla) you can't use it yet in web environment on FF ... ... because the UX/UI to

SpeechRecognition is not working in firefox

混江龙づ霸主 提交于 2020-01-22 22:21:18
问题 I am trying to test webspeech-api of firefox but encountering an error in the console saying ReferenceError: SpeechRecognition is not defined . I have even enabled media.webspeech.recognition.enable and media.webspeech.synth.enabled flags in about:config. Is there a way to make SpeechRecognition work on firefox? 回答1: According to this blog post from January 21, 2016 by Chris Mills (a senior tech writer at Mozilla) you can't use it yet in web environment on FF ... ... because the UX/UI to