public int Speak(string message)
        {
            Debug.WriteLine("Speaking:" + message);
            OrderSound sound = new OrderSound(message, Depth2, Frequency2, Feedback2, WetDryMix2, ReverbTime2, HighFrequencyRTRatio2);

            Interlocked.Increment(ref COUNTER);
            sound.Id           = COUNTER;
            sound.compleated   = OnCompleate;
            speaches[sound.Id] = sound;
            return(sound.Id);
        }
        public int CustomSpeak(string message, Action <int> compleated)
        {
            Debug.WriteLine("Speaking:" + message);
            OrderSound sound = new OrderSound(message, Depth, Frequency, Feedback, WetDryMix, ReverbTime, HighFrequencyRTRatio);

            sound.Rate = 1;
            Interlocked.Increment(ref COUNTER);
            sound.Id           = COUNTER;
            sound.compleated   = compleated;
            speaches[sound.Id] = sound;
            return(sound.Id);
        }
        public void OnCompleate2(int id)
        {
            if (speaches.ContainsKey(id))
            {
                if (paused != null && paused.Id == id)
                {
                    paused = null;
                }

                speaches[id].Dispose();
                speaches.Remove(id);
            }
        }
        public void OnCompleate(int id)
        {
            if (speaches.ContainsKey(id))
            {
                if (paused != null && paused.Id == id)
                {
                    paused = null;
                }

                speaches[id].Dispose();
                speaches.Remove(id);
                TaskPanel.Instance.EnableAnimation(false);
            }
        }