简体   繁体   English

Google Cloud 文本转语音字符数

[英]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?我正在将 Google Cloud TTS 用于个人项目,尽管它每月达到 100 万个字符的可能性几乎可以忽略不计,但我想知道是否有任何方法可以在达到特定限制时创建警报? Any help on this will be highly appreciated.对此的任何帮助将不胜感激。

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要获得配额:IAM & Admin > Quotas and the look for test to Speech

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 wav.net voices.如果您在右侧的过滤器中按 SKU 分组,则在账单报告中显示它会显示用于您设置的范围的确切字符数,按正常和 wav.net 语音拆分。

在此处输入图像描述

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.不确定您是否可以使用https://cloud.google.com/billing/docs/reference/rest/v1/services.skus/list或其他内容自动检查限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM