Update texttospeech.py

This commit is contained in:
Believethehype 2023-12-23 20:11:10 +01:00
parent ef6f9093f7
commit f1afdf6c86

View File

@ -40,6 +40,11 @@ class TextToSpeech(DVMTaskInterface):
input_type = tag.as_vec()[2]
if input_type != "text":
return False
elif tag.as_vec()[0] == 'param':
param = tag.as_vec()[1]
if param == "language": # check for param type
if tag.as_vec()[2] != "en": # todo add other available languages
return False
return True