Example #1
0
 private void speakCurrentWordMethod(CurrentWordEventArgs e)
 {
     if (e.Wrapper.Uid.Equals(uidSpeakerB))
     {
         TextSpeakerB.text = RTVoice.Util.Helper.MarkSpokenText(e.SpeechTextArray, e.WordIndex);
     }
     else
     {
         Debug.LogWarning("Unknown speaker: " + e);
     }
 }
Example #2
0
        private void speakNativeCurrentWordMethod(object sender, CurrentWordEventArgs e)
        {
            //Debug.Log(speechTextArray [wordIndex]);

            if (e.Wrapper.Uid.Equals(uidSpeakerA))
            {
                TextSpeakerA.text = Helper.MarkSpokenText(e.SpeechTextArray, e.WordIndex);
            }
            else if (e.Wrapper.Uid.Equals(uidSpeakerB))
            {
                TextSpeakerB.text = Helper.MarkSpokenText(e.SpeechTextArray, e.WordIndex);
            }
            else
            {
                Debug.LogWarning("Unknown speaker: " + e);
            }
        }