pub trait RivaSpeechSynthesis: Send + Sync + 'static {
    type SynthesizeOnlineStream: Stream<Item = Result<SynthesizeSpeechResponse, Status>> + Send + 'static;

    // Required methods
    fn synthesize<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SynthesizeSpeechRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SynthesizeSpeechResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn synthesize_online<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SynthesizeSpeechRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SynthesizeOnlineStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_riva_synthesis_config<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RivaSynthesisConfigRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<RivaSynthesisConfigResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with RivaSpeechSynthesisServer.

Required Associated Types§

source

type SynthesizeOnlineStream: Stream<Item = Result<SynthesizeSpeechResponse, Status>> + Send + 'static

Server streaming response type for the SynthesizeOnline method.

Required Methods§

source

fn synthesize<'life0, 'async_trait>( &'life0 self, request: Request<SynthesizeSpeechRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<SynthesizeSpeechResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Used to request text-to-speech from the service. Submit a request containing the desired text and configuration, and receive audio bytes in the requested format.

source

fn synthesize_online<'life0, 'async_trait>( &'life0 self, request: Request<SynthesizeSpeechRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SynthesizeOnlineStream>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Used to request text-to-speech returned via stream as it becomes available. Submit a SynthesizeSpeechRequest with desired text and configuration, and receive stream of bytes in the requested format.

source

fn get_riva_synthesis_config<'life0, 'async_trait>( &'life0 self, request: Request<RivaSynthesisConfigRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<RivaSynthesisConfigResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Enables clients to request the configuration of the current Synthesize service, or a specific model within the service.

Implementors§