27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main
এর পরিবর্তে android-latest-release
ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
ভয়েস মিথস্ক্রিয়া সম্পর্কে
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ভয়েস ইন্টারঅ্যাকশন সার্ভিস API বিভিন্ন সম্ভাব্য ভয়েস কন্ট্রোল অ্যাপের উপর একটি বিমূর্ততা প্রদান করে। অ্যাপ ডেভেলপমেন্টে বর্ণিত নির্দেশিকা অনুসরণ করে ইমপ্লিমেন্টেশন তৈরি করা যেতে পারে। এই ইন্টিগ্রেশন গাইডের বিষয়বস্তু বর্ণনা করে যে কীভাবে এই অ্যাপগুলিকে একটি নির্দিষ্ট Android Automotive OS (AAOS) সিস্টেম ইমেজে একীভূত করতে হয়।
পরিভাষা
এই শর্তাবলী এই গাইডের মাধ্যমে ব্যবহার করা হয়:
- তথ্য সহায়তা। যখন একটি ভয়েস ইন্টারঅ্যাকশন সেশন শুরু হয়, সিস্টেমটি ভিউ এবং স্ক্রিনশট ক্যাপচার করতে সক্ষম হয় এবং এই তথ্য সেশনে পাঠাতে পারে।
Activity#onProvideAssistData()
এবং Activity#onProvideAssistContent()
প্রয়োগ করে অ্যাপগুলি অতিরিক্ত তথ্য প্রকাশ করতে পারে। - পুশ-টু-টক (PTT) । শারীরিক ভয়েস কন্ট্রোল বোতাম, সাধারণত স্টিয়ারিং হুইলে অবস্থিত।
- স্বীকৃতি পরিষেবা (আরএস)।
SpeechRecognizer
API-এর মাধ্যমে অ্যাপস দ্বারা ব্যবহৃত ভয়েস শনাক্তকরণ পরিষেবা। VIA-তে অবশ্যই VoiceInteractionService
এবং RecognitionService
উভয়ই অন্তর্ভুক্ত থাকতে হবে। - ট্যাপ-টু-টক (টিটিটি) । সফ্টওয়্যার ভয়েস কন্ট্রোল বোতাম, সাধারণত সিস্টেম UI এর অংশ হিসাবে অন্তর্ভুক্ত)। অ্যান্ড্রয়েডে এটিকে অ্যাসিস্ট জেসচারও বলা হয়।
-
VoiceInteractionService
সার্ভিস। VIA ডেভেলপার দ্বারা বাস্তবায়িত লাইটওয়েট সিস্টেম পরিষেবা। নির্বাচিত পরিষেবা বুট করার সময় সিস্টেম পরিষেবা থেকে আবদ্ধ, এবং সর্বদা চলমান। - ভয়েস ইন্টারঅ্যাকশন সেশন (ভিআইএস)। এই শ্রেণীটি ব্যবহারকারীর ইন্টারঅ্যাকশন ব্যবসায়িক যুক্তিকে অন্তর্ভুক্ত করে। এটি ব্যবহারকারীকে ভয়েস ইন্টারঅ্যাকশনের স্থিতি, ভয়েসইন্টারেক্টরের অনুরোধগুলি পরিচালনা এবং সহায়তা এবং স্ক্রিনশট ডেটা গ্রহণ করার জন্য দায়ী৷
- VoiceInteractionSessionService (VSS)। একটি পরিষেবা, একটি VIA এর অংশ, একটি ভয়েস ইন্টারঅ্যাকশন সেশন পরিচালনার জন্য দায়ী। ব্যবহারকারীর সাথে ভয়েস ইন্টারঅ্যাকশনের সময় এই পরিষেবাটি Android এর সিস্টেম পরিষেবা থেকে আবদ্ধ। এই সেশনের সমস্ত ব্যবসায়িক যুক্তি
VoiceSession
ক্লাসে প্রয়োগ করা হয়। এই পরিষেবাটি শুধুমাত্র একটি একক ব্যবহারকারীর ভয়েস সেশনের সময় বেঁচে থাকার নিশ্চয়তা। - ভয়েস ইন্টারঅ্যাকশন অ্যাপ (VIA)। অ্যান্ড্রয়েড অ্যাপটি ভয়েস কন্ট্রোল হিসাবে পরিবেশন করার জন্য ডিজাইন করা হয়েছে ( সহকারী হিসাবে উল্লেখ করা হয়েছে)। এই অ্যাপ্লিকেশানগুলিকে তাদের ম্যানিফেস্টে একটি
VoiceInteractionService
অন্তর্ভুক্ত করে সনাক্ত করা যেতে পারে৷ এই অ্যাপগুলির মধ্যে শুধুমাত্র একটি সিস্টেমে একবারে ডিফল্ট হিসাবে নির্বাচন করা যেতে পারে। শুধুমাত্র ডিফল্ট অ্যাপটি জীবিত থাকবে (একটি সিস্টেম পরিষেবা থেকে আবদ্ধ), এবং পুশ-টু-টক (পিটিটি) বা ট্যাপ-টু-টক (টিটিটি) ইভেন্টের রিসিভার হবে।
দায়িত্ব
এই টেবিলে প্রতিটি দলের দায়িত্ব বর্ণনা করা হয়েছে।
গাড়ি প্রস্তুতকারক (OEMs) | এওএসপি | অ্যাপ ডেভেলপাররা | - AAOS এর সাথে একটি সামঞ্জস্যপূর্ণ ইনফোটেইনমেন্ট সিস্টেম তৈরি করুন।
- অডিও ইনপুট এবং আউটপুট প্রয়োগ করুন, ঐচ্ছিকভাবে DSP হটওয়ার্ড সনাক্তকরণ সমর্থন সহ।
- ভয়েস ইন্টারঅ্যাকশন পরিষেবার জন্য সিস্টেম-সুবিধাপ্রাপ্ত অনুমতি দিন।
- অ্যাপ্লিকেশানের সেটিংস স্ক্রীনগুলিতে অ্যাক্সেস সম্পর্কিত
VoiceInteractionService প্রয়োজনীয়তাগুলিকে সম্মান করুন৷
| -
VoiceInteractionService এবং সম্পর্কিত APIs সংজ্ঞায়িত করুন এবং বিকাশ করুন। - VIA ডেভেলপারদের API ডকুমেন্টেশন, নমুনা কোড এবং অন্যান্য সহায়তা উপাদান প্রদান করুন।
- প্রয়োজনীয়তা এবং সুপারিশ সহ UX নির্দেশিকা প্রদান করুন।
| -
VoiceInteractionService API, RecognitionService API এবং NotificationListenerService API ( অ্যাপ বিকাশে বিস্তারিত বিবরণ দেখুন) প্রয়োগ করুন। - একটি কাস্টমাইজযোগ্য UI প্রদান করুন যা প্রতিটি গাড়ির ডিজাইন সিস্টেমের সাথে মেলে OEM দ্বারা সামঞ্জস্য করা যেতে পারে।
|
UX প্রয়োজনীয়তা
গ্রাহকদের একটি ভাল ব্যবহারকারীর অভিজ্ঞতা প্রদানের চূড়ান্ত দায়িত্ব OEM-এর। OEM-গুলিকে অবশ্যই নিশ্চিত করতে হবে যে সমস্ত আগে থেকে ইনস্টল করা ভয়েস ইন্টারঅ্যাকশন পরিষেবাগুলি প্রিলোডেড অ্যাসিস্ট্যান্টস: UX গাইডেন্স- এ বর্ণিত প্রয়োজনীয়তাগুলি পূরণ করে।
মূল সহকারীর অভিজ্ঞতা
একটি স্বয়ংচালিত ভয়েস ইন্টারঅ্যাকশন অ্যাপ্লিকেশন (VIA) নিম্নলিখিত ক্রিয়াগুলি সম্পাদন করে:
- [অবশ্যই] সিস্টেম-হ্যান্ডলড ভয়েস ইন্টারঅ্যাকশন ট্রিগারে সাড়া দিন (PTT, TTT)।
- [অবশ্যই] তাদের অগ্রগতির একটি চাক্ষুষ উপস্থাপনা প্রদর্শন করুন (উদাহরণস্বরূপ, শোনা, প্রক্রিয়াকরণ এবং পূরণ করা)।
- [অবশ্যই] ব্যবহারকারীর অনুরোধ বোঝা এবং সম্পূর্ণ করার জন্য ভয়েস বা শব্দ ব্যবহার করুন।
- [অবশ্যই] অন্যান্য অ্যাপ্লিকেশানগুলির জন্য একটি স্পিচ শনাক্তকারী হিসাবে পরিবেশন করুন ( SpeechRecognizer API দেখুন)।
- একটি হটওয়ার্ড ট্রিগারে প্রতিক্রিয়া জানাতে হবে।
- [MAY] একটি সেটিংস কার্যকলাপ প্রদর্শন করুন যেখানে ব্যবহারকারীরা এই VIA কনফিগার করতে পারে (উদাহরণস্বরূপ, অনুমতি, হটওয়ার্ড কনফিগারেশন, এবং সাইন-ইন)।
- [MAY] সহায়তার ডেটা পরিচালনা করুন (
Intent#ACTION_ASSIST
) - [মেই] কীগার্ড (লক স্ক্রিন) থেকে ভয়েস ইন্টারঅ্যাকশন সমর্থন করে।
উপাদান
উচ্চ স্তরে, একটি ভয়েস ইন্টারঅ্যাকশন অ্যাপ এই অভিনেতাদের সাথে ইন্টারঅ্যাক্ট করে:

