예제 #1
0
            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]);
            }
예제 #2
0
			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];
			}
예제 #3
0
 public static Phoneme getPhonemeFromCode(string phonemeCode)
 {
     return(new Phoneme(PhonemeCode.getPhonemeCode(phonemeCode)));
 }
예제 #4
0
 public Phoneme(PhonemeCode phonemeCode)
 {
     this.phonemeCode = phonemeCode;
 }