AwesomeTTS / awesometts-anki-addon

AwesomeTTS text-to-speech add-on for Anki
GNU General Public License v3.0
478 stars 99 forks source link

Is AWS Polly premium only now? #178

Open barolo opened 3 years ago

barolo commented 3 years ago

I have my own keys and there’s nowhere to input them.

luc-vocab commented 3 years ago

Yes, AWS Polly is only available on Premium, because the boto3 framework which AWS requires cannot be packaged into an Anki add-on. So the only way to make it work is to use an external server to forward access. If you want to use your own keys, I suggest using Google Cloud, Azure, Watson or Naver. most of these offer a free tier also.

I want to emphasize that Premium will never be required, AwesomeTTS will always be free for people who want to use free services or use their own keys. But for AWS Polly, I have to technical way to allow access directly from AwesomeTTS.

barolo commented 3 years ago

I'm using Watson, the thing is as you're probably aware that AWS have way much higher free tier caps. [and better voices in general] I don't fully grasp the boto issue, how addons like Read Aloud for chrome/firefox do it?

luc-vocab commented 3 years ago

Services like Google, Azure, Naver, Watson provide a standard REST API which python can access without an issue. Amazon requires installation of their relatively large SDK for python, which is not possible inside an Anki addon. That's the current situation. I can try to take a look at how Read Aloud does it. You can also consider becoming a fan on patreon if you need AWS voices working right now (though it requires a $5/month subscription).

luc-vocab commented 3 years ago

Looks like Read Aloud embedded a minified AWS SDK: https://github.com/ken107/read-aloud/blob/master/js/aws-sdk.js i'll have to look into whether something like that is possible for AwesomeTTS.