Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): add keyterms/keyterm_boost to TranscribeOptions in bench examples (E0063)

Louis Beaumontf0a7e03d096d
diff --git a/crates/screenpipe-audio/examples/bench_quality.rs b/crates/screenpipe-audio/examples/bench_quality.rs
index 18e71bdbb..c58366371 100644
--- a/crates/screenpipe-audio/examples/bench_quality.rs
+++ b/crates/screenpipe-audio/examples/bench_quality.rs
@@ -171,6 +171,8 @@ fn transcribe_chunked(
let opts = audiopipe::TranscribeOptions {
language: lang.map(|s| s.to_string()),
word_timestamps: false,
+ keyterms: Vec::new(),
+ keyterm_boost: 0.0,
..Default::default()
};
@@ -189,6 +191,8 @@ fn transcribe_chunked(
let opts = audiopipe::TranscribeOptions {
language: lang.map(|s| s.to_string()),
word_timestamps: false,
+ keyterms: Vec::new(),
+ keyterm_boost: 0.0,
..Default::default()
};
let result = engine.transcribe_with_sample_rate(chunk, sample_rate, opts);
diff --git a/crates/screenpipe-audio/examples/bench_quality2.rs b/crates/screenpipe-audio/examples/bench_quality2.rs
index b4f130cde..0f1619508 100644
--- a/crates/screenpipe-audio/examples/bench_quality2.rs
+++ b/crates/screenpipe-audio/examples/bench_quality2.rs
@@ -275,6 +275,8 @@ fn transcribe_full(model: &mut audiopipe::Model, audio: &[f32], sr: u32) -> Stri
let opts = audiopipe::TranscribeOptions {
language: None,
word_timestamps: false,
+ keyterms: Vec::new(),
+ keyterm_boost: 0.0,
..Default::default()
};
model
@@ -306,6 +308,8 @@ fn transcribe_fixed_chunks(
let opts = audiopipe::TranscribeOptions {
language: None,
word_timestamps: false,
+ keyterms: Vec::new(),
+ keyterm_boost: 0.0,
..Default::default()
};
let text = model
@@ -358,6 +362,8 @@ fn transcribe_vad_segments(
let opts = audiopipe::TranscribeOptions {
language: None,
word_timestamps: false,
+ keyterms: Vec::new(),
+ keyterm_boost: 0.0,
..Default::default()
};
let text = model
@@ -477,6 +483,8 @@ async fn main() -> anyhow::Result<()> {
let opts = audiopipe::TranscribeOptions {
language: None,
word_timestamps: false,
+ keyterms: Vec::new(),
+ keyterm_boost: 0.0,
..Default::default()
};
match model.transcribe(chunk, opts) {