pub struct TtsBatchResult {
pub clips: Vec<TtsClipResult>,
pub load_secs: Option<f64>,
pub meta: Vec<String>,
pub steady_bytes: Option<u64>,
pub peak_bytes: Option<u64>,
}Expand description
The parsed output of one TTS batch invocation.
Fields§
§clips: Vec<TtsClipResult>§load_secs: Option<f64>§meta: Vec<String>Adapter-reported metadata worth carrying into the ledger notes — voice name + sha256 and the effective synthesis knobs. The voice file is not corpus-pinned, so its hash rides in the record instead.
steady_bytes: Option<u64>§peak_bytes: Option<u64>Implementations§
Source§impl TtsBatchResult
impl TtsBatchResult
Sourcepub fn clip_for(&self, path: &Path) -> Option<&TtsClipResult>
pub fn clip_for(&self, path: &Path) -> Option<&TtsClipResult>
Look up an utterance’s result by input text path.
Sourcepub fn synth_secs(&self) -> Option<f64>
pub fn synth_secs(&self) -> Option<f64>
Adapter-reported synthesis time for the whole batch.
Trait Implementations§
Source§impl Clone for TtsBatchResult
impl Clone for TtsBatchResult
Source§fn clone(&self) -> TtsBatchResult
fn clone(&self) -> TtsBatchResult
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 TtsBatchResult
impl Debug for TtsBatchResult
Source§impl Default for TtsBatchResult
impl Default for TtsBatchResult
Source§fn default() -> TtsBatchResult
fn default() -> TtsBatchResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for TtsBatchResult
impl PartialEq for TtsBatchResult
impl StructuralPartialEq for TtsBatchResult
Auto Trait Implementations§
impl Freeze for TtsBatchResult
impl RefUnwindSafe for TtsBatchResult
impl Send for TtsBatchResult
impl Sync for TtsBatchResult
impl Unpin for TtsBatchResult
impl UnsafeUnpin for TtsBatchResult
impl UnwindSafe for TtsBatchResult
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,
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