1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 13:29:37 +00:00

*sigh* Fix stupid M1/ARM casting issue. I hate Apple.

This commit is contained in:
Nolan Darilek 2021-03-15 14:02:05 -05:00
parent 50528ce2d1
commit fb7f1dddfc

View File

@ -269,7 +269,7 @@ impl Backend for AvFoundation {
fn is_speaking(&self) -> Result<bool, Error> {
trace!("is_speaking()");
let is_speaking: i8 = unsafe { msg_send![self.synth, isSpeaking] };
Ok(is_speaking != NO)
Ok(is_speaking != NO as i8)
}
}