Ditto for Linux.

This commit is contained in:
Nolan Darilek 2022-03-07 17:56:28 -06:00
parent 00bd5e62ff
commit 31309553bb
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {