public static PhonemeCode getPhonemeCode(string code) { if (_phonemeCodes == null) { _phonemeCodes = new Dictionary <string, PhonemeCode>(); for (int i = 0; i < _phonemeCodeList.Count; i++) { PhonemeCode phonemeCode = _phonemeCodeList[i]; _phonemeCodes.Add(phonemeCode.name, phonemeCode); } } return(_phonemeCodes[code]); }
public static PhonemeCode getPhonemeCode(string code) { if (_phonemeCodes == null) { _phonemeCodes = new Dictionary<string, PhonemeCode>(); for (int i = 0; i < _phonemeCodeList.Count; i++) { PhonemeCode phonemeCode = _phonemeCodeList[i]; _phonemeCodes.Add(phonemeCode.name, phonemeCode); } } //Debug.Log("Searching for phoneme : " + code); return _phonemeCodes[code]; }
public static Phoneme getPhonemeFromCode(string phonemeCode) { return(new Phoneme(PhonemeCode.getPhonemeCode(phonemeCode))); }
public Phoneme(PhonemeCode phonemeCode) { this.phonemeCode = phonemeCode; }