mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 13:09:37 +00:00
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::*;
|
||||
|
||||
#[cfg(windows)]
|
||||
pub use self::tolk::*;
|
||||
pub(crate) use self::tolk::*;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub use self::web::*;
|
||||
|
|
|
@ -4,10 +4,10 @@ use tolk::Tolk as TolkPtr;
|
|||
|
||||
use crate::{Backend, BackendId, Error, Features, UtteranceId};
|
||||
|
||||
pub struct Tolk(TolkPtr);
|
||||
pub(crate) struct Tolk(TolkPtr);
|
||||
|
||||
impl Tolk {
|
||||
pub fn new() -> Option<Self> {
|
||||
pub(crate) fn new() -> Option<Self> {
|
||||
info!("Initializing Tolk backend");
|
||||
let tolk = TolkPtr::new();
|
||||
if tolk.detect_screen_reader().is_some() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user