pub struct TranscriptionAttempt {
pub text: String,
pub segments: Vec<Segment>,
pub temperature: f32,
pub compression_ratio: f32,
pub avg_logprob: f32,
pub no_speech_prob: f32,
}Expand description
Result of a single transcription attempt
Fields§
§text: String§segments: Vec<Segment>§temperature: f32§compression_ratio: f32§avg_logprob: f32§no_speech_prob: f32Implementations§
Source§impl TranscriptionAttempt
impl TranscriptionAttempt
Sourcepub fn meets_thresholds(&self, thresholds: &QualityThresholds) -> bool
pub fn meets_thresholds(&self, thresholds: &QualityThresholds) -> bool
Check if this attempt meets quality thresholds
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TranscriptionAttempt
impl RefUnwindSafe for TranscriptionAttempt
impl Send for TranscriptionAttempt
impl Sync for TranscriptionAttempt
impl Unpin for TranscriptionAttempt
impl UnwindSafe for TranscriptionAttempt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more