Google 文档 API 示例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本部分介绍了一组 Docs API 示例应用和实用程序,这些示例应用和实用程序演示了如何将预期的 Google 文档操作转换为 API 请求。
Codelab
使用 Google 文档和机器学习技术创建商务会议的转写内容:在此 Codelab 中,您将学习如何通过
Google Cloud Speech-to-Text API 发送音频文件,然后将转写内容输出到 Google 文档。Speech-to-Text API 易于使用,并应用了强大的神经网络,可让开发者将音频转换为文字。此外,它还采用机器学习技术。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):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."]]