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

@ -4,7 +4,7 @@ exclude = ["examples/full_usage"]
[package] [package]
name = "whisper-rs" name = "whisper-rs"
version = "0.7.0" version = "0.8.0"
edition = "2021" edition = "2021"
description = "Rust bindings for whisper.cpp" description = "Rust bindings for whisper.cpp"
license = "Unlicense" license = "Unlicense"
@ -14,7 +14,7 @@ repository = "https://github.com/tazz4843/whisper-rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
whisper-rs-sys = { path = "sys", version = "0.5" } whisper-rs-sys = { path = "sys", version = "0.6" }
[dev-dependencies] [dev-dependencies]
hound = "3.5.0" hound = "3.5.0"

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 /// Set suppress_blank. See https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/decoding.py#L89
/// for more information. /// for more information.
/// ///