Skip to content

Commit

Permalink
whisper : remove speed_up and phase_vocoder* functions (whisper/2…
Browse files Browse the repository at this point in the history
…198)

* whisper : fix cast warning

* whisper : remove phase_vocoder functions, ref #2195

* whisper : remove speed_up from whisper_full_params, closes #2195
  • Loading branch information
iboB authored and ggerganov committed Jun 16, 2024
1 parent 9ed11f3 commit 43d078f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class wav_writer {
// 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<const char *>(&intSample), sizeof(int16_t));
dataSize += sizeof(int16_t);
}
Expand Down

0 comments on commit 43d078f

Please sign in to comment.