• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Need unlimited voice input

ArtSera

Lurker
I am trying to code a java app for android phones and tablets that takes voice input and converts it to text. It is working but input breaks off at a random time less after than 20 seconds of speech. Is there some kind of settable attribute to make input unlimited?

Thanks,

Arthur
 
So I have my fully working app and here's the screen shoot.

voice to text.png
 
Yours is darn near Identical to mine. I am trying to run this on an Android 4a phone. It seems that if I pause my input for more than 1 or 2 seconds it will stop recognizing. I have tried this with or without explicit punctuation, like speaking "Period" or "Question mark". And truth be told, I generally pause momentarily after saying period, da da da. Still, the pauses are quite short and it appears for sure, that a 2 second pause does result in an immediate drop out.......

Help!!!!!
 
Yours is darn near Identical to mine. I am trying to run this on an Android 4a phone. It seems that if I pause my input for more than 1 or 2 seconds it will stop recognizing. I have tried this with or without explicit punctuation, like speaking "Period" or "Question mark". And truth be told, I generally pause momentarily after saying period, da da da. Still, the pauses are quite short and it appears for sure, that a 2 second pause does result in an immediate drop out.......

Help!!!!!

The default delay is too short
Not had a chance to find the code but what you need is a 3 second delay between the app storing the data and reading it back to you.

(cut this code from one of my apps)

onPause();
final Handler handler = new Handler(Looper.getMainLooper());
// this delayed the relativeLayout from turning visible by 400 (delay in millis)
handler.postDelayed(() -> relativeLayout.setVisibility(View.GONE), 400);
break;
so guessing it between the
startActivityForResult(intent, RESULT_SPEECH);
and
inputText.setText("");

}
 
I have been a contractor in the past, but this product I am trying to develop is not a paid effort. Also, this product is not an intel sponge at all. It is a personal recorder for individuals.
 
Back
Top Bottom