From c65c0022d821ae8ce65617c72dcfa701e166a726 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 15 Mar 2021 13:03:41 -0500 Subject: [PATCH] (Hopefully) initialize utterances correctly. --- src/backends/av_foundation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index d7a747b..a10830d 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -177,7 +177,7 @@ impl Backend for AvFoundation { trace!("Allocating utterance"); utterance = msg_send![class!(AVSpeechUtterance), alloc]; trace!("Initializing utterance"); - let _: () = msg_send![utterance, initWithString: str]; + utterance = msg_send![utterance, initWithString: str]; trace!("Setting rate to {}", self.rate); let _: () = msg_send![utterance, setRate: self.rate]; trace!("Setting volume to {}", self.volume);