एम्युलेटर पर ब्लूटूथ ऑडियो की जांच करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Wear OS एम्युलेटर पर, Wear OS 4 या इसके बाद के वर्शन पर चलने वाली सिस्टम इमेज में ये शामिल हैं
एम्युलेट किए गए ब्लूटूथ के साथ काम करता है. इस सहायता की मदद से, इस्तेमाल के कई उदाहरणों की जांच की जा सकती है
ब्लूटूथ ऑडियो से संबंधित है.
एम्युलेट किए गए फ़ोन से जोड़ें
एम्युलेटर के ब्लूटूथ की सुविधा का इस्तेमाल करके, उसे एम्युलेटर फ़ोन के साथ जोड़ा जा सकता है. यहां की यात्रा पर हूं
ऐसा करने के लिए, कमांड लाइन से सेटअप विज़र्ड को चालू करें:
-append-userspace-opt androidboot.setupwizard_mode=REQUIRED
एम्युलेट किए गए आउटपुट डिवाइस पर ऑडियो चलाएं
एम्युलेटर के ब्लूटूथ की सुविधा का इस्तेमाल करके, आपके पास
एम्युलेट किया गया ब्लूटूथ आउटपुट डिवाइस. ऑडियो आउटपुट स्विच को इसमें टेस्ट करने के लिए
एम्युलेटर, ओपन सोर्स का इस्तेमाल करके एम्युलेटर वाले ब्लूटूथ आउटपुट डिवाइस से कनेक्ट करें
Bumble प्रोजेक्ट.
अपना एनवायरमेंट तैयार करें
Bumble का इस्तेमाल करने के लिए डेवलपमेंट मशीन को तैयार करने के लिए, इन चरणों को पूरा करें
चरण:
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
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (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-27 (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 ```"]]