mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-17 04:09:19 +00:00
mtmd: fix whisper audio tail truncation by exposing padded buffer to FFT (#22770)
This commit is contained in:
parent
8e52631d55
commit
cc97e45a14
1 changed files with 5 additions and 0 deletions
|
|
@ -403,6 +403,11 @@ static bool log_mel_spectrogram(
|
|||
return false;
|
||||
}
|
||||
std::reverse_copy(samples + 1, samples + 1 + stage_2_pad, samples_padded.begin());
|
||||
|
||||
// expose the padded buffer to downstream FFT and to out.n_len computation
|
||||
// mirrors the no_padding and center_padding branches above
|
||||
samples = samples_padded.data();
|
||||
n_samples = samples_padded.size();
|
||||
}
|
||||
|
||||
// preemphasis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue