1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 13:09:37 +00:00

(Hopefully) initialize utterances correctly.

This commit is contained in:
Nolan Darilek 2021-03-15 13:03:41 -05:00
parent bd8e2ee20a
commit c65c0022d8

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