confirmed rwhisper aint gonna cut it seemingly because candle doesnt cut it

master v0.2.3
Bel LaPointe 2023-12-21 14:40:17 -05:00
parent de099d9917
commit 3b79024bdd
1 changed files with 5 additions and 3 deletions

View File

@ -414,8 +414,10 @@ mod tests {
).expect("failed to make new engine2");
let data = f32_from_wav_file(&"../gitea-whisper-rs/sys/whisper.cpp/bindings/go/samples/jfk.wav".to_string()).expect("failed to read jfk.wav");
let start = std::time::Instant::now();
let result = engine_2.transcribe(&data).expect("failed to transcribe");
println!("rwhisper = {}s", start.elapsed().as_secs_f32());
assert_eq!(" And so my fellow American asked not what your country can do for you, ask what you can do for your country.".to_string(), result.to_string());
for i in 0..2 {
let result = engine_2.transcribe(&data).expect("failed to transcribe");
println!("rwhisper = {}s", start.elapsed().as_secs_f32());
assert_eq!(" And so my fellow American asked not what your country can do for you, ask what you can do for your country.".to_string(), result.to_string());
}
}
}