Making a "hard" limit/quota for limits Google Cloud Text to Speech costs?

1,164 views
Skip to first unread message

Jonathan H

unread,
Aug 1, 2018, 9:02:38 AM8/1/18
to Google Cloud Developers
I would like to make a "hard limit" on requests to APIs that are chargeable.

I had set what I thought was a budget over at Amazon Polly, but it turns out it only sends an alert, and by the time I'd got the email, an errant script had racked up 13 million characters at a cost of $54!!
Fortunately, I've got an Alexa skill in dev so that was covered, but I could have woken up owing my house!

So it's byebye AWS and hello Google IF* I can be sure that budget means budget, and not just an email alert.

More quick questions:
1: How do I see my actual current character usage count (rather than simply number of requests?
2: Is there a way of using the command line to get usage (I've looked  at both TTS and Gcloud docs and can't find it)
3: Is there a Google Support Group for  Cloud Text to Speech? I can't find one.
4: How to I report broken links within the docs? For example, there's a link to https://cloud.google.com/text-to-speech/docs/reference/rest/v1/SsmlVoiceGender but this is 404.

Thanks!


Katayoon (Cloud Platform Support)

unread,
Aug 3, 2018, 5:27:55 PM8/3/18
to Google Cloud Developers

You may create a budget for a GCP project to avoid surprises on your bill and monitor all of your Google Cloud Platform charges from one place. With a budget, you can create alerts that send emails to your billing administrators when charges exceed a certain amount.


If you would like to control your environment relative to your budget, then you can use programmatic budget notifications to automate your budget actions. Here, you can find an example on how to disable billing to stop usage.


At the moment, I couldn’t find any tool to show you the character usage, however you may send us your request on this feature so that the Cloud Text-to-Speech API will evaluate your request.


Here, you can find the Google Support Group for Cloud Speech discussions. Furthermore, you may report any bug including the bugs related to the documentation via the Issue Tracker (under Speech API issues category) as well.


Jonathan H

unread,
Aug 3, 2018, 5:58:14 PM8/3/18
to Google Cloud Developers
On Friday, 3 August 2018 22:27:55 UTC+1, Katayoon (Cloud Platform Support) wrote:
 

you can use programmatic budget notifications to automate your budget actions. Here, you can find an example on how to disable billing to stop usage.


Many thanks for your excellent reply - that looks like just what I am looking for. 

Here, you can find the Google Support Group for Cloud Speech discussions.


Thank you - but that is for the Cloud Speech API, which is for recognition, rather than TTS. Unless it is for both?
But a while ago I read it, and someone posted a TTS question and was told it wasn't for Cloud Speech to Text, just Cloud Speech (Recognition). Hmmm.

Anyway, thank you! 

Katayoon (Cloud Platform Support)

unread,
Aug 3, 2018, 7:02:39 PM8/3/18
to Google Cloud Developers
My pleasure. 

Yes, The Cloud Speech discussion group is for both Cloud Text-to-Speech API and Cloud Speech-to-Text API.
Reply all
Reply to author
Forward
0 new messages