pub trait SpeechSynthesizer:
Send
+ Sync
+ 'static {
// Required methods
fn id(&self) -> SpeechSynthesizerId;
fn capabilities(&self) -> SpeechSynthesisCapabilities;
fn metadata(&self) -> SpeechProviderMetadata;
fn list_models<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: SpeechProviderContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SpeechSynthesisModelDescriptor>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn synthesize<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: SpeechProviderContext<'life1>,
request: SpeechSynthesisRequest,
) -> Pin<Box<dyn Future<Output = Result<SpeechSynthesisResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn id(&self) -> SpeechSynthesizerId
fn capabilities(&self) -> SpeechSynthesisCapabilities
fn metadata(&self) -> SpeechProviderMetadata
fn list_models<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: SpeechProviderContext<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SpeechSynthesisModelDescriptor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn synthesize<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: SpeechProviderContext<'life1>,
request: SpeechSynthesisRequest,
) -> Pin<Box<dyn Future<Output = Result<SpeechSynthesisResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".