Both Mac and Windows offer the functionality of Voice Assistant, which is a program that can generate a voice that reads the text you write. This guide teaches you how to make your computer talk.
Steps
Method 1 of 3: Windows

Step 1. Open Voice Assistant
You can do this from the Ease of Access section in the Control Panel. For Vista and 7, click Start and type narrator in the search bar, then press Enter. The voice assistant will launch and start talking and announcing your activities.

Step 2. Change the settings
Select the options you need, for example, "Repeat user key presses" which is used to narrate the letters you type.

Step 3. Change the narrator's voice
Depending on your operating system, click Voice Settings at the bottom of the window.

Step 4. Test the narrator
Open Notepad as usual, or click Start and type notepad, then press Enter.

Step 5. Type the words to be spoken

Step 6. Select the words
This will make the narrator speak the words.
Alternatively, press ctrl + alt + space or ctrl + shift + space
Method 2 of 3: Mac OSX: From the terminal

Step 1. Go to Finder> Applications> Utilities

Step 2. Open the Terminal

Step 3. Type "say" followed by the words you want to say

Step 4. Press Enter on your keyboard
The Mac will speak the written words.
Method 3 of 3: Mac OSX: From Text Edit

Step 1. Write something in TextEdit

Step 2. Place the cursor where it should start reading
Otherwise, it will start reading from the beginning of the document.

Step 3. Go to Edit> Speak> Start Reading
This will begin the narration.

Step 4. Go to Edit> Speak> Stop Reading
This will stop reading.
Warnings
- Don't make your PC swear, especially if your parents are around and you have the volume to the ball.
- You could get in trouble if your relatives think you are messing with their computer.