How to activate Dictation Option

How do I activate the dictation option, so I can talk to the Mac and it can write what I'm saying