27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main এর পরিবর্তে android-latest-release ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
অ্যান্ড্রয়েডের অডিও হার্ডওয়্যার অ্যাবস্ট্রাকশন লেয়ার (HAL) উচ্চ-স্তরের, অডিও-নির্দিষ্ট ফ্রেমওয়ার্ক APIগুলিকে অন্তর্নিহিত অডিও ড্রাইভার এবং হার্ডওয়্যার android.media তে সংযুক্ত করে। অডিও HAL স্ট্যান্ডার্ড ইন্টারফেসকে সংজ্ঞায়িত করে যা অডিও পরিষেবাগুলিতে কল করা হয়। অডিও হার্ডওয়্যার সঠিকভাবে কাজ করার জন্য অডিও HAL অবশ্যই প্রয়োগ করতে হবে।
এই পৃষ্ঠাটি অডিও HAL এর একটি ওভারভিউ দেয় এবং এর API এবং বাস্তবায়নের প্রয়োজনীয়তার বিশদ প্রদান করে।
অডিও HAL ইন্টারফেস
Android 14 দিয়ে শুরু করে, AIDL ব্যবহার করে অডিও HAL ইন্টারফেস সংজ্ঞায়িত করা হয়েছে। অতীতের সংস্করণগুলির জন্য, অডিও HAL ইন্টারফেস HIDL ব্যবহার করে সংজ্ঞায়িত করা হয়েছে। অংশীদার এবং SoC বিক্রেতাদের একটি AIDL ইন্টারফেস প্রদানের জন্য তাদের অডিও HAL পুনরায় প্রয়োগ করতে উত্সাহিত করা হয়৷
Android 14 এবং উচ্চতর বৈশিষ্ট্যগুলির জন্য নতুন HAL APIs শুধুমাত্র AIDL ইন্টারফেসের বাস্তবায়নের সাথে সমর্থিত। Android 14 দিয়ে শুরু করে, HIDL বাস্তবায়নে কোনো নতুন API যোগ করা হয়নি।
AIDL-এ স্যুইচ করা এবং পূর্ববর্তী প্রধান অডিও HAL সংস্করণগুলির জন্য সমর্থনকে অবমূল্যায়ন করা এবং অপসারণ করা ডিভাইসগুলিতে ডিস্কের স্থান এবং RAM খালি করে। এটি একটি মসৃণ UX এর দিকে নিয়ে যায় এবং শেষ ব্যবহারকারীদের জন্য নতুন ব্যবহারকারী-দৃশ্যমান বৈশিষ্ট্যগুলির জন্য অনুমতি দেয়।
কোর HAL হল প্রধান API যা AudioFlinger দ্বারা অডিও চালানো এবং অডিও রাউটিং নিয়ন্ত্রণ করতে ব্যবহৃত হয়।
Effects HAL API অডিও প্রভাব নিয়ন্ত্রণ করতে প্রভাব কাঠামো দ্বারা ব্যবহৃত হয়। এছাড়াও আপনি Effects HAL API-এর মাধ্যমে স্বয়ংক্রিয় লাভ নিয়ন্ত্রণ এবং শব্দ দমনের মতো প্রিপ্রসেসিং প্রভাবগুলি কনফিগার করতে পারেন।
কমন এইচএএল এপিআই হল কোর এবং ইফেক্টস এইচএএল এপিআই দ্বারা ব্যবহৃত সাধারণ ডেটা টাইপের একটি লাইব্রেরি। কমন HAL-এর কোনো ইন্টারফেস নেই এবং কোনো সম্পর্কিত VTS পরীক্ষা নেই কারণ এটি শুধুমাত্র ডেটা স্ট্রাকচারকে সংজ্ঞায়িত করে।
অডিও HAL বাস্তবায়ন এবং অডিও নীতি কনফিগারেশন ফাইল তৈরি করার পাশাপাশি, আপনাকে অবশ্যই নিম্নলিখিত HAL প্রয়োজনীয়তাগুলি মেনে চলতে হবে:
যদি সাউন্ড ট্রিগারের জন্য ক্যাপচার (হটওয়ার্ড ডিএসপি বাফার থেকে ক্যাপচার) একটি ইনপুট প্রোফাইল দ্বারা সমর্থিত হয়, তাহলে বাস্তবায়নটি অবশ্যই সাউন্ড ট্রিগার এইচএএল দ্বারা সমর্থিত সমসাময়িক সেশনের সংখ্যার সাথে এই প্রোফাইলে সক্রিয় স্ট্রিমের সংখ্যা সমর্থন করবে।
ভয়েস কল TX এবং অ্যাপ প্রসেসর থেকে ক্যাপচারের সামঞ্জস্য যেমন সমসাময়িক ক্যাপচার পৃষ্ঠায় বিস্তারিত আছে।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি 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,["# Audio HAL\n\nAndroid's Audio hardware abstraction layer (HAL) connects the higher-level,\naudio-specific framework APIs into\n[`android.media`](http://developer.android.com/reference/android/media/package-summary.html)\nthe underlying audio drivers and hardware. The Audio HAL defines the standard\ninterface that audio services call in to. The Audio HAL must be implemented for\nthe audio hardware to function correctly.\n\nThis page gives an overview of the Audio HAL and provides details of its API and\nimplementation requirements.\n\nAudio HAL interface\n-------------------\n\nStarting with Android 14, the Audio HAL interface is\ndefined using [AIDL](/docs/core/audio/aidl-implement). For past versions, the\nAudio HAL interface is defined using [HIDL](/docs/core/audio/hidl-implement).\nPartners and SoC vendors are encouraged to reimplement their\nAudio HAL to provide an AIDL interface.\n\nNew HAL APIs for features added in Android 14 and\nhigher are supported **only** with the implementation of the AIDL interface.\nStarting with Android 14, no new API is added to the\nHIDL implementation.\n\nSwitching to AIDL and deprecating and removing support for previous\nmajor Audio HAL versions frees up disk space and RAM on devices. This\nleads to a smoother UX and allows for newer user-visible features for end users.\n\nSee [AIDL and HIDL Audio HAL comparison](/docs/core/audio/aidl-hidl-comp)\nfor more information about the differences between the AIDL and HIDL Audio HAL.\n\n### Audio HAL API\n\nThe Audio HAL contains the following APIs:\n\n- The Core HAL is the main API used by AudioFlinger to play audio and control the audio routing.\n- The Effects HAL API is used by the effects framework to control audio effects.\n You can also configure [preprocessing effects](/devices/audio/implement-pre-processing)\n such as automatic gain control and noise suppression through the Effects HAL\n API.\n\n | **Note:** The Audio Effects HAL API is similar to the [framework effects APIs](https://developer.android.com/reference/android/media/audiofx/AudioEffect).\n- The Common HAL API is a library of common data types used by the Core and\n Effects HAL APIs. The Common HAL has no interfaces and no associated VTS\n tests as it defines only data structures.\n\nSee [AIDL Audio HAL](/docs/core/audio/aidl-implement) and\n[HIDL Audio HAL](/docs/core/audio/hidl-implement) for specific details\nrelated to AIDL and HIDL respectively.\n| **Note:** Starting with Android 13, Audio HAL is updated to version 7.1.\n\nRequirements\n------------\n\nIn addition to implementing the Audio HAL and creating the audio policy\nconfiguration file, you must adhere to the following HAL requirements:\n\n- If capture for Sound Trigger (capture from hotword DSP buffer) is supported\n by one input profile, the implementation must support the number of active\n streams on this profile corresponding to the number of concurrent sessions\n supported by Sound Trigger HAL.\n\n | **Note:** The implementation of the [Sound trigger HAL](/docs/core/audio/sound-trigger) is located at `/hardware/interfaces/soundtrigger` and is coupled with the Audio HAL.\n- Concurrency of voice call TX and capture from the app processor as\n detailed on the [Concurrent capture](/docs/core/audio/concurrent) page."]]