如何使用Python启用Google助手API的新"read it"功能?

How to enable new "read it" function of Google Assistant API with Python?

最近Google发布了Google助手的新"Read it"功能。

如何使用 Python 进行试用?我在 console and created service account credentials. The documentation 中启用了 Google 助手 API 不提供任何 Python 实现。

我想 运行 一个简单的 "Hello world" 示例:发送文本并获取 wav 文件。

这是一个有趣的问题!

我不确定我是否完全帮助了你,但我找到了this Google Assistant Service documentation

根据文档,"The Google Assistant Service gives you full control over the integration with the Assistant by providing a streaming endpoint. Stream a user audio query to this endpoint to receive a Google Assistant audio response."

我的理解: 你可以使用python语言通过gRPC调用绑定到API来调用Google助手API.文档逐步介绍了集成。

希望对您有所帮助。

Google 对术语 "Assistant" 的使用有些松散,一个平台上的智能助理可用的功能在其他平台上并不总是可用,即使没有明显的原因成为。

阅读长格式音频似乎适合在所有音频助手平台上使用 - 但事实并非如此。至少在撰写本文时,它似乎仅适用于 Android 平台的智能助理。这表明它是该实现的一个特定功能,而不是一个完整的 Google 助理功能。

另请注意,Assistant SDK 已正式列出,仅供业余爱好者使用。带有助手的生产硬件似乎使用不同的开发平台来处理其他功能,包括流式音频。