speech-recognition

Python3 OSError: [Errno -9988] Stream closed

怎甘沉沦 提交于 2021-01-28 06:10:07
问题 I'm working on voice recognition system with Raspberry pi 3B and while running some code I face some problem which is given below. I was tried so many stuffs from the internet but couldn't found some specific problem so please help me about below error! ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2495:(snd

Whats the best way to use google credentials for production app?

依然范特西╮ 提交于 2021-01-27 17:36:56
问题 I'm building a C# .net application for STT and I'm creating credentials manually. I find the documentation hugely confusing for me and I dont know how to add the credentials properly. I added a project, created a json credential and downloaded and kept on a folder and pointing to it for manually with GoogleCredential for authorization and everythings working good. But this cant be a solution for a shipped app. Current approach: GoogleCredential credentials = GoogleCredential.FromFile(Path

Can we recover audio from MFCC coefficients?

守給你的承諾、 提交于 2021-01-27 14:40:58
问题 Can be get an audio signal back from its MFCC coefficients? Also do MFCC coefficients have a range of value if so what is it and if not how do you normalize it between 0 to 1. I tried using the following MATLAB code: http://labrosa.ee.columbia.edu/matlab/rastamat/ but the recovered audio is no where similar to the original signal. 回答1: This question better fits dsp stackexchange. You can not repair exact signal from MFCC, it drops some information on the way so the signal must be similar but

Android SpeechRecognizer when do I get ERROR_CLIENT when starting the voice recognizer?

╄→гoц情女王★ 提交于 2021-01-27 12:00:53
问题 I am not sure about some documentation related stuff. To sum up what I did and what I want to to: I managed to introduce voice recognition feature into an Android application that is running on Android 4.2 on a tablet, and it works ok. Now I want to port my application on Google Glass but unfortunately I get the following error when I try to start the speech recognizer: error 5 -> ERROR_CLIENT (Other client side errors). The message guides me to find other errors that not related to

SpeechRecognition producing OSError: No Default Input Device Available

大兔子大兔子 提交于 2021-01-04 07:17:57
问题 This: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("Speak Anything :") audio = r.listen(source) try: text = r.recognize_google(audio) print("You said : {}".format(text)) except: print("Sorry could not recognize what you said") Producing this: Traceback (most recent call last): File "magic.py", line 5, in <module> with sr.Microphone() as source: File "/home/myPorfile/anaconda3/envs/customEnv/lib/python3.6/site-packages/speech_recognition/__init__.py

SpeechRecognition producing OSError: No Default Input Device Available

我只是一个虾纸丫 提交于 2021-01-04 07:17:02
问题 This: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("Speak Anything :") audio = r.listen(source) try: text = r.recognize_google(audio) print("You said : {}".format(text)) except: print("Sorry could not recognize what you said") Producing this: Traceback (most recent call last): File "magic.py", line 5, in <module> with sr.Microphone() as source: File "/home/myPorfile/anaconda3/envs/customEnv/lib/python3.6/site-packages/speech_recognition/__init__.py

SpeechRecognition producing OSError: No Default Input Device Available

跟風遠走 提交于 2021-01-04 07:16:16
问题 This: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("Speak Anything :") audio = r.listen(source) try: text = r.recognize_google(audio) print("You said : {}".format(text)) except: print("Sorry could not recognize what you said") Producing this: Traceback (most recent call last): File "magic.py", line 5, in <module> with sr.Microphone() as source: File "/home/myPorfile/anaconda3/envs/customEnv/lib/python3.6/site-packages/speech_recognition/__init__.py

NullReferenceException when starting recognizer with RecognizeAsync

孤人 提交于 2020-12-13 13:10:48
问题 Hi i'm currently developing a program that is supposed to recognize my voice and then write down what it hears, but when i run the code and i click the buttun to start the recEngine it says that "An unhandled exception of type 'System.NullReferenceException' occurred in System.Speech.dll", and in the tips it says that it's possible that the var was null before. But i have setted the variable before or am i doing something wrong. Here is the Code using System; using System.Windows.Forms; using

How to end Google Speech-to-Text streamingRecognize gracefully and get back the pending text results?

ⅰ亾dé卋堺 提交于 2020-11-25 02:09:11
问题 I'd like to be able to end a Google speech-to-text stream (created with streamingRecognize), and get back the pending SR (speech recognition) results. In a nutshell, the relevant Node.js code: // create SR stream const stream = speechClient.streamingRecognize(request); // observe data event const dataPromise = new Promise(resolve => stream.on('data', resolve)); // observe error event const errorPromise = new Promise((resolve, reject) => stream.on('error', reject)); // observe finish event