pub struct AudioStats {
pub peak: f32,
pub rms: f32,
pub clipped_frames: usize,
pub silent: bool,
pub silent_head_secs: f64,
pub silent_tail_secs: f64,
}Expand description
書き出した波形の統計。耳で確かめられないAIが、無音や割れに気づくためのもの。
Fields§
§peak: f32最大振幅(0.0〜1.0)。
rms: f32全体の実効値(RMS)。
clipped_frames: usize±1.0 に張り付いた(割れた)フレームの数。
silent: boolまったく鳴っていない。
silent_head_secs: f64最初に音が出るまでの無音(秒)。
silent_tail_secs: f64最後に音が消えてからの無音(秒)。
Trait Implementations§
Source§impl Clone for AudioStats
impl Clone for AudioStats
Source§fn clone(&self) -> AudioStats
fn clone(&self) -> AudioStats
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 AudioStats
impl Debug for AudioStats
Source§impl PartialEq for AudioStats
impl PartialEq for AudioStats
Source§impl Serialize for AudioStats
impl Serialize for AudioStats
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AudioStats
Auto Trait Implementations§
impl Forget for AudioStats
impl Freeze for AudioStats
impl Move for AudioStats
impl RefUnwindSafe for AudioStats
impl Send for AudioStats
impl Sync for AudioStats
impl Unpin for AudioStats
impl UnsafeUnpin for AudioStats
impl UnwindSafe for AudioStats
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