marek_speech_recognition_api 2.1.1

Speech recognition API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{RecognitionEvent, Recognizer, RecognizerOptions, SpeechResult};
use futures::channel::mpsc::UnboundedReceiver;

pub trait RecognizerFactory {
    fn create_recognizer(
        &mut self,
        options: RecognizerOptions,
    ) -> SpeechResult<(
        Box<dyn Recognizer + Send>,
        UnboundedReceiver<RecognitionEvent>,
    )>;
}