speech-recognition

Streaming input to System.Speech.Recognition.SpeechRecognitionEngine

ぃ、小莉子 提交于 2019-11-27 04:34:13
I am trying to do "streaming" speech recognition in C# from a TCP socket. The problem I am having is that SpeechRecognitionEngine.SetInputToAudioStream() seems to require a Stream of a defined length which can seek. Right now the only way I can think to make this work is to repeatedly run the recognizer on a MemoryStream as more input comes in. Here's some code to illustrate: SpeechRecognitionEngine appRecognizer = new SpeechRecognitionEngine(); System.Speech.AudioFormat.SpeechAudioFormatInfo formatInfo = new System.Speech.AudioFormat.SpeechAudioFormatInfo(8000, System.Speech.AudioFormat

onServiceConnected never called after bindService method

折月煮酒 提交于 2019-11-27 04:12:28
I have a particular situation: a service started by a broadcast receiver starts an activity. I want to make it possible for this activity to communicate back to the service. I have chosen to use AIDL to make it possible. Everything seems works good except for bindService() method called in onCreate() of the activity. bindService(), in fact, throws a null pointer exception because onServiceConnected() is never called while onBind() method of the service is. Anyway bindService() returns true. The service is obviously active because it starts the activity. I know that calling an activity from a

What is the best option for transcribing speech-to-text in a asp.net web app?

旧时模样 提交于 2019-11-27 04:01:14
问题 I am building a web app for recording voice messages and am looking for the best options for converting the voice messages to text. Does anyone have some suggestions on what to use to make the conversion? Would System.Speech work? 回答1: System.Speech is a client focused API. Vista and Windows 7 include the speech engines for System.Speech. You could use this for transcription because the client speech engines provided by Microsoft include a dictation grammar. The server speech engines provided

Voice Recognition stops listening after a few seconds

放肆的年华 提交于 2019-11-27 03:20:45
I tried a lot but can´t find it out, so I hope you can help me. I am trying to build my own voice recognition app, which doesn´t show up the dialog. I already wrote some code and it works quite fine, but my problem is that the recognizer seems to stop without any errors or other messanges in the LogCat. A strange fact is that the "onRmsChanged" from the "RecognitionListener" interface is still called all the time, but no "onBeginningOfSpeech" is called anymore. If I speak just after the speech recognition has started it works. But it doesn´t if I wait a few seconds. The used API is 4.0.3 and I

Is there a way to use iOS speech recognition in offline mode?

一曲冷凌霜 提交于 2019-11-27 02:36:41
问题 I want to know if there's a way to use iOS speech recognition in offline mode. According to the documentation (https://developer.apple.com/reference/speech) I didn't see anything about it. 回答1: I am afraid that there is no way to do it (however, please make sure to check the update at the end of the answer) . As mentioned at the Speech Framework Official Documentation: Best Practices for a Great User Experience: Be prepared to handle the failures that can be caused by reaching speech

Dictation Application using Sphinx4

醉酒当歌 提交于 2019-11-27 02:31:46
问题 My requirements are similar to this question since the question is now 3 years old I am re-posting the question with information specific to mine, I want to create an application which takes a .wav (or any other standard audio file format) and converts it to text. For Speech Recognition I have decided to use sphinx4, I am trying to enhance the Transcriber demo provided with sphinx. Its good but That only works for a specific Grammar (written in .gram and .gxml files). EDIT To be able to use

How Speech to Text conversion in iPhone

余生颓废 提交于 2019-11-27 02:27:15
问题 Is there any way, by which we can convert speech to Text using iPhone SDK? 回答1: Yes, if you are Google, Dragon, or Siri. The iPhone SDK does not provide any access to the iPhone 3GS's built-in voice recognition, which is apparently none too elaborate anyway. Your best bet is to find a web service to which you can upload audio clips for analysis. 回答2: Krishnan ,This is Reply for your Comment Is that the same case for Text to speech? . No there is Library called OpenEars by using this Library

SpeechRecognizer with Google Search version 3.6.14.1337016 can't recognize other voice language except default

落爺英雄遲暮 提交于 2019-11-27 02:22:53
问题 You can set many voice languages on the setting of latest Google search. But the problem is that SpeechRecognizer can recognize only the default language. I implemented... private SpeechRecognizer mGoogleRecognizer; private void startRecognition() { mGoogleRecognizer = SpeechRecognizer.createSpeechRecognizer(m_context); mGoogleRecognizer.setRecognitionListener(this); Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,

Android Speech Speech Recognition: Repeated Calling of SpeechRecognizer.startListening() fails on JB 4.1.2

自闭症网瘾萝莉.ら 提交于 2019-11-27 02:13:40
问题 I have a service where I'm kicking off a speech recognition listener repeatedly so I can have an open ended session for the user to speak. The class also handles the issue in Jelly Bean where a ERROR_SPEECH_TIMEOUT is thrown if no speech is heard in 5 seconds. So basically this works. However if I repeatedly call recognizer.startListening(recognizerIntent) , it silently fails as evidenced by the fact that onBeginningOfSpeech() is never called in this case. Now IF I just do not talk at all my

ImportError: No module named request

百般思念 提交于 2019-11-27 00:51:04
问题 I am trying to install python SpeechRecognition on my machine.When i am trying to install the package as pip install SpeechRecognition . I am getting the following error. import json, urllib.request ImportError: No module named request And then i referred and installed requests as pip install requests i am i am getting Requirement already satisfied .But still i am unable to install SpeechRecognition .Please let me know what mistake i am doing.Thanks in advance 回答1: The SpeechRecognition