mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 13:29:37 +00:00
Try another initialization fix.
This commit is contained in:
parent
ed2d2e76c3
commit
8c2aae7afd
|
@ -173,7 +173,8 @@ impl Backend for AvFoundation {
|
|||
let mut utterance: id;
|
||||
unsafe {
|
||||
trace!("Allocating utterance string");
|
||||
let str = NSString::alloc(nil).init_str(text);
|
||||
let mut str = NSString::alloc(nil);
|
||||
str = str.init_str(text);
|
||||
trace!("Allocating utterance");
|
||||
utterance = msg_send![class!(AVSpeechUtterance), alloc];
|
||||
trace!("Initializing utterance");
|
||||
|
|
Loading…
Reference in New Issue
Block a user