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

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

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!()
}
}