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

Fix mismatched gender codes.

This commit is contained in:
Nolan Darilek 2022-05-09 08:44:33 -05:00
parent 4283623723
commit 4079f4b3c4

View File

@ -304,8 +304,8 @@ impl Backend for AvFoundation {
let name: CFString = unsafe { msg_send![*v as *const Object, name] };
let gender: i64 = unsafe { msg_send![*v as *const Object, gender] };
let gender = match gender {
0 => Some(Gender::Male),
1 => Some(Gender::Female),
1 => Some(Gender::Male),
2 => Some(Gender::Female),
_ => None,
};
let language: CFString = unsafe { msg_send![*v as *const Object, language] };