From f1afdf6c86d2ae6fb0a7f2473392c9c7ffb398d6 Mon Sep 17 00:00:00 2001 From: Believethehype Date: Sat, 23 Dec 2023 20:11:10 +0100 Subject: [PATCH] Update texttospeech.py --- nostr_dvm/tasks/texttospeech.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nostr_dvm/tasks/texttospeech.py b/nostr_dvm/tasks/texttospeech.py index 39fd4d2..996ff13 100644 --- a/nostr_dvm/tasks/texttospeech.py +++ b/nostr_dvm/tasks/texttospeech.py @@ -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