Skip to content

Commit

Permalink
fix: cut gpu usage by 80%
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jul 11, 2024
1 parent 642a563 commit 714023e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions screenpipe-audio/tests/core_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 714023e

Please sign in to comment.