pub struct TtsMetaDto {Show 16 fields
pub schema_version: u32,
pub sample_rate_hz: u32,
pub channels: u16,
pub backend_kind: String,
pub provider: String,
pub model: String,
pub voice: String,
pub language: String,
pub duration_ms: u64,
pub text_chars: usize,
pub text_truncated: bool,
pub chunk_count: usize,
pub synthesized_chars: usize,
pub adapter: Option<String>,
pub trust: Option<String>,
pub provenance: Option<String>,
}Expand description
TTS metadata DTO — no PCM bytes.
Fields§
§schema_version: u32§sample_rate_hz: u32§channels: u16§backend_kind: String§provider: String§model: String§voice: String§language: String§duration_ms: u64§text_chars: usize§text_truncated: bool§chunk_count: usize§synthesized_chars: usize§adapter: Option<String>Adapter id (JOE-1576); omitted when unknown.
trust: Option<String>Trust mode: builtin | verified | local_unverified.
provenance: Option<String>Provenance: builtin | custom | local_pack.
Implementations§
Source§impl TtsMetaDto
impl TtsMetaDto
pub fn from_result(r: &SynthesisResult) -> Self
Trait Implementations§
Source§impl Clone for TtsMetaDto
impl Clone for TtsMetaDto
Source§fn clone(&self) -> TtsMetaDto
fn clone(&self) -> TtsMetaDto
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 TtsMetaDto
impl Debug for TtsMetaDto
Source§impl<'de> Deserialize<'de> for TtsMetaDto
impl<'de> Deserialize<'de> for TtsMetaDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TtsMetaDto
impl PartialEq for TtsMetaDto
Source§impl Serialize for TtsMetaDto
impl Serialize for TtsMetaDto
impl StructuralPartialEq for TtsMetaDto
Auto Trait Implementations§
impl Freeze for TtsMetaDto
impl RefUnwindSafe for TtsMetaDto
impl Send for TtsMetaDto
impl Sync for TtsMetaDto
impl Unpin for TtsMetaDto
impl UnsafeUnpin for TtsMetaDto
impl UnwindSafe for TtsMetaDto
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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