Browse Source

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

Fixes #29
master
Nolan Darilek 3 weeks ago
parent
commit
7cf80fb64d
  1. 1
      src/backends/winrt.rs

1
src/backends/winrt.rs

@ -193,6 +193,7 @@ impl Backend for WinRt { @@ -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