From 6d962725e10906bfca3faa5c6541ca7fa043c984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20L=C3=B6w?= Date: Sun, 20 Oct 2024 20:46:01 +0200 Subject: [PATCH] :sparkles: allow configuration of a custom translation service (such as libretranslate) --- .../rootfs/defaults/transcriber-sip-communicator.properties | 6 ++++++ transcriber.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/jigasi/rootfs/defaults/transcriber-sip-communicator.properties b/jigasi/rootfs/defaults/transcriber-sip-communicator.properties index 6860b15f9a..a2a339d7e0 100644 --- a/jigasi/rootfs/defaults/transcriber-sip-communicator.properties +++ b/jigasi/rootfs/defaults/transcriber-sip-communicator.properties @@ -27,6 +27,12 @@ org.jitsi.jigasi.transcription.RECORD_AUDIO_FORMAT=wav {{ if .Env.JIGASI_TRANSCRIBER_CUSTOM_SERVICE -}} org.jitsi.jigasi.transcription.customService={{ .Env.JIGASI_TRANSCRIBER_CUSTOM_SERVICE }} {{ end -}} +{{ if .Env.JIGASI_TRANSCRIBER_CUSTOM_TRANSLATION_SERVICE -}} +org.jitsi.jigasi.transcription.translationService={{ .Env.JIGASI_TRANSCRIBER_CUSTOM_TRANSLATION_SERVICE }} +{{ end -}} +{{ if .Env.JIGASI_TRANSCRIBER_LIBRETRANSLATE_URL -}} +org.jitsi.jigasi.transcription.libreTranslate.api_url={{ .Env.JIGASI_TRANSCRIBER_LIBRETRANSLATE_URL }} +{{ end -}} {{ if $JIGASI_TRANSCRIBER_FILTER_SILENCE -}} org.jitsi.jigasi.transcription.FILTER_SILENCE = true {{ end -}} diff --git a/transcriber.yml b/transcriber.yml index eb6efeb91c..58ff6a305b 100644 --- a/transcriber.yml +++ b/transcriber.yml @@ -38,6 +38,8 @@ services: - JIGASI_BREWERY_MUC - JIGASI_TRANSCRIBER_ADVERTISE_URL - JIGASI_TRANSCRIBER_CUSTOM_SERVICE + - JIGASI_TRANSCRIBER_CUSTOM_TRANSLATION_SERVICE + - JIGASI_TRANSCRIBER_LIBRETRANSLATE_URL - JIGASI_TRANSCRIBER_ENABLE_SAVING - JIGASI_TRANSCRIBER_FILTER_SILENCE - JIGASI_TRANSCRIBER_OCI_COMPARTMENT