TextToSpeechResponse

Trait TextToSpeechResponse 

Source
pub trait TextToSpeechResponse: Send + Sync {
    // Required methods
    fn audio_data(&self) -> Vec<u8> ;
    fn format(&self) -> String;
    fn metadata(&self) -> Metadata;
}
Expand description

Trait for text-to-speech response types.

Required Methods§

Source

fn audio_data(&self) -> Vec<u8>

Get the audio data

Source

fn format(&self) -> String

Get the audio format

Source

fn metadata(&self) -> Metadata

Get response metadata

Implementors§