add SamplingStrategy default

This commit is contained in:
0/0 2023-02-08 14:44:36 -07:00
parent edac524756
commit ad9146aa91
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B

View file

@ -14,6 +14,12 @@ pub enum SamplingStrategy {
},
}
impl Default for SamplingStrategy {
fn default() -> Self {
Self::Greedy { best_of: 1 }
}
}
pub struct FullParams<'a, 'b> {
pub(crate) fp: whisper_rs_sys::whisper_full_params,
phantom_lang: PhantomData<&'a str>,