We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b4d66 commit 1e6a295Copy full SHA for 1e6a295
2 files changed
riva/client/nmt.py
@@ -23,6 +23,7 @@ def streaming_s2t_request_generator(
23
yield riva_nmt.StreamingTranslateSpeechToTextRequest(audio_content=chunk)
24
25
def add_dnt_phrases_dict(req, dnt_phrases_dict):
26
+ dnt_phrases = None
27
if dnt_phrases_dict is not None:
28
dnt_phrases = [f"{key}##{value}" for key, value in dnt_phrases_dict.items()]
29
if dnt_phrases:
riva/client/tts.py
@@ -12,6 +12,7 @@
12
import wave
13
14
def add_custom_dictionary_to_config(req, custom_dictionary):
15
+ result_list = None
16
if custom_dictionary is not None:
17
result_list = [f"{key} {value}" for key, value in custom_dictionary.items()]
18
if result_list:
0 commit comments