Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work in various apps like Discord and Thorium Reader #24

Open
Marc2p opened this issue Oct 21, 2024 · 3 comments
Open

Does not work in various apps like Discord and Thorium Reader #24

Marc2p opened this issue Oct 21, 2024 · 3 comments

Comments

@Marc2p
Copy link

Marc2p commented Oct 21, 2024

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

@gexgd0419
Copy link
Owner

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
Copy link
Owner

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.

@Marc2p
Copy link
Author

Marc2p commented Oct 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants