WIP: Use correct type in backend implementation.

This commit is contained in:
Nolan Darilek 2022-03-30 15:13:28 -05:00
parent e56a0da2e5
commit 1e55c43153
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ impl SpeechDispatcher {
} }
} }
impl<T: VoiceImpl> Backend<T> for SpeechDispatcher { impl Backend<SpdVoice> for SpeechDispatcher {
fn id(&self) -> Option<BackendId> { fn id(&self) -> Option<BackendId> {
Some(BackendId::SpeechDispatcher(self.0.client_id())) Some(BackendId::SpeechDispatcher(self.0.client_id()))
} }
@ -203,14 +203,14 @@ impl<T: VoiceImpl> Backend<T> for SpeechDispatcher {
Ok(*is_speaking) Ok(*is_speaking)
} }
fn voices(&self) -> Result<Vec<Voice<T>>, Error> { fn voices(&self) -> Result<Vec<Voice<SpdVoice>>, Error> {
let rv = self let rv = self
.0 .0
.list_synthesis_voices()? .list_synthesis_voices()?
.iter() .iter()
.cloned() .cloned()
.map(|v| Voice(Box::new(v))) .map(|v| Voice(Box::new(v)))
.collect::<Vec<Voice<T>>>(); .collect::<Vec<Voice<SpdVoice>>>();
Ok(rv) Ok(rv)
} }