NaturalVoiceSAPIAdapter icon indicating copy to clipboard operation
NaturalVoiceSAPIAdapter copied to clipboard

Does not work in various apps like Discord and Thorium Reader

Open Marc2p opened this issue 1 year ago • 3 comments

Hi. I have installed both 64bit and 32bit versions, however it doesn't work in Thorium reader. I have changed the default system voice and tried to change the voice Thorium uses, but it doesn't appear among the available voices.

It also doesn't work when using the /tts command in Discord, although you can't change the voice in Discord, but I thought changing the default voice would work. I haven't tried in other apps yet

Marc2p avatar Oct 21 '24 20:10 Marc2p

As for now, Chromium/Electron apps are not able to use the voices from this engine. In fact, they cannot use any third-party SAPI5 voice. They only support WinRT/OneCore voices, which are not supported (yet) by this engine, because Microsoft provides no documentation on how to make a third-party OneCore voice.

Related issue: #4

For technical details about why Chormium doesn't support SAPI5 voices, see my comment here.

gexgd0419 avatar Oct 22 '24 03:10 gexgd0419

A temporary workaround is to copy the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\TokenEnums to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore\Voices\TokenEnums.

You can use the following PowerShell code. Open Windows Powershell with admin privilege, paste the following line and press Enter:

Copy-Item HKLM:\SOFTWARE\Microsoft\Speech\Voices\TokenEnums\ HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Voices\ -Recurse

This can make Chromium apps able to use the voices. But I'm not sure whether this will affect other programs that use OneCore voices.

gexgd0419 avatar Oct 22 '24 04:10 gexgd0419

Thank you very much. I will try it and if anything I will leave a new comment. I am not sure if I should close the issue as it does not seem to be an app issue.

Marc2p avatar Oct 22 '24 14:10 Marc2p