Update the speak-*.ps1 scripts

This commit is contained in:
Markus Fleschutz 2023-08-06 11:42:01 +02:00
parent 16489cb0b0
commit 9c60ba2de7
18 changed files with 23 additions and 23 deletions

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with an Arabic text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Arabic text to speak
.EXAMPLE
PS> ./speak-arabic.ps1 "أهلاً"
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Danish text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Danish text to speak
.EXAMPLE
PS> ./speak-danish.ps1 Hej
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Dutch text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Dutch text to speak
.EXAMPLE
PS> ./speak-dutch.ps1 Hallo
.LINK
@ -18,11 +18,11 @@ param([string]$text = "")
try {
if ($text -eq "") { $text = Read-Host "Enter the Dutch 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 "*- Dutch*") {
$TTSVoice.Voice = $voice
[void]$TTSVoice.Speak($text)
$TTS.Voice = $voice
[void]$TTS.Speak($text)
exit 0 # success
}
}

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with an English text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the English text to speak
.EXAMPLE
PS> ./speak-english.ps1 Hi
.LINK
@ -16,7 +16,7 @@
param([string]$text = "")
try {
if ("$text" -eq "") { $text = Read-Host "Enter the English text to speak" }
if ($text -eq "") { $text = Read-Host "Enter the English text to speak" }
$TTS = New-Object -ComObject SAPI.SPVoice
foreach ($voice in $TTS.GetVoices()) {

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a French text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the French text to speak
.EXAMPLE
PS> ./speak-french.ps1 Salut
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a German text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the German text to speak
.EXAMPLE
PS> ./speak-german.ps1 Hallo
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Greek text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Greek text to speak
.EXAMPLE
PS> ./speak-greek.ps1 "γεια"
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Hindi text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Hindi text to speak
.EXAMPLE
PS> ./speak-hindi.ps1 "नमस्ते"
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with an Italian text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Italian text to speak
.EXAMPLE
PS> ./speak-italian.ps1 Ciao
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Japanese text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Japanese text to speak
.EXAMPLE
PS> ./speak-japanese.ps1 "ハロー"
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Latin text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Latin text to speak
.EXAMPLE
PS> ./speak-latin.ps1 Salve
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Mandarin text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Mandarin text to speak
.EXAMPLE
PS> ./speak-mandarin.ps1 "你好"
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Polish text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Polish text to speak
.EXAMPLE
PS> ./speak-polish.ps1 cześć
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Portuguese text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Portuguese text to speak
.EXAMPLE
PS> ./speak-portuguese.ps1 Olá
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Spanish text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Spanish text to speak
.EXAMPLE
PS> ./speak-spanish.ps1 Hola
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Swedish text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Swedish text to speak
.EXAMPLE
PS> ./speak-swedish.ps1 Hallå
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Turkish text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Turkish text to speak
.EXAMPLE
PS> ./speak-turkish.ps1 Merhaba
.LINK

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This PowerShell script speaks the given text with a Ukrainian text-to-speech (TTS) voice.
.PARAMETER text
Specifies the text to speak
Specifies the Ukranian text to speak
.EXAMPLE
PS> ./speak-ukrainian.ps1 "Привіт"
.LINK