Update whisper.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
pull/388/head
boolemancer 3 years ago committed by GitHub
parent 4134ebd95d
commit 6bd8ec966a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3387,8 +3387,8 @@ static int timestamp_to_sample(int64_t t, int n_samples) {
return std::max(0, std::min((int) n_samples - 1, (int) ((t*WHISPER_SAMPLE_RATE)/100)));
}
static int64_t sample_to_timestamp(int64_t i_sample) {
return (100*i_sample)/WHISPER_SAMPLE_RATE;
static int64_t sample_to_timestamp(int i_sample) {
return (100ll*i_sample)/WHISPER_SAMPLE_RATE;
}
// a cost-function / heuristic that is high for text that takes longer to pronounce

Loading…
Cancel
Save