pub struct AudioMetadata {Show 16 fields
pub title: Option<String>,
pub artist: Option<String>,
pub album: Option<String>,
pub track: Option<u32>,
pub year: Option<u32>,
pub genre: Option<String>,
pub comment: Option<String>,
pub duration: Option<f64>,
pub synthesis_params: HashMap<String, String>,
pub album_art: Option<AlbumArt>,
pub custom_tags: HashMap<String, String>,
pub voice_name: Option<String>,
pub text_source: Option<String>,
pub model_version: Option<String>,
pub language: Option<String>,
pub date: Option<String>,
}Expand description
Audio metadata container
Fields§
§title: Option<String>Track title
artist: Option<String>Artist name
album: Option<String>Album name
track: Option<u32>Track number
year: Option<u32>Release year
genre: Option<String>Genre
comment: Option<String>Comment
duration: Option<f64>Duration in seconds
synthesis_params: HashMap<String, String>Synthesis parameters used
album_art: Option<AlbumArt>Album art (embedded image data)
Custom tags
voice_name: Option<String>Voice name used for synthesis
text_source: Option<String>Original text source
model_version: Option<String>Model version used
language: Option<String>Language of the content
date: Option<String>Date of creation
Implementations§
Source§impl AudioMetadata
Utility functions for metadata handling
impl AudioMetadata
Utility functions for metadata handling
Sourcepub fn is_synthesized(&self) -> bool
pub fn is_synthesized(&self) -> bool
Check if metadata contains VoiRS synthesis information
Sourcepub fn get_original_text(&self) -> Option<&String>
pub fn get_original_text(&self) -> Option<&String>
Get the original text used for synthesis
Sourcepub fn format_synthesis_params(&self) -> String
pub fn format_synthesis_params(&self) -> String
Get synthesis parameters as a formatted string
Sourcepub fn merge(&mut self, other: &AudioMetadata)
pub fn merge(&mut self, other: &AudioMetadata)
Merge metadata from another instance
Trait Implementations§
Source§impl Clone for AudioMetadata
impl Clone for AudioMetadata
Source§fn clone(&self) -> AudioMetadata
fn clone(&self) -> AudioMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioMetadata
impl Debug for AudioMetadata
Source§impl Default for AudioMetadata
impl Default for AudioMetadata
Source§fn default() -> AudioMetadata
fn default() -> AudioMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AudioMetadata
impl RefUnwindSafe for AudioMetadata
impl Send for AudioMetadata
impl Sync for AudioMetadata
impl Unpin for AudioMetadata
impl UnwindSafe for AudioMetadata
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.