পরবর্তী পদক্ষেপ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একবার আপনার প্রোজেক্টে Google অ্যাসিস্ট্যান্ট চালু হয়ে গেলে, একবার চেষ্টা করে দেখুন:
অ্যাসিস্ট্যান্টের সাথে আপনার প্রোজেক্ট কীভাবে ইন্টারঅ্যাক্ট করে তা কাস্টমাইজ করুন । উদাহরণস্বরূপ, একটি বোতাম চাপলে সহকারীকে ট্রিগার করুন বা অডিও ব্যাক করার সময় একটি LED ব্লিঙ্ক করুন৷ এমনকি আপনি একটি ডিসপ্লেতে অ্যাসিস্ট্যান্ট থেকে একটি স্পিচ রিকগনিশন ট্রান্সক্রিপ্টও দেখাতে পারেন।
ডিভাইস অ্যাকশনের মাধ্যমে আপনার প্রকল্প নিয়ন্ত্রণ করুন । উদাহরণ স্বরূপ, অ্যাসিস্ট্যান্ট বিল্ট-ইন সহ আপনার ল্যাম্পটি চালু করতে এবং এর উজ্জ্বলতা পরিবর্তন করতে বলুন।
অ্যাসিস্ট্যান্টের সাথে আপনার প্রোজেক্ট কীভাবে ইন্টারঅ্যাক্ট করে তা কাস্টমাইজ করুন
সহকারীকে ট্রিগার করুন
গুগল অ্যাসিস্ট্যান্ট লাইব্রেরির মাধ্যমে, আপনি ওকে গুগলের মতো হটওয়ার্ড বলে একটি সহকারী অনুরোধ ট্রিগার করেন। সহকারীকে হটওয়ার্ড শোনা থেকে আটকাতে আপনি মাইক্রোফোনটি মিউট করতে পারেন। এটি নিয়ন্ত্রণ করতে set_mic_mute()
ব্যবহার করুন। আপনার নিজস্ব কাস্টম ইভেন্টের উপর ভিত্তি করে start_conversation()
পদ্ধতিটি ট্রিগার করুন।
ব্যবহারকারীর অনুরোধের প্রতিলিপি পান
Google Assistant SDK আপনাকে ব্যবহারকারীর অনুরোধের একটি টেক্সট ট্রান্সক্রিপ্ট দেয়। একটি ডিসপ্লেতে পাঠ্য রেন্ডার করে ব্যবহারকারীকে প্রতিক্রিয়া জানাতে বা ডিভাইসে কিছু স্থানীয় ক্রিয়া সম্পাদন করার মতো আরও সৃজনশীল কিছুর জন্য এটি ব্যবহার করুন।
প্রতিলিপিটি ON_RECOGNIZING_SPEECH_FINISHED
ইভেন্টে একটি পাইথন স্ট্রিং অবজেক্টে অবস্থিত।
ডিভাইস অ্যাকশনের মাধ্যমে আপনার প্রকল্প নিয়ন্ত্রণ করুন
আপনি অ্যাসিস্ট্যান্টে ডিভাইস অ্যাকশন যোগ করতে পারেন যা আপনাকে ভয়েসের মাধ্যমে আপনার ডিভাইস নিয়ন্ত্রণ করতে দেয়। ডিভাইস অ্যাকশন অন্তর্ভুক্ত করতে Google সহকারী লাইব্রেরির নমুনা প্রসারিত করুন ।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Google Assistant Library for Python is deprecated and developers should utilize the Google Assistant Service instead.\u003c/p\u003e\n"],["\u003cp\u003eCustomize Assistant interaction by triggering requests with custom events (e.g., button press) and displaying speech transcripts.\u003c/p\u003e\n"],["\u003cp\u003eControl your project using Device Actions, enabling voice control for functionalities like adjusting brightness.\u003c/p\u003e\n"],["\u003cp\u003eThe library provides methods for microphone control (\u003ccode\u003eset_mic_mute\u003c/code\u003e) and initiating conversations (\u003ccode\u003estart_conversation\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAccess user request transcripts via the \u003ccode\u003eON_RECOGNIZING_SPEECH_FINISHED\u003c/code\u003e event for feedback or custom actions.\u003c/p\u003e\n"]]],[],null,["# Next Steps\n\n| **Warning:** The Google Assistant Library for Python is deprecated as of June 28th, 2019. Use the [Google Assistant Service](/assistant/sdk/guides/service/python) instead.\n\n\u003cbr /\u003e\n\nOnce you have the Google Assistant running on your project, give these a try:\n\n1. [Customize](#custom-interaction) how your project interacts with the\n Assistant. For example, trigger the Assistant with the push of a button or\n blink an LED when playing back audio. You can even show a speech recognition\n transcript from the Assistant on a display.\n\n2. [Control](#device-control) your project with Device Actions.\n For example, ask your lamp, with the Assistant built-in, to turn on and\n change its brightness.\n\nCustomize how your project interacts with the Assistant\n-------------------------------------------------------\n\n### Trigger the Assistant\n\nWith the Google Assistant Library, you trigger an Assistant request by speaking\na hotword like *Ok Google* . You can mute the microphone to stop the Assistant\nfrom listening for the hotword. Use the [`set_mic_mute()`](/assistant/sdk/reference/library/python#google.assistant.library.Assistant.set_mic_mute)\nto control this. Trigger the [`start_conversation()`](/assistant/sdk/reference/library/python#google.assistant.library.Assistant.start_conversation)\nmethod based on your own custom event.\n\n### Get the transcript of the user request\n\nThe Google Assistant SDK gives you a text transcript of the user request. Use\nthis to provide feedback to the user by rendering the text to a display, or even\nfor something more creative such as performing some local actions on the device.\n\nThe transcript is located in a Python string object in the [`ON_RECOGNIZING_SPEECH_FINISHED`](/assistant/sdk/reference/library/python#google.assistant.library.event.EventType.ON_RECOGNIZING_SPEECH_FINISHED)\nevent.\n\nControl your project with Device Actions\n----------------------------------------\n\nYou can add Device Actions to the Assistant that allow you to control your\ndevice via voice. [Extend](/assistant/sdk/guides/library/python/extend/install-hardware)\nthe Google Assistant Library sample to include [Device Actions](/assistant/sdk/device-actions-overview)."]]