pub struct TranscriptionSegment {
pub id: i32,
pub seek: i32,
pub start: f32,
pub end: f32,
pub text: String,
pub tokens: Vec<i32>,
pub temperature: f32,
pub avg_logprob: f32,
pub compression_ratio: f32,
pub no_speech_prob: f32,
}
Fields§
§id: i32
Unique identifier of the segment.
seek: i32
§start: f32
Start time of the segment in seconds.
end: f32
End time of the segment in seconds.
text: String
Text content of the segment.
tokens: Vec<i32>
Array of token IDs for the text content.
temperature: f32
Temperature parameter used for generating the segment.
avg_logprob: f32
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
compression_ratio: f32
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
no_speech_prob: f32
Probability 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.
Trait Implementations§
Source§impl Clone for TranscriptionSegment
impl Clone for TranscriptionSegment
Source§fn clone(&self) -> TranscriptionSegment
fn clone(&self) -> TranscriptionSegment
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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