1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-12-02 13:49:37 +00:00

Try another initialization fix.

This commit is contained in:
Nolan Darilek 2021-03-15 13:46:22 -05:00
parent ed2d2e76c3
commit 8c2aae7afd

View File

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