pub struct Transcript {
pub text: String,
pub language: Option<String>,
pub words: Vec<WordTiming>,
pub usage: SpeechUsage,
}Expand description
One completed transcription.
Fields§
§text: String§language: Option<String>The language the provider detected (or echoed from the hint).
words: Vec<WordTiming>§usage: SpeechUsageImplementations§
Source§impl Transcript
impl Transcript
pub fn new(text: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_words(self, words: Vec<WordTiming>) -> Self
pub const fn with_usage(self, usage: SpeechUsage) -> Self
Trait Implementations§
Source§impl Clone for Transcript
impl Clone for Transcript
Source§impl Debug for Transcript
impl Debug for Transcript
Source§impl Default for Transcript
impl Default for Transcript
Source§impl PartialEq for Transcript
impl PartialEq for Transcript
impl StructuralPartialEq for Transcript
Auto Trait Implementations§
impl Freeze for Transcript
impl RefUnwindSafe for Transcript
impl Send for Transcript
impl Sync for Transcript
impl Unpin for Transcript
impl UnsafeUnpin for Transcript
impl UnwindSafe for Transcript
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