use async_trait::async_trait;
use crate::{RecognizerInfo, SpeechResult};
#[async_trait]
pub trait Recognizer {
fn info(&self) -> &RecognizerInfo;
async fn start(&mut self) -> SpeechResult;
async fn write(&mut self, buffer: &[i16]) -> SpeechResult;
async fn stop(&mut self) -> SpeechResult;
}