riva/proto/riva_tts.protoΒΆ

service RivaSpeechSynthesis
rpc SynthesizeSpeechResponse Synthesize(SynthesizeSpeechRequest)

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

rpc stream SynthesizeSpeechResponse SynthesizeOnline(SynthesizeSpeechRequest)

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

message SynthesizeSpeechRequest
string text
string language_code
nvidia.riva.AudioEncoding encoding

audio encoding params

int32 sample_rate_hz
string voice_name

voice params

message SynthesizeSpeechResponse
bytes audio