1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Update tts 0.15 -> 0.16

This commit is contained in:
Emil Ernerfeldt
2021-05-09 14:42:14 +02:00
parent c476ddb57c
commit 7747a1f171
5 changed files with 14 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ ron = { version = "0.6", optional = true }
serde = { version = "1", optional = true }
# feature screen_reader
tts = { version = "0.15", optional = true }
tts = { version = "0.16", optional = true }
# feature "time"
chrono = { version = "0.4", optional = true }

View File

@@ -1,6 +1,6 @@
pub struct ScreenReader {
#[cfg(feature = "screen_reader")]
tts: Option<tts::TTS>,
tts: Option<tts::Tts>,
}
#[cfg(not(feature = "screen_reader"))]
@@ -13,7 +13,7 @@ impl Default for ScreenReader {
#[cfg(feature = "screen_reader")]
impl Default for ScreenReader {
fn default() -> Self {
let tts = match tts::TTS::default() {
let tts = match tts::Tts::default() {
Ok(screen_reader) => {
eprintln!("Initialized screen reader.");
Some(screen_reader)