mirror of https://github.com/ndarilek/tts-rs.git
Bump version to work around Tolk crash.
This commit is contained in:
parent
d67bf8344a
commit
d85d56c3ee
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tts"
|
name = "tts"
|
||||||
version = "0.17.0"
|
version = "0.17.1"
|
||||||
authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
|
authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
|
||||||
repository = "https://github.com/ndarilek/tts-rs"
|
repository = "https://github.com/ndarilek/tts-rs"
|
||||||
description = "High-level Text-To-Speech (TTS) interface"
|
description = "High-level Text-To-Speech (TTS) interface"
|
||||||
|
@ -21,7 +21,7 @@ thiserror = "1"
|
||||||
env_logger = "0.8"
|
env_logger = "0.8"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
tolk = { version = "0.3", optional = true }
|
tolk = { version = "0.4", optional = true }
|
||||||
windows = "0.9"
|
windows = "0.9"
|
||||||
|
|
||||||
[target.'cfg(windows)'.build-dependencies]
|
[target.'cfg(windows)'.build-dependencies]
|
||||||
|
|
|
@ -11,7 +11,7 @@ impl Tolk {
|
||||||
pub(crate) fn new() -> Option<Self> {
|
pub(crate) fn new() -> Option<Self> {
|
||||||
info!("Initializing Tolk backend");
|
info!("Initializing Tolk backend");
|
||||||
let tolk = TolkPtr::new();
|
let tolk = TolkPtr::new();
|
||||||
if tolk.detect_screen_reader().is_some() {
|
if tolk::Tolk::detect_screen_reader().is_some() {
|
||||||
Some(Tolk(tolk))
|
Some(Tolk(tolk))
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
@ -537,8 +537,7 @@ impl Tts {
|
||||||
{
|
{
|
||||||
#[cfg(feature = "tolk")]
|
#[cfg(feature = "tolk")]
|
||||||
{
|
{
|
||||||
let tolk = tolk::Tolk::new();
|
return tolk::Tolk::detect_screen_reader().is_some();
|
||||||
return tolk.detect_screen_reader().is_some();
|
|
||||||
}
|
}
|
||||||
#[cfg(not(feature = "tolk"))]
|
#[cfg(not(feature = "tolk"))]
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue