Files
jitsi-meet/react/features/subtitles/functions.web.ts
Calinteodor 5247fbdc0f feat(ios/android/sdk): delegate transcription chunk received event (#14516)
* feat(subtitles): created separate helpers for delegating transcription chunks events 
on web and mobile
2024-03-28 14:10:02 +02:00

20 lines
707 B
TypeScript

/* eslint-disable max-params, max-len */
/**
* Logs when about the received transcription chunk.
*
* @param {string} transcriptMessageID - Transcription message id.
* @param {string} language - The language of the transcribed message.
* @param {Object} participant - The participant who send the message.
* @param {any} text - The message text.
* @param {any} _store - The store.
* @returns {Event}
*/
export const notifyTranscriptionChunkReceived = (transcriptMessageID: string, language: string, participant: Object, text: any, _store?: any) =>
APP.API.notifyTranscriptionChunkReceived({
messageID: transcriptMessageID,
language,
participant,
...text
});