Skip to main content

run

Function run 

Source
pub async fn run(
    engine: &dyn Engine,
    corpus: &[BenchClip],
    transcribe: impl Fn(&[f32], u32) -> String,
    on_clip: impl FnMut(usize) -> ControlFlow<()>,
) -> Result<TtsBenchResult, Error>
Expand description

Synthesize every transcript, transcribe the audio back, and score it.

on_clip is told each clip’s 1-based position as it lands; a Break stops the run with Error::Cancelled, because what ran is not a result.