mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 07:29:38 +00:00
WinRT: Correctly set voice for case where no utterances are in queue.
Fixes #29
This commit is contained in:
parent
b50c5b6b93
commit
7cf80fb64d
|
@ -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…
Reference in New Issue
Block a user