mirror of https://github.com/ndarilek/tts-rs.git
(Hopefully) initialize utterances correctly.
This commit is contained in:
parent
bd8e2ee20a
commit
c65c0022d8
|
@ -177,7 +177,7 @@ impl Backend for AvFoundation {
|
||||||
trace!("Allocating utterance");
|
trace!("Allocating utterance");
|
||||||
utterance = msg_send![class!(AVSpeechUtterance), alloc];
|
utterance = msg_send![class!(AVSpeechUtterance), alloc];
|
||||||
trace!("Initializing utterance");
|
trace!("Initializing utterance");
|
||||||
let _: () = msg_send![utterance, initWithString: str];
|
utterance = msg_send![utterance, initWithString: str];
|
||||||
trace!("Setting rate to {}", self.rate);
|
trace!("Setting rate to {}", self.rate);
|
||||||
let _: () = msg_send![utterance, setRate: self.rate];
|
let _: () = msg_send![utterance, setRate: self.rate];
|
||||||
trace!("Setting volume to {}", self.volume);
|
trace!("Setting volume to {}", self.volume);
|
||||||
|
|
Loading…
Reference in New Issue