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:
parent
4283623723
commit
4079f4b3c4
|
@ -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] };
|
||||
|
|
Loading…
Reference in New Issue
Block a user