예제 #1
0
        private void SpVoice_Viseme(int StreamNumber, object StreamPosition, int Duration,
                                    SpeechLib.SpeechVisemeType NextVisemeId, SpeechLib.SpeechVisemeFeature Feature,
                                    SpeechLib.SpeechVisemeType CurrentVisemeId)
        {
            short   phonemeId = (short)CurrentVisemeId;
            Phoneme phoneme   = Phonemes[phonemeId];

            // Fire Event
            MouthPositionChange?.Invoke(this, new MouthPositionEventArgs(phoneme.MouthPosition));

            // Log Event
            string logMessage = string.Format(System.Globalization.CultureInfo.CurrentCulture,
                                              Resources.TTS5_On_MouthPositionChange_Log_Format,
                                              this.MouthPosition);

            _speechModule.LanguageModel.AI.Engine.Debugger.Log(DebuggerLogLevel.Log, logMessage);
        }
예제 #2
0
        private void SetMouthPosition(short PhonemeId)
        {
            Phoneme phoneme = Phonemes[PhonemeId];

            MouthPositionChange?.Invoke(this, new MouthPositionEventArgs(phoneme.MouthPosition));
        }