mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-14 00:46:59 +02:00
Update list-voices.ps1
This commit is contained in:
parent
f49e240e88
commit
a5ee42192a
@ -13,11 +13,11 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
add-type -AssemblyName System.Speech
|
Add-Type -AssemblyName System.Speech
|
||||||
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
|
$Synth = New-Object System.Speech.Synthesis.SpeechSynthesizer
|
||||||
$speak.GetInstalledVoices() |
|
$Synth.GetInstalledVoices() |
|
||||||
Select-Object -ExpandProperty VoiceInfo |
|
Select-Object -ExpandProperty VoiceInfo |
|
||||||
Select-Object -Property Name, Culture, Gender, Age
|
Select-Object -Property Name, Culture, Gender, Age
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user