Skip to main content

AsrEngine

Trait AsrEngine 

Source
pub trait AsrEngine: Send + Sync {
    // Required methods
    fn info(&self) -> EngineInfo;
    fn transcribe(
        &self,
        audio: &AudioBuffer,
        opts: &AsrOptions,
    ) -> Result<Transcript>;
}
Expand description

Speech → text (Mercury).

Required Methods§

Source

fn info(&self) -> EngineInfo

Source

fn transcribe( &self, audio: &AudioBuffer, opts: &AsrOptions, ) -> Result<Transcript>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§