From 335ac710a61680897fcfcc30794097972a5857da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Caddet?= Date: Sat, 5 Sep 2020 12:07:51 +0200 Subject: [PATCH] add unimplemented functions forvoices feature on every backends --- src/backends/speech_dispatcher.rs | 12 ++++++++++++ src/backends/tolk.rs | 12 ++++++++++++ src/backends/web.rs | 12 ++++++++++++ src/backends/winrt.rs | 12 ++++++++++++ 4 files changed, 48 insertions(+) diff --git a/src/backends/speech_dispatcher.rs b/src/backends/speech_dispatcher.rs index 009a8fb..89ab24c 100644 --- a/src/backends/speech_dispatcher.rs +++ b/src/backends/speech_dispatcher.rs @@ -149,6 +149,18 @@ impl Backend for SpeechDispatcher { let is_speaking = speaking.get(&self.0.client_id()).unwrap(); Ok(*is_speaking) } + + fn voice(&self) -> Result { + unimplemented!() + } + + fn list_voices(&self) -> Vec { + unimplemented!() + } + + fn set_voice(&mut self, voice: &str) -> Result<(),Error> { + unimplemented!() + } } impl Drop for SpeechDispatcher { diff --git a/src/backends/tolk.rs b/src/backends/tolk.rs index 370da65..e6d0f07 100644 --- a/src/backends/tolk.rs +++ b/src/backends/tolk.rs @@ -101,4 +101,16 @@ impl Backend for Tolk { fn is_speaking(&self) -> Result { unimplemented!() } + + fn voice(&self) -> Result { + unimplemented!() + } + + fn list_voices(&self) -> Vec { + unimplemented!() + } + + fn set_voice(&mut self, voice: &str) -> Result<(),Error> { + unimplemented!() + } } diff --git a/src/backends/web.rs b/src/backends/web.rs index 664793c..a8be3c2 100644 --- a/src/backends/web.rs +++ b/src/backends/web.rs @@ -131,4 +131,16 @@ impl Backend for Web { Err(Error::NoneError) } } + + fn voice(&self) -> Result { + unimplemented!() + } + + fn list_voices(&self) -> Vec { + unimplemented!() + } + + fn set_voice(&mut self, voice: &str) -> Result<(),Error> { + unimplemented!() + } } diff --git a/src/backends/winrt.rs b/src/backends/winrt.rs index 7464f58..2e8af98 100644 --- a/src/backends/winrt.rs +++ b/src/backends/winrt.rs @@ -156,4 +156,16 @@ impl Backend for WinRT { let playing = state == MediaPlaybackState::Opening || state == MediaPlaybackState::Playing; Ok(playing) } + + fn voice(&self) -> Result { + unimplemented!() + } + + fn list_voices(&self) -> Vec { + unimplemented!() + } + + fn set_voice(&mut self, voice: &str) -> Result<(),Error> { + unimplemented!() + } }