mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-29 22:40:39 +02:00
Update texttospeech.py
This commit is contained in:
@ -40,6 +40,11 @@ class TextToSpeech(DVMTaskInterface):
|
|||||||
input_type = tag.as_vec()[2]
|
input_type = tag.as_vec()[2]
|
||||||
if input_type != "text":
|
if input_type != "text":
|
||||||
return False
|
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
|
return True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user