pub struct GstEncoder { /* private fields */ }Expand description
Global Style Token (GST) based style encoder.
Reference: Wang et al., 2018 - Style Tokens for Expressive Speech Synthesis.
§Note
This is a stub - requires model weights.
Implementations§
Source§impl GstEncoder
impl GstEncoder
Sourcepub fn new(config: StyleConfig) -> GstEncoder
pub fn new(config: StyleConfig) -> GstEncoder
Create new GST encoder
Sourcepub fn default_config() -> GstEncoder
pub fn default_config() -> GstEncoder
Create with default configuration
Trait Implementations§
Source§impl Debug for GstEncoder
impl Debug for GstEncoder
Source§impl StyleEncoder for GstEncoder
impl StyleEncoder for GstEncoder
Source§fn encode(&self, audio: &[f32]) -> Result<StyleVector, VoiceError>
fn encode(&self, audio: &[f32]) -> Result<StyleVector, VoiceError>
Extract style vector from audio. Read more
Source§fn config(&self) -> &StyleConfig
fn config(&self) -> &StyleConfig
Get the configuration
Auto Trait Implementations§
impl Freeze for GstEncoder
impl RefUnwindSafe for GstEncoder
impl Send for GstEncoder
impl Sync for GstEncoder
impl Unpin for GstEncoder
impl UnsafeUnpin for GstEncoder
impl UnwindSafe for GstEncoder
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> 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