mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-18 05:41:51 +01:00
Update texttospeech.py
This commit is contained in:
parent
ef6f9093f7
commit
f1afdf6c86
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user