Skip to content

Instantly share code, notes, and snippets.

@hiepxanh
Created November 23, 2017 03:08
Show Gist options
  • Select an option

  • Save hiepxanh/8b6ad80f6d620cd3eaaaa5c1d2c660b2 to your computer and use it in GitHub Desktop.

Select an option

Save hiepxanh/8b6ad80f6d620cd3eaaaa5c1d2c660b2 to your computer and use it in GitHub Desktop.
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

Copy link
Copy Markdown

Can you add Cortana's voices?

@hiepxanh

hiepxanh commented Nov 9, 2019

Copy link
Copy Markdown
Author

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

@stavfx

stavfx commented Oct 25, 2023

Copy link
Copy Markdown

Cortana (Eva) voices:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore\CortanaVoices\Tokens
C:\Windows\Speech_OneCore\Engines\TTS\en-US

see: https://github.com/watermarkhu/enable-microsoft-eva-tts

@LouisGameDev

LouisGameDev commented Apr 14, 2024

Copy link
Copy Markdown

Wonderful solution.

WARNING: This modifies your registry. If you're developing apps for distribution, this will dirty your test machine.

@olskaw

olskaw commented Apr 19, 2024

Copy link
Copy Markdown

Works great! This was the only solution for adding Arabic TTL to our app.

@BobFree54

Copy link
Copy Markdown

Trebalo bi postaviti blok koda za backup "registry"-ja.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment