pub trait TextToSpeechProvider: Send + Sync {
type Config: ProviderConfig;
type Response: TextToSpeechResponse;
type Error: ProviderError;
// Required method
fn text_to_speech<'life0, 'async_trait>(
&'life0 self,
request: TextToSpeechRequest,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Optional trait for providers that support text-to-speech.
Required Associated Types§
Sourcetype Config: ProviderConfig
type Config: ProviderConfig
Provider-specific configuration type
Sourcetype Response: TextToSpeechResponse
type Response: TextToSpeechResponse
Provider-specific response type
Sourcetype Error: ProviderError
type Error: ProviderError
Provider-specific error type