Created
October 9, 2022 13:22
-
-
Save itsmeadarsh2008/bf58d493b0437f92a7a90746451d8e64 to your computer and use it in GitHub Desktop.
A text-to-speech conversion using Powershell. Use ./win32.ps1 <text> <rate>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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