Skip to main content

TTSPlugin

Trait TTSPlugin 

Source
pub trait TTSPlugin:
    Plugin
    + Send
    + Sync {
    // Required method
    fn start<'life0, 'async_trait>(
        &'life0 self,
        speech_rx: Receiver<CognitiveOutputSpeech>,
        audio_tx: Sender<CognitiveOutputAudio>,
    ) -> 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, speech_rx: Receiver<CognitiveOutputSpeech>, audio_tx: Sender<CognitiveOutputAudio>, ) -> 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§