voice-recognition

Voice Recognition without Internet in Android

瘦欲@ 提交于 2019-12-12 08:33:24
问题 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

How to start bibxy activity using programming?

两盒软妹~` 提交于 2019-12-12 04:57:20
问题 I am using S8/S8+. I want to call bibxy app from the Intent. However, I cannot call it. How can I call it from Intent? This is what I try final String SVOICE_PACKAGE_NAME = "com.samsung.voiceserviceplatform"; final Intent intent = new Intent(); intent.setPackage(SVOICE_PACKAGE_NAME); intent.setAction(Intent.ACTION_VOICE_COMMAND); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); getApplication().startActivity(intent); 回答1: This Works for me: startActivity(new

at least one grammar must be loaded before doing a recognition

心已入冬 提交于 2019-12-12 04:32:07
问题 Hello i try to create simple AI program , so i define two grammar and load them and i get this error at least one grammar must be loaded before doing a recognition. the error from visual studio is : An exception of type 'System.InvalidOperationException' occurred in System.Speech.dll but was not handled in user code Additional information: At least one grammar must be loaded before doing a recognition. here is the code this is the class class DefineGrammar { /// <summary> /// Define Choices /

Deal with blank background layout for RecognizerIntent

别来无恙 提交于 2019-12-12 03:35:23
问题 i am newbie in to android studio and java. i am making an app using speech recognition. The app is working fine but i decided to look into this issue. STT dialog screen after button is pressed blank background layout if user pressed back or touch outside the STT dialog If user said something, the activity works ok. But if the user pressed back or touch outside the dialog. A blank layout is shown which i want to avoid. this STT activity will be called via widget and the app activity. STT

File not found exception? (Voice recog)

淺唱寂寞╮ 提交于 2019-12-12 01:45:21
问题 Sorry for the long question, I have been stuck on this for a month, and I want to provide as much detail as possible...its just a file not found exception in a simple library... :) I am getting a file not found exception on my variances file: I do, however, have the variances file: I am trying to simply implement voice recognition in my background service, so that I can detect when the user says the word hello (using pocketsphinx). The problem happens in this method: createSphinxDir(); Here

Voice Activity Detection in Android

只谈情不闲聊 提交于 2019-12-11 16:59:00
问题 I am writing an application that will behave similar to the existing Voice recognition but will be sending the sound data to a proprietary web service to perform the speech recognition part. I am using the standard MediaRecord (which is AMR-NB encoded) which seems to be perfect to speech recognition. The only data provided by this is the Amplitude via the getMaxAmplitude() method. I am trying to detect when the person starts to talk so that when the person stops talking for about 2 seconds I

Pocketsphinx recognizes random phrases in a silence

百般思念 提交于 2019-12-11 10:48:05
问题 I have a pocketsphinx installed on Raspberry Pi and a microphone connected to it. When i run pocketsphinx_continuous using command pocketsphinx_continuous -inmic yes -dict dict.dict -hmm /home/pi/zero_ru.cd_cont_4000 -jsgf mygrammar.gram it starts to recognize random phrases (but in most cases the same phrase) when I am not speaking. And when I do, result is the same. I use acoustic model for russian language. Please, need your help. 回答1: You need to use keyword spotting mode. Pocketsphinx

Anyone knows about Android 4.1+ offline voice-recognition API documentation?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 10:25:01
问题 I'm trying to build an offline voice recognition Android app on Android 4.1.2 and 4.3, and I'm trying to get access to Android ASR API. I could find all information related to synchronous voice recognition (using an intent) on http://developer.android.com/reference/android/speech/package-summary.html, but nothing about asynchronous recognition (I would like to recognize the audio content from a file). Does anyone know about an API documentation and tutorials on this topic? Many thanks! Edit :

How to launch an android app from the voice like OK Google

浪尽此生 提交于 2019-12-11 09:40:09
问题 I want to build an app in which I want to launch an app with voice. Please help me. 回答1: Edited First off all you need to recognize users speech by using Speech Recognizer. After that you'll receive a String with text. After getting from this text an app name you could get access to installed apps data and then launch an app you want by simple intent. 回答2: refer official documentation to start your activity using voice command. This is for wearables, you can give it a try. 来源: https:/

Pocketsphinx Android demo error: “Failed to init recognizer java.io.IOException: Failed to initialize recorder. Microphone might already be in use.”

我怕爱的太早我们不能终老 提交于 2019-12-11 08:15:31
问题 I have been using Pocketsphinx Android demo and get the error: "Failed to init recognizer java.io.IOException: Failed to initialize recorder. Microphone might already be in use." What does the error mean and what can I do to fix it ? 回答1: If you upgrade your Android OS to 6 or it is already 6, you have to ask permission in runtime. Android manifest recorder permission is not enough after Android OS 6. It will give this error if you do not ask permission. 来源: https://stackoverflow.com