From 74d913f58acfe01573aa335ea363b8487137078d Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Wed, 23 Oct 2024 11:39:18 -0500 Subject: [PATCH] feat(transcriber): flag to enable translations (#1953) * feat(transcriber): flag to enable translations * default translation to off --- jigasi/rootfs/defaults/transcriber-sip-communicator.properties | 3 +++ transcriber.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/jigasi/rootfs/defaults/transcriber-sip-communicator.properties b/jigasi/rootfs/defaults/transcriber-sip-communicator.properties index 9d28551..897056c 100644 --- a/jigasi/rootfs/defaults/transcriber-sip-communicator.properties +++ b/jigasi/rootfs/defaults/transcriber-sip-communicator.properties @@ -2,6 +2,7 @@ {{ $JIGASI_TRANSCRIBER_FILTER_SILENCE := .Env.JIGASI_TRANSCRIBER_FILTER_SILENCE | default "0" | toBool -}} {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}} {{ $JIGASI_TRANSCRIBER_ENABLE_SAVING := .Env.JIGASI_TRANSCRIBER_ENABLE_SAVING | default "1" | toBool -}} +{{ $JIGASI_TRANSCRIBER_ENABLE_TRANSLATION := .Env.JIGASI_TRANSCRIBER_ENABLE_TRANSLATION | default "0" | toBool -}} org.jitsi.jigasi.ENABLE_SIP=false org.jitsi.jigasi.xmpp.acc.USER_ID={{ $JIGASI_TRANSCRIBER_USER }}@{{ $XMPP_RECORDER_DOMAIN }} @@ -11,7 +12,9 @@ org.jitsi.jigasi.xmpp.acc.ALLOW_NON_SECURE=true # Transcription config org.jitsi.jigasi.ENABLE_TRANSCRIPTION=true +{{ if $JIGASI_TRANSCRIBER_ENABLE_TRANSLATION -}} org.jitsi.jigasi.transcription.ENABLE_TRANSLATION=true +{{ end -}} {{ if $JIGASI_TRANSCRIBER_ENABLE_SAVING -}} org.jitsi.jigasi.transcription.DIRECTORY=/tmp/transcripts org.jitsi.jigasi.transcription.BASE_URL={{ .Env.PUBLIC_URL }}/transcripts diff --git a/transcriber.yml b/transcriber.yml index dea726e..66af96e 100644 --- a/transcriber.yml +++ b/transcriber.yml @@ -41,6 +41,7 @@ services: - JIGASI_TRANSCRIBER_CUSTOM_TRANSLATION_SERVICE - JIGASI_TRANSCRIBER_LIBRETRANSLATE_URL - JIGASI_TRANSCRIBER_ENABLE_SAVING + - JIGASI_TRANSCRIBER_ENABLE_TRANSLATION - JIGASI_TRANSCRIBER_FILTER_SILENCE - JIGASI_TRANSCRIBER_OCI_COMPARTMENT - JIGASI_TRANSCRIBER_OCI_REGION