public bool ValidVoiceName(string speakerName, bool allowDefault) { return (allowDefault && speakerName == defaultSpeakerNameString) || (voiceNames != null && voiceNames.Contains(speakerName)); }