update whisper-rs to 0.8.0

This commit is contained in:
Zero 2023-05-14 14:34:53 -06:00
parent 548934b91f
commit 1acffbac45
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B
2 changed files with 11 additions and 2 deletions

View file

@ -245,6 +245,15 @@ impl<'a, 'b> FullParams<'a, 'b> {
};
}
/// Set `detect_language`.
///
/// Has the same effect as setting the language to "auto" or None.
///
/// Defaults to false.
pub fn set_detect_language(&mut self, detect_language: bool) {
self.fp.detect_language = detect_language;
}
/// Set suppress_blank. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/decoding.py#L89
/// for more information.
///