From: Borislav Stanimirov Date: Fri, 31 May 2024 08:37:29 +0000 (+0300) Subject: whisper : remove `speed_up` and `phase_vocoder*` functions (whisper/2198) X-Git-Tag: upstream/0.0.1642~574 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=43d078f81ee727675663fcb0cb5eb19eb30d88b9;p=pkg%2Fggml%2Fsources%2Fggml whisper : remove `speed_up` and `phase_vocoder*` functions (whisper/2198) * whisper : fix cast warning * whisper : remove phase_vocoder functions, ref #2195 * whisper : remove speed_up from whisper_full_params, closes #2195 --- diff --git a/examples/common.h b/examples/common.h index 79b98309..89ab3745 100644 --- a/examples/common.h +++ b/examples/common.h @@ -185,7 +185,7 @@ private: // It is assumed that PCM data is normalized to a range from -1 to 1 bool write_audio(const float * data, size_t length) { for (size_t i = 0; i < length; ++i) { - const int16_t intSample = data[i] * 32767; + const int16_t intSample = int16_t(data[i] * 32767); file.write(reinterpret_cast(&intSample), sizeof(int16_t)); dataSize += sizeof(int16_t); }