string GetSpeakerDetectionThreshold(eSpeakerDetectionThreshold value)
        {
            switch (value)
            {
            case eSpeakerDetectionThreshold.QuietRoom:
                return("quiet_room");

            case eSpeakerDetectionThreshold.NormalRoom:
                return("normal_room");

            case eSpeakerDetectionThreshold.LoudRoom:
                return("loud_room");

            default:
                return(null);
            }
        }
        void HandleSourceDetection(JContainer json)
        {
            var obj = (JProperty)json.First.First;

            if (obj.Name == "threshold")
            {
                var value = GetSpeakerDetectionThreshold(obj.Value.ToObject <string>());
                if (_speakerDetectionThreshold != value)
                {
                    _speakerDetectionThreshold = value;
                    var ev = Events;
                    if (ev != null)
                    {
                        ev(this, new Tcc2AudioEventArgs(Tcc2AudioEventArgs.eTcc2AudioEventType.SpeakerDetectionThreshold, value));
                    }
                }
            }
        }