async fn generate_waveform(
file: &File,
duration: Option<Duration>,
) -> Option<Vec<f32>>Expand description
Generate a waveform for the given audio file.
The returned waveform should contain between 30 and 110 samples with a value between 0 and 1.