コード例 #1
0
 /// <summary>
 /// Handle viseme notifications from the TTS service
 /// </summary>
 /// <param name="viseme">notification</param>
 void VisemeNotifyHandler(texttospeech.VisemeNotify viseme)
 {
     // The notification handler executes outside context of the WPF dispatcher.
     // Because we want to change a property that causes changes to the UI we need
     // to set it in the WPF dispatcher.
     _wpfServicePort.Invoke(() =>
     {
         _userInterface.Viseme = viseme.Body;
     });
 }