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

Add support for new natural voices by microsoft #291

Closed
Meshwa428 opened this issue Sep 23, 2023 · 8 comments
Closed

Add support for new natural voices by microsoft #291

Meshwa428 opened this issue Sep 23, 2023 · 8 comments

Comments

@Meshwa428
Copy link

Meshwa428 commented Sep 23, 2023

It's been almost a year since Microsoft released 3 natural sounding voices for windows, namely Guy, Jenny and Aria. But still they are not supported by this library, it's my humble request please add those voices, because we beginner devs are tired of listening to that boring David.

@GertNosmas
Copy link

You can actually add the voices if you want to.

Go to the Registry Editor > HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Speech_OneCore > Voices > Tokens. Here, export the voice that you want to use and edit the text file so that you replace all 'Speech_OneCore' to 'Speech', save it and open it with Registry Editor.

@Meshwa428
Copy link
Author

Oh they are not the natural voices I am talking about, Microsoft has introduced a feature to the narrator that is called natural voices and they are far more better than those windows sapi 5 voices

@Meshwa428
Copy link
Author

Any updates??

@Meshwa428
Copy link
Author

Any updates?

@gexgd0419
Copy link

Seems that Microsoft hasn't allowed third-party apps to use those natural voices yet.

The Narrator natural voices are offline (embedded) versions of Azure AI Speech voices. Microsoft limits third-party access to embedded speech models, and requires submitting an application form if you want to use them.

However, if you want to have a try, here's my program called NaturalVoiceSAPIAdapter. After installation, it can make Narrator natural voices accessible to all SAPI 5 compatible programs, including pyttsx3.

@Meshwa428
Copy link
Author

Meshwa428 commented May 11, 2024

Thanks 🙏, but will it work offline?
And please tell me how I can use it with pyttsx3?

@gexgd0419
Copy link

It supports both online voices (from Microsoft Edge read aloud feature) and offline voices (installed Narrator natural voices on your system). You can choose what to use in the installer.

After installing the program, the new natural voices will appear in the voice list of pyttsx3. You can get the voice list with engine.getProperty('voices'), and set which voice to use with engine.setProperty('voice', voice.id).

Note that this is not supported by Microsoft, and may stop working after some system update. You can try this yourself, but using this in production is not recommended.

@willwade
Copy link
Collaborator

This a freakin awesome hack. Many thanks @gexgd0419 ⭐️

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

4 participants