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')

(Visited 5 times, 1 visits today)

By Arun Sabale

Arun is a Solution Architect on enterprise client management with more than 14 years of experience in IT. Arun Sabale is Blogger and tech enthusiast. His main focus is on Azure cloud infra, Cloud automation with powershell, python, ARM terraform and all cloud infra services like compute, storage, network, automation, function api etc... LinkedIN -