pub struct Separator { /* private fields */ }Expand description
Main separator for audio source separation
Implementations§
Source§impl Separator
impl Separator
Sourcepub fn new(config: SeparatorConfig) -> Result<Self>
pub fn new(config: SeparatorConfig) -> Result<Self>
Create new separator from configuration
Sourcepub fn with_default_model() -> Result<Self>
pub fn with_default_model() -> Result<Self>
Create separator with default configuration
Sourcepub fn separate(&self, audio: &AudioBuffer) -> Result<Stems>
pub fn separate(&self, audio: &AudioBuffer) -> Result<Stems>
Separate audio buffer into stems
Sourcepub fn separate_and_save<P: AsRef<Path>, O: AsRef<Path>>(
&self,
input_path: P,
output_dir: O,
) -> Result<()>
pub fn separate_and_save<P: AsRef<Path>, O: AsRef<Path>>( &self, input_path: P, output_dir: O, ) -> Result<()>
Separate audio and save stems
Sourcepub fn separate_batch<P: AsRef<Path>, O: AsRef<Path>>(
&self,
input_paths: &[P],
output_dir: O,
) -> Result<()>
pub fn separate_batch<P: AsRef<Path>, O: AsRef<Path>>( &self, input_paths: &[P], output_dir: O, ) -> Result<()>
Batch separate multiple files
Sourcepub fn model_config(&self) -> &ModelConfig
pub fn model_config(&self) -> &ModelConfig
Get model configuration
Sourcepub fn process_config(&self) -> &ProcessConfig
pub fn process_config(&self) -> &ProcessConfig
Get processing configuration
Auto Trait Implementations§
impl Freeze for Separator
impl !RefUnwindSafe for Separator
impl Send for Separator
impl Sync for Separator
impl Unpin for Separator
impl !UnwindSafe for Separator
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<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 more