The 'list-voices.ps1' Script
May 17, 2026 · View on GitHub
This PowerShell script queries the installed text-to-speech (TTS) voices and prints them to the console.
Parameters
PS> ./list-voices.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
Example
PS> ./list-voices.ps1
Name Culture Gender Age
---- ------- ------ ---
Microsoft David Desktop en-US Male Adult
...
Notes
Author: Markus Fleschutz | License: CC0
Related Links
https://github.com/fleschutz/PowerShell
Script Content
<#
.SYNOPSIS
List installed text-to-speech voices
.DESCRIPTION
This PowerShell script queries the installed text-to-speech (TTS) voices and prints them to the console.
.EXAMPLE
PS> ./list-voices.ps1
Name Culture Gender Age
---- ------- ------ ---
Microsoft David Desktop en-US Male Adult
...
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
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 # success
} catch {
"⚠️ ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
exit 1
}
(page generated by convert-ps2md.ps1 as of 05/17/2026 11:51:08)