AwesomeTTS / awesometts-anki-addon

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

'Forbidden for url' error: demo API key for google cloud TTS #316

Open Valps opened 8 months ago

Valps commented 8 months ago

From a few days ago I consistently receive this message as I try to create an audio with awesomeTTS using google TTS:

403 Client Error: Forbidden for url: https://texttospeech.googleapis.com/v1/text:synthesize?key=AIzaSyAa8yy0GdcGPHdtD083HiGGx_S0vMPScDM

Is the demo API key not working anymore?

luc-vocab commented 8 months ago

It does look like it, I've had this report from other users, unfortunately I cannot do anything about it.

ChoyHsien commented 8 months ago

I'm getting the same thing with my own key.

akhouderchah commented 6 months ago

This is an issue with the key, not the service implementation.

Run curl -XPOST $URL to see more details.

In the case of the demo key, I got an API_KEY_HTTP_REFERRER_BLOCKED error.

In the case of a personal key, the response redirected me to enable the API (not sure if you can get away with providing a payment method, even if you can avoid paying during the trial period and/or if you stay below the monthly usage threshold). Having done that, things are working as expected on my end.