pub struct AudioFingerprint {
pub path: String,
pub rms: f64,
pub spectral_centroid: f64,
pub zero_crossing_rate: f64,
pub low_band_energy: f64,
pub mid_band_energy: f64,
pub high_band_energy: f64,
pub low_energy_ratio: f64,
pub attack_time: f64,
}Expand description
Audio fingerprint — a compact feature vector for similarity comparison.
Fields§
§path: String§rms: f64§spectral_centroid: f64§zero_crossing_rate: f64§low_band_energy: f64§mid_band_energy: f64§high_band_energy: f64§low_energy_ratio: f64§attack_time: f64Trait Implementations§
Source§impl Clone for AudioFingerprint
impl Clone for AudioFingerprint
Source§fn clone(&self) -> AudioFingerprint
fn clone(&self) -> AudioFingerprint
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 AudioFingerprint
impl Debug for AudioFingerprint
Source§impl<'de> Deserialize<'de> for AudioFingerprint
impl<'de> Deserialize<'de> for AudioFingerprint
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 AudioFingerprint
impl RefUnwindSafe for AudioFingerprint
impl Send for AudioFingerprint
impl Sync for AudioFingerprint
impl Unpin for AudioFingerprint
impl UnwindSafe for AudioFingerprint
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,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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