Updated both scripts

This commit is contained in:
Markus Fleschutz 2021-02-08 19:36:17 +01:00
parent a5ba0c2d34
commit f13901caca
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,9 @@ try {
foreach ($OtherVoice in $Voices) {
$Description = $OtherVoice.GetDescription()
if ($Description -like "*- English*") {
if ($Text -eq "") {
$Text = read-host "Enter the text to speak"
}
write-progress "$Text"
$Voice.Voice = $OtherVoice
[void]$Voice.Speak($Text)

View File

@ -10,7 +10,7 @@ param([string]$Text = "")
try {
if ($Text -eq "") {
$Text = read-host "Enter text to speak"
$Text = read-host "Enter the text to speak"
}
$Voice = new-object -ComObject SAPI.SPVoice