WinRT: Correctly set voice for case where no utterances are in queue.

Fixes #29
pull/32/head
Nolan Darilek 5 months ago
parent b50c5b6b93
commit 7cf80fb64d
  1. 1
      src/backends/winrt.rs

@ -193,6 +193,7 @@ impl Backend for WinRt {
self.synth.Options()?.SetSpeakingRate(self.rate.into())?;
self.synth.Options()?.SetAudioPitch(self.pitch.into())?;
self.synth.Options()?.SetAudioVolume(self.volume.into())?;
self.synth.SetVoice(&self.voice)?;
let stream = self
.synth
.SynthesizeTextToStreamAsync(&text.into())?

Loading…
Cancel
Save