Skip to content

Instantly share code, notes, and snippets.

View carfesh's full-sized avatar

Torsten Enderling carfesh

  • Düsseldorf, Germany
View GitHub Profile
#Requires -RunAsAdministrator
# copy OneCore (mobile) voices into desktop voices so that they can be used via SAPI
# mobile voices should only be converted if a desktop voice of the same friendly name does not exist
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 2
$VoicesPath = 'HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens' # where the OneCore voices live
$destinationPath = 'HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens' # for 64-bit apps