How to read text in Audio using Powershell ? – Text to audio with PowerShell, Text reader in Audio format, text to speech (TTS)
Scenario 1: To make a Self Help Audio Guide for custom made applications
Scenario 2: Audio guide to awake user and enter input for script
Scenario 3: Building some applications with voice output
Scenario 4: Progress of the Script as Audio Output
We use the cmdlet Add-Type to add a .NET framework type to a PowerShell session. We can then instantiate a SpeechSynthesizer object to turn our text into audio output. It’s pretty exciting.
The easiest way to try this is like so:
Add-Type -AssemblyName System.speech $speak = New-Object System.Speech.Synthesis.SpeechSynthesizer $speak.Speak('Hello...I am Arun')