Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 13bbf90

Browse files
Fix
1 parent c5fef0f commit 13bbf90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openrobot/api_wrapper/results.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class TextToSpeechSupportResult(OpenRobotAPIBaseResult):
357357
358358
Attributes
359359
----------
360-
languages: List[:class:`TextToSpeechSupportLanguage`]
360+
languages: List[:class:`str`]
361361
The languages supported by Text To Speech.
362362
voices: List[:class:`TextToSpeechSupportVoice`]
363363
The supported voices for Text To Speech.
@@ -366,7 +366,7 @@ class TextToSpeechSupportResult(OpenRobotAPIBaseResult):
366366
def __init__(self, js):
367367
super().__init__(js)
368368

369-
self.languages: typing.List[TextToSpeechSupportLanguage] = [TextToSpeechSupportLanguage(language) for language in js['languages']]
369+
self.languages: typing.List[str] = js['languages']
370370
self.voices: typing.List[TextToSpeechSupportVoice] = [TextToSpeechSupportVoice(voice) for voice in js['voices']]
371371

372372
class OCRResult(OpenRobotAPIBaseResult):

0 commit comments

Comments
 (0)