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

add unimplemented functions forvoices feature on every backends

This commit is contained in:
François Caddet 2020-09-05 12:07:51 +02:00
parent b238c8c938
commit 335ac710a6
4 changed files with 48 additions and 0 deletions

View File

@ -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<String,Error> {
unimplemented!()
}
fn list_voices(&self) -> Vec<String> {
unimplemented!()
}
fn set_voice(&mut self, voice: &str) -> Result<(),Error> {
unimplemented!()
}
}
impl Drop for SpeechDispatcher {

View File

@ -101,4 +101,16 @@ impl Backend for Tolk {
fn is_speaking(&self) -> Result<bool, Error> {
unimplemented!()
}
fn voice(&self) -> Result<String,Error> {
unimplemented!()
}
fn list_voices(&self) -> Vec<String> {
unimplemented!()
}
fn set_voice(&mut self, voice: &str) -> Result<(),Error> {
unimplemented!()
}
}

View File

@ -131,4 +131,16 @@ impl Backend for Web {
Err(Error::NoneError)
}
}
fn voice(&self) -> Result<String,Error> {
unimplemented!()
}
fn list_voices(&self) -> Vec<String> {
unimplemented!()
}
fn set_voice(&mut self, voice: &str) -> Result<(),Error> {
unimplemented!()
}
}

View File

@ -156,4 +156,16 @@ impl Backend for WinRT {
let playing = state == MediaPlaybackState::Opening || state == MediaPlaybackState::Playing;
Ok(playing)
}
fn voice(&self) -> Result<String,Error> {
unimplemented!()
}
fn list_voices(&self) -> Vec<String> {
unimplemented!()
}
fn set_voice(&mut self, voice: &str) -> Result<(),Error> {
unimplemented!()
}
}