(Hopefully) initialize utterances correctly.

This commit is contained in:
Nolan Darilek 2021-03-15 13:03:41 -05:00
parent bd8e2ee20a
commit c65c0022d8
1 changed files with 1 additions and 1 deletions

View File

@ -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);