mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 08:23:14 +01:00
Updated both scripts
This commit is contained in:
parent
a5ba0c2d34
commit
f13901caca
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user