Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

functions.native.ts 1003B

123456789101112131415161718192021222324252627282930
  1. /* eslint-disable max-params, max-len */
  2. import { sendEvent } from '../mobile/external-api/functions';
  3. /**
  4. * Event which will be emitted on the native side to indicate that the transcription chunk was received.
  5. */
  6. const TRANSCRIPTION_CHUNK_RECEIVED = 'TRANSCRIPTION_CHUNK_RECEIVED';
  7. /**
  8. * Logs when about the received transcription chunk.
  9. *
  10. * @param {string} transcriptMessageID - Transcription message id.
  11. * @param {string} language - The language of the transcribed message.
  12. * @param {Object} participant - The participant who send the message.
  13. * @param {any} text - The message text.
  14. * @param {any} _store - The store.
  15. * @returns {Event}
  16. */
  17. export const notifyTranscriptionChunkReceived = (transcriptMessageID: string, language: string, participant: Object, text: any, _store?: any) =>
  18. sendEvent(
  19. _store,
  20. TRANSCRIPTION_CHUNK_RECEIVED,
  21. {
  22. messageID: transcriptMessageID,
  23. language,
  24. participant,
  25. text
  26. });