6

How to find installed text to speech voices on Windows | Steve Fenton

 1 year ago
source link: https://www.stevefenton.co.uk/2022/05/how-to-find-installed-text-to-speech-voices-on-windows/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to find installed text to speech voices on Windows

I’m using a Visual Studio Code extension that provides text-to-speech, which I use as part of my VS Code writing set up. It has a simple set of two options, speed (1.5x of course) and voice, which is a text field as different options exist on different operating systems.

As I’m using Windows 11 on a Surface Book 3, I can quickly find installed voices using a PowerShell script…

Add-Type -AssemblyName System.speech
$synth = New-Object System.Speech.Synthesis.SpeechSynthesizer
$synth.GetInstalledVoices() | foreach { $_.VoiceInfo.Name }

Running these three lines of PowerShell will give you a list such as this:

Microsoft Hazel Desktop
Microsoft Zira Desktop

Enter the full name, such as “Microsoft Zira Desktop”, in the settings for the VSCode Speech plugin settings. You should set this under user preferences, not workspace settings – as speed and voice is going to be a personal choice for your colleagues.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK