Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(config,transcriptions) add option to skip interim transcriptions
Saúl Ibarra Corretgé4bbbbea18398
diff --git a/config.js b/config.jsindex fcdbe16ba2..d9c114aa7f 100644--- a/config.js+++ b/config.js@@ -100,6 +100,9 @@ var config = {// Disables the auto-play behavior of *all* newly created video element.// This is useful when the client runs on a host with limited resources.// noAutoPlayVideo: false,++ // Experiment: Whether to skip interim transcriptions.+ // skipInterimTranscriptions: false,},// Disables moderator indicators.diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.tsindex 0a94e15616..9ca4053691 100644--- a/react/features/base/config/configType.ts+++ b/react/features/base/config/configType.ts@@ -563,6 +563,7 @@ export interface IConfig {mobileXmppWsThreshold?: number;noAutoPlayVideo?: boolean;p2pTestMode?: boolean;+ skipInterimTranscriptions?: boolean;testMode?: boolean;};tileView?: {diff --git a/react/features/subtitles/middleware.ts b/react/features/subtitles/middleware.tsindex 1308586937..3804a1d6c4 100644--- a/react/features/subtitles/middleware.ts+++ b/react/features/subtitles/middleware.ts@@ -141,6 +141,12 @@ function _endpointMessageReceived({ dispatch, getState }: IStore, next: Functionreturn next(action);}+ const { skipInterimTranscriptions } = state['features/base/config'].testing ?? {};++ if (json.is_interim && skipInterimTranscriptions) {+ return next(action);+ }+// We update the previous transcript message with the same// message ID or adds a new transcript message if it does not// exist in the map.