rroessler1 / speech-to-text

3 stars 3 forks source link

[API Key] Unauthorized Response #13

Open tminett opened 1 year ago

tminett commented 1 year ago

Hello

I've tried both Google and Microsoft services, generated API keys for both, but receive the same error each time: Received an "Unauthorized" response; your API key is probably invalid.

The API key I'm inputting in the settings are brand new, copied directly to the clip board from the platform. I've regenerated keys with no success.

Hoping you'll be able to shed some light on where I'm going wrong.

Thanks!

rroessler1 commented 8 months ago

Sorry for never responding, but I'm dusting off the code a bit now. Did you ever get this working?

I noticed someone else had the same issue.

rroessler1 commented 8 months ago

No idea why it's happening, but I have a hardcoded URL that I'm calling which the API key gets passed to, I wonder if it's not working for certain regions.

rroessler1 commented 8 months ago

You may not have enabled STT API. You can go here to enable it and check the result. https://console.cloud.google.com/speech/overview?walkthrough_id=speech-to-text__speech-studio-transcriptions

cgarvie commented 4 months ago

I've enabled it and am having the same error. "Unauthorized: your API key is probably invalid." or something similar to that. I'm sure STT is enabled an other anki plugins are using the same API key without issue.