pub struct Sv2TtsSpeakerEncoder { /* private fields */ }Expand description
SV2TTS-based speaker encoder.
Reference: Jia et al., 2018 - Transfer Learning from Speaker Verification to TTS.
§Note
This is a stub - requires model weights.
Implementations§
Source§impl Sv2TtsSpeakerEncoder
impl Sv2TtsSpeakerEncoder
Sourcepub fn new(embedding_dim: usize) -> Sv2TtsSpeakerEncoder
pub fn new(embedding_dim: usize) -> Sv2TtsSpeakerEncoder
Create new SV2TTS speaker encoder
Sourcepub fn default_config() -> Sv2TtsSpeakerEncoder
pub fn default_config() -> Sv2TtsSpeakerEncoder
Create with default dimension (256)
Trait Implementations§
Source§impl Debug for Sv2TtsSpeakerEncoder
impl Debug for Sv2TtsSpeakerEncoder
Source§impl SpeakerEncoder for Sv2TtsSpeakerEncoder
impl SpeakerEncoder for Sv2TtsSpeakerEncoder
Source§fn encode(&self, audio: &[f32]) -> Result<SpeakerEmbedding, VoiceError>
fn encode(&self, audio: &[f32]) -> Result<SpeakerEmbedding, VoiceError>
Encode speaker from audio to embedding. Read more
Source§fn embedding_dim(&self) -> usize
fn embedding_dim(&self) -> usize
Get embedding dimension
Auto Trait Implementations§
impl Freeze for Sv2TtsSpeakerEncoder
impl RefUnwindSafe for Sv2TtsSpeakerEncoder
impl Send for Sv2TtsSpeakerEncoder
impl Sync for Sv2TtsSpeakerEncoder
impl Unpin for Sv2TtsSpeakerEncoder
impl UnsafeUnpin for Sv2TtsSpeakerEncoder
impl UnwindSafe for Sv2TtsSpeakerEncoder
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