say.js
say.js copied to clipboard
Add a method for getting a list of voices
Different voices will be available depending on platform.
Say:
say -v '?'
Espeak:
espeak --voices
Unfortunately Festival is a very painful tool and doesn't provide a way to access voices.
For Windows this is pretty simple (can be run in the same way the current speak command works):
Add-Type -AssemblyName System.speech;
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer;
$speak.GetInstalledVoices() | % {$_.VoiceInfo.Name}
How many voices are available by default?