Fix Watson TTS to use correct API (#54916)

pull/54961/head
Guy Khmelnitsky 2021-08-20 23:41:30 +03:00 committed by GitHub
parent 1f2134a31a
commit 8f6281473e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class WatsonTTSProvider(Provider):
def get_tts_audio(self, message, language=None, options=None):
"""Request TTS file from Watson TTS."""
response = self.service.synthesize(
message, accept=self.output_format, voice=self.default_voice
text=message, accept=self.output_format, voice=self.default_voice
).get_result()
return (CONTENT_TYPE_EXTENSIONS[self.output_format], response.content)