Add voice stubs, currently a no-op, on Android.

This commit is contained in:
Nolan Darilek 2022-03-31 10:55:49 -05:00
parent b9aa36cb3b
commit ec6d1f74a1
1 changed files with 15 additions and 1 deletions

View File

@ -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<Option<GlobalRef>> = 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<Option<Voice>, Error> {
unimplemented!()
}
fn voices(&self) -> Result<Vec<Voice>, Error> {
unimplemented!()
}
fn set_voice(&mut self, voice: &Voice) -> Result<(), Error> {
unimplemented!()
}
}