Hello All,

We are working on an app that requires continuous speech input from the 
user. Our app needs to work without internet. For speech recognition we are 
using SpeechRecognizer class. 

Below is the implementation.

*Initialization*

var recognizer = 
SpeechRecognizer.createSpeechRecognizer(this.applicationContext)
recognizer!!.setRecognitionListener(RecognitionListener(this))


*To start Listening*

val intent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH)
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, 
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM)
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, 
"com.taazaa.texttospeechdemo")
recognizer!!.startListening(intent)


This is working fine until user takes a pause while speaking.

We need following implementation

   - SpeechRecognizer should not stop listening until user manually stop 
   recognition.
   
   recognizer!!.stopListening()
   
   - Everytime when recognition starts or stops device makes a beep sound 
   which we need to stop,

Please let us know what we are doing wrong and what we need to implement to 
support above two points. Google Bolo is doing this so there could be a way.
Google bolo: 
https://play.google.com/store/apps/details?id=com.google.android.apps.seekh&hl=en_IN

Any help will be appreciated.

*Thanks in advance*
Taazaa Team

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/946ead0b-4767-4714-8e57-bc93bb91e0ba%40googlegroups.com.

Reply via email to