চিত্র 1. ভয়েস ইন্টারঅ্যাকশন অভিনেতা
বিস্তারিত:
-
VoiceInteractionManagerService
সার্ভিস। এই সিস্টেম পরিষেবাটি ডিফল্ট VIA পরিচালনার জন্য এবং সিস্টেমের বাকি কার্যকারিতা প্রকাশ করার জন্য দায়ী। -
RecognitionService
। এই পরিষেবাটি সিস্টেমের অন্যান্য অ্যাপের কাছে বক্তৃতা শনাক্ত করার ক্ষমতা প্রকাশ করে। -
SoundTrigger
। হটওয়ার্ড ম্যানেজমেন্ট প্রয়োগ করে এবং এটি AlwaysOnHotwordDetector-এর মাধ্যমে VIA-এর কাছে উপলব্ধ। -
MediaRecorder
। হটওয়ার্ড সনাক্তকরণ (CPU ব্যবহার করার সময়) এবং বক্তৃতা স্বীকৃতি উভয়ের জন্য অডিও ইনপুট অ্যাক্সেস প্রদান করে। -
PhoneWindowManager
/ CarInputService
। VoiceInteractionManagerService
এর মাধ্যমে মূল ইভেন্টগুলি পরিচালনা, VIA-তে PTT রাউটিং করার জন্য এই পরিষেবাগুলি দায়ী (অন্যান্য জিনিসগুলির মধ্যে)৷ -
User
ব্যবহারকারী ট্রিগার (PTT, TTT, Hotword) বা ভয়েস প্লেট UI এর মাধ্যমে একটি VIA এর সাথে যোগাযোগ করে। - কারসার্ভিস, বিজ্ঞপ্তি, মিডিয়া, টেলিফোনি, পরিচিতি প্রদানকারী এবং আরও অনেক কিছু। ব্যবহারকারীর আদেশগুলি পূরণ করতে VoiceInteractionSession দ্বারা ব্যবহৃত পরিষেবা এবং অ্যাপ৷
মোটরগাড়ি-নির্দিষ্ট ধারণা
AAOS নিম্নলিখিত দিকগুলিতে Android থেকে বিচ্ছিন্ন হয়:
- সাধারণ সহকারী কার্যকারিতা ছাড়াও, AAOS VIA গুলি গাড়ির ফাংশন নিয়ন্ত্রণ করতে পারে (উদাহরণস্বরূপ, HVAC, আসন এবং অভ্যন্তরীণ আলো)। এই কার্যকারিতাগুলি CarPropertyManager API ব্যবহার করে একীভূত করা যেতে পারে ( একটি যানবাহনের সম্পত্তি পড়ুন তে আরও দেখুন) প্রদান করে OEMগুলি প্রিভিলেজড পারমিশন অ্যালুলিস্টিং- এ বর্ণিত হিসাবে সঠিকভাবে অ্যাক্সেস কনফিগার করে।
- কাস্টমাইজেশন এবং সামঞ্জস্য অন্য যেকোনো ফর্ম ফ্যাক্টরের তুলনায় অটোমোটিভ-এ বেশি প্রাসঙ্গিক। এই নির্দেশিকা বাস্তবায়ন সম্পর্কে আরও পড়তে কাস্টমাইজেশন দেখুন।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# About voice interaction\n\nThe Voice Interaction Service API provides an abstraction over different\npotential voice control apps. Implementations can be developed following the guidelines\ndescribed in\n[App development](/docs/automotive/voice/voice_interaction_guide/app_development).\nThe content in this integration guide describes how to integrate these apps into\na specific Android Automotive OS (AAOS) system image.\n\nTerminology\n-----------\n\nThese terms are used through this guide:\n\n- **Assist data.** When a voice interaction session is started, the system is able to capture views and screenshots, and pass this information to the session. Apps can expose additional information by implementing [Activity#onProvideAssistData()](https://developer.android.com/reference/android/app/Activity#onProvideAssistData(android.os.Bundle)) and [Activity#onProvideAssistContent()](https://developer.android.com/reference/android/app/Activity#onProvideAssistContent(android.app.assist.AssistContent)).\n- **[Push-to-talk (PTT)](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession#SHOW_SOURCE_PUSH_TO_TALK)**. Physical voice control button, usually located in the steering wheel.\n- **RecognitionService (RS).** Voice recognition service used by apps through the [SpeechRecognizer](https://developer.android.com/reference/android/speech/SpeechRecognizer)`\n ` API. VIAs must include both the `VoiceInteractionService` *and* the `RecognitionService`.\n- **[Tap-to-talk (TTT)](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession#SHOW_SOURCE_ASSIST_GESTURE)** . Software voice control button, usually included as part of the system UI). In Android this is also referred to as *Assist Gesture*.\n- **[VoiceInteractionService](https://developer.android.com/reference/android/service/voice/VoiceInteractionService)**. Lightweight system service implemented by the VIA developer. The selected service is bound from system service on boot, and is always running.\n- **VoiceInteractionSession (VIS).** This class encapsulates the user interaction business logic. It is responsible for presenting the user with status of the voice interaction, handling VoiceInteractor requests and receiving assist and screenshot data.\n- **VoiceInteractionSessionService (VSS).** A service, part of a VIA, responsible for handling a voice interaction session. This service is bound from Android's system service during a voice interaction with a user. All business logic of this session is implemented in the `VoiceSession` class. This service is only guaranteed to stay alive during a single user voice session.\n- **Voice Interaction App (VIA).** Android app designed to serve as a voice control (referred to as *assistant* ). These apps can be identified by including a `VoiceInteractionService` in their manifest. Only one of these apps can be selected as *default* at a time in the system. Only the default app will be maintained alive (bound from a system service), and will be the receiver of [Push-To-Talk (PTT)](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession#SHOW_SOURCE_PUSH_TO_TALK) or [Tap-To-Talk (TTT)](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession#SHOW_SOURCE_ASSIST_GESTURE) events.\n\nResponsibilities\n----------------\n\nThis table describes the responsibilities of each party.\n\n| Car Manufacturers (OEMs) | AOSP | App Developers |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| - Build a [compatible](/compatibility/android-cdd) infotainment system with AAOS. - Implement audio input and output, optionally including DSP hotword detection support. - Grant system-privileged permissions for the voice interaction services. - Respect `VoiceInteractionService` requirements regarding access to app's settings screens. | - Define and evolve `VoiceInteractionService` and related APIs. - Provide API documentation, sample code and other support material to VIA developers. - Provide UX guidance with requirements and recommendations. | - Implement `VoiceInteractionService` API, RecognitionService API and NotificationListenerService API (see detailed description at [App development](/docs/automotive/voice/voice_interaction_guide/app_development)). - Provide a customizable UI that can be adjusted by OEMs to match each car design system. |\n\nUX requirements\n---------------\n\nOEMs have the ultimate responsibility of providing a good user experience to customers.\nOEMs must ensure that the all pre-installed voice interaction services fulfill the\nrequirements described in\n[Preloaded Assistants: UX Guidance](/static/docs/automotive/voice/voice_interaction_guide/preloaded-assistants_UX-guidelines.pdf).\n\nCore assistant experience\n-------------------------\n\nAn automotive Voice Interaction Application (VIA) performs the following actions:\n\n- \\[MUST\\] Respond to system-handled voice interaction triggers (PTT, TTT).\n- \\[MUST\\] Display a visual representation of their progress (for example, listening, processing, and fulfilling).\n- \\[MUST\\] Use voice or sounds to indicate understanding and completion of user requests.\n- \\[MUST\\] Serve as a speech recognizer for other apps (see the [SpeechRecognizer\n API](https://developer.android.com/reference/android/speech/SpeechRecognizer)).\n- \\[SHOULD\\] Respond to a hotword trigger.\n- \\[MAY\\] Display a settings activity where users can configure this VIA (for example, permissions, hotword configuration, and sign-in).\n- \\[MAY\\] Handle assist data ([Intent#ACTION_ASSIST](https://developer.android.com/reference/android/content/Intent#ACTION_ASSIST))\n- \\[MAY\\] Support voice interaction from Keyguard (lock screen).\n\nComponents\n----------\n\nAt a high level, a voice interaction app interacts with these actors:\n\n**Figure 1.** Voice interaction actors\n\nDetails:\n\n- `VoiceInteractionManagerService`. This system service is responsible for managing the default VIA, and exposing its functionality to the rest of the system.\n- `RecognitionService`. This service exposes speech recognition capabilities to other apps in the system.\n- `SoundTrigger`. Implements hotword management and it's available to VIAs through the AlwaysOnHotwordDetector.\n- `MediaRecorder`. Provides access to audio input for both hotword detection (when using CPU) and speech recognition.\n- `PhoneWindowManager`/`CarInputService`. These services are responsible (among other things) for handling key events, routing PTT to the VIA, by means of the `VoiceInteractionManagerService`.\n- `User`. The user interacts with a VIA by means of Triggers (PTT, TTT, Hotword) or the Voice Plate UI.\n- **CarService, Notifications, Media, Telephony, ContactsProvider, and so on.** Services and apps used by the VoiceInteractionSession to fulfill the user's commands.\n\nAutomotive-specific concepts\n----------------------------\n\nAAOS diverges from Android in the following aspects:\n\n- Besides normal Assistant functionalities, AAOS VIAs can control vehicle functions (for example, HVAC, seats, and interior lights). These functionalities can be integrated using the CarPropertyManager API (see more at [Read a\n vehicle property](/docs/automotive/voice/voice_interaction_guide/fulfilling_commands#vehicle-property)) provided OEMs configure access correctly as described in [Privileged permission allowlisting](/docs/core/permissions/perms-allowlist).\n- Customization and consistency are more relevant in Automotive than in any other form factor. See [Customization](/docs/automotive/voice/voice_interaction_guide/integration_flows#customization) to read more about implementing these guidelines."]]