whisper.android : update example, add field to print timestamp (#2072)

This commit is contained in:
zhangjixiong
2024-05-13 14:30:03 +03:00
committed by GitHub
parent b6bbce4ae9
commit e93081f83f
3 changed files with 42 additions and 3 deletions
@@ -145,7 +145,7 @@ class MainScreenViewModel(private val application: Application) : ViewModel() {
val start = System.currentTimeMillis()
val text = whisperContext?.transcribeData(data)
val elapsed = System.currentTimeMillis() - start
printMessage("Done ($elapsed ms): $text\n")
printMessage("Done ($elapsed ms): \n$text\n")
} catch (e: Exception) {
Log.w(LOG_TAG, e)
printMessage("${e.localizedMessage}\n")