private void HandlePlaybackWindowMarkerReached (Object sender, TimelineMarkerRoutedEventArgs e) { PlaybackWindow.Pause(); var markerItemTime = e.Marker.Time; var matchingFileMarker = ViewModel.CurrentPlaybackFile.FileMarkers. FirstOrDefault(x => x.Time == markerItemTime); if (matchingFileMarker == null) { return; } ViewModel.CurrentFileMarker = matchingFileMarker; TextToSpeechHelper.SpeakContentAsync( matchingFileMarker.TextToSpeechContent, matchingFileMarker.IsSsml, matchingFileMarker.SelectedVoiceId); }
private void Speak() { TextToSpeechHelper.SpeakContentAsync(FileMarker.TextToSpeechContent, FileMarker.IsSsml, FileMarker.SelectedVoiceId); }