Cloud Speech-to-Text API

運用強大的類神經網路模型,將音訊轉換成文字。

服務:speech.googleapis.com

如要呼叫這項服務,建議您使用 Google 提供的用戶端程式庫。如果您的應用程式需要使用自己的程式庫呼叫這項服務,請在發出 API 要求時使用下列資訊。

探索文件

探索文件是一種機器可解讀的規格,用於說明和使用 REST API。此文件會用於建構用戶端程式庫、IDE 外掛程式,以及與 Google API 互動的其他工具。一項服務可能會提供多個探索文件。此服務提供下列探索文件:

服務端點

服務端點是能指定 API 服務網路位址的基本網址。一項服務可能有多個服務端點。這項服務有下列服務端點,以及和該服務端點相關的所有 URI:

  • https://speech.googleapis.com

REST 資源:v1p1beta1.operations

方法
cancel POST /v1p1beta1/operations/{name=**}:cancel
開始非同步取消長時間執行的作業。
delete DELETE /v1p1beta1/operations/{name=**}
刪除長時間執行的作業。
get GET /v1p1beta1/operations/{name=**}
取得長時間執行作業的最新狀態。
list GET /v1p1beta1/operations
列出符合要求中指定篩選器的作業。

REST 資源:v1p1beta1.projects.locations.customClasses

方法
create POST /v1p1beta1/{parent=projects/*/locations/*}/customClasses
建立自訂類別。
delete DELETE /v1p1beta1/{name=projects/*/locations/*/customClasses/*}
刪除自訂類別。
get GET /v1p1beta1/{name=projects/*/locations/*/customClasses/*}
取得自訂類別。
list GET /v1p1beta1/{parent=projects/*/locations/*}/customClasses
列出自訂類別。
patch PATCH /v1p1beta1/{customClass.name=projects/*/locations/*/customClasses/*}
更新自訂類別。

REST 資源:v1p1beta1.projects.locations.phraseSets

方法
create POST /v1p1beta1/{parent=projects/*/locations/*}/phraseSets
建立一組詞組提示。
delete DELETE /v1p1beta1/{name=projects/*/locations/*/phraseSets/*}
刪除詞組集。
get GET /v1p1beta1/{name=projects/*/locations/*/phraseSets/*}
取得詞組集。
list GET /v1p1beta1/{parent=projects/*/locations/*}/phraseSets
列出詞組集。
patch PATCH /v1p1beta1/{phraseSet.name=projects/*/locations/*/phraseSets/*}
更新詞組集。

REST 資源:v1p1beta1.speech

方法
longrunningrecognize POST /v1p1beta1/speech:longrunningrecognize
執行非同步語音辨識:透過 google.longrunning.Operations 介面接收結果。
recognize POST /v1p1beta1/speech:recognize
執行同步語音辨識:在所有音訊傳送及處理完畢後接收結果。

REST 資源:v1.operations

方法
cancel POST /v1/operations/{name=**}:cancel
開始非同步取消長時間執行的作業。
delete DELETE /v1/operations/{name=**}
刪除長時間執行的作業。
get GET /v1/operations/{name=**}
取得長時間執行作業的最新狀態。
list GET /v1/operations
列出符合要求中指定篩選器的作業。

REST 資源:v1.projects.locations.customClasses

方法
create POST /v1/{parent=projects/*/locations/*}/customClasses
建立自訂類別。
delete DELETE /v1/{name=projects/*/locations/*/customClasses/*}
刪除自訂類別。
get GET /v1/{name=projects/*/locations/*/customClasses/*}
取得自訂類別。
list GET /v1/{parent=projects/*/locations/*}/customClasses
列出自訂類別。
patch PATCH /v1/{customClass.name=projects/*/locations/*/customClasses/*}
更新自訂類別。

REST 資源:v1.projects.locations.phraseSets

方法
create POST /v1/{parent=projects/*/locations/*}/phraseSets
建立一組詞組提示。
delete DELETE /v1/{name=projects/*/locations/*/phraseSets/*}
刪除詞組集。
get GET /v1/{name=projects/*/locations/*/phraseSets/*}
取得詞組集。
list GET /v1/{parent=projects/*/locations/*}/phraseSets
列出詞組集。
patch PATCH /v1/{phraseSet.name=projects/*/locations/*/phraseSets/*}
更新詞組集。

REST 資源:v1.speech

方法
longrunningrecognize POST /v1/speech:longrunningrecognize
執行非同步語音辨識:透過 google.longrunning.Operations 介面接收結果。
recognize POST /v1/speech:recognize
執行同步語音辨識:在所有音訊傳送及處理完畢後接收結果。