From 667d2476a7b5c4626d45631531a7ebae253ed2ff Mon Sep 17 00:00:00 2001 From: Ranjit <111440072+ranjitsingha@users.noreply.github.com> Date: Sat, 8 Feb 2025 14:43:25 +0530 Subject: [PATCH] Update jni.c for enabling word timestamp (Default is off) Update jni.c for enabling word level timestamps in whisper.cpp Android Default is set to off. If anyone wants can turn it to true for enabling word Level Timestamps --- examples/whisper.android/lib/src/main/jni/whisper/jni.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/whisper.android/lib/src/main/jni/whisper/jni.c b/examples/whisper.android/lib/src/main/jni/whisper/jni.c index 02e4121d..1fa8a962 100644 --- a/examples/whisper.android/lib/src/main/jni/whisper/jni.c +++ b/examples/whisper.android/lib/src/main/jni/whisper/jni.c @@ -181,8 +181,8 @@ Java_com_whispercpp_whisper_WhisperLib_00024Companion_fullTranscribe( params.offset_ms = 0; params.no_context = true; params.single_segment = false; - params.token_timestamps = true; // Enable for word level timestamps - params.split_on_word = true; // Enable for word level timestamps + params.token_timestamps = false; // Set true for word level timestamps + params.split_on_word = false; // Set true for word level timestamps params.max_len = 1; // Set number of words in a line whisper_reset_timings(context);