swarm-stt: only files that start like an audio container reach ffmpeg
This commit is contained in:
parent
f8e1d0fbbd
commit
33e63091d5
1 changed files with 97 additions and 7 deletions
|
|
@ -9,12 +9,16 @@
|
|||
//! - an in-flight map, so two requests for one memo that arrive together share
|
||||
//! one engine run instead of starting two.
|
||||
//!
|
||||
//! The audio comes from rooms with outside people, so [`sniff`] checks that a file
|
||||
//! starts like an audio container before any decoder sees it.
|
||||
//!
|
||||
//! The engine is behind the [`Engine`] trait. [`engine::Whisper`] decodes with
|
||||
//! `ffmpeg` and transcribes with `whisper-cli`; the tests use a fake.
|
||||
|
||||
pub mod cache;
|
||||
pub mod engine;
|
||||
mod service;
|
||||
pub mod sniff;
|
||||
|
||||
pub use engine::Engine;
|
||||
pub use service::{Config, Error, Reply, Service};
|
||||
|
|
|
|||
Loading…
Reference in a new issue