From 31309553bb9933b645fd2ee48a7ed578fac0f423 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 7 Mar 2022 17:56:28 -0600 Subject: [PATCH] Ditto for Linux. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bfda4bd..c8abae7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -277,7 +277,7 @@ impl Tts { #[cfg(target_os = "linux")] Backends::SpeechDispatcher => { let tts = backends::SpeechDispatcher::new()?; - Ok(Tts(Box::new(tts))) + Ok(Tts(Arc::new(RwLock::new(Box::new(tts))))) } #[cfg(target_arch = "wasm32")] Backends::Web => {