pub struct NeuralSpatialConfig {
pub model_type: NeuralModelType,
pub hidden_dims: Vec<usize>,
pub input_dim: usize,
pub output_channels: usize,
pub sample_rate: u32,
pub buffer_size: usize,
pub use_gpu: bool,
pub quality: f32,
pub realtime_constraints: RealtimeConstraints,
pub training_config: Option<TrainingConfig>,
}Expand description
Configuration for neural spatial audio processing
Fields§
§model_type: NeuralModelTypeModel architecture type
Hidden layer dimensions
input_dim: usizeInput feature dimensions
output_channels: usizeOutput audio channels (typically 2 for binaural)
sample_rate: u32Sample rate in Hz
buffer_size: usizeBuffer size for processing
use_gpu: boolWhether to use GPU acceleration
quality: f32Model quality setting (0.0-1.0)
realtime_constraints: RealtimeConstraintsReal-time processing constraints
training_config: Option<TrainingConfig>Training parameters
Trait Implementations§
Source§impl Clone for NeuralSpatialConfig
impl Clone for NeuralSpatialConfig
Source§fn clone(&self) -> NeuralSpatialConfig
fn clone(&self) -> NeuralSpatialConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeuralSpatialConfig
impl Debug for NeuralSpatialConfig
Source§impl Default for NeuralSpatialConfig
impl Default for NeuralSpatialConfig
Source§impl<'de> Deserialize<'de> for NeuralSpatialConfig
impl<'de> Deserialize<'de> for NeuralSpatialConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NeuralSpatialConfig
impl RefUnwindSafe for NeuralSpatialConfig
impl Send for NeuralSpatialConfig
impl Sync for NeuralSpatialConfig
impl Unpin for NeuralSpatialConfig
impl UnsafeUnpin for NeuralSpatialConfig
impl UnwindSafe for NeuralSpatialConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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