Add voice stubs to Tolk backend.

This commit is contained in:
Nolan Darilek 2022-03-30 20:22:37 -05:00
parent d4b913908c
commit e4c6f6f23a
1 changed files with 4 additions and 4 deletions

View File

@ -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!()
} }
} }