private void View_SelfVoicingSpeakText(object sender, SpeechTextEventArgs e) { PlayTextSpeech(e); }
// Private Methods (25) /// <summary> /// All requests to speak text, from all Views, end up here. Currently we pass the request /// on to the Player since it is the one that deals with Audio and has to pause the book /// voice in order to speak. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void AllViews_SelfVoicingSpeakText(object sender, SpeechTextEventArgs e) { PlayerPresenter.PlayTextSpeech(e); }
/// <summary> /// /// </summary> /// <param name="args"></param> internal void PlayTextSpeech(SpeechTextEventArgs args) { View.SpeakTextSpeech(args.Speech, _state.IsPlaying); }
/// <summary> /// Redirects speaking of elements through the display settings /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void _rescaleUIPopupContentsReference_SelfVoicingSpeakText(object sender, SpeechTextEventArgs e) { SelfVoicingSpeakText(sender, e); }