Spaces:
Sleeping
Sleeping
pub(crate) mod aws; | |
pub(crate) mod whisper; | |
use async_trait::async_trait; | |
use tokio::sync::broadcast::Receiver; | |
pub(crate) struct Event { | |
pub(crate) transcript: String, | |
pub(crate) is_final: bool, | |
} | |
pub(crate) trait ASR { | |
async fn frame(&mut self, frame: Vec<i16>) -> anyhow::Result<()>; | |
fn subscribe(&mut self) -> Receiver<Event>; | |
} | |