mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 13:09:37 +00:00
Bump version to work around Tolk crash.
This commit is contained in:
parent
d67bf8344a
commit
d85d56c3ee
|
@ -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…
Reference in New Issue
Block a user