Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add VOSK config #1420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charles-zablit
Copy link
Contributor

This PR implements configuration options to implement the changes of jitsi/jigasi#457.

It allows a user to have a preconfigured version of VOSK if they choose to use it.

Please let me know if there is anything I can do to improve this PR.

@@ -157,6 +157,10 @@ net.java.sip.communicator.service.gui.ALWAYS_TRUST_MODE_ENABLED=true
org.jitsi.jigasi.ENABLE_TRANSCRIPTION=true
org.jitsi.jigasi.transcription.ENABLE_TRANSLATION=true
org.jitsi.jigasi.transcription.DIRECTORY=/tmp/transcripts
{{ if .Env.JIGASI_CUSTOM_TRANSCRIPTION_SERVICE | default "" | toBool }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as in #1659 i would suggest to remove default "" | toBool

@@ -104,6 +104,11 @@ ETHERPAD_SKIN_VARIANTS="super-light-toolbar super-light-editor light-background
# SIP server transport
#JIGASI_SIP_TRANSPORT=UDP

# Jigasi transcription service
#JIGASI_CUSTOM_TRANSCRIPTION_SERVICE=org.jitsi.jigasi.transcription.VoskTranscriptionService
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For discussion:
Should the class be exposed to the environment?
I would go for vosk as value here and set the class in sip-communicator.properties if this string is vosk.

In this case we then could change the env name to JIGASI_TRANSCRIPTION_SERVICE and have it allow google which is the current default.

@krombel
Copy link
Contributor

krombel commented Dec 4, 2023

alternative PR for #1343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants