Example #1
0
 public string GetCountryISO2Alpha(TTSLocaleCountry country)
 {
     string countryISO2Alpha = localeCountryDict[country.ToString()];
     return countryISO2Alpha;
 }
Example #2
0
    public string GetCountryISO2Alpha(TTSLocaleCountry country)
    {
        string countryISO2Alpha = localeCountryDict[country.ToString()];

        return(countryISO2Alpha);
    }
Example #3
0
    private bool CheckLocale(TTSLocaleCountry ttsCountry)
    {
        bool found = false;
        if(localeCountryISO2AlphaSet!=null){
            string countryISO2Alpha = textToSpeechPlugin.GetCountryISO2Alpha(ttsCountry);

            foreach(string country in localeCountryISO2AlphaSet){
                if(country.Equals(countryISO2Alpha,StringComparison.Ordinal)){
                    found = true;
                    break;
                }
                //Debug.Log("get country: " + country);
            }
        }

        return found;
    }
    public TTSLocaleCountry GetCountry(string countryISO2Alpha)
    {
        TTSLocaleCountry country = (TTSLocaleCountry)countryISO2AlphaDict[countryISO2Alpha];

        return(country);
    }