1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-12-02 14:29:37 +00:00

Missed a few...

This commit is contained in:
Nolan Darilek 2021-03-31 10:53:08 -05:00
parent 57f91105ec
commit 336c266ed4

View File

@ -181,11 +181,11 @@ impl Tts {
pub fn new(backend: Backends) -> Result<Tts, Error> {
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 => {