1
0
mirror of https://github.com/ggerganov/whisper.cpp.git synced 2025-06-29 22:19:17 +02:00

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
This commit is contained in:
Ranjit
2025-02-08 14:43:25 +05:30
committed by GitHub
parent c4c2380cf1
commit 667d2476a7

@ -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);