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