Background Noise

This data point measures the background noise level in dB(A). Background noise is the sound pressure level in the room without the agent's own voice.

Definition: The agent is the person who uses the headset which produces data for this data point.

Data Point

   
Name in Jabra SDK DeviceLoggingEventArgs.Data["TX Acoustic Logging Level"]
Trigger The agent is not speaking and the value change of the background noise level is 3 dB(A) or higher. Both conditions must be met at the same time.
Event Subscription IDeviceService.DeviceLoggingInput
Value Range 0 -127

Code Sample

The code sample demonstrates the event subscription. It shows how to parse the event to get back the data for the data point.

using System;
using JabraSDK;
using Newtonsoft.Json.Linq;

namespace Jabra.TelemetryExample
{
    public class TelemetryPrinter
    {
        public TelemetryPrinter(IDeviceService deviceService)
        {
            deviceService.DeviceAdded += OnDeviceAddedEvent;
            deviceService.DeviceLoggingInput += OnDeviceLoggingInputEvent;
        }

        private void OnDeviceAddedEvent(object sender, DeviceAddedEventArgs e)
        {
            // Return if device logging is _not_ supported by devices
            if (!e.Device.IsFeatureSupported(DeviceFeature.Logging))
                return;

            // Return if device logging is already enabled for device
            if (e.Device.IsDeviceLogEnabled)
                return;

            try
            {
                var status = e.Device.DeviceLoggingConfiguration(true);
                if (status == DeviceStatus.ReturnOk)
                    Console.WriteLine($"Device logging enabled for: {e.Device.Name}");
            }
            catch (Exception)
            {
                // Exception raised when enabling device logging
            }
        }

        private void OnDeviceLoggingInputEvent(object sender, DeviceLoggingEventArgs e)
        {
            var eventPayload = JObject.Parse(e.Data);
            var backgroundNoiseToken = eventPayload["TX Acoustic Logging Level"];
            if (backgroundNoiseToken != null)
            {
                Console.WriteLine($"Background noise: {backgroundNoiseToken} dB(A)");
            }
        }
    }
}