Announcement

Collapse
No announcement yet.

Powershell SAPI scripting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Powershell SAPI scripting

    I just ran across this quick piece of code once you have Windows powershell installed to speak text or anything your throw at it. I searched the forum, but did not get any hits on this at all, so here is my post on it.

    $val = "This is a test"
    $voice = new-object -com SAPI.SpVoice
    [void]$voice.Speak($val)

    It actually works quite nice and is easily called.

    Mike
Working...
X