Example #1
0
 private void OnWebsocketMessage(object sender, AudioStreamTextArgs e)
 {
     if (e.Message.flag == "1")
     {
         RT_FullSentence.Invoke(new UpdateContent(UpdateLongText), e.Message.body);
     }
     else
     {
         RT_ShortSentence.Invoke(new UpdateContent(UpdateShortText), e.Message.body);
     }
 }
Example #2
0
 private void UpdateShortText(string text)
 {
     RT_ShortSentence.Text = text;
     RT_ShortSentence.ScrollToCaret();
 }