voice-recognition

How to get SpeechRecognizer listner response in js function?

淺唱寂寞╮ 提交于 2019-12-08 09:21:25
问题 I am working on SpeechRecognizer Listner activity. I am triggering the intent (startListning(intent)) from Webview button click threw javascript act.startFun(); And the startFun() method is declared in my MainActivity.java file public void startFun(){ Log.d(TAG,"ONCLICK"); Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,

Voice Recognition Commands Android

三世轮回 提交于 2019-12-08 09:18:09
问题 So I've searched far and wide for some sort of solution to the issue regarding removing Google's Voice Recognition UI dialog when a user wants to perform a Voice Command but have been unable to find any solution. I am trying to implement an app which displays a menu to the user and the user can either click on the options or say the options out loud which will open the new pages. So far ive been unable to implement this unless I use Googles RecognizerIntent but I dont want the dialog box to

Applescript to automatically close dialog box after input?

独自空忆成欢 提交于 2019-12-08 09:01:41
问题 Ok, so I am writing an applescript to do some voice control actions for me. I am using Dragon Dictate 2.0 for mac for my voice control and mainly applescript for my coding. I have everything pretty much squared away except for once small issue. When expecting a voice command, I have applescript display a dialog for the text to be dictated into. eg. set cmd1 to the text returned of (display dialog "Speak Command:" default answer "") This displays a dialog box with an empty text field, and the

Got an error during UBM speaker-adaptation with sidekit

不想你离开。 提交于 2019-12-08 05:15:46
问题 I've already trained a UBM model and now I'm trying to implement the speaker-adaptation when I got following error. Exception: show enroll/something.wav is not in the HDF5 file I got two files "enroll" and "test" under the file "feat" which contains respectively features(.h5) for training and test, and my enroll_idmap is generated with the audios(.wav) only for training. And, my wav files and feat files are separated. I think I got a problem of idmap. "enroll/something.wav" is the rightid of

How can I make applescript voice recognition listen for any word?

微笑、不失礼 提交于 2019-12-08 04:39:21
问题 How can I make applescript voice recognition listen for any word? This is what I have so far: tell application "System Events" keystroke "c" using {command down} end tell tell application "iCal" to activate tell application "System Events" keystroke "n" using {command down} keystroke "v" using {command down} keystroke return end tell I would like to substitute the copy on the first line to listen for any words. 回答1: tell application "SpeechRecognitionServer" set answer to listen for {"yes",

SAPI Speech recognition delphi

大城市里の小女人 提交于 2019-12-08 04:13:11
问题 I to need create a programmatic equivalent using delphi language... or could someone post a link on how to do grammars in peech recogniton using the delphi. Or any examples of XML grammar that has programmatic equivalent in Delphi. sorry for my english. **Programmatic Equivalent ** Ref: http://msdn.microsoft.com/en-us/library/ms723634(v=VS.85).aspx SPSTATEHANDLE hsHelloWorld; hr = cpRecoGrammar->GetRule(L"HelloWorld", NULL, SPRAF_TopLevel | SPRAF_Active, TRUE, &hsHelloWorld); hr =

Android - Voice recognition

六月ゝ 毕业季﹏ 提交于 2019-12-08 02:41:52
问题 I am looking for a voice recognition library for Android. I only need it to understand "Yes/No" answers ( in different languages - like English, German, French ). Any suggestions? 回答1: Not sure about V-R libraries because the Play Store max App size is 50megs and those voice packages are about 15 to 20 megs each so it will impossible to include multiple languages directly into the App. There may be an online service to use but you need to search the net for that. What most people use is the

Text to speech not working on android device

拜拜、爱过 提交于 2019-12-07 17:55:36
问题 Below is my code.I am unable to hear the voice in my kitkat device.Toast is appearing but voice is not playing.I am following this tutorial https://www.tutorialspoint.com/android/android_text_to_speech.htm package com.example.insert; import android.os.Parcelable; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.app.Activity; import android.os.Bundle; import android.speech.tts.TextToSpeech; import android.view.View; import android.widget.Button; import

ios: how to detect if voice dictation was used for UITextField? Or microphone button was tapped on keyboard

拜拜、爱过 提交于 2019-12-07 15:46:11
问题 How to detect if voice dictation was used for UITextField? Or microphone button was tapped on keyboard. Is there any way to do that? 回答1: UITextField conforms to UITextInput Protocol ( under the section Using Dictation are methods of interest). In this protocol is a method dictationRecordingDidEnd that you can override. One way is to subclass UITextField and implement the above mentioned method and any others of interest from the UITextInput protocol. example subclass .h #import <UIKit/UIKit

Android offline voice recognition using PocketSphinx

血红的双手。 提交于 2019-12-07 12:41:29
问题 Trying to do Voice Recognition without internet using PocketSphinx referrring to the site, http://swathiep.blogspot.com/2011/02/offline-speech-recognition-with.html Followed the same as what it is. Run the program in emulator,since it will not support audio, get crashed(not Force Close).but while trying to run this on phone,the application just opened and closed(not Force Close).Do need to add any more libraries to run this application????????? pls reply fast anyone........ 回答1: Latest