mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-03 21:16:25 +02:00
whisper.android : update example, add field to print timestamp (#2072)
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user