This pull request introduces a addition of custom grapheme-to-phoneme dictionary for the Riva TTS client. The custom dictionary takes precedence over the default grapheme-to-phoneme rules and if a word is present in both the custom dictionary and the default rules, the custom mapping will be used.
Ensure custom handling of the dictionary is handled in the client end and is of the format key.
Read textFile and pass as string of the format to the API "ARON ˈdʒɑnsən,AARON ˈdʒɑnsən"
Usage
To use, pass the --user-dictionary flag with the path to your dictionary file when running the riva_tts_client
Example:
python3 riva/client/talk.py --text=" Hi Aaron, this is speech synthesizer" --audio_file=/opt/riva/riva-speech/output.wav --user_dictionary=
This pull request introduces a addition of custom grapheme-to-phoneme dictionary for the Riva TTS client. The custom dictionary takes precedence over the default grapheme-to-phoneme rules and if a word is present in both the custom dictionary and the default rules, the custom mapping will be used.
Ensure custom handling of the dictionary is handled in the client end and is of the format key. Read textFile and pass as string of the format to the API "ARON ˈdʒɑnsən,AARON ˈdʒɑnsən"
Usage To use, pass the --user-dictionary flag with the path to your dictionary file when running the riva_tts_client
Example: python3 riva/client/talk.py --text=" Hi Aaron, this is speech synthesizer" --audio_file=/opt/riva/riva-speech/output.wav --user_dictionary=