Skip to content

Instantly share code, notes, and snippets.

@Younes-Charfaoui
Created July 29, 2019 14:14
Show Gist options
  • Save Younes-Charfaoui/1f9535cdb01d0dacf275ac04231c3e4a to your computer and use it in GitHub Desktop.
Save Younes-Charfaoui/1f9535cdb01d0dacf275ac04231c3e4a to your computer and use it in GitHub Desktop.
override fun onReadyForSpeech(params: Bundle?) {
Log.d(TAG, "onReadyForSpeech")
}
override fun onRmsChanged(rmsdB: Float) {
Log.d(TAG, "onRmsChanged")
}
override fun onBufferReceived(buffer: ByteArray?) {
Log.d(TAG, "onBufferReceived")
}
override fun onPartialResults(partialResults: Bundle?) {
Log.d(TAG, "onPartialResults")
}
override fun onEvent(eventType: Int, params: Bundle?) {
Log.d(TAG, "onEvent $eventType")
}
override fun onBeginningOfSpeech() {
Log.d(TAG, "onBeginningOfSpeech")
}
override fun onEndOfSpeech() {
Log.d(TAG, "onEndOfSpeech")
}
override fun onError(error: Int) {
Log.d(TAG, "onError $error")
}
override fun onResults(results: Bundle?) {
Log.d(TAG, "onReadyForSpeech")
val result = results?.getStringArrayList("results_recognition")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment