recognizer-intent

Android Speech recognition

给你一囗甜甜゛ 提交于 2020-03-25 17:25:09
问题 I am trying to create an app that simply detects specific phrases that the user can speak into the device and the activity will do something depending on what the user has spoken. I had a hard time finding tutorials on this specific thing so please help me out. So far I have created a button that will start the Recognizer Intent and I have a onActivityResult which I hope can detect what the user is saying and then call specific functions depending on the phrase the user has spoken. public

Continuous Speech Recognition Android - Without Gaps

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-12 05:00:09
问题 I have an activity that implements RecognitionListener . To make it continuous, every time onEndOfSpeech() I start the listener again: speech.startListening(recognizerIntent); But, it takes some time (around half a second) till it starts, so there is this half a second gap, where nothing is listening. Therefore, I miss words that were spoken in that time difference. On the other hand, when I use Google's Voice input, to dictate messages instead of the keyboard - this time gap does not exist.

Android specific words speech recognition

馋奶兔 提交于 2019-12-24 13:17:28
问题 I am trying to have the app recognize certain words said by the user using the code below, but for some reason it isn't working at all. Please review this and tell me what is wrong with it. Thank you The app is simply suppose to display a toast message if the words "orange" or "apple" is said but nothing happens when using the code below. //button onclick to trigger RecognizerIntent public void OnClick_Speed_Detector(View v) { Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); i

I want to incorporate continuous (hands free) voice command recognition in my app for home automation

情到浓时终转凉″ 提交于 2019-12-22 17:52:19
问题 I have created a simple android app for controlling a relay connected to my Raspberry Pi. I have used buttons as well as basic voice recognition to trigger those buttons and switch on/off the corresponding relay channel. As of now the voice recognition part is handled by a RecognizerIntent, wherein I need to press a button on my app to open a Google voice prompt which listens to my voice command and activates/deactivates the corresponding button which controls the relay switches. I want to do

How can I use voice recognition with other languages android

天涯浪子 提交于 2019-12-12 16:24:13
问题 I have a code that used to worked but for some reason it suddenly just stopped working, I'm trying to use voice recognition in Hebrew but it seems like since a few days ago it just starts voice recognition in English. Here is my code sr = SpeechRecognizer.createSpeechRecognizer(getApplicationContext()); test_voice_recognitiona listener = new test_voice_recognitiona(); sr.setRecognitionListener(listener); Intent fl = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); fl.putExtra("android

Android - Speech Recognition Limiting Listening Time

梦想的初衷 提交于 2019-12-08 22:11:16
问题 I am using Google API for speech recognition, but want to limit listening time. For example two seconds. After two seconds even though user continue to speaking recognizer should stop listening. I tried some EXTRAs like EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS but it did not helped me. My full code is here, if anyone can help me, I will be appreciate public void promptSpeechInput() { /

Burmese speech to text conversion in android?

别等时光非礼了梦想. 提交于 2019-12-04 12:01:41
问题 Can we add custom language for RecognizerIntent? I have search many SO Question like https://stackoverflow.com/questions/2080401/is-there-a-speech-to-text-api-by-google That solve my problem of using limited number of language during Speech to Text conversion. My problem is that, I need to used Burmese(Local Language of Burma) Speech and convert it to text. any other help can be appreciated. UPDATE : Google's servers currently support English, Mandarin Chinese, and Japanese. Speech Input API

Burmese speech to text conversion in android?

删除回忆录丶 提交于 2019-12-03 08:02:45
Can we add custom language for RecognizerIntent? I have search many SO Question like https://stackoverflow.com/questions/2080401/is-there-a-speech-to-text-api-by-google That solve my problem of using limited number of language during Speech to Text conversion. My problem is that, I need to used Burmese(Local Language of Burma) Speech and convert it to text. any other help can be appreciated. UPDATE : Google's servers currently support English, Mandarin Chinese, and Japanese. Speech Input API for android Google will unlikely support small languages any time soon. The only way to custom language

Continuous Speech Recognition Android - Without Gaps

十年热恋 提交于 2019-12-03 05:57:33
I have an activity that implements RecognitionListener . To make it continuous, every time onEndOfSpeech() I start the listener again: speech.startListening(recognizerIntent); But, it takes some time (around half a second) till it starts, so there is this half a second gap, where nothing is listening. Therefore, I miss words that were spoken in that time difference. On the other hand, when I use Google's Voice input, to dictate messages instead of the keyboard - this time gap does not exist. Meaning - there is a solution. What is it? Thanks try looking at a couple other api's.... speech demo :

Get URI of saved audio in OnResults(Bundle result) in Speech RecognitionListener android

戏子无情 提交于 2019-11-29 11:46:16
I followed almost everylink for audio saving and converting it to text but I did not find any way that how I can get audio Url in custom Recognition Listener record/save audio from voice recognition intent How to use Androids' speech to text with audio sample file and many others as welll.... Audio url that I got here with the help of RecognizerIntent @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case REQ_CODE_SPEECH_INPUT: { if (resultCode == getActivity().RESULT_OK && null !