File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def parse_args() -> argparse.Namespace:
21
21
parser .add_argument ("--list-output-devices" , action = "store_true" , help = "List input audio device indices." )
22
22
parser .add_argument ("--output-device" , type = int , help = "Output device to use." )
23
23
parser .add_argument ("--target-language-code" , default = "en-US" , help = "Language code of the output language." )
24
+ parser .add_argument ("--tts-voice-name" , default = "English-US.Female-1" , help = "Voice name of the TTS model" )
24
25
parser .add_argument (
25
26
"--play-audio" ,
26
27
action = "store_true" ,
@@ -99,8 +100,8 @@ def main() -> None:
99
100
tts_config = riva .client .SynthesizeSpeechConfig (
100
101
encoding = 1 ,
101
102
sample_rate_hz = 44100 ,
102
- voice_name = "English-US.Female-1" ,
103
- language_code = "en-US" ,
103
+ voice_name = args . tts_voice_name ,
104
+ language_code = args . target_language_code ,
104
105
),
105
106
)
106
107
You can’t perform that action at this time.
0 commit comments