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