1
0
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:
Nolan Darilek 2020-09-23 12:23:46 -05:00
parent 251fb8d8c1
commit 532d5d9b58
2 changed files with 3 additions and 3 deletions

View File

@ -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::*;

View File

@ -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() {