Question: Good afternoon, I'm learning and using pyttsx for speech, the thing is that I want to use it as a "female" voice but I can not do it using this code:

```
import pyttsx as pt
from pyttsx import voice
engine = pt.init()
voices = engine.getProperty('voices')
#engine.setProperty('gender', 'female') # also does not work
engine.setProperty('female', voice.Voice.gender) #not even
engine.setProperty('female', voice.gender) #does not work
engine.setProperty('voice', voices[4].id)
engine.say("Hello World")
engine.runAndWait()

class Voice(object):
    def __init__(self, id, name=None, languages=[], gender=None, age=None):
        self.id = id
        self.name = name
        self.languages = languages
        self.gender = gender
        self.age = age

```

Answer: 
Use `sound=getProperty ('voices'); engine.setProperty('voice','sound [1].id')`
This will definitely work. 0 for male and 1 for female.
You have to check whether your computer has other narrator options or not for that go to control panel -> Ease of Access center -> Narrator options
there will be option how many narrators you have.
other option go to windows search for narrator.
if you don't have other narrator that you have written in code, default narrator will work only.