voice-recognition

Does RecognitionListener.onError() automatically SpeechRecognizer.cancel()?

房东的猫 提交于 2019-12-04 17:48:03
问题 For various reasons, I need to use the raw SpeechRecognizer API instead of the easier RecognizerIntent (RECOGNIZE_SPEECH) activity. That means, among other things, that I need to handle RecognitionListener.onError() myself. In response to some of the errors, I simply want to re-start listening. This looks straightforward but when I just call SpeechRecognizer.startListening() upon error, this sometimes seems to trigger two different errors: ERROR/ServerConnectorImpl(619): Previous session not

Why does UWP continuous speech recognition stop

大憨熊 提交于 2019-12-04 16:01:35
I have a Windows 10 UWP app that I am enabling voice recognition for a text box. Yes, I know that I can also leverage Cortana for this. However, Cortana comes with some cons as well, mainly that you have little to no control over Cortana from within the app. This is where the Continuous Recognition of the SpeechRecognizer namespace comes in. I like the amount of control I have. However, it seems to randomly stop listening after some seconds. Here is how I have it implemented. Note that I also tried to set every possible timeout to 0 which should mean no timeout. Properties on page: private

Voice recognition [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 13:12:37
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 6 years ago . I try to search about voice recognition in android. Almost of search result, I have only founded the voice recognition api which provided by Google. Moreover, I want to know which other api that provide for android. Because I would to use my voice recognition to search in my file. Could anyone solve this problem or give me some suggestion? I know almost nothing about

Android: Voice recognition

删除回忆录丶 提交于 2019-12-04 12:16:17
问题 [possibly duplicate] But I didn't find answers to my questions below. I've been doing some research on voice recognition for the past two days and I didn't get answers to my questions: Is it possible to run voice recognition as a service? I would like to implement something like this: I need to call a number though my phone through voice recognition is in sleep mode. Does voice recognition work properly to detect the words when I am on a train, bus, etc? Is there any sensor to detect the

Speech recognition listener doesn't work in Galaxy SII

寵の児 提交于 2019-12-04 12:13:38
I am developing an Android application which always listen voice from user. It works when I run it on Sony X10i, but doesn't work in Samsung Galaxy SII. Here is my code: SpeechRecognizer speechRecognizer; speechRecognizer = SpeechRecognizer.createSpeechRecognizer(getBaseContext()); MyRecognitionListener speechListner=new MyRecognitionListener(); speechRecognizer.setRecognitionListener(speechListner); speechRecognizer.startListening(RecognizerIntent.getVoiceDetailsIntent(getApplicationContext())); Here is my listener class: class MyRecognitionListener implements RecognitionListener { public

Acoustic fingerprint code for iOS?

拜拜、爱过 提交于 2019-12-04 09:27:58
I've started looking on the subject of Acoustic Fingerprint (http://en.wikipedia.org/wiki/Acoustic_fingerprint) for a pet project of mine for the iOS and I was wondering if there are: Any opensource libraries or source code for the iOS that handle this? Assuming I'm a veteran jack of all trades coder, is it very problematic to implement this myself if there is no open-source versions? Will the Accelerate DSP library in iOS able to handle such a task? Thanks Not of my knowledge No problem for a veteran, that won't be easy, but achievable. Never looked into. Even in java, this might be an

How to Recognise when user START & STOP speaking in android? (Voice Recognition in Android)

徘徊边缘 提交于 2019-12-04 08:01:54
问题 I have done a lot of R&D and gone through a lot of resources to resolve my problem but I have FAILED to get any proper solution. I have developed an app, now i want to add Voice based functionality to it. The required features are 1) when USER starts speaking, it should record the audio/video and 2) when user stops speaking, it should play the recorded audio/video . Note :Here video means whatever user performs within app during that period of time. For example, clicks on the buttons or some

Voice Recognition without Internet in Android

一笑奈何 提交于 2019-12-04 04:40:46
I have been looking for several voice recognition libraries that supports android but none of them functions without server call or without using internet. My requirement is to detect some particular keywords and perform some actions accordingly without internet i.e. the keyword analysis should be done locally. So is there any voice recognition library that is capable of doing so. CMU Sphinx is the only toolkit that people say can achieve this but it still needs an algorithm to spot a keyword in a speech. You can use Pocketsphinx either with a statistical model which you can train on a corpus

How to mute the beep sound for SpeechRecognizer?

妖精的绣舞 提交于 2019-12-04 04:15:37
This has been asked before, but no one seemed to have a solution: Muting SpeechRecognizer's beep sound Nevertheless, I still would like to know if anyone knows how to mute the beeping sound for SpeechRecognizer? I create speechRecognizer object: private SpeechRecognizer sr = SpeechRecognizer.createSpeechRecognizer(this); And then in my class I instantiate the speechRecognizer like this sr.setRecognitionListener(new listener()); Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); i

HotwordDetector using VoiceInteractionService in android

≡放荡痞女 提交于 2019-12-04 04:08:38
I am creating the voice recognition service like "Ok Google" with custom command. For this I have used the VoiceInteractionService and I refered the code from here . Also, I am getting the STATE_HARDWARE_UNAVAILABLE error in onAvailabilityChanged . public class VoiceCommandService extends VoiceInteractionService { private static final String TAG = "AlwaysOnHotwordDetector"; Locale locale = new Locale("en-US"); protected SpeechRecognizer mSpeechRecognizer; protected Intent mSpeechRecognizerIntent; public final Callback mHotwordCallback = new Callback() { @Override public void