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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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