CN113115155B - Wireless earphone control method, wireless earphone control device and electronic equipment - Google Patents
Wireless earphone control method, wireless earphone control device and electronic equipment Download PDFInfo
- Publication number
- CN113115155B CN113115155B CN202110372437.8A CN202110372437A CN113115155B CN 113115155 B CN113115155 B CN 113115155B CN 202110372437 A CN202110372437 A CN 202110372437A CN 113115155 B CN113115155 B CN 113115155B
- Authority
- CN
- China
- Prior art keywords
- earphone
- data stream
- channel data
- voltage
- power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000005540 biological transmission Effects 0.000 description 33
- 238000010586 diagram Methods 0.000 description 11
- 210000005069 ears Anatomy 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 6
- 241000699670 Mus sp. Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computer Networks & Wireless Communication (AREA)
- Headphones And Earphones (AREA)
- Telephone Function (AREA)
Abstract
本申请公开了一种无线耳机控制方法、无线耳机控制装置和电子设备,属于电子设备技术领域。无线耳机包括第一耳机和第二耳机,无线耳机控制方法包括:在第一电压与第二电压之间的差值小于第一阈值的情况下,通过第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过第一耳机向第二耳机发送第二声道数据流,以及,通过第一耳机播放第一声道数据流,并通过第二耳机播放第二声道数据流;第一电压为第一耳机的电池电压,第二电压为第二耳机的电池电压;在第一电压小于第二电压,且第一电压与第二电压之间的差值大于或等于第一阈值的情况下,通过第一耳机播放第一声道数据流,且通过第二耳机播放第一声道数据流和第二声道数据流。
The application discloses a wireless earphone control method, a wireless earphone control device and electronic equipment, which belong to the technical field of electronic equipment. The wireless earphone includes a first earphone and a second earphone, and the wireless earphone control method includes: when the difference between the first voltage and the second voltage is less than a first threshold, receiving the first sound sent by the mobile terminal through the first earphone channel data stream and the second channel data stream, and send the second channel data stream through the first earphone to the second earphone, and play the first channel data stream through the first earphone, and play the second channel data stream through the second earphone Channel data flow; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone; when the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than Or in the case of being equal to the first threshold, the first audio channel data stream is played through the first earphone, and the first audio channel data stream and the second audio channel data stream are played through the second earphone.
Description
技术领域technical field
本申请属于电子设备技术领域,具体涉及一种无线耳机控制方法、无线耳机控制装置和电子设备。The present application belongs to the technical field of electronic equipment, and in particular relates to a wireless earphone control method, a wireless earphone control device and electronic equipment.
背景技术Background technique
无线耳机具有体积小巧、使用方便等特点,这使得无线耳机得到较普遍的使用。无线耳机需要设置电池来为无线耳机提供电源,在用户双耳同时使用无线耳机的场景下,当单个无线耳机的电量不足时,会导致用户无法继续双耳使用无线耳机,从而导致无线耳机的使用效率较低。Wireless earphones have the characteristics of small size and convenient use, which makes wireless earphones more commonly used. Wireless earphones need to be equipped with a battery to provide power for the wireless earphones. In the scenario where the user uses both ears of the wireless earphones at the same time, when the power of a single wireless earphone is insufficient, the user cannot continue to use the wireless earphones with both ears, resulting in the use of the wireless earphones. less efficient.
发明内容Contents of the invention
本申请实施例的目的是提供一种无线耳机控制方法、无线耳机控制装置和电子设备,以解决现有技术中存在的因单个无线耳机电量不足而导致无线耳机使用效率较低的问题。The purpose of the embodiments of the present application is to provide a wireless earphone control method, a wireless earphone control device and electronic equipment, so as to solve the problem in the prior art that the use efficiency of the wireless earphone is low due to insufficient power of a single wireless earphone.
第一方面,本申请实施例提供了一种无线耳机控制方法,所述无线耳机包括第一耳机和第二耳机,所述方法包括:In a first aspect, an embodiment of the present application provides a method for controlling a wireless earphone, where the wireless earphone includes a first earphone and a second earphone, and the method includes:
在第一电压与第二电压之间的差值小于第一阈值的情况下,通过所述第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过所述第一耳机向所述第二耳机发送所述第二声道数据流,以及,通过所述第一耳机播放所述第一声道数据流,并通过所述第二耳机播放所述第二声道数据流;所述第一电压为所述第一耳机的电池电压,所述第二电压为第二耳机的电池电压;When the difference between the first voltage and the second voltage is less than the first threshold, the first audio channel data stream and the second audio channel data stream sent by the mobile terminal are received through the first earphone, and the The first earphone sends the second audio channel data stream to the second earphone, and plays the first audio channel data stream through the first earphone, and plays the second audio channel data stream through the second earphone channel data stream; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone;
在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第一耳机播放所述第一声道数据流,且通过所述第二耳机播放所述第一声道数据流和所述第二声道数据流。When the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, play the the first channel data stream, and play the first channel data stream and the second channel data stream through the second earphone.
第二方面,本申请实施例提供了一种无线耳机控制装置,所述无线耳机包括第一耳机和第二耳机,所述装置包括:In a second aspect, an embodiment of the present application provides a wireless earphone control device, the wireless earphone includes a first earphone and a second earphone, and the device includes:
第一控制模块,用于在第一电压与第二电压之间的差值小于第一阈值的情况下,通过所述第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过所述第一耳机向所述第二耳机发送所述第二声道数据流,以及,通过所述第一耳机播放所述第一声道数据流,并通过所述第二耳机播放所述第二声道数据流;所述第一电压为所述第一耳机的电池电压,所述第二电压为第二耳机的电池电压;The first control module is configured to receive the first audio channel data stream and the second audio channel sent by the mobile terminal through the first earphone when the difference between the first voltage and the second voltage is less than the first threshold data stream, and send the second channel data stream to the second earphone through the first earphone, and play the first channel data stream through the first earphone, and transmit the second channel data stream through the second earphone The earphone plays the second audio channel data stream; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone;
第二控制模块,用于在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第一耳机播放所述第一声道数据流,且通过所述第二耳机播放所述第一声道数据流和所述第二声道数据流。The second control module is configured to: when the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, by The first earphone plays the first channel data stream, and the second earphone plays the first channel data stream and the second channel data stream.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的无线耳机控制方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor realizes the steps of the wireless headset control method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的无线耳机控制方法的步骤。In a fourth aspect, the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the wireless headset control as described in the first aspect is realized method steps.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
在本申请实施例中,在用户双耳同时使用无线耳机的场景下,在两个无线耳机的电压相近时,两个无线耳机分别播放不同声道的数据流;而在两个无线耳机的电压存在一定的差值时,电压较低的无线耳机继续播放对应声道的数据流,电压较高的无线耳机同时播放两个声道的数据流。这样,一方面,能够逐渐减小两个无线耳机之间的电量差,能够平衡两个无线耳机的可用电量,从而能够有效延长两个无线耳机的工作时长,提高了两个无线耳机的使用效率;另一方面,在无线耳机的整个工作过程中,能够使用户处于持续地双耳同时使用无线耳机的状态,提高了无线耳机的播放效果。In the embodiment of the present application, in the scenario where the user uses wireless earphones in both ears at the same time, when the voltages of the two wireless earphones are similar, the two wireless earphones respectively play data streams of different channels; When there is a certain difference, the wireless earphone with lower voltage continues to play the data stream of the corresponding channel, and the wireless earphone with higher voltage plays the data stream of two channels at the same time. In this way, on the one hand, the power difference between the two wireless earphones can be gradually reduced, and the available power of the two wireless earphones can be balanced, so that the working hours of the two wireless earphones can be effectively extended, and the use efficiency of the two wireless earphones can be improved. On the other hand, during the whole working process of the wireless earphone, the user can be in the state of continuously using the wireless earphone with both ears at the same time, which improves the playback effect of the wireless earphone.
附图说明Description of drawings
图1是双耳系统的单路传输方式示意图;Fig. 1 is a schematic diagram of a single-channel transmission mode of a binaural system;
图2是双耳系统的双路传输方式示意图;Fig. 2 is a schematic diagram of a two-way transmission mode of a binaural system;
图3是本申请实施例提供的一种无线耳机控制方法的流程示意图;Fig. 3 is a schematic flow chart of a wireless headset control method provided by an embodiment of the present application;
图4是本申请实施例提供的双耳系统的单路传输方式示意图;Fig. 4 is a schematic diagram of a single-channel transmission mode of a binaural system provided by an embodiment of the present application;
图5是本申请实施例提供的双耳系统的双路传输方式示意图;Fig. 5 is a schematic diagram of a two-way transmission mode of a binaural system provided by an embodiment of the present application;
图6是本申请实施例提供的一种无线耳机控制装置的结构示意图;Fig. 6 is a schematic structural diagram of a wireless earphone control device provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备示意图;FIG. 7 is a schematic diagram of an electronic device provided by an embodiment of the present application;
图8是本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 8 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
本申请的说明书和权利要求书中的“无线耳机”包括但不限于蓝牙无线耳机、红外无线耳机、2.4G无线耳机、TWS(True Wireless Stereo,真正无线立体声)耳机。The "wireless earphones" in the specification and claims of this application include but not limited to Bluetooth wireless earphones, infrared wireless earphones, 2.4G wireless earphones, and TWS (True Wireless Stereo) earphones.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的无线耳机控制方法、无线耳机控制装置和电子设备进行详细地说明。The wireless earphone control method, the wireless earphone control device, and the electronic equipment provided in the embodiments of the present application are described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请可应用于用户双耳同时使用无线耳机的场景,在该场景下,用户同时使用第一耳机和第二耳机,第一耳机和第二耳机同时与终端建立无线连接,并同时输出音频数据流,第一耳机和第二耳机可共同构成双耳系统。This application can be applied to the scene where the user uses wireless earphones with both ears at the same time. In this scene, the user uses the first earphone and the second earphone at the same time, and the first earphone and the second earphone establish a wireless connection with the terminal at the same time, and output audio data at the same time stream, the first earphone and the second earphone can together form a binaural system.
本申请中,第一耳机和第二耳机可以是任意的无线耳机,第一耳机和第二耳机可以播放任一声道数据流。在一种实施方式中,第一耳机和第二耳机分别为左右耳机中的其中一个,例如,第一耳机为左耳机时,第二耳机为右耳机;第一耳机为右耳机时,第二耳机为左耳机。In this application, the first earphone and the second earphone may be any wireless earphones, and the first earphone and the second earphone may play any channel data stream. In one embodiment, the first earphone and the second earphone are respectively one of the left and right earphones. For example, when the first earphone is the left earphone, the second earphone is the right earphone; when the first earphone is the right earphone, the second earphone is The earphone is the left earphone.
为了便于描述,设定在默认情况下,第一耳机播放第一声道数据流,第二耳机播放第二声道数据流。For ease of description, it is assumed that by default, the first earphone plays the data stream of the first channel, and the second earphone plays the data stream of the second channel.
目前,双耳系统的传输方式可包括单路传输方式和双路传输方式,以下通过图1和图2分别介绍这两种传输方式。At present, the transmission mode of the binaural system may include a single-channel transmission mode and a dual-channel transmission mode, and the following two transmission modes are introduced respectively through FIG. 1 and FIG. 2 .
图1示出了双耳系统的单路传输方式示意图。FIG. 1 shows a schematic diagram of a single-channel transmission mode of a binaural system.
如图1所示,终端10向第一耳机20发送第一声道数据流和第二声道数据流,第一耳机20接收终端10发送的第一声道数据流和第二声道数据流,第一耳机20向第二耳机30转发第二声道数据流,第二耳机30接收第一耳机20发送的第二声道数据流,第一耳机20输出第二声道数据流(或播放,下同),第二耳机30输出第二声道数据流。As shown in FIG. 1, the
图2示出了双耳系统的双路传输方式示意图。Fig. 2 shows a schematic diagram of a two-way transmission mode of a binaural system.
如图2所示,终端10向第一耳机20发送第一声道数据流,以及向第二耳机30发送第二声道数据流,第一耳机20接收终端发送的第一声道数据流,第一耳机20接收终端发送的第二声道数据流,第一耳机20输出第一声道数据流,第二耳机30耳机输出第二声道数据流。As shown in FIG. 2, the
在单路传输方式中,第一耳机负责数据流的接收和输出,第二耳机除了负责数据流的接收和输出之外,还需要负责数据流的转发,因此,第二耳机的耗电速度通常大于第一耳机。可见,在单路传输方式中,第一耳机和第二耳机存在耗电速度上的差异。而当其中某一无线耳机的电量不足时,即使另一无线耳机的电量充足,也会影响双耳系统的工作性能,从而降低了无线耳机的使用效率。In the single-channel transmission mode, the first earphone is responsible for the reception and output of the data stream, and the second earphone is not only responsible for the reception and output of the data stream, but also needs to be responsible for the forwarding of the data stream. Therefore, the power consumption speed of the second earphone is usually Greater than the first earphone. It can be seen that in the single-channel transmission mode, there is a difference in power consumption speed between the first earphone and the second earphone. And when the power of one of the wireless earphones is insufficient, even if the power of the other wireless earphone is sufficient, the working performance of the binaural system will be affected, thereby reducing the use efficiency of the wireless earphone.
鉴于此,为了解决上述问题,本申请提供一种无线耳机控制方法、无线耳机控制装置和电子设备。In view of this, in order to solve the above problems, the present application provides a wireless headset control method, a wireless headset control device, and electronic equipment.
图3示出了本申请实施例提供的一种无线耳机控制方法的流程示意图。Fig. 3 shows a schematic flowchart of a method for controlling a wireless headset provided by an embodiment of the present application.
如图3所示,无线耳机控制方法包括以下步骤:As shown in Figure 3, the wireless headset control method includes the following steps:
步骤301:在第一电压与第二电压之间的差值小于第一阈值的情况下,通过第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过所述第一耳机向第二耳机发送所述第二声道数据流,以及,通过所述第一耳机播放所述第一声道数据流,并通过所述第二耳机播放所述第二声道数据流;所述第一电压为所述第一耳机的电池电压,所述第二电压为第二耳机的电池电压;Step 301: When the difference between the first voltage and the second voltage is less than the first threshold, receive the first channel data stream and the second channel data stream sent by the mobile terminal through the first earphone, and pass the The first earphone sends the second audio channel data stream to the second earphone, and plays the first audio channel data stream through the first earphone, and plays the second audio channel through the second earphone Data flow; the first voltage is the battery voltage of the first earphone, and the second voltage is the battery voltage of the second earphone;
步骤302:在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第一耳机播放所述第一声道数据流,且通过所述第二耳机播放所述第一声道数据流和所述第二声道数据流。Step 302: When the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, pass the first The earphone plays the first channel data stream, and plays the first channel data stream and the second channel data stream through the second earphone.
本申请实施例中,在无线耳机采用单路传输方式工作时,由于第一耳机和第二耳机存在耗电速度上的差异,因此,在无线耳机采用单路传输方式工作的过程中,可以对第一电压和第二电压进行监控,以监测第一电压与第二电压之间的差值。可以采用多种方式对第一电压与第二电压之间的差值进行监测,例如,可以由终端监测第一电压与第二电压之间的差值,也可以由第一耳机或第二耳机监测第一电压与第二电压之间的差值。以终端监测第一电压与第二电压之间的差值为例,具体的监测过程可以是:第一耳机可将第一电压发送给终端,第二耳机可将第二电压发送给终端,终端接收第一电压和第二电压后计算第一电压与第二电压之间的差值。终端还可以将监测结果反馈给第一耳机和第二耳机,例如,在第一电压与第二电压之间的差值大于或等于第一阈值的情况下,终端将该监测结果反馈给第一耳机和第二耳机。In the embodiment of the present application, when the wireless earphone works in the single-channel transmission mode, since there is a difference in power consumption speed between the first earphone and the second earphone, in the process of the wireless earphone working in the single-channel transmission mode, the The first voltage and the second voltage are monitored to monitor a difference between the first voltage and the second voltage. The difference between the first voltage and the second voltage can be monitored in various ways, for example, the terminal can monitor the difference between the first voltage and the second voltage, or the first earphone or the second earphone can A difference between the first voltage and the second voltage is monitored. Taking the terminal monitoring the difference between the first voltage and the second voltage as an example, the specific monitoring process can be: the first earphone can send the first voltage to the terminal, the second earphone can send the second voltage to the terminal, and the terminal A difference between the first voltage and the second voltage is calculated after receiving the first voltage and the second voltage. The terminal may also feed back the monitoring result to the first earphone and the second earphone. For example, when the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the terminal feeds back the monitoring result to the first earphone. Earphone and second earphone.
第一阈值可以根据实际情况进行设置,在此不作限定,第一阈值可以是例如0.3V、0.5V等。The first threshold may be set according to actual conditions, and is not limited herein. The first threshold may be, for example, 0.3V, 0.5V, and so on.
第一电压与第二电压之间的差值小于第一阈值,可以理解为第一耳机和第二耳机的可用电量相近,在这种情况下,通过第一耳机播放第一声道数据流,并通过第二耳机播放第二声道数据流,第一声道数据流和第二声道数据流分别对应第一耳机和第二耳机的默认声道数据流。也就是说,在第一耳机和第二耳机的可用电量相近的情况下,第一耳机和第二耳机各自播放默认声道数据流。The difference between the first voltage and the second voltage is less than the first threshold. It can be understood that the available power of the first earphone and the second earphone are similar. In this case, the first audio channel data stream is played through the first earphone. And play the second audio channel data stream through the second earphone, the first audio channel data stream and the second audio channel data stream respectively correspond to the default audio channel data streams of the first earphone and the second earphone. That is to say, when the available power of the first earphone and the second earphone is similar, the first earphone and the second earphone respectively play the default channel data stream.
第一电压小于第二电压,且第一电压与第二电压之间的差值大于或等于第一阈值,可以理解为第一耳机的可用电量大于第二耳机的可用电量,且第一耳机和第二耳机的可用电量相差较大,在这种情况下,为了平衡第一耳机与第二耳机之间的电量差,第一耳机播放第一声道数据流,通过第一耳机播放第一声道数据流,且通过第二耳机播放第一声道数据流和第二声道数据流。The first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, it can be understood that the available power of the first earphone is greater than the available power of the second earphone, and the first earphone and the The available power of the second earphone has a large difference. In this case, in order to balance the power difference between the first earphone and the second earphone, the first earphone plays the data stream of the first channel, and plays the first audio through the first earphone. channel data stream, and play the first channel data stream and the second channel data stream through the second earphone.
在第一耳机和第二耳机的可用电量相近的情况下,第一耳机和第二耳机的传输方式可以为如图1示出的单路传输方式,具体的,在步骤301中,通过第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过第一耳机向第二耳机发送第二声道数据流,以及,通过第一耳机播放第一声道数据流,并通过第二耳机播放第二声道数据流。In the case that the available power of the first earphone and the second earphone are similar, the transmission mode of the first earphone and the second earphone can be a single-channel transmission mode as shown in FIG. 1 , specifically, in
在第一耳机和第二耳机的可用电量相差较大的情况下,第一耳机和第二耳机的传输方式可以不限于单路传输方式,本申请对此不作限定。具体的,在步骤302中,第二耳机播放的第一声道数据流和第二声道数据流既可以是通过第一耳机发送至第二耳机的,也可以是通过终端发送至第二耳机的。In the case that the available power of the first earphone and the second earphone differ greatly, the transmission mode of the first earphone and the second earphone may not be limited to a single channel transmission mode, which is not limited in this application. Specifically, in
在本申请实施例中,在用户双耳同时使用无线耳机的场景下,在两个无线耳机的电压相近时,两个无线耳机分别播放不同声道的数据流;而在两个无线耳机的电压存在一定的差值时,电压较低的无线耳机继续播放对应声道的数据流,电压较高的无线耳机同时播放两个声道的数据流。这样,一方面,能够逐渐减小两个无线耳机之间的电量差,能够平衡两个无线耳机的可用电量,从而能够有效延长两个无线耳机的工作时长,提高了两个无线耳机的使用效率;另一方面,在无线耳机的整个工作过程中,能够使用户处于持续地双耳同时使用无线耳机的状态,提高了无线耳机的播放效果。In the embodiment of the present application, in the scenario where the user uses wireless earphones in both ears at the same time, when the voltages of the two wireless earphones are similar, the two wireless earphones respectively play data streams of different channels; When there is a certain difference, the wireless earphone with lower voltage continues to play the data stream of the corresponding channel, and the wireless earphone with higher voltage plays the data stream of two channels at the same time. In this way, on the one hand, the power difference between the two wireless earphones can be gradually reduced, and the available power of the two wireless earphones can be balanced, so that the working hours of the two wireless earphones can be effectively extended, and the use efficiency of the two wireless earphones can be improved. On the other hand, during the whole working process of the wireless earphone, the user can be in the state of continuously using the wireless earphone with both ears at the same time, which improves the playback effect of the wireless earphone.
在一些实施例中,还可以通过监测第一耳机与第二耳机之间的电量差值来代替监测两者之间的电压差值实现上述各步骤。In some embodiments, the above steps may also be implemented by monitoring the power difference between the first earphone and the second earphone instead of monitoring the voltage difference between them.
具体的,在第一耳机与第二耳机之间的电量差值小于第二阈值的情况下,通过第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过第一耳机向第二耳机发送所述第二声道数据流,以及,通过第一耳机播放第一声道数据流,并通过第二耳机播放第二声道数据流。在第一耳机的电量小于第二耳机的电量,且第一耳机与第二耳机之间的电量差值大于或等于第二阈值的情况下,通过第一耳机播放第一声道数据流,且通过第二耳机播放第一声道数据流和第二声道数据流。Specifically, when the power difference between the first earphone and the second earphone is less than the second threshold, the first earphone and the second audio channel data stream sent by the mobile terminal are received through the first earphone, and the The first earphone sends the second audio channel data stream to the second earphone, and plays the first audio channel data stream through the first earphone, and plays the second audio channel data stream through the second earphone. When the power of the first earphone is less than the power of the second earphone, and the power difference between the first earphone and the second earphone is greater than or equal to the second threshold, play the first audio channel data stream through the first earphone, and The data stream of the first channel and the data stream of the second channel are played through the second earphone.
可选的,所述通过所述第一耳机播放所述第一声道数据流,且通过所述第二耳机播放所述第一声道数据流和所述第二声道数据流,包括:Optionally, playing the first channel data stream through the first earphone, and playing the first channel data stream and the second channel data stream through the second earphone includes:
通过所述第一耳机以第一功率播放所述第一声道数据流,且通过所述第二耳机以第二功率播放所述第一声道数据流,并以第三功率播放所述第二声道数据流;所述第一功率的功率值为P1,所述第二功率的功率值为P2,所述第三功率的功率值为P3,其中,P1<P3,且P2<P3。Play the first channel data stream with the first power through the first earphone, play the first channel data stream with the second power through the second earphone, and play the first channel data stream with the third power Two-channel data stream; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein, P1<P3, and P2<P3.
该实施方式中,无线耳机(包括第一耳机或第二耳机)可以调整数据流(包括第一声道数据流或第二声道数据流)的播放功率,以平衡第一耳机与第二耳机之间的电量差。调整数据流的播放功率的方式可以有多种,以第一耳机调整第一声道数据流的播放功率为例,第一耳机可以通过调整第一声道数据流的模拟增益(或振幅)来实现播放功率的调整,第一耳机也可以通过调整第一声道数据流的数字增益(或音质)来实现播放功率的调整。In this embodiment, the wireless earphone (including the first earphone or the second earphone) can adjust the playback power of the data stream (including the first channel data stream or the second channel data stream) to balance the first earphone and the second earphone power difference between them. There are many ways to adjust the playback power of the data stream. Taking the first earphone to adjust the playback power of the first channel data stream as an example, the first earphone can adjust the analog gain (or amplitude) of the first channel data stream. To adjust the playback power, the first earphone can also adjust the digital gain (or sound quality) of the first audio channel data stream to adjust the playback power.
在实施方式中,在第一耳机和第二耳机的可用电量相差较大的情况下,使第一耳机以较低的播放功率播放第一声道数据流,并使第二耳机以较高的播放功率播放第一声道数据流和第二声道数据流。这样,两个耳机的电量将逐渐趋于平衡,从而能够有效延长两个耳机的工作时长,提高了两个耳机的使用效率。In an implementation manner, when the available power of the first earphone and the second earphone differ greatly, the first earphone is made to play the first audio channel data stream at a lower playback power, and the second earphone is made to play the data stream at a higher power. Play power Play the first channel data stream and the second channel data stream. In this way, the power of the two earphones will gradually tend to balance, so that the working hours of the two earphones can be effectively extended, and the use efficiency of the two earphones can be improved.
此外,该实施方式中,在第一耳机和第二耳机的可用电量相差较大的情况下,使第二耳机播放第二声道数据流的播放功率大于播放第一声道数据流的播放功率。如此,可以使第二耳机以播放第二声道数据流为主,以播放第一声道数据流为辅,从而使第二耳机不会因额外播放第一声道数据流而导致第二声道数据流的播放受到影响,从而保证了第二声道数据流的输出质量,确保了第二耳机的播放性能。In addition, in this embodiment, when the available power of the first earphone and the second earphone differ greatly, the playback power of the second earphone to play the second audio channel data stream is greater than the playback power of the first audio channel data stream . In this way, the second earphone can mainly play the data stream of the second channel, supplemented by playing the data stream of the first channel, so that the second earphone will not cause the second sound due to the additional play of the data stream of the first channel. The playback of the channel data stream is affected, thereby ensuring the output quality of the second channel data stream and ensuring the playback performance of the second earphone.
在一些实施例中,在步骤301中,第一耳机播放第一声道数据流的播放功率,可以等于在步骤302中,第一耳机播放第一声道数据流的播放功率与第二耳机播放第一声道数据流的播放功率之和。相应的,在步骤301中,第二耳机播放第二声道数据流的播放功率,可以等于在步骤302中,第二耳机播放第二声道数据流的播放功率。In some embodiments, in
如此,可以使第一声道数据流和第二声道数据流的播放功率始终保持稳定,从而保证了第一声道数据流和第二声道数据流的输出质量,确保了无线耳机的整体播放性能。In this way, the playback power of the first channel data stream and the second channel data stream can always be kept stable, thereby ensuring the output quality of the first channel data stream and the second channel data stream, and ensuring the overall performance of the wireless headset. playback performance.
在一些实施例中,无论是在步骤301还是在步骤302,第一声道数据流的播放功率均可以等于第二声道数据流的播放功率。如此,可以使第一声道数据流和第二声道数据流在整个过程中的播放功率相当,从而保证了第一声道数据流和第二声道数据流的输出质量,确保了无线耳机的整体播放性能。In some embodiments, no matter in
可选的,在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,所述方法还包括:Optionally, when the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the method further include:
通过所述第一耳机向所述第二耳机发送所述第一声道数据流和所述第二声道数据流。sending the first audio channel data stream and the second audio channel data stream to the second earphone through the first earphone.
该实施方式中,在第一电压小于第二电压,且第一电压与第二电压之间的差值大于或等于第一阈值的情况下,第一耳机和第二耳机的传输方式仍可以是单路传输方式。In this embodiment, when the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission mode of the first earphone and the second earphone can still be One-way transmission mode.
具体的,在第一电压与第二电压之间的差值小于第一阈值的情况下,第一耳机和第二耳机的传输方式可以为图1示出的单路传输方式;在第一电压小于第二电压,且第一电压与第二电压之间的差值大于或等于第一阈值的情况下,第一耳机和第二耳机的传输方式可以为图4示出的单路传输方式。Specifically, when the difference between the first voltage and the second voltage is less than the first threshold, the transmission mode of the first earphone and the second earphone may be the single-channel transmission mode shown in FIG. 1; When the voltage is less than the second voltage and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission mode of the first earphone and the second earphone may be the one-way transmission mode shown in FIG. 4 .
如图4所示,终端10向第一耳机20发送第一声道数据流和第二声道数据流,第一耳机20接收终端10发送的第一声道数据流和第二声道数据流,第一耳机20向第二耳机30转发第一声道数据流和第二声道数据流,第二耳机30接收第一耳机20发送的第一声道数据流和第二声道数据流,第二耳机30输出第一声道数据流和第二声道数据流,第一耳机20输出第二声道数据流。As shown in FIG. 4, the terminal 10 sends the first audio channel data stream and the second audio channel data stream to the
可选的,在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,所述方法还包括:Optionally, when the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the method further include:
通过所述第二耳机与所述移动终端建立无线通信连接;establishing a wireless communication connection with the mobile terminal through the second earphone;
通过所述第一耳机接收所述移动终端发送的第一声道数据流;receiving the first audio channel data stream sent by the mobile terminal through the first earphone;
通过所述第二耳机接收所述移动终端发送的第一声道数据流和第二声道数据流。The first audio channel data stream and the second audio channel data stream sent by the mobile terminal are received through the second earphone.
该实施方式中,在第一电压小于第二电压,且第一电压与第二电压之间的差值大于或等于第一阈值的情况下,第一耳机和第二耳机的传输方式仍可以从单路传输方式调整至双路传输方式。In this embodiment, when the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission mode of the first earphone and the second earphone can still be changed from The single-channel transmission mode is adjusted to the dual-channel transmission mode.
具体的,在第一电压与第二电压之间的差值小于第一阈值的情况下,第一耳机和第二耳机的传输方式可以为图1示出的单路传输方式;在第一电压小于第二电压,且第一电压与第二电压之间的差值大于或等于第一阈值的情况下,第一耳机和第二耳机的传输方式可以为图5示出的双路传输方式。Specifically, when the difference between the first voltage and the second voltage is less than the first threshold, the transmission mode of the first earphone and the second earphone may be the single-channel transmission mode shown in FIG. 1; When the voltage is less than the second voltage and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, the transmission mode of the first earphone and the second earphone may be the two-way transmission mode shown in FIG. 5 .
如图5所示,终端10向第一耳机20发送第一声道数据流,并向第二耳机30发送第一声道数据流和第二声道数据流,第一耳机20接收终端发送的第一声道数据流,第二耳机30接收终端发送的第一声道数据流和第二声道数据流,第一耳机20输出第一声道数据流,第二耳机30输出第一声道数据流和第二声道数据流。As shown in Figure 5, the terminal 10 sends the first audio channel data stream to the
该实施方式中,在第一耳机和第二耳机的可用电量相差较大的情况下,通过从单路传输方式调整至双路传输方式,能够有助于使两个耳机的电量逐渐趋于平衡,从而能够有效延长两个耳机的工作时长,提高了两个耳机的使用效率。In this embodiment, when the available power of the first earphone and the second earphone differ greatly, by adjusting from the single-channel transmission mode to the dual-channel transmission mode, it can help to gradually balance the power of the two earphones , so that the working hours of the two earphones can be effectively extended, and the use efficiency of the two earphones is improved.
可选的,所述第一功率的功率值与所述第二功率的功率值之和等于所述第三功率的功率值。Optionally, the sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
该实施方式中,在第一耳机和第二耳机的可用电量相差较大的情况下,第一数据流的播放功率等于第二数据流的播放功率。如此,可以使第一声道数据流和第二声道数据流的播放功率相当,从而保证了第一声道数据流和第二声道数据流的输出质量,确保了无线耳机的整体播放性能。In this embodiment, when the available power of the first earphone and the second earphone differ greatly, the playback power of the first data stream is equal to the playback power of the second data stream. In this way, the playback power of the first channel data stream and the second channel data stream can be equal, thereby ensuring the output quality of the first channel data stream and the second channel data stream, and ensuring the overall playback performance of the wireless earphones .
综上,本申请实施例能够平衡两个无线耳机的可用电量,能够有效延长两个无线耳机的工作时长,提高了两个无线耳机的使用效率。To sum up, the embodiment of the present application can balance the available power of the two wireless earphones, can effectively prolong the working hours of the two wireless earphones, and improve the use efficiency of the two wireless earphones.
需要说明的是,本申请实施例提供的无线耳机控制方法,执行主体可以为无线耳机控制装置,或者该无线耳机控制装置中的用于执行无线耳机控制方法的控制模块。本申请实施例中以无线耳机控制装置执行无线耳机控制方法为例,说明本申请实施例提供的无线耳机控制装置。It should be noted that, the wireless earphone control method provided in the embodiment of the present application may be executed by a wireless earphone control device, or a control module in the wireless earphone control device for executing the wireless earphone control method. In the embodiment of the present application, the wireless headset control device provided in the embodiment of the present application is described by taking the wireless headset control device executing the wireless headset control method as an example.
图6示出了本申请实施例提供的一种无线耳机控制装置的结构示意图。Fig. 6 shows a schematic structural diagram of a wireless earphone control device provided by an embodiment of the present application.
如图6所示,无线耳机包括第一耳机和第二耳机,无线耳机控制装置400包括:As shown in FIG. 6, the wireless earphone includes a first earphone and a second earphone, and the wireless
第一控制模块401,用于在第一电压与第二电压之间的差值小于第一阈值的情况下,通过所述第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过所述第一耳机向所述第二耳机发送所述第二声道数据流,以及,通过所述第一耳机播放所述第一声道数据流,并通过所述第二耳机播放所述第二声道数据流;所述第一电压为所述第一耳机的电池电压,所述第二电压为第二耳机的电池电压;The
第二控制模块402,用于在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第一耳机播放所述第一声道数据流,且通过所述第二耳机播放所述第一声道数据流和所述第二声道数据流。The
可选的,第二控制模块402具体用于:Optionally, the
通过所述第一耳机以第一功率播放所述第一声道数据流,且通过所述第二耳机以第二功率播放所述第一声道数据流,并以第三功率播放所述第二声道数据流;所述第一功率的功率值为P1,所述第二功率的功率值为P2,所述第三功率的功率值为P3,其中,P1<P3,且P2<P3。Play the first channel data stream with the first power through the first earphone, play the first channel data stream with the second power through the second earphone, and play the first channel data stream with the third power Two-channel data stream; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein, P1<P3, and P2<P3.
可选的,无线耳机控制装置400还包括第三控制模块,用于:Optionally, the wireless
在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第一耳机向所述第二耳机发送所述第一声道数据流和所述第二声道数据流。When the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, sending the first earphone to the The second earphone sends the first channel data stream and the second channel data stream.
可选的,无线耳机控制装置400还包括第四控制模块,用于:Optionally, the wireless
在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第二耳机与所述移动终端建立无线通信连接;When the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, through the second earphone and the The mobile terminal establishes a wireless communication connection;
通过所述第一耳机接收所述移动终端发送的第一声道数据流;receiving the first audio channel data stream sent by the mobile terminal through the first earphone;
通过所述第二耳机接收所述移动终端发送的第一声道数据流和第二声道数据流。The first audio channel data stream and the second audio channel data stream sent by the mobile terminal are received through the second earphone.
可选的,所述第一功率的功率值与所述第二功率的功率值之和等于所述第三功率的功率值。Optionally, the sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
本申请实施例中的无线耳机控制装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)等,本申请实施例不作具体限定。The wireless earphone control device in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), etc., the embodiment of the present application does not specifically limit .
本申请实施例中的无线耳机控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The wireless earphone control device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的无线耳机控制装置能够实现图3至图5的方法实施例实现的各个过程,并能够达到相同的有益效果,为避免重复,这里不再赘述。The wireless earphone control device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 3 to FIG. 5 , and can achieve the same beneficial effect. To avoid repetition, details are not repeated here.
可选的,如图7所示,本申请实施例还提供一种电子设备600,包括处理器601,存储器602,存储在存储器602上并可在所述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述账单统计方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 7 , the embodiment of the present application further provides an
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图8为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、以及处理器7010等部件。The
本领域技术人员可以理解,电子设备700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器7010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
其中,射频单元701,用于:Wherein, the
在第一电压与第二电压之间的差值小于第一阈值的情况下,通过所述第一耳机接收移动终端发送的第一声道数据流和第二声道数据流,并通过所述第一耳机向所述第二耳机发送所述第二声道数据流;When the difference between the first voltage and the second voltage is less than the first threshold, the first audio channel data stream and the second audio channel data stream sent by the mobile terminal are received through the first earphone, and the the first earphone sends the second audio channel data stream to the second earphone;
音频输出单元703,用于:
通过所述第一耳机播放所述第一声道数据流,并通过所述第二耳机播放所述第二声道数据流;所述第一电压为所述第一耳机的电池电压,所述第二电压为第二耳机的电池电压;The first audio channel data stream is played through the first earphone, and the second audio channel data stream is played through the second earphone; the first voltage is the battery voltage of the first earphone, and the The second voltage is the battery voltage of the second earphone;
在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第一耳机播放所述第一声道数据流,且通过所述第二耳机播放所述第一声道数据流和所述第二声道数据流。When the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, play the the first channel data stream, and play the first channel data stream and the second channel data stream through the second earphone.
在本申请实施例中,在用户双耳同时使用无线耳机的场景下,在两个无线耳机的电压相近时,两个无线耳机分别播放不同声道的数据流;而在两个无线耳机的电压存在一定的差值时,电压较低的无线耳机继续播放对应声道的数据流,电压较高的无线耳机同时播放两个声道的数据流。这样,一方面,能够逐渐减小两个无线耳机之间的电量差,能够平衡两个无线耳机的可用电量,从而能够有效延长两个无线耳机的工作时长,提高了两个无线耳机的使用效率;另一方面,在无线耳机的整个工作过程中,能够使用户处于持续地双耳同时使用无线耳机的状态,提高了无线耳机的播放效果。In the embodiment of the present application, in the scenario where the user uses wireless earphones in both ears at the same time, when the voltages of the two wireless earphones are similar, the two wireless earphones respectively play data streams of different channels; When there is a certain difference, the wireless earphone with lower voltage continues to play the data stream of the corresponding channel, and the wireless earphone with higher voltage plays the data stream of two channels at the same time. In this way, on the one hand, the power difference between the two wireless earphones can be gradually reduced, and the available power of the two wireless earphones can be balanced, so that the working hours of the two wireless earphones can be effectively extended, and the use efficiency of the two wireless earphones can be improved. On the other hand, during the whole working process of the wireless earphone, the user can be in the state of continuously using the wireless earphone with both ears at the same time, which improves the playback effect of the wireless earphone.
可选的,音频输出单元703,还用于:Optionally, the
通过所述第一耳机以第一功率播放所述第一声道数据流,且通过所述第二耳机以第二功率播放所述第一声道数据流,并以第三功率播放所述第二声道数据流;所述第一功率的功率值为P1,所述第二功率的功率值为P2,所述第三功率的功率值为P3,其中,P1<P3,且P2<P3。Play the first channel data stream with the first power through the first earphone, play the first channel data stream with the second power through the second earphone, and play the first channel data stream with the third power Two-channel data stream; the power value of the first power is P1, the power value of the second power is P2, and the power value of the third power is P3, wherein, P1<P3, and P2<P3.
可选的,射频单元701,还用于:Optionally, the
在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第一耳机向所述第二耳机发送所述第一声道数据流和所述第二声道数据流。When the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, sending the first earphone to the The second earphone sends the first channel data stream and the second channel data stream.
可选的,射频单元701,还用于:Optionally, the
在所述第一电压小于所述第二电压,且所述第一电压与所述第二电压之间的差值大于或等于所述第一阈值的情况下,通过所述第二耳机与所述移动终端建立无线通信连接;When the first voltage is less than the second voltage, and the difference between the first voltage and the second voltage is greater than or equal to the first threshold, through the second earphone and the The mobile terminal establishes a wireless communication connection;
通过所述第一耳机接收所述移动终端发送的第一声道数据流;receiving the first audio channel data stream sent by the mobile terminal through the first earphone;
通过所述第二耳机接收所述移动终端发送的第一声道数据流和第二声道数据流。The first audio channel data stream and the second audio channel data stream sent by the mobile terminal are received through the second earphone.
可选的,所述第一功率的功率值与所述第二功率的功率值之和等于所述第三功率的功率值。Optionally, the sum of the power value of the first power and the power value of the second power is equal to the power value of the third power.
应理解的是,本申请实施例中,输入单元704可以包括软键盘7041和麦克风7042。显示单元706可包括显示面板7061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板7061。用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器709可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器7010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器7010中。It should be understood that, in this embodiment of the present application, the
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述无线耳机控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above wireless earphone control method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述无线耳机控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above embodiment of the wireless earphone control method Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110372437.8A CN113115155B (en) | 2021-04-07 | 2021-04-07 | Wireless earphone control method, wireless earphone control device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110372437.8A CN113115155B (en) | 2021-04-07 | 2021-04-07 | Wireless earphone control method, wireless earphone control device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113115155A CN113115155A (en) | 2021-07-13 |
CN113115155B true CN113115155B (en) | 2023-01-10 |
Family
ID=76714472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110372437.8A Active CN113115155B (en) | 2021-04-07 | 2021-04-07 | Wireless earphone control method, wireless earphone control device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113115155B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114143660B (en) * | 2022-01-06 | 2024-06-25 | 维沃移动通信有限公司 | Wireless earphone control method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106937197A (en) * | 2017-01-25 | 2017-07-07 | 北京联创志芯科技有限公司 | Double-ear wireless earphone and communication control method thereof |
CN108882084A (en) * | 2018-05-31 | 2018-11-23 | Oppo广东移动通信有限公司 | A kind of wearable device electric quantity balancing method and Related product |
CN110618805A (en) * | 2019-09-17 | 2019-12-27 | Oppo广东移动通信有限公司 | Method and device for adjusting electric quantity of equipment, electronic equipment and medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9949205B2 (en) * | 2012-05-26 | 2018-04-17 | Qualcomm Incorporated | Smart battery wear leveling for audio devices |
KR102546249B1 (en) * | 2016-10-10 | 2023-06-23 | 삼성전자주식회사 | output device outputting audio signal and method for controlling thereof |
CN108958696A (en) * | 2018-07-02 | 2018-12-07 | Oppo广东移动通信有限公司 | Principal and subordinate's earphone method for handover control and Related product |
-
2021
- 2021-04-07 CN CN202110372437.8A patent/CN113115155B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106937197A (en) * | 2017-01-25 | 2017-07-07 | 北京联创志芯科技有限公司 | Double-ear wireless earphone and communication control method thereof |
CN108882084A (en) * | 2018-05-31 | 2018-11-23 | Oppo广东移动通信有限公司 | A kind of wearable device electric quantity balancing method and Related product |
CN110618805A (en) * | 2019-09-17 | 2019-12-27 | Oppo广东移动通信有限公司 | Method and device for adjusting electric quantity of equipment, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN113115155A (en) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108886653B (en) | An earphone channel control method, related equipment and system | |
JP2005027319A (en) | Processor peripheral device using communication equipment | |
CN112653965B (en) | Audio playback control circuit and method, device, electronic device and storage medium thereof | |
CN114143660B (en) | Wireless earphone control method and device and electronic equipment | |
CN111770416B (en) | Speaker control method, device and electronic device | |
CN108683980B (en) | A kind of audio signal transmission method and mobile terminal | |
WO2020113525A1 (en) | Playing control method and apparatus, and computer-readable storage medium and electronic device | |
WO2021169869A1 (en) | Audio-playing apparatus, audio-playing method, and electronic device | |
CN109150221A (en) | A kind of wearable device master-slave switching method and Related product | |
CN108897516A (en) | A kind of wearable device method for regulation of sound volume and Related product | |
WO2024021736A1 (en) | Transmission method, apparatus, and system for bluetooth multimedia packet, and device | |
CN109688502B (en) | Control method, device and equipment | |
CN113115155B (en) | Wireless earphone control method, wireless earphone control device and electronic equipment | |
CN110058837B (en) | Audio output method and terminal | |
WO2017215658A1 (en) | Sound effect addition method and user terminal | |
JP2022539669A (en) | Mobile terminal and control method | |
CN113115179B (en) | Working state adjusting method and device | |
CN110198560B (en) | Power configuration method and terminal | |
CN112822001B (en) | Control method of electronic equipment and electronic equipment | |
CN109155803B (en) | Audio data processing method, terminal device and storage medium | |
CN111510824A (en) | Audio processing circuit, audio processing method, electronic device, and computer-readable storage medium | |
CN113038333B (en) | Bluetooth headset control method and device, electronic equipment and readable storage medium | |
US9277314B2 (en) | Method and apparatus for reducing current consumption of mobile terminal | |
CN113672191B (en) | Audio playback method and device | |
WO2024021735A1 (en) | Bluetooth multimedia packet transmission method and apparatus, device, system, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |