NaturalVoiceSAPIAdapter icon indicating copy to clipboard operation
NaturalVoiceSAPIAdapter copied to clipboard

natural voice sapi adapter api key

Open fettahpinar opened this issue 1 year ago • 4 comments

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?

fettahpinar avatar Jul 07 '24 11:07 fettahpinar

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

gexgd0419 avatar Aug 16 '24 08:08 gexgd0419

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.

fettahpinar avatar Aug 16 '24 09:08 fettahpinar

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.

gexgd0419 avatar Aug 16 '24 14:08 gexgd0419

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.

fettahpinar avatar Aug 16 '24 15:08 fettahpinar