
Natural, high-fidelity, English voices for personalizing text-to-speech services and voiceovers
Riva uses gRPC APIs. Instructions below demonstrate usage of radtts-hifigan-tts model using Python gRPC client.
You will need a system with Git and Python 3+ installed.
$ pip install -r https://raw.githubusercontent.com/nvidia-riva/python-clients/main/requirements.txt
$ pip install --force-reinstall git+https://github.com/nvidia-riva/python-clients.git
Download Python client code by cloning Python Client Repository.
$ git clone https://github.com/nvidia-riva/python-clients.git
Open a command terminal and execute below command to synthesize audio from the example text. If you have generated the API key, it will be auto-populated in the command.
$ python python-clients/scripts/tts/talk.py \
--server grpc.nvcf.nvidia.com:443 --use-ssl \
--metadata function-id "5e607c81-7aa6-44ce-a11d-9e08f0a3fe49" \
--metadata authorization "Bearer $NVIDIA_API_KEY" \
--text "this audio is generated from nvidia's text-to-speech model" \
--voice "English-US-RadTTS.Female-1" \
--output audio.wav
List of available voices can be obtained using below command.
$ python python-clients/scripts/tts/talk.py \
--server grpc.nvcf.nvidia.com:443 --use-ssl \
--metadata function-id "5e607c81-7aa6-44ce-a11d-9e08f0a3fe49" \
--metadata authorization "Bearer $NVIDIA_API_KEY" \
--list-voices
Riva uses gRPC APIs. Proto files can be downloaded from Riva gRPC Proto files and compiled to target language using Protoc compiler. Example Riva clients in C++ and Python languages are provided below.