File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 36
36
from riva .client .proto .riva_asr_pb2 import RecognitionConfig , StreamingRecognitionConfig
37
37
from riva .client .proto .riva_audio_pb2 import AudioEncoding
38
38
from riva .client .proto .riva_nlp_pb2 import AnalyzeIntentOptions
39
- from riva .client .proto .riva_nmt_pb2 import StreamingTranslateSpeechToSpeechConfig , TranslationConfig
39
+ from riva .client .proto .riva_nmt_pb2 import StreamingTranslateSpeechToSpeechConfig , TranslationConfig , SynthesizeSpeechConfig
40
40
from riva .client .tts import SpeechSynthesisService
41
41
from riva .client .nmt import NeuralMachineTranslationClient
Original file line number Diff line number Diff line change @@ -95,7 +95,13 @@ def main() -> None:
95
95
),
96
96
translation_config = riva .client .TranslationConfig (
97
97
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
+ ),
99
105
)
100
106
101
107
#riva.client.add_word_boosting_to_config(config, args.boosted_lm_words, args.boosted_lm_score)
You can’t perform that action at this time.
0 commit comments