এমুলেটরগুলিতে ব্লুটুথ অডিও পরীক্ষা করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Wear OS এমুলেটরে, Wear OS 4 বা উচ্চতর চালিত সিস্টেম চিত্রগুলিতে অনুকরণ করা ব্লুটুথের সমর্থন অন্তর্ভুক্ত থাকে। এই সমর্থন আপনাকে ব্লুটুথ অডিও সম্পর্কিত বেশ কয়েকটি ব্যবহারের ক্ষেত্রে পরীক্ষা করতে দেয়।
একটি অনুকরণ করা ফোনের সাথে পেয়ার করুন
এমুলেটরের ব্লুটুথ সাপোর্ট ব্যবহার করে, আপনি একটি ইমুলেটেড ফোনের সাথে পেয়ার করতে পারেন। এটি করতে, কমান্ড লাইন থেকে সেটআপ উইজার্ড সক্ষম করুন:
-append-userspace-opt androidboot.setupwizard_mode=REQUIRED
একটি অনুকরণ করা আউটপুট ডিভাইসের মাধ্যমে অডিও চালান
এমুলেটরের ব্লুটুথ সমর্থন ব্যবহার করে, আপনি একটি অনুকরণ করা ব্লুটুথ আউটপুট ডিভাইসের মাধ্যমেও অডিও চালাতে পারেন। এমুলেটরে অডিও আউটপুট সুইচিং পরীক্ষা করতে, ওপেন সোর্স বাম্বল প্রজেক্ট ব্যবহার করে একটি এমুলেটেড ব্লুটুথ আউটপুট ডিভাইসের সাথে সংযোগ করুন।
আপনার পরিবেশ প্রস্তুত করুন
বাম্বল ব্যবহার করার জন্য আপনার ডেভেলপমেন্ট মেশিন প্রস্তুত করতে, নিম্নলিখিত পদক্ষেপগুলি সম্পূর্ণ করুন:
Bumble সোর্স কোড আনুন:
git clone https://github.com/google/bumble
bumble
ডিরেক্টরিতে নেভিগেট করুন, তারপর Bumble মডিউলগুলি তৈরি এবং ইনস্টল করুন:
cd bumble && python3 -m pip install "."
অনুকরণ করা ব্লুটুথ স্পিকার চালু করুন
অনুকরণ করা স্পিকার চালু করতে, নিম্নলিখিত পদক্ষেপগুলি সম্পূর্ণ করুন:
এমুলেটরের একটি সংস্করণ চালু করুন যা Wear OS 4 বা উচ্চতর সমর্থন করে।
দ্রষ্টব্য: আপনি যদি 33.1.10 এর চেয়ে কম একটি এমুলেটর সংস্করণ ব্যবহার করেন তবে -packet-streamer-endpoint default
প্যারামিটার ব্যবহার করে কমান্ড লাইন থেকে এমুলেটরটি চালু করুন।
অনুকরণ করা স্পিকার আবিষ্কার করতে এবং সংযোগ করতে, bumble
ডিরেক্টরিতে নিম্নলিখিত কমান্ডটি চালান:
python3 examples/run_a2dp_sink.py examples/a2dp_sink1.json \
android-netsim stdout | ffplay -i
আপনার কম্পিউটারের স্পিকারের মাধ্যমে অডিও আউটপুট চালানো হয়।
আপনি একটি ফাইলে আউটপুট পুনর্নির্দেশ করতে পারেন:
python3 examples/run_a2dp_sink.py examples/a2dp_sink1.json \
android-netsim output.sbc
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Test Bluetooth audio on emulators\n\nOn the Wear OS emulator, system images that run Wear OS 4 or higher include\nsupport for emulated Bluetooth. This support lets you test several use cases\nrelated to Bluetooth audio.\n\nPair with an emulated phone\n---------------------------\n\nUsing the emulator's Bluetooth support, you can pair with an emulated phone. To\ndo so, enable the setup wizard from the command line: \n\n -append-userspace-opt androidboot.setupwizard_mode=REQUIRED\n\nPlay audio through an emulated output device\n--------------------------------------------\n\nUsing the emulator's Bluetooth support, you can also play audio through an\nemulated Bluetooth output device. To test audio output switching in the\nemulator, connect to an emulated Bluetooth output device using the open source\n[Bumble project](https://www.github.com/google/bumble).\n\n### Prepare your environment\n\nTo prepare your development machine for using Bumble, complete the following\nsteps:\n\n1. Fetch the Bumble source code:\n\n ```\n git clone https://github.com/google/bumble\n ```\n2. Navigate to the `bumble` directory, then build and install\n Bumble modules:\n\n ```\n cd bumble && python3 -m pip install \".\"\n ```\n\n### Launch emulated Bluetooth speaker\n\nTo launch the emulated speaker, complete the following steps:\n\n1. Launch a version of the emulator that supports Wear OS 4 or higher.\n\n **Note:** If you're using an emulator version\n lower than 33.1.10, launch the emulator from the command line using the\n `-packet-streamer-endpoint default` parameter.\n2. To discover and connect to the emulated speaker, run the following\n command in the `bumble` directory:\n\n ```\n python3 examples/run_a2dp_sink.py examples/a2dp_sink1.json \\\n android-netsim stdout | ffplay -i\n ```\n\n The audio output is played through your computer's speakers.\n\n You can also redirect output to a file: \n\n ```\n python3 examples/run_a2dp_sink.py examples/a2dp_sink1.json \\\n android-netsim output.sbc\n ```"]]