mirror of https://github.com/ndarilek/tts-rs.git
Add voice stubs to Tolk backend.
This commit is contained in:
parent
d4b913908c
commit
e4c6f6f23a
|
@ -4,7 +4,7 @@ use std::sync::Arc;
|
||||||
use log::{info, trace};
|
use log::{info, trace};
|
||||||
use tolk::Tolk as TolkPtr;
|
use tolk::Tolk as TolkPtr;
|
||||||
|
|
||||||
use crate::{Backend, BackendId, Error, Features, UtteranceId};
|
use crate::{Backend, BackendId, Error, Features, UtteranceId, Voice};
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub(crate) struct Tolk(Arc<TolkPtr>);
|
pub(crate) struct Tolk(Arc<TolkPtr>);
|
||||||
|
@ -109,15 +109,15 @@ impl Backend for Tolk {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn voice(&self) -> Result<String, Error> {
|
fn voice(&self) -> Result<Voice, Error> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn list_voices(&self) -> Vec<String> {
|
fn voices(&self) -> Result<Vec<Voice>, Error> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_voice(&mut self, voice: &str) -> Result<(), Error> {
|
fn set_voice(&mut self, _voice: &Voice) -> Result<(), Error> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue