mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-06-14 21:56:53 +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:
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user