Prepare for gTTS 2.1.0
Signature of gTTS.__init__ changes in 2.1.0 and breaks calls with unnamed arguments like gTTS('some text', 'de')pull/2447/head
parent
43b9aa3a1c
commit
c5b6987d0c
|
@ -23,7 +23,7 @@ class GoogleTTS(TTS):
|
||||||
self), 'mp3')
|
self), 'mp3')
|
||||||
|
|
||||||
def get_tts(self, sentence, wav_file):
|
def get_tts(self, sentence, wav_file):
|
||||||
tts = gTTS(sentence, self.lang)
|
tts = gTTS(text=sentence, lang=self.lang)
|
||||||
tts.save(wav_file)
|
tts.save(wav_file)
|
||||||
return (wav_file, None) # No phonemes
|
return (wav_file, None) # No phonemes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue