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:
parent
bd8e2ee20a
commit
c65c0022d8
|
@ -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…
Reference in New Issue
Block a user