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

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

View File

@ -4,7 +4,7 @@ use std::sync::Arc;
use log::{info, trace};
use tolk::Tolk as TolkPtr;
use crate::{Backend, BackendId, Error, Features, UtteranceId};
use crate::{Backend, BackendId, Error, Features, UtteranceId, Voice};
#[derive(Clone, Debug)]
pub(crate) struct Tolk(Arc<TolkPtr>);
@ -109,15 +109,15 @@ impl Backend for Tolk {
unimplemented!()
}
fn voice(&self) -> Result<String, Error> {
fn voice(&self) -> Result<Voice, Error> {
unimplemented!()
}
fn list_voices(&self) -> Vec<String> {
fn voices(&self) -> Result<Vec<Voice>, Error> {
unimplemented!()
}
fn set_voice(&mut self, voice: &str) -> Result<(), Error> {
fn set_voice(&mut self, _voice: &Voice) -> Result<(), Error> {
unimplemented!()
}
}