با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
سرویس Google Assistant با ارائه نقطه پایانی پخش جریانی، کنترل کاملی را بر روی ادغام با دستیار به شما می دهد. یک درخواست صوتی کاربر را به این نقطه پایانی پخش کنید تا پاسخ صوتی دستیار Google را دریافت کنید.
میتوانید برای این API از زبانهای مختلف (بهعنوان مثال، Go، Node.js، C++ و Java) در همه پلتفرمهای پشتیبانیشده توسط gRPC، اتصالات ایجاد کنید.
الزامات سخت افزاری اولیه
قبل از شروع، به اجزای زیر نیاز دارید:
دستگاهی که بر روی یکی از پلتفرم های پشتیبانی شده با اتصال به اینترنت اجرا می شود
یک میکروفون
یک سخنران
مراحل
بخش های زیر برای Python و Raspberry Pi قابل اجرا هستند.
اگر نمی خواهید از پایتون استفاده کنید، از راهنمای ادغام برای ادغام سرویس دستیار گوگل در زبان های دیگر و در پلتفرم های مختلف استفاده کنید.
دستیار Google را جاسازی کنید
این بخش نمونه سرویس دستیار Google را دریافت می کند که روی دستگاه شما کار می کند:
تاریخ آخرین بهروزرسانی 2024-09-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-09-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Google Assistant Service provides a streaming endpoint for integrating the Assistant into your devices for experimental and non-commercial use.\u003c/p\u003e\n"],["\u003cp\u003eYou need a device with internet, microphone, and speaker to get started with the Google Assistant Service integration.\u003c/p\u003e\n"],["\u003cp\u003eThe guide provides step-by-step instructions for embedding and extending the Google Assistant using Python on a Raspberry Pi.\u003c/p\u003e\n"],["\u003cp\u003eYou can find resources for integrating with other languages and platforms using the provided integration guide.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Assistant SDK cannot be used for commercial devices.\u003c/p\u003e\n"]]],["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"],null,["# Introduction to the Google Assistant Service\n\n| **Warning:** You can't launch commercial devices that integrate with the Google Assistant SDK. It's available for experimental and non-commercial uses only.\n\n\u003cbr /\u003e\n\nThe Google Assistant Service gives you full control over the integration with\nthe Assistant by providing a streaming endpoint. Stream a user audio query to\nthis endpoint to receive a Google Assistant audio response.\n\nYou can generate bindings for this API from a variety of languages (for example,\nGo, Node.js, C++, and Java) on all platforms supported by [gRPC](http://www.grpc.io/about/#osp).\n\nBasic hardware requirements\n---------------------------\n\nBefore you begin, you'll need the following components:\n\n- A device running on one of the supported platforms, with internet connectivity\n- A microphone\n- A speaker\n\nSteps\n-----\n\nThe following sections are applicable to Python and the Raspberry Pi.\n\nIf you do not want to use Python, use the [integration guide](/assistant/sdk/guides/service/integrate#other-languages)\nto integrate the Google Assistant Service in other languages and on different\nplatforms.\n\n### Embed the Google Assistant\n\nThis section gets the Google Assistant Service sample working on your device:\n\n1. [Set Up Hardware and Network Access](/assistant/sdk/guides/service/python/embed/setup)\n2. [Configure and Test the Audio](/assistant/sdk/guides/service/python/embed/audio)\n3. [Configure a Developer Project and Account Settings](/assistant/sdk/guides/service/python/embed/config-dev-project-and-account)\n4. [Register the Device Model](/assistant/sdk/guides/service/python/embed/register-device)\n5. [Install the SDK and Sample Code](/assistant/sdk/guides/service/python/embed/install-sample)\n6. [Run the Sample Code](/assistant/sdk/guides/service/python/embed/run-sample)\n7. [Next Steps](/assistant/sdk/guides/service/python/embed/next-steps)\n\n### Extend the Google Assistant\n\nThis section extends the Google Assistant Service sample to include\n[Device Actions](/assistant/sdk/device-actions-overview):\n\n1. [Install Hardware](/assistant/sdk/guides/service/python/extend/install-hardware)\n2. [Register Traits](/assistant/sdk/guides/service/python/extend/register-device-traits)\n3. [Handle Commands](/assistant/sdk/guides/service/python/extend/handle-device-commands)\n4. [Add More Traits and Handlers](/assistant/sdk/guides/service/python/extend/add-trait-and-handler)\n5. [Register Custom Device Actions](/assistant/sdk/guides/service/python/extend/custom-actions)"]]