Add docs to no_speech_probability
This commit is contained in:
parent
ea1a762b41
commit
e34533731c
1 changed files with 7 additions and 1 deletions
|
|
@ -80,7 +80,13 @@ impl<'a> WhisperSegment<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the no_speech probability for the specified segment
|
/// Get the no_speech probability for the specified segment.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// `f32`
|
||||||
|
///
|
||||||
|
/// # C++ equivalent
|
||||||
|
/// `float whisper_full_get_segment_no_speech_prob_from_state(struct whisper_state * state, int i_segment)`
|
||||||
pub fn no_speech_probability(&self) -> f32 {
|
pub fn no_speech_probability(&self) -> f32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
whisper_rs_sys::whisper_full_get_segment_no_speech_prob_from_state(
|
whisper_rs_sys::whisper_full_get_segment_no_speech_prob_from_state(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue