vineelpratap commited on
Commit
4ab3d82
1 Parent(s): 8a0a956

Update tts.py

Browse files
Files changed (1) hide show
  1. tts.py +6 -6
tts.py CHANGED
@@ -92,7 +92,7 @@ class TextMapper(object):
92
  return text
93
 
94
 
95
- def synthesize(text, lang, speed=None):
96
  if speed is None:
97
  speed = 1.0
98
 
@@ -173,9 +173,9 @@ def synthesize(text, lang, speed=None):
173
 
174
 
175
  TTS_EXAMPLES = [
176
- ["I am going to the store.", "eng (English)"],
177
- ["안녕하세요.", "kor (Korean)"],
178
- ["क्या मुझे पीने का पानी मिल सकता है?", "hin (Hindi)"],
179
- ["Tanış olmağıma çox şadam", "azj-script_latin (Azerbaijani, North)"],
180
- ["Mu zo murna a cikin ƙasar.", "hau (Hausa)"],
181
  ]
 
92
  return text
93
 
94
 
95
+ def synthesize(text=None, lang=None, speed=None):
96
  if speed is None:
97
  speed = 1.0
98
 
 
173
 
174
 
175
  TTS_EXAMPLES = [
176
+ ["I am going to the store.", "eng (English)", 1.0],
177
+ ["안녕하세요.", "kor (Korean)", 1.0],
178
+ ["क्या मुझे पीने का पानी मिल सकता है?", "hin (Hindi)", 1.0],
179
+ ["Tanış olmağıma çox şadam", "azj-script_latin (Azerbaijani, North)", 1.0],
180
+ ["Mu zo murna a cikin ƙasar.", "hau (Hausa)", 1.0],
181
  ]