mirror of https://github.com/ndarilek/tts-rs.git
Add voice stubs, currently a no-op, on Android.
This commit is contained in:
parent
b9aa36cb3b
commit
ec6d1f74a1
|
@ -16,7 +16,7 @@ use jni::{
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use log::{error, info};
|
use log::{error, info};
|
||||||
|
|
||||||
use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS};
|
use crate::{Backend, BackendId, Error, Features, UtteranceId, Voice, CALLBACKS};
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref BRIDGE: Mutex<Option<GlobalRef>> = Mutex::new(None);
|
static ref BRIDGE: Mutex<Option<GlobalRef>> = Mutex::new(None);
|
||||||
|
@ -248,6 +248,8 @@ impl Backend for Android {
|
||||||
volume: false,
|
volume: false,
|
||||||
is_speaking: true,
|
is_speaking: true,
|
||||||
utterance_callbacks: true,
|
utterance_callbacks: true,
|
||||||
|
voice: false,
|
||||||
|
get_voice: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -385,4 +387,16 @@ impl Backend for Android {
|
||||||
let rv = rv.z()?;
|
let rv = rv.z()?;
|
||||||
Ok(rv)
|
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!()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue