Google Docs API 範例
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本節提供一系列 Docs API 範例應用程式和公用程式,說明如何將預期的 Google 文件動作轉換為 API 要求。
程式碼實驗室
使用 Google 文件和機器學習技術轉錄商務會議內容:
在本程式碼研究室中,您將瞭解如何透過
Google Cloud Speech-to-Text API 傳送音訊檔案,然後將轉錄稿輸出至 Google 文件。Speech-to-Text API 簡單好用,可運用強大的類神經網路,協助開發人員將音訊轉換為文字。此外,這項功能採用機器學習技術。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[],[],null,["# Google Docs API samples\n\nThis section presents a set of Docs API sample applications and\nutilities that demonstrate how to translate an intended Google Docs action\ninto an API request.\n\n- [Output document contents as JSON with\n Docs API](/workspace/docs/api/samples/output-json): Outputs a JSON dump of\n the complete contents of a document. This can help you understand the\n structure of Docs files or troubleshoot issues.\n\n- [Extract the text from a document with\n Docs API](/workspace/docs/api/samples/extract-text): Extracts only the text\n from a document. This is especially useful for passing the text to another\n service.\n\n- [Mail merge with Docs API](/workspace/docs/api/samples/mail-merge): Mail\n merge documents from a template with data from Google Sheets or plain\n text.\n\nCodelab\n-------\n\n[Create a transcript of your business meetings using Google Docs \\& Machine\nLearning](https://codelabs.developers.google.com/codelabs/docs-ml-transcript#0):\nIn this codelab, you'll learn how to send an audio file through the [Google Cloud Speech-to-Text API](https://cloud.google.com/speech-to-text/),\nthen output the transcript to a Google document. The Speech-to-Text API is\neasy-to-use and applies a powerful neural network to enable developers to\nconvert audio to text. Plus, it's powered by Machine Learning."]]