From ec6d1f74a11faf3c090fb72c945d6f87a1256ee4 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 31 Mar 2022 10:55:49 -0500 Subject: [PATCH] Add voice stubs, currently a no-op, on Android. --- src/backends/android.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/backends/android.rs b/src/backends/android.rs index 5856890..eb32586 100644 --- a/src/backends/android.rs +++ b/src/backends/android.rs @@ -16,7 +16,7 @@ use jni::{ use lazy_static::lazy_static; use log::{error, info}; -use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS}; +use crate::{Backend, BackendId, Error, Features, UtteranceId, Voice, CALLBACKS}; lazy_static! { static ref BRIDGE: Mutex> = Mutex::new(None); @@ -248,6 +248,8 @@ impl Backend for Android { volume: false, is_speaking: true, utterance_callbacks: true, + voice: false, + get_voice: false, } } @@ -385,4 +387,16 @@ impl Backend for Android { let rv = rv.z()?; Ok(rv) } + + fn voice(&self) -> Result, Error> { + unimplemented!() + } + + fn voices(&self) -> Result, Error> { + unimplemented!() + } + + fn set_voice(&mut self, voice: &Voice) -> Result<(), Error> { + unimplemented!() + } }