Служба Google Assistant дает вам полный контроль над интеграцией с Assistant, предоставляя конечную точку потоковой передачи. Передавайте аудиозапрос пользователя на эту конечную точку, чтобы получить аудиоответ Google Assistant.
Вы можете создавать привязки для этого API на различных языках (например, Go, Node.js, C++ и Java) на всех платформах, поддерживаемых gRPC .
Основные требования к оборудованию
Прежде чем начать, вам потребуются следующие компоненты:
Устройство, работающее на одной из поддерживаемых платформ и имеющее подключение к Интернету.
Микрофон
Спикер
Шаги
Следующие разделы применимы к Python и Raspberry Pi.
Если вы не хотите использовать Python, воспользуйтесь руководством по интеграции , чтобы интегрировать службу Google Assistant на других языках и на разных платформах.
Встроить Google Ассистента
В этом разделе представлен пример службы Google Assistant, работающий на вашем устройстве:
[null,null,["Последнее обновление: 2024-09-24 UTC."],[[["The Google Assistant Service provides a streaming endpoint for integrating the Assistant into your devices for experimental and non-commercial use."],["You need a device with internet, microphone, and speaker to get started with the Google Assistant Service integration."],["The guide provides step-by-step instructions for embedding and extending the Google Assistant using Python on a Raspberry Pi."],["You can find resources for integrating with other languages and platforms using the provided integration guide."],["The Google Assistant SDK cannot be used for commercial devices."]]],["The Google Assistant Service provides a streaming endpoint for integrating with the Assistant, accepting user audio queries and returning audio responses. It supports multiple languages and platforms. Core actions include setting up hardware (device, microphone, speaker), configuring audio and developer accounts, registering a device model, installing the SDK and sample code, and running the sample. The service can also be extended to handle device actions by installing hardware, registering traits, and handling commands. Commercial use is prohibited.\n"]]