SpeechToTextResponse

Trait SpeechToTextResponse 

Source
pub trait SpeechToTextResponse: Send + Sync {
    // Required methods
    fn text(&self) -> String;
    fn language(&self) -> Option<String>;
    fn metadata(&self) -> Metadata;
}
Expand description

Trait for speech-to-text response types.

Required Methods§

Source

fn text(&self) -> String

Get the transcribed text

Source

fn language(&self) -> Option<String>

Get the detected language if available

Source

fn metadata(&self) -> Metadata

Get response metadata

Implementors§