示例#1
0
        public void Speak(string text, bool interrupt)
        {
            IAccessibleOutput output = this.GetFirstAvailableOutput();

            if (interrupt)
            {
                output.StopSpeaking();
            }

            output.Speak(text);
        }
示例#2
0
        public void StopSpeaking()
        {
            IAccessibleOutput output = this.GetFirstAvailableOutput();

            output.StopSpeaking();
        }