pub trait SpeechModel: Send + Sync {
// Required method
fn synthesize_speech(
&self,
request: SpeechRequest,
context: ModelCallContext,
) -> ModelFuture<'_, Result<SpeechResponse, ModelError>>;
}Expand description
Independent text-to-speech model boundary.
Required Methods§
Sourcefn synthesize_speech(
&self,
request: SpeechRequest,
context: ModelCallContext,
) -> ModelFuture<'_, Result<SpeechResponse, ModelError>>
fn synthesize_speech( &self, request: SpeechRequest, context: ModelCallContext, ) -> ModelFuture<'_, Result<SpeechResponse, ModelError>>
Synthesizes one complete audio output.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".