say.js icon indicating copy to clipboard operation
say.js copied to clipboard

Add a method for getting a list of voices

Open tlhunter opened this issue 11 years ago • 3 comments

Different voices will be available depending on platform.

Say:

say -v '?'

Espeak:

espeak --voices

tlhunter avatar Sep 25 '14 07:09 tlhunter

Unfortunately Festival is a very painful tool and doesn't provide a way to access voices.

tlhunter avatar Feb 22 '16 02:02 tlhunter

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}

jimbuck avatar Oct 30 '17 21:10 jimbuck

How many voices are available by default?

hasibweb avatar Apr 11 '20 16:04 hasibweb