From 714023e65548d366db56446e94e1f5730df4f722 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Thu, 11 Jul 2024 13:10:21 +0200 Subject: [PATCH] fix: cut gpu usage by 80% --- screenpipe-audio/tests/core_tests.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/screenpipe-audio/tests/core_tests.rs b/screenpipe-audio/tests/core_tests.rs index 8c162a02..24a4c061 100644 --- a/screenpipe-audio/tests/core_tests.rs +++ b/screenpipe-audio/tests/core_tests.rs @@ -28,14 +28,7 @@ mod tests { let start = std::time::Instant::now(); let whisper_model = WhisperModel::new().unwrap(); - let text = stt( - &[AudioInput { - path: "./test_data/poetic_kapil_gupta.wav".to_string(), - device: "the sun".to_string(), - }], - &whisper_model, - ) - .unwrap(); + let text = stt("./test_data/poetic_kapil_gupta.wav", &whisper_model).unwrap(); let duration = start.elapsed(); println!("Speech to text completed in {:?}", duration);