Created
July 29, 2019 14:14
-
-
Save Younes-Charfaoui/1f9535cdb01d0dacf275ac04231c3e4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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