Example #1
0
        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();
        }
Example #2
0
        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();
        }