Skip to content

Instantly share code, notes, and snippets.

@itsmeadarsh2008
Created October 9, 2022 13:22
Show Gist options
  • Save itsmeadarsh2008/bf58d493b0437f92a7a90746451d8e64 to your computer and use it in GitHub Desktop.
Save itsmeadarsh2008/bf58d493b0437f92a7a90746451d8e64 to your computer and use it in GitHub Desktop.
A text-to-speech conversion using Powershell. Use ./win32.ps1 <text> <rate>
param(
[Parameter()]
[String]$text,
[Int]$rate
)
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.SpeakSsml(($text))
$speak.Rate = $rate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment