You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Events.js 421B

12345678
  1. // Event triggered when the ActiveDeviceDetector finds an audio device that has audio input.
  2. // Note it does not check if the input is valid or not it simply checks for intensity > 0.008.
  3. // Event structure:
  4. // { deviceId: string,
  5. // deviceLabel: string,
  6. // audioLevel: number }
  7. // TO DO. Potentially use rnnoise service to get a more accurate reading.
  8. export const ACTIVE_DEVICE_DETECTED = 'active_device_detected';