From e4c6f6f23a54ca4569fe420552a2410d6b1c2d2b Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 30 Mar 2022 20:22:37 -0500 Subject: [PATCH] Add voice stubs to Tolk backend. --- src/backends/tolk.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backends/tolk.rs b/src/backends/tolk.rs index 45e2f0b..55da024 100644 --- a/src/backends/tolk.rs +++ b/src/backends/tolk.rs @@ -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); @@ -109,15 +109,15 @@ impl Backend for Tolk { unimplemented!() } - fn voice(&self) -> Result { + fn voice(&self) -> Result { unimplemented!() } - fn list_voices(&self) -> Vec { + fn voices(&self) -> Result, Error> { unimplemented!() } - fn set_voice(&mut self, voice: &str) -> Result<(), Error> { + fn set_voice(&mut self, _voice: &Voice) -> Result<(), Error> { unimplemented!() } }