How do I add a voice / language to speechSynthesis?

百般思念 提交于 2019-12-06 03:48:41

HOW TO ADD MORE VOICE FROM MICROSOFT EDGE TO CHROME AND FIREFOX ( only on windows 10 fall creator update or later)

you should using show list voice test first at: show available voice on browser

chrome have local and server voice, edge have local and can download more, firefox have nothing else but only 3 supported voice locked by windows registy.

Here's the script to unlock:

If your not sure how to run a powershell script:

Click Start

search for 'Powershell'

launch Powershell (Since this is editing a LocalMachine key, you will need to run as admin). Copy and paste the script into the console. Press enter.

$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
}

After running this on my Example machine and restarting, I have the following voices available to the api

Microsoft David Desktop; Microsoft Zira Desktop; Microsoft Zira Mobile; (Same as the desktop counterpart) Microsoft Mark Mobile;

I find these voices to be superior to the Desktop variants, plus variety is always nice

that you can test your new voice here after restart: show available voice on browser

here I can have 10 voices than 3 voices before, on firefox. That even I can install Vietnamese voice with Microsoft An from windows language, and my firefox can read vietnamese as edge.

source reddit.com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!