Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

DetectionEvents.js 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /** Event triggered by NoAudioSignalDetector when the local audio device associated with a JitsiConference goes silent
  2. * for a period of time, meaning that the device is either broken or hardware/software muted.
  3. * @event
  4. * @type {void}
  5. */
  6. export const NO_AUDIO_INPUT = 'no_audio_input_detected';
  7. /** Event triggered by {@link NoAudioSignalDetector} when the local audio device associated with a JitsiConference
  8. * starts receiving audio levels with the value of 0 meaning no audio is being captured on that device, or when
  9. * it starts receiving audio levels !== 0 after being in a state of no audio.
  10. * @event
  11. * @type {boolean} - true when the current conference audio track has audio input false otherwise.
  12. */
  13. export const AUDIO_INPUT_STATE_CHANGE = 'audio_input_state_changed';
  14. /**
  15. * Event generated by VADReportingService when if finishes creating a VAD report for the monitored devices.
  16. * The generated objects are of type Array<Object>, one score for each monitored device.
  17. * @event VAD_REPORT_PUBLISHED
  18. * @type Array<Object> with the following structure:
  19. * @property {Date} timestamp - Timestamp at which the compute took place.
  20. * @property {number} avgVAD - Average VAD score over monitored period of time.
  21. * @property {string} deviceId - Associate local audio device ID.
  22. */
  23. export const VAD_REPORT_PUBLISHED = 'vad-report-published';
  24. /**
  25. * Event generated by {@link TrackVADEmitter} when PCM sample VAD score is available.
  26. *
  27. * @event
  28. * @type {Object}
  29. * @property {Date} timestamp - Exact time at which processed PCM sample was generated.
  30. * @property {number} score - VAD score on a scale from 0 to 1 (i.e. 0.7)
  31. * @property {string} deviceId - Device id of the associated track.
  32. */
  33. export const VAD_SCORE_PUBLISHED = 'detection.vad_score_published';
  34. /**
  35. * Event generated by {@link VADTalkMutedDetection} when a user is talking while the mic is muted.
  36. *
  37. * @event
  38. * @type {Object}
  39. */
  40. export const VAD_TALK_WHILE_MUTED = 'detection.vad_talk_while_muted';