From 290eb06d02ae9cc880b09467448a89293b17dc40 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 12 Mar 2021 06:38:46 -0600 Subject: [PATCH] Even more trace logging. --- src/backends/av_foundation.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index b071370..5f93394 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -168,13 +168,21 @@ impl Backend for AvFoundation { } let utterance: id; unsafe { + trace!("Allocating utterance string"); let str = NSString::alloc(nil).init_str(text); + trace!("Allocating utterance"); utterance = msg_send![class!(AVSpeechUtterance), alloc]; + trace!("Initializing utterance"); let _: () = msg_send![utterance, initWithString: str]; + trace!("Setting rate to {}", self.rate); let _: () = msg_send![utterance, setRate: self.rate]; + trace!("Setting volume to {}", self.volume); let _: () = msg_send![utterance, setVolume: self.volume]; + trace!("Setting pitch to {}", self.pitch); let _: () = msg_send![utterance, setPitchMultiplier: self.pitch]; + trace!("Enqueuing"); let _: () = msg_send![self.synth, speakUtterance: utterance]; + trace!("Done queuing"); } Ok(Some(UtteranceId::AvFoundation(utterance))) }