Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add microsoft core voice to any application can use
$sourcePath = 'HKLM:\software\Microsoft\Speech_OneCore\Voices\Tokens' #Where the OneCore voices live
$destinationPath = 'HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens' #For 64-bit apps
$destinationPath2 = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\SPEECH\Voices\Tokens' #For 32-bit apps
cd $destinationPath
$listVoices = Get-ChildItem $sourcePath
foreach($voice in $listVoices)
{
$source = $voice.PSPath #Get the path of this voices key
copy -Path $source -Destination $destinationPath -Recurse
copy -Path $source -Destination $destinationPath2 -Recurse
}
@rogueyoshi

This comment has been minimized.

Copy link

@rogueyoshi rogueyoshi commented Oct 30, 2019

Can you add Cortana's voices?

@hiepxanh

This comment has been minimized.

Copy link
Owner Author

@hiepxanh hiepxanh commented Nov 9, 2019

It's looked at somewhere that I can't touch, need investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.