Search notes:

Microsoft Speech Object Library

The Speech Object Library seems to be implemented by %SYSTEMROOT%\System32\Speech\Common\sapi.dll.

Saying something

The following simple PowerShell statements make the computer say hello world.
$sapi = new-object -comObject sapi.spVoice
$null = $sapi.speak('Hello world')
It is also possible to say something with VBScript:
option explicit

dim sapi
set sapi = createObject("sapi.spVoice")
sapi.speak("Hello world.")

See also

Useful COM object libraries
The .NET class System.Speech.Synthesis.SpeechSynthesizer

Index