PowerShell module: PSTalk - Speak with PowerShell
https://www.systanddeploy.com/2017/07/powershell-module-pstalk-speak-with.html
In this post, I will share with you a PowerShell module I created that allows you to tell a text using the System voice.
How to get the module
The module PSTalk is available on the PowerShell Gallery and on GitHub.
Click on the links below to get the module.
Module on GitHub |
Module on PowerShell Gallery |
How to install it ?
From the PowerShell Gallery
Open the PowerShell prompt
Type the below commandline
The module PSTalk will be installed
From GitHub
Extract content of the zip folder
Open the PowerShell prompt
Type the below commandline
How to use it ?
Get-command -module PSTalk |
Available alias in the PSTalk module |
Speak cmdlet
See below how to use the cmdlet.
The cmdlet allows you to do the below things
- Choose the voice to speak
- Choose the voice volume
- Choose the voice rate
- Generate a script that will use your selected options
When you add the -voice switch, you will have to choose a voice. Those voices are depending of the installed voices on the computer.
Voices selection |
Voice resume selection |
The module in action
The below example shows you how to use basically the speak cmdlet with Text only.
The below example shows you how to use the speak cmdlet by selecting the voice to speak.
Enregistrer un commentaire