1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-18 21:29:37 +00:00

Get web example compiling.

This commit is contained in:
Nolan Darilek 2021-04-03 11:58:23 -05:00
parent d5a692008a
commit a879b3dca3

View File

@ -1,12 +1,12 @@
#![allow(clippy::wildcard_imports)]
use seed::{prelude::*, *};
use tts::TTS;
use tts::Tts;
#[derive(Clone)]
struct Model {
text: String,
tts: TTS,
tts: Tts,
}
#[derive(Clone)]
@ -19,7 +19,7 @@ enum Msg {
}
fn init(_: Url, _: &mut impl Orders<Msg>) -> Model {
let tts = TTS::default().unwrap();
let tts = Tts::default().unwrap();
Model {
text: Default::default(),
tts,