We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d24b56 commit 6f7bd6bCopy full SHA for 6f7bd6b
1 file changed
riva/client/tts.py
@@ -12,9 +12,11 @@
12
import wave
13
14
def add_custom_dictionary_to_config(req, custom_dictionary):
15
- result_list = [f"{key} {value}" for key, value in custom_dictionary.items()]
16
- result_string = ','.join(result_list)
17
- req.custom_dictionary = result_string
+ if custom_dictionary is not None:
+ result_list = [f"{key} {value}" for key, value in custom_dictionary.items()]
+ if result_list:
18
+ result_string = ','.join(result_list)
19
+ req.custom_dictionary = result_string
20
21
class SpeechSynthesisService:
22
"""
0 commit comments