mirror of https://github.com/ndarilek/tts-rs.git
Tighten up access.
This commit is contained in:
parent
251fb8d8c1
commit
532d5d9b58
|
@ -20,7 +20,7 @@ mod av_foundation;
|
||||||
pub(crate) use self::speech_dispatcher::*;
|
pub(crate) use self::speech_dispatcher::*;
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
pub use self::tolk::*;
|
pub(crate) use self::tolk::*;
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
pub use self::web::*;
|
pub use self::web::*;
|
||||||
|
|
|
@ -4,10 +4,10 @@ use tolk::Tolk as TolkPtr;
|
||||||
|
|
||||||
use crate::{Backend, BackendId, Error, Features, UtteranceId};
|
use crate::{Backend, BackendId, Error, Features, UtteranceId};
|
||||||
|
|
||||||
pub struct Tolk(TolkPtr);
|
pub(crate) struct Tolk(TolkPtr);
|
||||||
|
|
||||||
impl Tolk {
|
impl Tolk {
|
||||||
pub fn new() -> Option<Self> {
|
pub(crate) fn new() -> Option<Self> {
|
||||||
info!("Initializing Tolk backend");
|
info!("Initializing Tolk backend");
|
||||||
let tolk = TolkPtr::new();
|
let tolk = TolkPtr::new();
|
||||||
if tolk.detect_screen_reader().is_some() {
|
if tolk.detect_screen_reader().is_some() {
|
||||||
|
|
Loading…
Reference in New Issue