Skip to content

Commit

Permalink
Changes in comments (#343)
Browse files Browse the repository at this point in the history
Removed an extraneous "yet" and removed "// Native playback support will be added in the future release.", a future promise that shouldn't appear.
  • Loading branch information
DennisLee-DennisLee authored and mahilleb-msft committed Aug 12, 2019
1 parent c5e14a7 commit cf1970a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit cf1970a

Please sign in to comment.