Skip to main content

STTPlugin

Trait STTPlugin 

Source
pub trait STTPlugin:
    Plugin
    + Send
    + Sync {
    // Required method
    fn start<'life0, 'async_trait>(
        &'life0 self,
        audio_rx: Receiver<InputVoiceAudio>,
        transcript_tx: Sender<SpeechTranscript>,
        speech_detected: SpeechDetected,
    ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn start<'life0, 'async_trait>( &'life0 self, audio_rx: Receiver<InputVoiceAudio>, transcript_tx: Sender<SpeechTranscript>, speech_detected: SpeechDetected, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§