Skip to content

Commit 667d247

Browse files
authored
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
1 parent c4c2380 commit 667d247

File tree

1 file changed

+2
-2
lines changed
  • examples/whisper.android/lib/src/main/jni/whisper

1 file changed

+2
-2
lines changed

examples/whisper.android/lib/src/main/jni/whisper/jni.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ Java_com_whispercpp_whisper_WhisperLib_00024Companion_fullTranscribe(
181181
params.offset_ms = 0;
182182
params.no_context = true;
183183
params.single_segment = false;
184-
params.token_timestamps = true; // Enable for word level timestamps
185-
params.split_on_word = true; // Enable for word level timestamps
184+
params.token_timestamps = false; // Set true for word level timestamps
185+
params.split_on_word = false; // Set true for word level timestamps
186186
params.max_len = 1; // Set number of words in a line
187187

188188
whisper_reset_timings(context);

0 commit comments

Comments
 (0)