feat(config,transcriptions) add option to skip interim transcriptions

pull/14218/head jitsi-meet_9185
Saúl Ibarra Corretgé 1 year ago committed by Saúl Ibarra Corretgé
parent b2232172f6
commit 4bbbbea183
  1. 3
      config.js
  2. 1
      react/features/base/config/configType.ts
  3. 6
      react/features/subtitles/middleware.ts

@ -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.

@ -563,6 +563,7 @@ export interface IConfig {
mobileXmppWsThreshold?: number;
noAutoPlayVideo?: boolean;
p2pTestMode?: boolean;
skipInterimTranscriptions?: boolean;
testMode?: boolean;
};
tileView?: {

@ -141,6 +141,12 @@ function _endpointMessageReceived({ dispatch, getState }: IStore, next: Function
return 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.

Loading…
Cancel
Save