Skip to main content

LocalSttEngine

Trait LocalSttEngine 

Source
pub trait LocalSttEngine: Send + Sync {
    // Required method
    fn transcribe<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        audio_data: &'life1 [u8],
        language: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<LocalSttResult, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for the local STT engine (e.g., sherpa-rs based).

Required Methods§

Source

fn transcribe<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, audio_data: &'life1 [u8], language: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<LocalSttResult, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Transcribe audio data using the local engine.

Implementors§