'Google Cloud Text-To-Speech Character counts
I am using Google Cloud TTS for a personal project and though there is almost negligible chance that it will hit 1M characters / month but I would like to know is there any way to create an alert when certain limit is reached? Any help on this will be highly appreciated.
Solution 1:[1]
In the console you can see the text to speech quota per day: Standard Edition characters count of text-to-speech queries per day
I recommend to keep and save the count.
To can get to the quotas: IAM & Admin > Quotas and the look for test to speech
Solution 2:[2]
So,
I came across the same problem recently where I needed to know the exact number of characters used.
Turn out in the billing report if you group by SKU in the filters on the right side it shows the exact number of characters used for the range you set, split of by normal and wavenet voices.
Though that data only gets updated once a day apparently.
Not sure if you can check the limit automatically maybe with https://cloud.google.com/billing/docs/reference/rest/v1/services.skus/list or something.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nathan Nasser |
Solution 2 | jjbbss |