Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
NvidiaTTS
Text-to-speech with NVIDIA Riva Magpie voices hosted on NVIDIA’s cloud. Good for natural multilingual voices over a low-latency gRPC stream. Authenticates with NVIDIA_API_KEY from your environment, or an explicitapi_key.
Fields
str
default:"UNSET"
Riva gRPC server address as host:port. Defaults to ‘grpc.nvcf.nvidia.com:443’.
str
default:"UNSET"
NVIDIA cloud function ID of the hosted voice model to call. Defaults to ‘877104f7-e885-42b9-8de8-f6e4c6303969’.
str
default:"UNSET"
Riva voice to speak with, e.g. “Magpie-Multilingual.EN-US.Aria”. Defaults to ‘Magpie-Multilingual.EN-US.Aria’.
str
default:"UNSET"
BCP-47 language code of the text, e.g. “en-US”. Should match the voice. Defaults to ‘en-US’.
int
default:"22050"
Output audio sample rate in Hz, e.g. 22050. Defaults to 22050.
bool
default:"UNSET"
Connect to the server over TLS. Turn off only for a local unsecured Riva server. Defaults to True.