Google云语API

Google Cloud Speech API

我正在尝试在 Python 中创建一个脚本,将音频文件转换为文本。我找到了 Google Cloud Speech 模块,它可以轻松地为我完成。我发现您需要创建凭据(API 密钥)才能使用他们的服务。我试图创建凭据,它说我必须创建一个需要信用卡的计费帐户。

那么,它是如何工作的?

那是免费的吗?

我需要付费才能让我的脚本发挥作用吗?

google-cloud-python is a client for Google Cloud Speech-to-Text, i.e. a library which enables you to programmatically use google's models to perform speech transcription using python ("module" is not the best term in this context). You do need to use credentials in order to authenticate yourself or your app, however, using an API key is not the only way to do so (check here for more). Now, in order to do any of that, you would have to create a google cloud project which in turns means you will have to obtain a billing account. This does not necessarily mean that you will get charged: there's a free tier which gives you 0 for 12 months (here is the FAQ for more details). You should go through the above links and then go ahead with the client libraries' quickstart

很可能您没有在您的帐户中添加任何信用卡,因为它需要添加信用卡。 转到 Billing Section 并添加一张信用卡。然后你将得到 300 美元一年。 有了它,您就可以让您的脚本免费运行。