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
Ansgar Tuemmers 2020-01-04 17:30:45 +01:00
parent 43b9aa3a1c
commit c5b6987d0c
1 changed files with 1 additions and 1 deletions

2
mycroft/tts/google_tts.py Normal file → Executable file
View File

@ -23,7 +23,7 @@ class GoogleTTS(TTS):
self), 'mp3')
def get_tts(self, sentence, wav_file):
tts = gTTS(sentence, self.lang)
tts = gTTS(text=sentence, lang=self.lang)
tts.save(wav_file)
return (wav_file, None) # No phonemes