MCPcopy Create free account
hub / github.com/evilsocket/cake / test_mel_spectrogram_shape

Function test_mel_spectrogram_shape

cake-core/src/models/luxtts/mel.rs:192–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191 #[test]
192 fn test_mel_spectrogram_shape() {
193 let samples = vec![0.0f32; 24000];
194 let mel = mel_spectrogram(&samples, 1024, 256, 100, 24000, &Device::Cpu, DType::F32).unwrap();
195 let dims = mel.shape().dims();
196 assert_eq!(dims[0], 1);
197 assert_eq!(dims[1], 100);
198 assert!(dims[2] > 0);
199 }
200
201 #[test]
202 fn test_mel_spectrogram_sine_wave() {

Callers

nothing calls this directly

Calls 2

mel_spectrogramFunction · 0.85
shapeMethod · 0.80

Tested by

no test coverage detected