pub struct TranscriptionSegment {
pub avg_logprob: f32,
pub compression_ratio: f32,
pub end: f32,
pub id: i32,
pub no_speech_prob: f32,
pub seek: i32,
pub start: f32,
pub temperature: f32,
pub text: String,
pub tokens: Vec<i32>,
}Fields§
§avg_logprob: f32Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
compression_ratio: f32Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
end: f32End time of the segment in seconds.
id: i32Unique identifier of the segment.
no_speech_prob: f32Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent.
seek: i32Seek offset of the segment.
start: f32Start time of the segment in seconds.
temperature: f32Temperature parameter used for generating the segment.
text: StringText content of the segment.
tokens: Vec<i32>Array of token IDs for the text content.
Trait Implementations§
Source§impl Debug for TranscriptionSegment
impl Debug for TranscriptionSegment
Source§impl<'de> Deserialize<'de> for TranscriptionSegment
impl<'de> Deserialize<'de> for TranscriptionSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TranscriptionSegment
impl RefUnwindSafe for TranscriptionSegment
impl Send for TranscriptionSegment
impl Sync for TranscriptionSegment
impl Unpin for TranscriptionSegment
impl UnwindSafe for TranscriptionSegment
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