pub struct TranscribeSegment {
pub start_ms: u64,
pub end_ms: u64,
pub text: String,
pub speaker: Option<String>,
pub words: Vec<TranscribeWord>,
}Expand description
One transcribed segment.
Fields§
§start_ms: u64Start timestamp in milliseconds from the audio start.
end_ms: u64End timestamp in milliseconds from the audio start (exclusive).
text: StringRecognized text.
speaker: Option<String>Speaker label, populated when TranscribeOptions::diarize is set
and supported by the provider.
words: Vec<TranscribeWord>Per-word timestamps, populated when
TranscribeOptions::word_timestamps is set and supported.
Trait Implementations§
Source§impl Clone for TranscribeSegment
impl Clone for TranscribeSegment
Source§fn clone(&self) -> TranscribeSegment
fn clone(&self) -> TranscribeSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TranscribeSegment
impl RefUnwindSafe for TranscribeSegment
impl Send for TranscribeSegment
impl Sync for TranscribeSegment
impl Unpin for TranscribeSegment
impl UnsafeUnpin for TranscribeSegment
impl UnwindSafe for TranscribeSegment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more