Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m13v committed Aug 1, 2024
1 parent 80845e0 commit 54c7149
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions screenpipe-audio/tests/core_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ mod tests {
fn test_speech_to_text() {
setup();
println!("Starting speech to text test");

a
println!("Loading audio file");
let start = std::time::Instant::now();
let whisper_model = WhisperModel::new().unwrap();
let cloud_audio = true; // Set this based on your test requirements

let text = stt("./test_data/selah.mp4", &whisper_model).unwrap();
let text = stt("./test_data/selah.mp4", &whisper_model, cloud_audio).unwrap();
let duration = start.elapsed();

println!("Speech to text completed in {:?}", duration);
Expand Down

0 comments on commit 54c7149

Please sign in to comment.