First, thanks for making this crate! Very useful. I tried to integrate it into a desktop application and it crashes with a SIGSEGV when calling Tts::voices with the AVFoundation backend (in the hello_world example it doesn't crash):
I think it's because the code for getting the voices and voice attributes doesn't follow the Objective-C memory management rules (explained here in the context of Rust: https://stackoverflow.com/a/43148508, I also didn't know about these rules).
First, thanks for making this crate! Very useful. I tried to integrate it into a desktop application and it crashes with a SIGSEGV when calling
Tts::voices
with the AVFoundation backend (in thehello_world
example it doesn't crash):I think it's because the code for getting the voices and voice attributes doesn't follow the Objective-C memory management rules (explained here in the context of Rust: https://stackoverflow.com/a/43148508, I also didn't know about these rules).
I'm going to create a PR for this.