From cf1970a2cc40c95e36ebf36b450ee34338304d6f Mon Sep 17 00:00:00 2001 From: Dennis Lee Date: Sun, 11 Aug 2019 23:33:52 -0700 Subject: [PATCH] Changes in comments (#343) Removed an extraneous "yet" and removed "// Native playback support will be added in the future release.", a future promise that shouldn't appear. --- .../text-to-speech/csharp-uwp/helloworld/MainPage.xaml.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quickstart/text-to-speech/csharp-uwp/helloworld/MainPage.xaml.cs b/quickstart/text-to-speech/csharp-uwp/helloworld/MainPage.xaml.cs index d01aeb3eb..67ee3fbab 100644 --- a/quickstart/text-to-speech/csharp-uwp/helloworld/MainPage.xaml.cs +++ b/quickstart/text-to-speech/csharp-uwp/helloworld/MainPage.xaml.cs @@ -48,12 +48,11 @@ private async void Speak_ButtonClicked(object sender, RoutedEventArgs e) { NotifyUser($"Speech Synthesis Succeeded.", NotifyType.StatusMessage); - // Since native playback is not yet supported on UWP yet (currently only supported on Windows/Linux Desktop), + // Since native playback is not yet supported on UWP (currently only supported on Windows/Linux Desktop), // use the WinRT API to play audio here as a short term solution. - // Native playback support will be added in the future release. using (var audioStream = AudioDataStream.FromResult(result)) { - // Save synthesized audio data as a wave file and user MediaPlayer to play it + // Save synthesized audio data as a wave file and use MediaPlayer to play it var filePath = Path.Combine(ApplicationData.Current.LocalFolder.Path, "outputaudio.wav"); await audioStream.SaveToWaveFileAsync(filePath); mediaPlayer.Source = MediaSource.CreateFromStorageFile(await StorageFile.GetFileFromPathAsync(filePath));