pub struct Segment {
pub id: i32,
pub seek: i32,
pub start: f64,
pub end: f64,
pub text: String,
pub tokens: Vec<i32>,
pub temperature: f64,
pub avg_logprob: f64,
pub compression_ratio: f64,
pub no_speech_prob: f64,
}Expand description
Segment-level timestamp information.
Fields§
§id: i32Segment ID
seek: i32Seek position
start: f64Start time in seconds
end: f64End time in seconds
text: StringSegment text
tokens: Vec<i32>Token IDs
temperature: f64Temperature used for generation
avg_logprob: f64Average log probability
compression_ratio: f64Compression ratio
no_speech_prob: f64No speech probability
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Segment
impl<'de> Deserialize<'de> for Segment
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 Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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