pub struct IsolationResult {
pub audio: Vec<f32>,
pub noise_floor: Option<Vec<f32>>,
pub sample_rate: u32,
pub snr_improvement_db: f32,
pub input_snr_db: f32,
pub output_snr_db: f32,
}Expand description
Result of voice isolation operation.
Fields§
§audio: Vec<f32>Isolated (clean) audio samples
noise_floor: Option<Vec<f32>>Estimated noise floor (optional)
sample_rate: u32Sample rate of output
snr_improvement_db: f32Signal-to-noise ratio improvement in dB
input_snr_db: f32Estimated input SNR in dB
output_snr_db: f32Estimated output SNR in dB
Implementations§
Source§impl IsolationResult
impl IsolationResult
Sourcepub fn with_snr(self, input_snr: f32, output_snr: f32) -> IsolationResult
pub fn with_snr(self, input_snr: f32, output_snr: f32) -> IsolationResult
Set SNR metrics
Sourcepub fn with_noise_floor(self, noise_floor: Vec<f32>) -> IsolationResult
pub fn with_noise_floor(self, noise_floor: Vec<f32>) -> IsolationResult
Set noise floor estimate
Trait Implementations§
Source§impl Clone for IsolationResult
impl Clone for IsolationResult
Source§fn clone(&self) -> IsolationResult
fn clone(&self) -> IsolationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IsolationResult
impl RefUnwindSafe for IsolationResult
impl Send for IsolationResult
impl Sync for IsolationResult
impl Unpin for IsolationResult
impl UnsafeUnpin for IsolationResult
impl UnwindSafe for IsolationResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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