From 336c266ed47927eab8b574b03c396bc906935ef7 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 31 Mar 2021 10:53:08 -0500 Subject: [PATCH] Missed a few... --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fc50015..d67ad48 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -181,11 +181,11 @@ impl Tts { pub fn new(backend: Backends) -> Result { let backend = match backend { #[cfg(target_os = "linux")] - Backends::SpeechDispatcher => Ok(TTS(Box::new(backends::SpeechDispatcher::new()))), + Backends::SpeechDispatcher => Ok(Tts(Box::new(backends::SpeechDispatcher::new()))), #[cfg(target_arch = "wasm32")] Backends::Web => { let tts = backends::Web::new()?; - Ok(TTS(Box::new(tts))) + Ok(Tts(Box::new(tts))) } #[cfg(all(windows, feature = "tolk"))] Backends::Tolk => {