feat(jigasi): transcriber configuration for OCI and whisper and to skip saving (#1909)

pull/1910/head
Aaron van Meerten 2 months ago committed by GitHub
parent c5afcde7c2
commit e7786d5c67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 20
      jigasi/rootfs/defaults/transcriber-sip-communicator.properties
  2. 6
      transcriber.yml

@ -1,6 +1,7 @@
{{ $JIGASI_TRANSCRIBER_USER := .Env.JIGASI_TRANSCRIBER_USER | default "transcriber" -}} {{ $JIGASI_TRANSCRIBER_USER := .Env.JIGASI_TRANSCRIBER_USER | default "transcriber" -}}
{{ $JIGASI_TRANSCRIBER_FILTER_SILENCE := .Env.JIGASI_TRANSCRIBER_FILTER_SILENCE | default "0" | toBool -}} {{ $JIGASI_TRANSCRIBER_FILTER_SILENCE := .Env.JIGASI_TRANSCRIBER_FILTER_SILENCE | default "0" | toBool -}}
{{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}} {{ $XMPP_RECORDER_DOMAIN := .Env.XMPP_RECORDER_DOMAIN | default "recorder.meet.jitsi" -}}
{{ $JIGASI_TRANSCRIBER_ENABLE_SAVING := .Env.JIGASI_TRANSCRIBER_ENABLE_SAVING | default "1" | toBool -}}
org.jitsi.jigasi.ENABLE_SIP=false org.jitsi.jigasi.ENABLE_SIP=false
org.jitsi.jigasi.xmpp.acc.USER_ID={{ $JIGASI_TRANSCRIBER_USER }}@{{ $XMPP_RECORDER_DOMAIN }} org.jitsi.jigasi.xmpp.acc.USER_ID={{ $JIGASI_TRANSCRIBER_USER }}@{{ $XMPP_RECORDER_DOMAIN }}
@ -11,13 +12,15 @@ org.jitsi.jigasi.xmpp.acc.ALLOW_NON_SECURE=true
# Transcription config # Transcription config
org.jitsi.jigasi.ENABLE_TRANSCRIPTION=true org.jitsi.jigasi.ENABLE_TRANSCRIPTION=true
org.jitsi.jigasi.transcription.ENABLE_TRANSLATION=true org.jitsi.jigasi.transcription.ENABLE_TRANSLATION=true
{{ if $JIGASI_TRANSCRIBER_ENABLE_SAVING -}}
org.jitsi.jigasi.transcription.DIRECTORY=/tmp/transcripts org.jitsi.jigasi.transcription.DIRECTORY=/tmp/transcripts
org.jitsi.jigasi.transcription.BASE_URL={{ .Env.PUBLIC_URL }}/transcripts org.jitsi.jigasi.transcription.BASE_URL={{ .Env.PUBLIC_URL }}/transcripts
org.jitsi.jigasi.transcription.jetty.port=-1 org.jitsi.jigasi.transcription.jetty.port=-1
org.jitsi.jigasi.transcription.ADVERTISE_URL={{ .Env.JIGASI_TRANSCRIBER_ADVERTISE_URL | default "false"}} org.jitsi.jigasi.transcription.ADVERTISE_URL={{ .Env.JIGASI_TRANSCRIBER_ADVERTISE_URL | default "false"}}
org.jitsi.jigasi.transcription.SAVE_JSON=false org.jitsi.jigasi.transcription.SAVE_JSON=false
org.jitsi.jigasi.transcription.SEND_JSON=true
org.jitsi.jigasi.transcription.SAVE_TXT=true org.jitsi.jigasi.transcription.SAVE_TXT=true
{{ end -}}
org.jitsi.jigasi.transcription.SEND_JSON=true
org.jitsi.jigasi.transcription.SEND_TXT={{ .Env.JIGASI_TRANSCRIBER_SEND_TXT | default "false"}} org.jitsi.jigasi.transcription.SEND_TXT={{ .Env.JIGASI_TRANSCRIBER_SEND_TXT | default "false"}}
org.jitsi.jigasi.transcription.RECORD_AUDIO={{ .Env.JIGASI_TRANSCRIBER_RECORD_AUDIO | default "false"}} org.jitsi.jigasi.transcription.RECORD_AUDIO={{ .Env.JIGASI_TRANSCRIBER_RECORD_AUDIO | default "false"}}
org.jitsi.jigasi.transcription.RECORD_AUDIO_FORMAT=wav org.jitsi.jigasi.transcription.RECORD_AUDIO_FORMAT=wav
@ -30,3 +33,18 @@ org.jitsi.jigasi.transcription.FILTER_SILENCE = true
{{ if .Env.JIGASI_TRANSCRIBER_REMOTE_CONFIG_URL -}} {{ if .Env.JIGASI_TRANSCRIBER_REMOTE_CONFIG_URL -}}
org.jitsi.jigasi.transcription.remoteTranscriptionConfigUrl={{ .Env.JIGASI_TRANSCRIBER_REMOTE_CONFIG_URL }} org.jitsi.jigasi.transcription.remoteTranscriptionConfigUrl={{ .Env.JIGASI_TRANSCRIBER_REMOTE_CONFIG_URL }}
{{ end -}} {{ end -}}
{{ if .Env.JIGASI_TRANSCRIBER_OCI_REGION -}}
org.jitsi.jigasi.transcription.oci.websocketUrl=wss://realtime.aiservice.{{ .Env.JIGASI_TRANSCRIBER_OCI_REGION }}.oci.oraclecloud.com
{{ end -}}
{{ if .Env.JIGASI_TRANSCRIBER_OCI_COMPARTMENT -}}
org.jitsi.jigasi.transcription.oci.compartmentId={{ .Env.JIGASI_TRANSCRIBER_OCI_COMPARTMENT }}
{{ end -}}
{{ if .Env.JIGASI_TRANSCRIBER_WHISPER_URL -}}
org.jitsi.jigasi.transcription.whisper.websocket_url={{ .Env.JIGASI_TRANSCRIBER_WHISPER_URL }}
{{ end -}}
{{ if .Env.JIGASI_TRANSCRIBER_WHISPER_PRIVATE_KEY_NAME -}}
org.jitsi.jigasi.transcription.whisper.private_key_name={{ .Env.JIGASI_TRANSCRIBER_WHISPER_PRIVATE_KEY_NAME }}
{{ end -}}
{{ if .Env.JIGASI_TRANSCRIBER_WHISPER_PRIVATE_KEY -}}
org.jitsi.jigasi.transcription.whisper.private_key={{ .Env.JIGASI_TRANSCRIBER_WHISPER_PRIVATE_KEY }}
{{ end -}}

@ -38,12 +38,18 @@ services:
- JIGASI_BREWERY_MUC - JIGASI_BREWERY_MUC
- JIGASI_TRANSCRIBER_ADVERTISE_URL - JIGASI_TRANSCRIBER_ADVERTISE_URL
- JIGASI_TRANSCRIBER_CUSTOM_SERVICE - JIGASI_TRANSCRIBER_CUSTOM_SERVICE
- JIGASI_TRANSCRIBER_ENABLE_SAVING
- JIGASI_TRANSCRIBER_FILTER_SILENCE - JIGASI_TRANSCRIBER_FILTER_SILENCE
- JIGASI_TRANSCRIBER_OCI_COMPARTMENT
- JIGASI_TRANSCRIBER_OCI_REGION
- JIGASI_TRANSCRIBER_PASSWORD - JIGASI_TRANSCRIBER_PASSWORD
- JIGASI_TRANSCRIBER_RECORD_AUDIO - JIGASI_TRANSCRIBER_RECORD_AUDIO
- JIGASI_TRANSCRIBER_REMOTE_CONFIG_URL - JIGASI_TRANSCRIBER_REMOTE_CONFIG_URL
- JIGASI_TRANSCRIBER_SEND_TXT - JIGASI_TRANSCRIBER_SEND_TXT
- JIGASI_TRANSCRIBER_USER - JIGASI_TRANSCRIBER_USER
- JIGASI_TRANSCRIBER_WHISPER_URL
- JIGASI_TRANSCRIBER_WHISPER_PRIVATE_KEY
- JIGASI_TRANSCRIBER_WHISPER_PRIVATE_KEY_NAME
- GC_PROJECT_ID - GC_PROJECT_ID
- GC_PRIVATE_KEY_ID - GC_PRIVATE_KEY_ID
- GC_PRIVATE_KEY - GC_PRIVATE_KEY

Loading…
Cancel
Save