diff --git a/Scripts/speak-arabic.ps1 b/Scripts/speak-arabic.ps1 index 526030c2..96308017 100755 --- a/Scripts/speak-arabic.ps1 +++ b/Scripts/speak-arabic.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Arabic text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Arabic*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-danish.ps1 b/Scripts/speak-danish.ps1 index bcbb6230..3b3e9750 100755 --- a/Scripts/speak-danish.ps1 +++ b/Scripts/speak-danish.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Danish text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Danish*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-english.ps1 b/Scripts/speak-english.ps1 index 2fab3b9d..5ebd064a 100755 --- a/Scripts/speak-english.ps1 +++ b/Scripts/speak-english.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ("$text" -eq "") { $text = read-host "Enter the English text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- English*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-french.ps1 b/Scripts/speak-french.ps1 index f6d586d4..079ea10f 100755 --- a/Scripts/speak-french.ps1 +++ b/Scripts/speak-french.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the French text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- French*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-german.ps1 b/Scripts/speak-german.ps1 index 57bb38ef..43108e5f 100755 --- a/Scripts/speak-german.ps1 +++ b/Scripts/speak-german.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the German text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- German*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-greek.ps1 b/Scripts/speak-greek.ps1 index b010bc58..5be6c606 100755 --- a/Scripts/speak-greek.ps1 +++ b/Scripts/speak-greek.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Greek text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Greek*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-hindi.ps1 b/Scripts/speak-hindi.ps1 index aaec0a3b..96cedfd2 100755 --- a/Scripts/speak-hindi.ps1 +++ b/Scripts/speak-hindi.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Hindi text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Hindi*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-italian.ps1 b/Scripts/speak-italian.ps1 index 5cb53809..8ad20994 100755 --- a/Scripts/speak-italian.ps1 +++ b/Scripts/speak-italian.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Italian text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Italian*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-japanese.ps1 b/Scripts/speak-japanese.ps1 index 0b3db613..34c76dff 100644 --- a/Scripts/speak-japanese.ps1 +++ b/Scripts/speak-japanese.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Japanese text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Japanese*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-latin.ps1 b/Scripts/speak-latin.ps1 index d92ca513..479011e1 100755 --- a/Scripts/speak-latin.ps1 +++ b/Scripts/speak-latin.ps1 @@ -1,6 +1,6 @@ <# .SYNOPSIS - Speaks text with a Latin text-to-speech voice + Speaks text in Latin .DESCRIPTION This PowerShell script speaks the given text with a Latin text-to-speech (TTS) voice. .PARAMETER text @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Latin text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Latin*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-mandarin.ps1 b/Scripts/speak-mandarin.ps1 index 21a83b86..2b284370 100755 --- a/Scripts/speak-mandarin.ps1 +++ b/Scripts/speak-mandarin.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Mandarin text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Mandarin*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-polish.ps1 b/Scripts/speak-polish.ps1 index e76a17b2..7e3aec14 100755 --- a/Scripts/speak-polish.ps1 +++ b/Scripts/speak-polish.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Polish text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Polish*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-portuguese.ps1 b/Scripts/speak-portuguese.ps1 index 22d91ca6..5442f22e 100755 --- a/Scripts/speak-portuguese.ps1 +++ b/Scripts/speak-portuguese.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Portuguese text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Portuguese*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-spanish.ps1 b/Scripts/speak-spanish.ps1 index 09791cef..74ac20cb 100755 --- a/Scripts/speak-spanish.ps1 +++ b/Scripts/speak-spanish.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Spanish text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Spanish*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-swedish.ps1 b/Scripts/speak-swedish.ps1 index 22e36e0a..54544e9a 100755 --- a/Scripts/speak-swedish.ps1 +++ b/Scripts/speak-swedish.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Swedish text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Swedish*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } } diff --git a/Scripts/speak-ukrainian.ps1 b/Scripts/speak-ukrainian.ps1 index 29b8afda..da640fac 100755 --- a/Scripts/speak-ukrainian.ps1 +++ b/Scripts/speak-ukrainian.ps1 @@ -18,11 +18,11 @@ param([string]$text = "") try { if ($text -eq "") { $text = read-host "Enter the Ukrainian text to speak" } - $TTSVoice = New-Object -ComObject SAPI.SPVoice - foreach ($Voice in $TTSVoice.GetVoices()) { + $TTS = New-Object -ComObject SAPI.SPVoice + foreach ($Voice in $TTS.GetVoices()) { if ($Voice.GetDescription() -like "*- Ukrainian*") { - $TTSVoice.Voice = $Voice - [void]$TTSVoice.Speak($text) + $TTS.Voice = $Voice + [void]$TTS.Speak($text) exit 0 # success } }