remove native screen reader spam
This commit is contained in:
parent
bd34cfd43e
commit
a8320881ba
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ impl ScreenReader {
|
||||||
|
|
||||||
#[cfg(feature = "screen_reader")]
|
#[cfg(feature = "screen_reader")]
|
||||||
pub fn speak(&mut self, text: &str) {
|
pub fn speak(&mut self, text: &str) {
|
||||||
|
if text.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if let Some(tts) = &mut self.tts {
|
if let Some(tts) = &mut self.tts {
|
||||||
eprintln!("Speaking: {:?}", text);
|
eprintln!("Speaking: {:?}", text);
|
||||||
let interrupt = true;
|
let interrupt = true;
|
||||||
|
|
Loading…
Reference in a new issue