EasyVoiceSettings.GetSpeakerName C# (CSharp) Method

GetSpeakerName() public method

public GetSpeakerName ( int index, bool defaultIncluded ) : string
index int
defaultIncluded bool
return string
    public string GetSpeakerName(int index, bool defaultIncluded)
    {
        if (defaultIncluded && (index == 0 || index > voiceNames.Count + 1))
            return defaultSpeakerNameString;
        if (index == (defaultIncluded ? voiceNames.Count + 1 : voiceNames.Count))
            return "";
        return voiceNames[defaultIncluded ? index - 1 : index];
    }