pub struct FakeAsrFixture {
pub transcript: String,
pub locale: String,
pub segments: Vec<FakeAsrSegment>,
}Expand description
Scripted output for one synthetic audio reference.
Fields§
§transcript: StringFull scripted transcript for the audio.
locale: StringLocale tag for the transcript.
segments: Vec<FakeAsrSegment>Per-segment breakdown of the transcript.
Implementations§
Source§impl FakeAsrFixture
impl FakeAsrFixture
Sourcepub fn new(transcript: impl Into<String>, locale: impl Into<String>) -> Self
pub fn new(transcript: impl Into<String>, locale: impl Into<String>) -> Self
Builds an ASR fixture from a transcript and locale.
Sourcepub fn with_segment(self, segment: FakeAsrSegment) -> Self
pub fn with_segment(self, segment: FakeAsrSegment) -> Self
Adds one deterministic transcript segment.
Trait Implementations§
Source§impl Clone for FakeAsrFixture
impl Clone for FakeAsrFixture
Source§fn clone(&self) -> FakeAsrFixture
fn clone(&self) -> FakeAsrFixture
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 moreSource§impl Debug for FakeAsrFixture
impl Debug for FakeAsrFixture
impl Eq for FakeAsrFixture
Source§impl PartialEq for FakeAsrFixture
impl PartialEq for FakeAsrFixture
Source§fn eq(&self, other: &FakeAsrFixture) -> bool
fn eq(&self, other: &FakeAsrFixture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FakeAsrFixture
Auto Trait Implementations§
impl Freeze for FakeAsrFixture
impl RefUnwindSafe for FakeAsrFixture
impl Send for FakeAsrFixture
impl Sync for FakeAsrFixture
impl Unpin for FakeAsrFixture
impl UnsafeUnpin for FakeAsrFixture
impl UnwindSafe for FakeAsrFixture
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