/// <summary> /// This function executes when a SpeechCue is hit and calls the functions to update the UI /// </summary> /// <param name="timedMetadataTrack">The timedMetadataTrack associated with the event.</param> /// <param name="cue">the SpeechCue object.</param> private void FillTextBoxes(SpeechCue cue, TimedMetadataTrack timedMetadataTrack) { //if it is a sentence cue, populate the sentence text box. if (timedMetadataTrack.Id == "SpeechSentence") { textBoxLastSpeechSentence.Text = cue.Text; } //if it is a word cue, populate the word text box if (timedMetadataTrack.Id == "SpeechWord") { textBoxLastSpeechWord.Text = cue.Text; } }
internal SpeechCueEventArgs(SpeechCue cue, SpeechCueType type) { SpeechCue = cue; Type = type; }
/// <summary> /// Update the UI with text from the mark /// </summary> /// <param name="cue">The cue containing the text</param> private void FillTextBox(SpeechCue cue) { textBoxLastMarkTriggered.Text = cue.Text; }