mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* feat(subtitles): created separate helpers for delegating transcription chunks events on web and mobile
20 lines
707 B
TypeScript
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
|
|
});
|