pub struct EcapaTdnn { /* private fields */ }Expand description
ECAPA-TDNN speaker embedding extractor.
Emphasized Channel Attention, Propagation and Aggregation in TDNN. State-of-the-art for speaker verification (2020+).
§Note
This is a stub - actual implementation requires model weights.
Implementations§
Source§impl EcapaTdnn
impl EcapaTdnn
Sourcepub fn new(config: EmbeddingConfig) -> Self
pub fn new(config: EmbeddingConfig) -> Self
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create with default ECAPA configuration
Trait Implementations§
Source§impl EmbeddingExtractor for EcapaTdnn
impl EmbeddingExtractor for EcapaTdnn
Source§fn extract(&self, audio: &[f32]) -> VoiceResult<SpeakerEmbedding>
fn extract(&self, audio: &[f32]) -> VoiceResult<SpeakerEmbedding>
Extract speaker embedding from audio samples. Read more
Source§fn embedding_dim(&self) -> usize
fn embedding_dim(&self) -> usize
Get the embedding dimension
Source§fn sample_rate(&self) -> u32
fn sample_rate(&self) -> u32
Get the expected sample rate
Auto Trait Implementations§
impl Freeze for EcapaTdnn
impl RefUnwindSafe for EcapaTdnn
impl Send for EcapaTdnn
impl Sync for EcapaTdnn
impl Unpin for EcapaTdnn
impl UnsafeUnpin for EcapaTdnn
impl UnwindSafe for EcapaTdnn
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> 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