This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |