1
0
mirror of https://github.com/ggerganov/whisper.cpp.git synced 2025-07-16 09:35:05 +02:00

Update jni.c for enabling word level timestamps in whisper.cpp android

Updated jni.c for enabling word level timestamps in whisper.cpp android
This commit is contained in:
Ranjit
2025-02-08 13:00:13 +05:30
committed by GitHub
parent d682e15090
commit c4c2380cf1

@ -181,6 +181,9 @@ 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.max_len = 1; // Set number of words in a line
whisper_reset_timings(context);