mirror of https://github.com/ndarilek/tts-rs.git
Compare commits
4 Commits
748f07138d
...
f404e180e4
Author | SHA1 | Date |
---|---|---|
Nolan Darilek | f404e180e4 | |
Nolan Darilek | 7cf80fb64d | |
Nolan Darilek | b50c5b6b93 | |
Bear-03 | 15f28c9af4 |
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tts"
|
||||
version = "0.22.5"
|
||||
version = "0.23.0"
|
||||
authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
|
||||
repository = "https://github.com/ndarilek/tts-rs"
|
||||
description = "High-level Text-To-Speech (TTS) interface"
|
||||
|
|
|
@ -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())?
|
||||
|
|
|
@ -648,13 +648,13 @@ impl Drop for Tts {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub enum Gender {
|
||||
Male,
|
||||
Female,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct Voice {
|
||||
pub(crate) id: String,
|
||||
pub(crate) name: String,
|
||||
|
|
Loading…
Reference in New Issue