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

Function test_upsample

cake-core/tests/test_luxtts_audio.rs:104–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103 #[test]
104 fn test_upsample() {
105 let samples = vec![0.0f32, 1.0, 0.0, -1.0]; // 4 samples at 1Hz
106 let up = cake_core::models::luxtts::vocos::upsample(&samples, 1, 2);
107 assert_eq!(up.len(), 8); // doubled
108 // Check interpolation: midpoint between 0 and 1 should be ~0.5
109 assert!((up[1] - 0.5).abs() < 0.1);
110 }
111
112 #[test]
113 fn test_euler_solver_flow_matching() {

Callers

nothing calls this directly

Calls 1

upsampleFunction · 0.85

Tested by

no test coverage detected