gexgd0419 / NaturalVoiceSAPIAdapter

Make Azure natural TTS voices accessible to any SAPI 5-compatible application.
MIT License
121 stars 5 forks source link

natural voice sapi adapter api key #9

Open fettahpinar opened 2 months ago

fettahpinar commented 2 months ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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.