pub struct StreamingFrameFeatures {
pub spectral_centroid: f32,
pub zero_crossing_rate: f32,
pub onset_strength: f32,
pub rms_energy: f32,
pub samples_processed: usize,
}Expand description
Lightweight per-chunk features updated every min_analysis_samples.
Fields§
§spectral_centroid: f32Spectral centroid estimate (normalised 0–1 relative to Nyquist).
zero_crossing_rate: f32Zero-crossing rate.
onset_strength: f32Onset strength (normalised).
rms_energy: f32RMS energy level.
samples_processed: usizeNumber of audio samples analysed so far.
Trait Implementations§
Source§impl Clone for StreamingFrameFeatures
impl Clone for StreamingFrameFeatures
Source§fn clone(&self) -> StreamingFrameFeatures
fn clone(&self) -> StreamingFrameFeatures
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 moreSource§impl Debug for StreamingFrameFeatures
impl Debug for StreamingFrameFeatures
Source§impl Default for StreamingFrameFeatures
impl Default for StreamingFrameFeatures
Source§fn default() -> StreamingFrameFeatures
fn default() -> StreamingFrameFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingFrameFeatures
impl RefUnwindSafe for StreamingFrameFeatures
impl Send for StreamingFrameFeatures
impl Sync for StreamingFrameFeatures
impl Unpin for StreamingFrameFeatures
impl UnsafeUnpin for StreamingFrameFeatures
impl UnwindSafe for StreamingFrameFeatures
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> 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