pocketsphinx-android

Long audio speech recognition on Android

一笑奈何 提交于 2020-06-11 06:02:08
问题 I want to develop a module which will use a speech to text support in Android. I found out many documentation and demos related to RecognizerIntent and such others. But I found that all of such demos just fetch the voice till 10 secs or so. But I want my demo to run for more than 5-10 minutes. I don't have any issue if that is not running offline, as my app is always working online. I have also looked in to Pocketsphinx on Android, but that didn't worked out well. Also, that gave support just

Handling Errors in PocketSphinx Android app

限于喜欢 提交于 2020-01-14 04:16:27
问题 I am using the default dictionary that comes with the pocketsphinx demo which is good for my purposes. When a user enters a phrase, the app starts a keyphrase listening but if the word is not found in the dictionary the app crashes. The app crashes onError() within a service. How is the error handling done? is there any way I can catch the error? Overall I would just like the service to call stopSelf() when an error happens so the main activity won't crash as well. Errors: ERROR: "kws_search

Run Pocketsphinx and Google TTS together

对着背影说爱祢 提交于 2020-01-14 03:05:13
问题 I want to start a new activity that recognizes speech from the beginning and could read incoming message right after the activity started. This code is the code that merged from default. It runs well in default condition. But I want to remove the button as the trigger and use voice instead to trigger further action in SMSReaderMain.java . Therefore, I use pocketsphinx for Android to make it possible. pocketSphinxAndroidDemo-preAlpha project Android text to Speech Tutorial project It gives me

PocketSphinx android demo runtime exception

天大地大妈咪最大 提交于 2019-12-29 01:26:49
问题 I downloaded the source code of pocket sphinx demo. I'm trying to run it but it is throwing a runtime exception. I've posted the logcat of my code. 09-09 11:45:38.980: I/System.out(7912): Sending WAIT chunk 09-09 11:45:38.980: W/ActivityThread(7912): Application edu.cmu.pocketsphinx.demo is waiting for the debugger on port 8100... 09-09 11:45:39.030: I/dalvikvm(7912): Debugger is active 09-09 11:45:39.210: I/System.out(7912): Debugger has connected 09-09 11:45:39.210: I/System.out(7912):

Use multiple dictionaries for cmu sphinx

不羁岁月 提交于 2019-12-24 21:33:20
问题 For my project the default dictionary provided by the Sphinx is not sufficient. I need to use another custom dictionary along with the provided dictionary. Now my question is that is there any way of specifying multiple dictionary files to Sphinx or do I need to combine both the dictionaries into a single big dictionary file? Thanks in advance :) 回答1: You have to combine dictionaries into single one. 回答2: If you want multiple dictionaries with Sphinx, what I did was to make my program delete

Stop pocketsphinx recognizer for voice feedback

倖福魔咒の 提交于 2019-12-23 01:41:30
问题 Still with the same project, this is a continuation from Run pocketSphinx and Google TTS together. I already do the revision according to the guide from Nikolay Shymyrev and do a lot of helping. But the final feature that I want implement still remains. The Google TTS run just fine now, but the recognizer have some problem. the recognizer won't start if the Google TTS some words that quite long like Speaker.speak("Drive mode now will be enabled. I will read your new messages for you now.");

Integration of Pocketsphinx Android with Phonegap app

若如初见. 提交于 2019-12-22 09:24:51
问题 I'm trying to integrate the Sphinx with my Phonegap app, and following the pocketsphinx-android-demo, but getting the RuntimeException when startup, here is the details: E/OADemo (15835): java.lang.RuntimeException: Decoder_setSearch returned -1 E/OADemo (15835): at edu.cmu.pocketsphinx.PocketSphinxJNI.Decoder_setSearch(Native Method) E/OADemo (15835): at edu.cmu.pocketsphinx.Decoder.setSearch(Unknown Source) E/OADemo (15835): at edu.cmu.pocketsphinx.SpeechRecognizer.startListening(Unknown

Calling Pocketsphinx in C# AccesViolationException

空扰寡人 提交于 2019-12-22 09:21:14
问题 I'm trying to do the pocketsphinx tutorial in C# using pinvoke but get an AccessViolationException when I try to decode using ps_decode_raw(). IntPtr ps = PocketSphinx.ps_init(config); IntPtr fh = Win32Util.fopen(@"goforward.raw", "rb"); int rv = PocketSphinx.ps_decode_raw(ps, fh, "goforward", -1); The functions are wrapped as follows //ps_decoder_t* ps_init(cmd_ln_t* config) [DllImport("pocketsphinx.dll", SetLastError = true, CallingConvention = CallingConvention.Cdecl)] public extern static

Split hypothesis on individual keyphrases

拈花ヽ惹草 提交于 2019-12-20 05:42:23
问题 I use Pocketsphinx in my Android app. I have a relatively small set of commands to be recognized independently, so I ended up using a keyword search from a file that looks like this: one/1.0/ done/1.0/ recognition on/1e-10/ recognition off/1e-10/ The actual list is not in English so these keywords are chosen arbitrarily for the sake of the example. I realize that these thresholds may be somewhat less than optimal, and that short words are prone to mismatches. The problem arises in this method

CMUSphinx PocketSphinx - Recognize all (or large amount) of words

坚强是说给别人听的谎言 提交于 2019-12-17 03:40:20
问题 Before I tried to used PocketSphinx for Android, I used Google's voice recognition API. I didn't need to set a search name or a dictionary file. It just recognized every word that was told. Now, In PocketSphinx, I need to do it. But I can only find how to set recognition for one word, Or to set dictionary (The ones available in the demo project have only few words) that the recognizer think these are the only words exist, Which means that if someone says something similar, The recognizer