voice-recognition

SpeechRecognizer - time limit

元气小坏坏 提交于 2019-11-30 23:53:37
I am using SppechRecognizer for voice recognizer application. Its working fine. My requirement is i want to stop the voice listening after 1 sec or 2 sec. How to achieve that? 1 or 2 seconds doesn't seem to be a lot of time but if you want to set a time limit, you'd probably have to thread it. Android has some default extras to set the minimum length of speech input and maximum amount after a user has stopped speaking, but none to set the maximum length of time for speech input. Your best bet would be to thread some sort of timer, something like a CountDownTimer : yourSpeechListener

Android voice recognition through Bluetooth

谁说我不能喝 提交于 2019-11-30 19:11:41
问题 I am using voice recognition in my activity and I just realized that if I have a headset connected, the recognizer still only listens through the phone mic. Is there any way to make it listen through the headset? I did notice this: http://developer.android.com/reference/android/bluetooth/BluetoothHeadset.html but most of the methods are not available until HoneyComb ... Thanks. 回答1: Basically, this can only be done using the BluetoothHeadset class... In my voice recognition activity, I call

RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS in Oreo

若如初见. 提交于 2019-11-30 18:08:27
In most Android devices, the RecognitionService will be supplied by Google's native 'Now/Assistant' application. Up until Android Oreo, I was able to query the languages supported by the Google Recognizer with the following simple code: final Intent vrIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS); // vrIntent.setPackage("com.google.android.googlequicksearchbox"); getContext().sendOrderedBroadcast(vrIntent, null, new BroadcastReceiver() { @Override public void onReceive(final Context context, final Intent intent) { // final Bundle bundle = intent.getExtras(); final Bundle

RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS in Oreo

怎甘沉沦 提交于 2019-11-30 16:56:52
问题 In most Android devices, the RecognitionService will be supplied by Google's native 'Now/Assistant' application. Up until Android Oreo, I was able to query the languages supported by the Google Recognizer with the following simple code: final Intent vrIntent = new Intent(RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS); // vrIntent.setPackage("com.google.android.googlequicksearchbox"); getContext().sendOrderedBroadcast(vrIntent, null, new BroadcastReceiver() { @Override public void onReceive

How Google Voice Search works? Is there an API for that?

ぐ巨炮叔叔 提交于 2019-11-30 10:24:28
问题 I'm not sure if this is the right site for this question, but I was wondering how the voice activated search on Google's homepage works. Does it use Flash, some kind of plugin built into Google Chrome, or how does it use the microphone? This could be a dangerous privacy invasion if it is allowed to work the same way on any website, because no dialog asking for permission comes up, and I find this startling that Google (and who knows what other sites) can use my microphone without my

Is it possible to have Android Voice Recognition (as a custom service) on Google Glass?

倾然丶 夕夏残阳落幕 提交于 2019-11-30 09:56:16
We have a demo android application (Android 4.0.3) that runs voice recognition as a service, and (continuosly) logs the results of the recognition on the view. Everything is working fine in our smartphones. We would like to replicate this scenario in a Google Glass immersion application, but we always have this error message when we try to start the service: no selected voice recognition service Are there some known limitations? Or have someone figured out how to resolve this kind of problem? Thanks in advance This is some significant code of the activity: public class MainActivity extends

Voice Recognition in PHP?

别等时光非礼了梦想. 提交于 2019-11-30 09:20:16
I am looking for Voice Recognition in PHP. I have a lot of wav files (10-15 seconds) and I would like Voice Recognition to recognise 1 or 2 words from each wav file and then flag it to database or csv. All the files have the same voice and accent (same person lol) Example pseudocode: $voice = new play('file.wav'); $result = $voice->recognise("Good Morning"); if ($result) { echo "Matched Good Morning"; //flag to database or csv } else { echo "No match found"; } Which PHP Voice Recognition library can do this? PHP doesn't have this functionality built in but there are APIs available for this.

how can i store output voice to an audio file in freetts

◇◆丶佛笑我妖孽 提交于 2019-11-30 08:35:58
问题 I am trying to use freetts for a simple java application but i am facing a problem, can anyone tell me how can i save the output voice which is converted from text to speech into a wave file in my program. I want to do it via code. This is the sample helloworld application which is given with the sample /** * Copyright 2003 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and * redistribution of this file, and for a DISCLAIMER OF ALL * WARRANTIES. */ import com

Android voice recognition API offline

狂风中的少年 提交于 2019-11-30 08:29:16
Can someone please help me? I am developing an application with voice recognition via RecognizerIntent. Which Android version brought in officially the offline recognition available to apps by API? Is there any statement about it? By what I read until know it is not a choice of the developer if the voice recognition will be done via online service or the offline dictionaries. Am I right? Or are there any documented API to set offline? Thanks Now there is offline voice recognition is possible for android 4.1. check this article article and also check pochetsphinx 来源: https://stackoverflow.com

convert sound to list of phonemes in python

蓝咒 提交于 2019-11-30 06:59:34
How do I convert any sound signal to a list phonemes? I.e the actual methodology and/or code to go from a digital signal to a list of phonemes that the sound recording is made from. eg: lPhonemes = audio_to_phonemes(aSignal) where for example from scipy.io.wavfile import read iSampleRate, aSignal = read(sRecordingDir) aSignal = #numpy array for the recorded word 'hear' lPhonemes = ['HH', 'IY1', 'R'] I need the function audio_to_phonemes Not all sounds are language words, so I cannot just use something that uses the google API for example. Edit I don't want audio to words, I want audio to