(Hopefully) initialize utterances correctly.

pull/11/head
Nolan Darilek 2 years ago
parent bd8e2ee20a
commit c65c0022d8
  1. 2
      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);

Loading…
Cancel
Save