Skip to content

Commit db64efc

Browse files
fix: add tts config as per latest proto
1 parent 9f3abcb commit db64efc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/nmt/s2s_mic.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ def main() -> None:
9595
),
9696
translation_config = riva.client.TranslationConfig(
9797
target_language_code=args.target_language_code,
98-
)
98+
),
99+
tts_config = riva.client.SynthesizeSpeechConfig(
100+
encoding=1,
101+
sample_rate_hz=44100,
102+
voice_name="English-US.Female-1",
103+
language_code="en-US",
104+
),
99105
)
100106

101107
#riva.client.add_word_boosting_to_config(config, args.boosted_lm_words, args.boosted_lm_score)

0 commit comments

Comments
 (0)