pub fn spectrogram<T>( signal: &[T], config: &TFConfig, sample_rate: Option<f64>, ) -> FFTResult<(Vec<f64>, Vec<f64>, Array2<f64>)>where T: NumCast + Copy + Debug,
Calculate the spectrogram (magnitude squared of STFT)