android-docs-samples icon indicating copy to clipboard operation
android-docs-samples copied to clipboard

Why there is a restriction for MAX_SPEECH_LENGTH

Open dj-4war opened this issue 7 years ago • 0 comments

We see that there is a delay when there is no speech is recognized after certain time and start the speech after 30 sec. if (now - mVoiceStartedMillis > MAX_SPEECH_LENGTH_MILLIS) { end(); } } else if (mLastVoiceHeardMillis != Long.MAX_VALUE) { mCallback.onVoice(mBuffer, size); if (now - mLastVoiceHeardMillis > SPEECH_TIMEOUT_MILLIS) { end(); } Any specific reason that it needs to be end and start again after MAX_SPEECH_LENGTH_MILLIS(30sec)and Speech Timeout i.e 20 sec ?

dj-4war avatar Jun 21 '17 08:06 dj-4war