Add new nosp token
This commit is contained in:
parent
5c140c14d4
commit
851fca36d7
1 changed files with 13 additions and 4 deletions
|
|
@ -405,6 +405,15 @@ impl WhisperContext {
|
||||||
unsafe { whisper_rs_sys::whisper_token_sot(self.ctx) }
|
unsafe { whisper_rs_sys::whisper_token_sot(self.ctx) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the ID of the solm token.
|
||||||
|
///
|
||||||
|
/// # C++ equivalent
|
||||||
|
/// `whisper_token whisper_token_solm(struct whisper_context * ctx)`
|
||||||
|
#[inline]
|
||||||
|
pub fn token_solm(&self) -> WhisperToken {
|
||||||
|
unsafe { whisper_rs_sys::whisper_token_solm(self.ctx) }
|
||||||
|
}
|
||||||
|
|
||||||
/// Get the ID of the prev token.
|
/// Get the ID of the prev token.
|
||||||
///
|
///
|
||||||
/// # C++ equivalent
|
/// # C++ equivalent
|
||||||
|
|
@ -414,13 +423,13 @@ impl WhisperContext {
|
||||||
unsafe { whisper_rs_sys::whisper_token_prev(self.ctx) }
|
unsafe { whisper_rs_sys::whisper_token_prev(self.ctx) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the ID of the solm token.
|
/// Get the ID of the nosp token.
|
||||||
///
|
///
|
||||||
/// # C++ equivalent
|
/// # C++ equivalent
|
||||||
/// `whisper_token whisper_token_solm(struct whisper_context * ctx)`
|
/// `whisper_token whisper_token_nosp(struct whisper_context * ctx)`
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn token_solm(&self) -> WhisperToken {
|
pub fn token_nosp(&self) -> WhisperToken {
|
||||||
unsafe { whisper_rs_sys::whisper_token_solm(self.ctx) }
|
unsafe { whisper_rs_sys::whisper_token_nosp(self.ctx) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the ID of the not token.
|
/// Get the ID of the not token.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue