Bump version to work around Tolk crash.

pull/11/head v0.17.1
Nolan Darilek 2 years ago
parent d67bf8344a
commit d85d56c3ee
  1. 4
      Cargo.toml
  2. 2
      src/backends/tolk.rs
  3. 3
      src/lib.rs

@ -1,6 +1,6 @@
[package]
name = "tts"
version = "0.17.0"
version = "0.17.1"
authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
repository = "https://github.com/ndarilek/tts-rs"
description = "High-level Text-To-Speech (TTS) interface"
@ -21,7 +21,7 @@ thiserror = "1"
env_logger = "0.8"
[target.'cfg(windows)'.dependencies]
tolk = { version = "0.3", optional = true }
tolk = { version = "0.4", optional = true }
windows = "0.9"
[target.'cfg(windows)'.build-dependencies]

@ -11,7 +11,7 @@ impl Tolk {
pub(crate) fn new() -> Option<Self> {
info!("Initializing Tolk backend");
let tolk = TolkPtr::new();
if tolk.detect_screen_reader().is_some() {
if tolk::Tolk::detect_screen_reader().is_some() {
Some(Tolk(tolk))
} else {
None

@ -537,8 +537,7 @@ impl Tts {
{
#[cfg(feature = "tolk")]
{
let tolk = tolk::Tolk::new();
return tolk.detect_screen_reader().is_some();
return tolk::Tolk::detect_screen_reader().is_some();
}
#[cfg(not(feature = "tolk"))]
return false;

Loading…
Cancel
Save