rename library to whisper-rs

This commit is contained in:
0/0 2022-10-09 20:48:00 -06:00
parent fec86e0d56
commit 82c83c860f
No known key found for this signature in database
GPG key ID: DE8D5010C0AAA3DC
6 changed files with 38 additions and 38 deletions

View file

@ -14,7 +14,7 @@ pub enum DecodeStrategy {
}
pub struct FullParams<'a> {
pub(crate) fp: whisper_cpp_sys::whisper_full_params,
pub(crate) fp: whisper_rs_sys::whisper_full_params,
phantom: PhantomData<&'a str>,
}
@ -22,7 +22,7 @@ impl<'a> FullParams<'a> {
/// Create a new set of parameters for the decoder.
pub fn new(decode_strategy: DecodeStrategy) -> FullParams<'a> {
let mut fp = unsafe {
whisper_cpp_sys::whisper_full_default_params(match decode_strategy {
whisper_rs_sys::whisper_full_default_params(match decode_strategy {
DecodeStrategy::Greedy { .. } => 0,
DecodeStrategy::BeamSearch { .. } => 1,
} as _)