mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-10-09 23:09:37 +00:00
Get web example compiling.
This commit is contained in:
parent
d5a692008a
commit
a879b3dca3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user