pub struct NeuralSpatialProcessor { /* private fields */ }Expand description
Neural spatial audio processor
Implementations§
Source§impl NeuralSpatialProcessor
impl NeuralSpatialProcessor
Sourcepub fn new(config: NeuralSpatialConfig) -> Result<Self>
pub fn new(config: NeuralSpatialConfig) -> Result<Self>
Create a new neural spatial processor
Sourcepub fn process(
&mut self,
input: &NeuralInputFeatures,
) -> Result<NeuralSpatialOutput>
pub fn process( &mut self, input: &NeuralInputFeatures, ) -> Result<NeuralSpatialOutput>
Process audio with neural spatial synthesis
Sourcepub fn process_batch(
&mut self,
inputs: &[NeuralInputFeatures],
) -> Result<Vec<NeuralSpatialOutput>>
pub fn process_batch( &mut self, inputs: &[NeuralInputFeatures], ) -> Result<Vec<NeuralSpatialOutput>>
Process batch of inputs for better efficiency
Sourcepub fn metrics(&self) -> Result<NeuralPerformanceMetrics>
pub fn metrics(&self) -> Result<NeuralPerformanceMetrics>
Get current performance metrics
Sourcepub fn reset_metrics(&self) -> Result<()>
pub fn reset_metrics(&self) -> Result<()>
Reset performance metrics
Sourcepub fn update_config(&mut self, new_config: NeuralSpatialConfig) -> Result<()>
pub fn update_config(&mut self, new_config: NeuralSpatialConfig) -> Result<()>
Update configuration
Sourcepub fn train(
&mut self,
training_data: &[(NeuralInputFeatures, Vec<Vec<f32>>)],
) -> Result<NeuralTrainingResults>
pub fn train( &mut self, training_data: &[(NeuralInputFeatures, Vec<Vec<f32>>)], ) -> Result<NeuralTrainingResults>
Train the neural model with provided data
Sourcepub fn save_model(&self, path: &str) -> Result<()>
pub fn save_model(&self, path: &str) -> Result<()>
Save the current model
Sourcepub fn load_model(&mut self, path: &str) -> Result<()>
pub fn load_model(&mut self, path: &str) -> Result<()>
Load a trained model
Auto Trait Implementations§
impl Freeze for NeuralSpatialProcessor
impl !RefUnwindSafe for NeuralSpatialProcessor
impl Send for NeuralSpatialProcessor
impl Sync for NeuralSpatialProcessor
impl Unpin for NeuralSpatialProcessor
impl UnsafeUnpin for NeuralSpatialProcessor
impl !UnwindSafe for NeuralSpatialProcessor
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> 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