Added speak.ps1

This commit is contained in:
Markus Fleschutz 2020-05-02 12:55:53 +00:00
parent 17c7f0453e
commit e2c36d42ef

11
speak.ps1 Normal file
View File

@ -0,0 +1,11 @@
# PowerShell Script for Text-To-Speech (TTS)
# ------------------------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$Text = "Hello World!"
$voice = New-Object ComObject SAPI.SPVoice
$voice.Speak($Text);
exit 0