TtsApi

Trait TtsApi 

Source
pub trait TtsApi {
    // Required method
    fn tts(
        &self,
        voice_settings: &TtsBody,
        voice_id: impl AsRef<str>,
    ) -> ApiResult<Vec<u8>>;
}

Required Methods§

Source

fn tts( &self, voice_settings: &TtsBody, voice_id: impl AsRef<str>, ) -> ApiResult<Vec<u8>>

Creates a bytes array containing the audio of the text.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§