通过应用强大的神经网络模型将音频转换为文本。
- REST 资源:v2.projects.locations
- REST 资源:v2.projects.locations.config
- REST 资源:v2.projects.locations.customClasses
- REST 资源:v2.projects.locations.operations
- REST 资源:v2.projects.locations.phraseSets
- REST 资源:v2.projects.locations.recognizers
服务:speech.googleapis.com
如要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用需要使用您自己的库来调用此服务,则在发出 API 请求时应使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,并且以下所有 URI 都与这些服务端点相关:
https://us-central1-speech.googleapis.comhttps://us-east1-speech.googleapis.comhttps://us-west1-speech.googleapis.comhttps://europe-west1-speech.googleapis.comhttps://europe-west2-speech.googleapis.comhttps://europe-west3-speech.googleapis.comhttps://europe-west4-speech.googleapis.comhttps://asia-south1-speech.googleapis.comhttps://asia-southeast1-speech.googleapis.comhttps://asia-northeast1-speech.googleapis.comhttps://australia-southeast1-speech.googleapis.comhttps://northamerica-northeast1-speech.googleapis.comhttps://us-speech.googleapis.comhttps://eu-speech.googleapis.comhttps://speech.googleapis.com
REST 资源:v2.projects.locations
| 方法 | |
|---|---|
get |
GET /v2/{name=projects/*/locations/*}获取位置相关信息。 |
list |
GET /v2/{name=projects/*}/locations列出有关此服务所支持位置的信息。 |
REST 资源:v2.projects.locations.config
| 方法 | |
|---|---|
get |
GET /v2/{name=projects/*/locations/*/config} 返回请求的 Config。 |
update |
PATCH /v2/{config.name=projects/*/locations/*/config} 更新 Config。 |
REST 资源:v2.projects.locations.customClasses
| 方法 | |
|---|---|
create |
POST /v2/{parent=projects/*/locations/*}/customClasses 创建 CustomClass。 |
delete |
DELETE /v2/{name=projects/*/locations/*/customClasses/*} 删除 CustomClass。 |
get |
GET /v2/{name=projects/*/locations/*/customClasses/*} 返回请求的 CustomClass。 |
list |
GET /v2/{parent=projects/*/locations/*}/customClasses 列出 CustomClass。 |
patch |
PATCH /v2/{customClass.name=projects/*/locations/*/customClasses/*} 更新 CustomClass。 |
undelete |
POST /v2/{name=projects/*/locations/*/customClasses/*}:undelete 恢复删除的 CustomClass。 |
REST 资源:v2.projects.locations.operations
| 方法 | |
|---|---|
cancel |
POST /v2/{name=projects/*/locations/*/operations/*}:cancel对长时间运行的操作启动异步取消。 |
delete |
DELETE /v2/{name=projects/*/locations/*/operations/*}删除长时间运行的操作。 |
get |
GET /v2/{name=projects/*/locations/*/operations/*}获取长时间运行的操作的最新状态。 |
list |
GET /v2/{name=projects/*/locations/*}/operations列出与请求中指定的过滤条件匹配的操作。 |
REST 资源:v2.projects.locations.phraseSets
| 方法 | |
|---|---|
create |
POST /v2/{parent=projects/*/locations/*}/phraseSets 创建 PhraseSet。 |
delete |
DELETE /v2/{name=projects/*/locations/*/phraseSets/*} 删除 PhraseSet。 |
get |
GET /v2/{name=projects/*/locations/*/phraseSets/*} 返回请求的 PhraseSet。 |
list |
GET /v2/{parent=projects/*/locations/*}/phraseSets 列出 PhraseSet。 |
patch |
PATCH /v2/{phraseSet.name=projects/*/locations/*/phraseSets/*} 更新 PhraseSet。 |
undelete |
POST /v2/{name=projects/*/locations/*/phraseSets/*}:undelete 取消删除 PhraseSet。 |
REST 资源:v2.projects.locations.recognizers
| 方法 | |
|---|---|
batchRecognize |
POST /v2/{recognizer=projects/*/locations/*/recognizers/*}:batchRecognize 执行批量异步语音识别:发送包含 N 个音频文件的请求,并接收一项长时间运行的操作,可以轮询该操作以查看转写何时完成。 |
create |
POST /v2/{parent=projects/*/locations/*}/recognizers 创建 Recognizer。 |
delete |
DELETE /v2/{name=projects/*/locations/*/recognizers/*} 删除 Recognizer。 |
get |
GET /v2/{name=projects/*/locations/*/recognizers/*} 返回所请求的 Recognizer。 |
list |
GET /v2/{parent=projects/*/locations/*}/recognizers 列出识别器。 |
patch |
PATCH /v2/{recognizer.name=projects/*/locations/*/recognizers/*} 更新 Recognizer。 |
recognize |
POST /v2/{recognizer=projects/*/locations/*/recognizers/*}:recognize 执行同步语音识别:在发送和处理完所有音频后接收结果。 |
undelete |
POST /v2/{name=projects/*/locations/*/recognizers/*}:undelete 恢复删除的 Recognizer。 |