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
#Based on https://gist.github.com/lazywinadmin/51619a0e47f4c8e7a8b7 | |
Add-Type -AssemblyName System.speech | |
mkdir C:\users\$env:username\Desktop\Compliments | |
#Populate list of statements/compliments to read | |
$Statements=Get-Content "C:\users\$env:username\Desktop\Compliments.txt" | |
$FileName= 1 | |
foreach ($Statement in $Statements) | |
{ | |
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
$speak.SelectVoice('Microsoft Zira Desktop') |
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
#Based on https://gist.github.com/lazywinadmin/51619a0e47f4c8e7a8b7 | |
Add-Type -AssemblyName System.speech | |
mkdir C:\users\$env:username\Desktop\Compliments | |
#Populate list of statements/compliments to read | |
$Statements=Get-Content "C:\users\$env:username\Desktop\Compliments.txt" | |
$FileName= 1 | |
foreach ($Statement in $Statements) | |
{ | |
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
$speak.SelectVoice('Microsoft Zira Desktop') |