pub struct TranscriptionSegment {
pub id: i64,
pub seek: i64,
pub start: f64,
pub end: f64,
pub text: String,
pub tokens: Vec<i64>,
pub temperature: f64,
pub avg_logprob: f64,
pub compression_ratio: f64,
pub no_speech_prob: f64,
}
Fields§
§id: i64
Unique identifier of the segment.
seek: i64
Seek offset of the segment.
start: f64
Start time of the segment in seconds.
end: f64
End time of the segment in seconds.
text: String
Text content of the segment.
tokens: Vec<i64>
Array of token IDs for the text content.
temperature: f64
Temperature parameter used for generating the segment.
avg_logprob: f64
Average logprob of the segment.
compression_ratio: f64
Compression ratio of the segment.
no_speech_prob: f64
Probability of no speech in the segment.
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 Default for TranscriptionSegment
impl Default for TranscriptionSegment
Source§fn default() -> TranscriptionSegment
fn default() -> TranscriptionSegment
Returns the “default value” for a type. 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