pub struct Segment {
pub start: f32,
pub duration: f32,
pub confidence: f32,
pub loudness_start: f32,
pub loudness_max: f32,
pub loudness_max_time: f32,
pub loudness_end: f32,
pub pitches: Vec<f32>,
pub timbre: Vec<f32>,
}Expand description
A segment contains a relatively consistent sound throughout its duration.
Fields§
§start: f32The starting point, in seconds, of the segment.
duration: f32The duration, in seconds, of the segment.
confidence: f32A value ranging betweeen 0.0 - 1.0 that indicates the confidence of
the segment.
loudness_start: f32§loudness_max: f32§loudness_max_time: f32§loudness_end: f32§pitches: Vec<f32>§timbre: Vec<f32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Segment
impl<'de> Deserialize<'de> for Segment
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
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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