From 5fc78fdbe55592f7cf3b036d72887022f8ff8e74 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 28 Nov 2023 15:38:13 -0800 Subject: [PATCH] Add `available_languages` with current lang support --- neon_stt_plugin_nemo_remote/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neon_stt_plugin_nemo_remote/__init__.py b/neon_stt_plugin_nemo_remote/__init__.py index 0c0124e..a043ad6 100644 --- a/neon_stt_plugin_nemo_remote/__init__.py +++ b/neon_stt_plugin_nemo_remote/__init__.py @@ -88,3 +88,7 @@ def execute(self, audio: AudioData, language: str = None) -> str: except Exception as e: LOG.exception(e) return "" + + def available_languages(self) -> set: + # TODO: Read from remote API + return {"en", "es", "fr", "de", "it", "uk", "nl", "pt", "ca"}