Merge pull request #169 from arizhih/whisper-cpp-latest

feat: Add support for new whisper.cpp project structure
This commit is contained in:
Niko 2024-09-01 23:15:18 +00:00 committed by GitHub
commit 8596d2d98c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 305 additions and 396 deletions

View file

@ -222,16 +222,6 @@ impl<'a, 'b> FullParams<'a, 'b> {
self.fp.max_tokens = max_tokens;
}
/// # EXPERIMENTAL
///
/// Speed up audio ~2x by using phase vocoder.
/// Note that this can significantly reduce the accuracy of the transcription.
///
/// Defaults to false.
pub fn set_speed_up(&mut self, speed_up: bool) {
self.fp.speed_up = speed_up;
}
/// # EXPERIMENTAL
///
/// Enables debug mode, such as dumping the log mel spectrogram.
@ -244,7 +234,6 @@ impl<'a, 'b> FullParams<'a, 'b> {
/// # EXPERIMENTAL
///
/// Overwrite the audio context size. 0 = default.
/// As with [set_speed_up](FullParams::set_speed_up), this can significantly reduce the accuracy of the transcription.
///
/// Defaults to 0.
pub fn set_audio_ctx(&mut self, audio_ctx: c_int) {