//Based on set language, function returns true/false if synthesizer is speaking public bool IsSpeakingOrInQueue() { switch (language) { //use embeded text to speech case Texts.Languages.ENGLISH: return(textToSpeechDefault.IsSpeaking() || textToSpeechDefault.SpeechTextInQueue()); //use azure's text to speech cloud case Texts.Languages.CZECH: return(textToSpeechAzure.IsSpeaking()); default: return(false); } }