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

natural voice sapi adapter api key #9

Open
fettahpinar opened this issue Jul 7, 2024 · 4 comments
Open

natural voice sapi adapter api key #9

fettahpinar opened this issue Jul 7, 2024 · 4 comments

Comments

@fettahpinar
Copy link

Hello.
in the description of this vehicle, it says that with the api key all available sounds can be used.
However, unfortunately I couldn't find a place where I can enter the api key.
i have an existing api key and i want to use azure sounds directly, not edge sounds.
where do I enter the api key?

gexgd0419 added a commit that referenced this issue Jul 12, 2024
Add initial cache data for online voices
Update file caching mechanism to support Edge & Azure
Add utility wrapper classes: RegKey, TaskScheduler
@gexgd0419
Copy link
Owner

A new version v0.2 has been released! Now there's support for enumerating Azure voices, and a UI for entering the API key.

@fettahpinar
Copy link
Author

Hello.
thank you for this update.
I have a question.
when the api key is entered, will all sounds from azure be available with sapi 5?
for example, when a new sound is added to the portfolio, will this sound be automatically available with sapi 5, or will you have to release a new version?
I mean, will the sound list be updated automatically, or do you have to manually update the sound list with each new sound?
Finally, please contact me at my e-mail address and send me the language file, I will be happy to translate the interface into Turkish.

@gexgd0419
Copy link
Owner

The voice list is fetched from the server, so you can use all the voices available to your Azure subscription.

To avoid blocking the client when enumerating the voices, the engine will cache the fetched voice list for an hour. You can see the cached voice list in the cache folder (%LOCALAPPDATA%\NaturalVoiceSAPIAdapter): AzureVoiceListCache.json and EdgeVoiceListCache.json.

On first use, there's no cache file yet, so the engine will use the built-in voice lists. But once it can download the newest voice list, it will start to use the downloaded list. It will re-download the voice list in the background if the cache file hasn't been updated for an hour. Such a file is just a few hundred kilobytes.

So no, the voice list doesn't need to be manually updated. But if you want to force the voice list to be refreshed immediately without waiting for an hour, you can go to the cache folder and delete the files.

As for translation, unfortunately, I didn't made the interface with easy translation in mind, as I only intended to support English and simplified Chinese. I used the standard Win32 dialog and string table resources, so every string is written into the resource data, instead of a separate language file. You can check the Installer.rc, NaturalVoiceSAPIAdapter.rc, and TtsApplication.rc files.

@fettahpinar
Copy link
Author

Hello there.
Thank you very much for your interest and your feedback, this is really an excellent application!
finally, there is a problem I noticed in the interface and it might cause confusion.
after installing sapi adapter 32 bit or 64 bit, the install button still appears.
i.e. the install button still appears, next to it is the uninstall button.
it would be nice if this install button doesn't appear again and only the uninstall button appears instead, because there is no need to reinstall something that has already been installed.

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