配置Google Cloud Text-to-Speech API遇权限错误:API未启用问题求助
Fixing the "Cloud Text-to-Speech API not enabled" Error
Hey there! That error message you're hitting is totally normal when you've got credentials set up but haven't actually turned on the API itself. Let's sort this out quickly:
First, let's call out the exact error you're seeing for clarity:
Cloud Text-to-Speech API has not been used in project usable-auth-library before or it is disabled. Enable it by visiting https...
Step-by-step to enable the API
- Open up the Google Cloud Console, and make sure you're logged into the account tied to your
usable-auth-libraryproject. - In the top search bar, type Cloud Text-to-Speech API and select it from the dropdown results.
- On the API's overview page, you'll spot a prominent Enable button (if it's currently disabled). Click it, then wait a minute or two for Google's systems to activate the service.
Quick checks if it still doesn't work after enabling
- Verify that your service account credentials are linked to the
usable-auth-libraryproject (not a different one you might have). - Make sure your gcloud SDK is targeting the correct project by running this in your terminal:
gcloud config set project usable-auth-library - Keep in mind: API enablement can take 5-10 minutes to fully propagate across Google's infrastructure. If you get the error right after enabling, give it a little time and try again.
Once the API is active, rerun your HTTP request example—it should work smoothly!
内容的提问来源于stack exchange,提问作者MKB
相关产品推荐
相关产品推荐

