aerosieve
The curation pipeline: decode, segment, score, shard.
use ;
let config = new
.with_rules;
let mut pipeline = new?;
let outcome = pipeline.process_file?;
println!;
let stats = pipeline.finish?;
println!;
process_filedecodes a file first;process_audiotakes samples that are already decoded.- Each call returns a
FileOutcomelisting every segment with its metrics and, if it was rejected, the reason. Inspectordoes the same decoding, segmenting, and scoring without writing anything.finishcommits the last shard and returnsPipelineStats, including rejections counted by reason.Pipeline::newdetects speech by signal level.Pipeline::with_detectoraccepts anySpeechDetector, such asSileroDetectorunder thesilerofeature.
The decode and segment stages must agree on a sample rate; PipelineConfig::with_sample_rate sets both, and a mismatch is an error.
The stage crates are re-exported as aerosieve::{acoustic, decode, lexical, segment, shard}.
Examples and benchmarks