public void InitializeRecognizer() { switch (recognizerLanguage) { case ERecognizerLanguage.Japanese: currentVowels = vowelsJP; break; case ERecognizerLanguage.Chinese: currentVowels = vowelsCN; break; } for (int i = 0; i < currentVowels.Length; ++i) { vowelToIndexDict[currentVowels[i]] = i; } runtimeRecognizer = new LipSyncRuntimeRecognizer(recognizerLanguage, windowSize, amplitudeThreshold); visualization = new Visualization(); }
public void InitializeRecognizer() { switch (recognizerLanguage) { case ERecognizerLanguage.Japanese: currentVowels = vowelsJP; break; case ERecognizerLanguage.Chinese: currentVowels = vowelsCN; break; } for (int i = 0; i < currentVowels.Length; ++i) { vowelToIndexDict[currentVowels[i]] = i; propertyIndexs[i] = targetBlendShapeObject.sharedMesh.GetBlendShapeIndex(propertyNames[i]); } runtimeRecognizer = new LipSyncRuntimeRecognizer(recognizerLanguage, windowSize, amplitudeThreshold); visualization = new Visualization(); }