Skip to content

Commit

Permalink
Update sapi5.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
willwade and cclauss authored Nov 14, 2024
1 parent 476ea30 commit 4d5ee1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyttsx3/drivers/sapi5.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _toVoice(attr):

# Retrieve gender
gender_attr = attr.GetAttribute("Gender")
gender_title_case = (gender or "").title()
gender_title_case = (gender_attr or "").title()
gender = gender_title_case if gender_title_case in {"Male", "Female"} else None

# Retrieve age
Expand Down

0 comments on commit 4d5ee1a

Please sign in to comment.