pub fn save_spectrogram_png(
path: &Path,
x: &[f32],
fs: f32,
) -> Result<(), Box<dyn Error>>Expand description
Saves a human-readable spectrogram PNG for a mono waveform.
Parameters:
path: output PNG path.x: input mono waveform.fs: sample rate in Hz. Returns:Result<(), Box<dyn Error>>:Ok(())when the PNG is written.