Control method, device, storage medium and system of audio playback device

By combining photoelectric sensing and acceleration sensing data, the consistency of the in-ear wearing direction of the audio playback device is determined, which solves the problem of low in-ear detection accuracy in the existing technology and improves the user experience.

CN113079434BInactive Publication Date: 2024-10-29JIANGSU ZMI ELECTRONICS TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110371875.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-07
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing audio playback equipment has low in-ear detection accuracy when the light is dark, and the capacitive sensor is easily affected by accidental touches, resulting in poor user experience.

Method used

By combining photoelectric sensing data and acceleration sensing data, it is determined whether the in-ear wearing directions of two audio playback devices are consistent, thereby controlling the working status of the equipment and improving the accuracy of in-ear detection.

Benefits of technology

It improves the in-ear detection accuracy of audio playback equipment, improves user experience, and reduces false detections caused by environmental factors and accidental touches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113079434B_ABST
    Figure CN113079434B_ABST
Patent Text Reader

Abstract

The present application discloses a control method, device, storage medium and system for an audio playback device, and relates to the field of electronic information technology. The scheme can improve the accuracy of in-ear detection, thereby improving the user experience. The method includes: when it is determined according to photoelectric sensor data that the first audio playback device and the second audio playback device are both in an in-ear wearing state, obtaining the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device; according to the acquired acceleration sensor data, determining whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device; when it is determined that the in-ear wearing direction of the first audio playback device and the in-ear wearing direction of the second audio playback device are consistent, controlling the first audio playback device and / or the second audio playback device to be in a normal working state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic information technology, and in particular, to a control method, device, storage medium and system for an audio playback device. Background Art

[0002] With the rapid popularization of new-generation consumer electronic devices such as smartphones and tablets, audio playback devices (such as Bluetooth headsets) have also developed rapidly, making in-ear detection a standard feature of most audio playback devices. The in-ear detection function can bring users a good user experience. When the user wears the audio playback device properly, the Bluetooth headset plays audio normally. When the user does not wear the audio playback device properly, the audio playback device stops playing audio.

[0003] Currently, optical sensors or capacitive sensors are generally used to detect whether the user is wearing the audio playback device properly. However, the method of using optical sensors for in-ear detection is easily affected by light intensity. When the light is dim, the accuracy of in-ear detection is low. When using capacitive sensors for in-ear detection, other parts of the user's body (such as hands) often accidentally touch the sensing area of ​​the capacitive sensor, affecting the accuracy of in-ear detection. Therefore, the user experience of audio playback devices with in-ear detection function is not very good. Summary of the invention

[0004] The present application provides a control method, device, storage medium and system for an audio playback device, which controls the working state of the audio device according to whether the in-ear wearing directions of two audio playback devices are consistent, thereby improving the accuracy of in-ear detection and thus improving the user experience.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for controlling an audio playback device, comprising: when it is determined based on photoelectric sensor data that both the first audio playback device and the second audio playback device are in an in-ear wearing state, acquiring acceleration sensor data of the first audio playback device and acceleration sensor data of the second audio playback device; thereafter, determining whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device based on the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device; and then, when it is determined that the in-ear wearing direction of the first audio playback device and the in-ear wearing direction of the second audio playback device are consistent, controlling the first audio playback device and / or the second audio playback device to be in a normal working state.

[0007] In the technical solution provided by the present application, when it is determined based on the photoelectric sensor data that the first audio playback device and the second audio playback device are both in the in-ear wearing state, the two audio playback devices are not directly controlled to be in a normal working state. Instead, it is determined based on the acceleration sensor data of the two audio playback devices that the in-ear wearing directions of the two audio playback devices are consistent. When the in-ear wearing directions of the two audio playback devices are consistent, the first audio playback device and / or the second audio playback device are controlled to be in a normal working state. Since the acceleration sensor data is less affected by environmental factors, on the basis of the photoelectric sensor data, combined with the acceleration sensor data, in-ear detection can be performed more accurately. Therefore, the technical solution provided by the present application can improve the accuracy of in-ear detection of audio playback devices, thereby improving the user experience of audio playback devices with in-ear detection functions.

[0008] Optionally, in a possible design, the above-mentioned “obtaining acceleration sensor data of the first audio playback device and acceleration sensor data of the second audio playback device” may include:

[0009] Acquire a first acceleration, a second acceleration, and a third acceleration acquired by a three-axis acceleration sensor in the first audio playback device, and acquire a fourth acceleration, a fifth acceleration, and a sixth acceleration acquired by a three-axis acceleration sensor in the second audio playback device;

[0010] Among them, the first acceleration and the fourth acceleration are accelerations in the first preset direction; the second acceleration and the fifth acceleration are accelerations in the second preset direction; the third acceleration and the sixth acceleration are accelerations in the third preset direction;

[0011] The above-mentioned “determining whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device” may include:

[0012] It is determined whether an in-ear wearing direction of the first audio playback device is consistent with an in-ear wearing direction of the second audio playback device according to the first acceleration, the second acceleration, the third acceleration, the fourth acceleration, the fifth acceleration, and the sixth acceleration.

[0013] Optionally, in another possible design manner, the above “determining whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the first acceleration, the second acceleration, the third acceleration, the fourth acceleration, the fifth acceleration, and the sixth acceleration” may include:

[0014] When the difference between the first acceleration and the fourth acceleration belongs to the first threshold range, the difference between the second acceleration and the fifth acceleration belongs to the second threshold range, and the difference between the third acceleration and the sixth acceleration belongs to the third threshold range, it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0015] Optionally, in another possible design, the control method of the audio playback device provided in the present application may further include:

[0016] When it is determined according to the photoelectric sensor data that the first audio playback device is in the in-ear wearing state, the first audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the second audio playback device is controlled to be in a normal working state;

[0017] Alternatively, when it is determined according to the photoelectric sensing data that the second audio playback device is in the in-ear wearing state, the second audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the first audio playback device is controlled to be in a normal working state.

[0018] Optionally, in another possible design, the control method of the audio playback device provided in the present application may further include:

[0019] Acquire first photoelectric sensor data collected by a photoelectric sensor in the first audio playback device, and determine whether the first audio playback device is in an in-ear wearing state according to the first photoelectric sensor data;

[0020] Acquire second photoelectric sensor data collected by a photoelectric sensor in the second audio playback device; and determine whether the second audio playback device is in an in-ear wearing state according to the second photoelectric sensor data.

[0021] Optionally, in another possible design, the above-mentioned “photoelectric sensor” may be an optical sensor or a capacitive sensor.

[0022] In a second aspect, the present application provides a control device for an audio playback device, comprising: an acquisition module, a control module, and a determination module;

[0023] A determination module, used to determine whether the first audio playback device and the second audio playback device are in an in-ear wearing state according to the photoelectric sensor data;

[0024] an acquisition module, configured to acquire acceleration sensor data of the first audio playback device and acceleration sensor data of the second audio playback device when the determination module determines that both the first audio playback device and the second audio playback device are in an in-ear wearing state;

[0025] The determination module is further used to determine whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device acquired by the acquisition module;

[0026] The control module is used to control the first audio playback device and / or the second audio playback device to be in a normal working state when the determination module determines that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0027] Optionally, in a possible design, the acquisition module is specifically used to: acquire a first acceleration, a second acceleration, and a third acceleration acquired by a three-axis acceleration sensor in the first audio playback device, and acquire a fourth acceleration, a fifth acceleration, and a sixth acceleration acquired by a three-axis acceleration sensor in the second audio playback device; the first acceleration and the fourth acceleration are accelerations in a first preset direction; the second acceleration and the fifth acceleration are accelerations in a second preset direction; the third acceleration and the sixth acceleration are accelerations in a third preset direction;

[0028] The determination module is specifically used to determine whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the first acceleration, the second acceleration, the third acceleration, the fourth acceleration, the fifth acceleration and the sixth acceleration.

[0029] Optionally, in another possible design, the determination module is further specifically used for:

[0030] When the difference between the first acceleration and the fourth acceleration belongs to the first threshold range, the difference between the second acceleration and the fifth acceleration belongs to the second threshold range, and the difference between the third acceleration and the sixth acceleration belongs to the third threshold range, it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0031] Optionally, in another possible design, the control module is further used for:

[0032] When it is determined according to the photoelectric sensor data that the first audio playback device is in the in-ear wearing state, the first audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the second audio playback device is controlled to be in a normal working state;

[0033] Alternatively, when it is determined according to the photoelectric sensing data that the second audio playback device is in the in-ear wearing state, the second audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the first audio playback device is controlled to be in a normal working state.

[0034] Optionally, in another possible design, the acquisition module is specifically used for:

[0035] Acquire first photoelectric sensor data collected by a photoelectric sensor in the first audio playback device and second photoelectric sensor data collected by a photoelectric sensor in the second audio playback device;

[0036] The determination module is specifically used to determine whether the first audio playback device is in the in-ear wearing state according to the first photoelectric sensor data, and determine whether the second audio playback device is in the in-ear wearing state according to the second photoelectric sensor data.

[0037] Optionally, in another possible design, the photoelectric sensor is an optical sensor or a capacitive sensor.

[0038] In a third aspect, the present application provides a control device for an audio playback device, comprising a memory, a processor, a bus and a communication interface; the memory is used to store computer execution instructions, and the processor is connected to the memory through a bus; when the control device of the audio playback device is running, the processor executes the computer execution instructions stored in the memory, so that the control device of the audio playback device executes the control method of the audio playback device provided in the first aspect above.

[0039] Optionally, the control device of the audio playback device may further include a transceiver, which is used to execute the steps of sending and receiving data, signaling or information, for example, obtaining photoelectric sensor data, under the control of the processor of the control device of the audio playback device.

[0040] Further optionally, the control device of the audio playback device may be a user terminal for implementing the control of the audio playback device, or may be a part of the device in the user terminal, for example, may be a chip system in the user terminal. The chip system is used to support the control device of the audio playback device to implement the functions involved in the first aspect, for example, receiving, sending or processing the data and / or information involved in the control method of the above-mentioned audio playback device. The chip system includes a chip, and may also include other discrete devices or circuit structures.

[0041] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes the control method of the audio playback device provided in the first aspect.

[0042] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the control method of the audio playback device provided in the first aspect.

[0043] In a sixth aspect, the present application provides a control system for an audio playback device, comprising a first audio playback device, a second audio playback device, and a control device for the audio playback device as provided in the second aspect; the control device for the audio playback device is communicatively connected to the first audio playback device and the second audio playback device, respectively.

[0044] It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the control device of the audio playback device, or may be packaged separately from the processor of the control device of the audio playback device, and this application does not limit this.

[0045] The descriptions of the second, third, fourth, fifth and sixth aspects of the present application may refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, fourth, fifth and sixth aspects may refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0046] In this application, the name of the control device of the above-mentioned audio playback device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.

[0047] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of the architecture of a control system of an audio playback device provided in an embodiment of the present application;

[0049] Figure 2 A flowchart of a method for controlling an audio playback device provided in an embodiment of the present application;

[0050] Figure 3 A flowchart of another method for controlling an audio playback device provided in an embodiment of the present application;

[0051] Figure 4 A flowchart of another method for controlling an audio playback device provided in an embodiment of the present application;

[0052] Figure 5 A flowchart of another method for controlling an audio playback device provided in an embodiment of the present application;

[0053] Figure 6 A flowchart of another method for controlling an audio playback device provided in an embodiment of the present application;

[0054] Figure 7 A schematic diagram of the structure of a control device for an audio playback device provided in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of the structure of another control device for an audio playback device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The control method, device, storage medium and system of the audio playback device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0057] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0058] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0059] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0060] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0061] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0062] With the rapid popularization of new-generation consumer electronic devices such as smartphones and tablets, audio playback devices (such as Bluetooth headsets) have also developed rapidly, making in-ear detection a standard feature of most audio playback devices. The in-ear detection function can bring users a good user experience. When the user wears the audio playback device properly, the Bluetooth headset plays audio normally. When the user does not wear the audio playback device properly, the audio playback device stops playing audio.

[0063] Currently, optical sensors or capacitive sensors are generally used to detect whether the user is wearing the audio playback device properly. However, the method of using optical sensors for in-ear detection is easily affected by light intensity. When the light is dim, the accuracy of in-ear detection is low. When using capacitive sensors for in-ear detection, other parts of the user's body (such as hands) often accidentally touch the sensing area of ​​the capacitive sensor, affecting the accuracy of in-ear detection. Therefore, the user experience of audio playback devices with in-ear detection function is not very good.

[0064] In view of the problems existing in the above-mentioned prior art, the embodiments of the present application provide a control method, device, storage medium and system for an audio playback device, which performs in-ear detection based on photoelectric sensor data and acceleration sensor data. Since acceleration sensor data is less affected by environmental factors, in-ear detection can be performed more accurately. Therefore, the technical solution provided by the present application can improve the accuracy of in-ear detection of an audio playback device, thereby improving the user experience of an audio playback device with an in-ear detection function.

[0065] The control method of the audio playback device provided in the embodiment of the present application can be applied to Figure 1 The control system of the audio playback device shown. Figure 1 The control system of the audio playback device may include a control device 01 of the audio playback device, a first audio playback device 02 and a second audio playback device 03; the control device 01 of the audio playback device is communicatively connected with the first audio playback device 02 and the second audio playback device 03 respectively.

[0066] The control device 01 of the audio playback device may be a user terminal. The user terminal may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a virtual reality device, and other different types of terminals.

[0067] The control device 01 of the audio playback device is used to control the working states of the first audio playback device 02 and the second audio playback device 03 .

[0068] In a possible implementation, the first audio playback device 02 and the second audio playback device 03 can obtain audio streams from the control device 01 of the audio playback device in a normal working state to achieve audio playback.

[0069] The following is combined with the above Figure 1 The control system of the audio playback device shown illustrates the control method of the audio playback device provided in the present application.

[0070] Reference Figure 2 , the control method of the audio playback device provided in the embodiment of the present application includes S201-S204:

[0071] S201. A control device of the audio playback device determines whether a first audio playback device and a second audio playback device are in an in-ear wearing state according to photoelectric sensor data.

[0072] In the embodiment of the present application, the control device of the audio playback device may first perform preliminary in-ear detection based on the photoelectric sensor data, so, optionally, in a possible implementation, the control device of the audio playback device may obtain the first photoelectric sensor data collected by the photoelectric sensor in the first audio playback device, and determine whether the first audio playback device is in the in-ear wearing state based on the first photoelectric sensor data. In addition, the control device of the audio playback device may obtain the second photoelectric sensor data collected by the photoelectric sensor in the second audio playback device, and determine whether the second audio playback device is in the in-ear wearing state based on the second photoelectric sensor data.

[0073] Optionally, in a possible implementation, the photoelectric sensor may be an optical sensor or a capacitive sensor. Of course, in practical applications, the photoelectric sensor may also be other types of photoelectric sensors, which are not limited in the embodiments of the present application.

[0074] For example, taking the case where a capacitive sensor is provided in the first audio playback device, the control device of the audio playback device can obtain the capacitance value detected by the capacitive sensor. When the first audio playback device is in the in-ear wearing state, the capacitance value will change. The control device of the audio playback device can determine whether the first audio playback device is in the in-ear wearing state based on the change in the capacitance value.

[0075] S202: When it is determined according to the photoelectric sensor data that both the first audio playback device and the second audio playback device are in an in-ear wearing state, the control device of the audio playback device obtains the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device.

[0076] The acceleration sensing data is data collected by the acceleration sensor, and optionally, in a possible implementation, the acceleration sensor may be a three-axis acceleration sensor. When it is determined according to the photoelectric sensing data that the first audio playback device and the second audio playback device are both in the in-ear wearing state, the control device of the audio playback device may obtain the first acceleration, the second acceleration, and the third acceleration collected by the three-axis acceleration sensor in the first audio playback device, and obtain the fourth acceleration, the fifth acceleration, and the sixth acceleration collected by the three-axis acceleration sensor in the second audio playback device.

[0077] The first acceleration and the fourth acceleration are accelerations in a first preset direction; the second acceleration and the fifth acceleration are accelerations in a second preset direction; and the third acceleration and the sixth acceleration are accelerations in a third preset direction.

[0078] Among them, the first preset direction, the second preset direction and the third preset direction can be three directions determined in advance by humans. Exemplarily, these three directions can correspond to the directions of the three axes in the three-axis acceleration sensor. For example, the three-axis acceleration sensor collects acceleration sensing data in the three directions of X, Y and Z axes, respectively, then the first acceleration and the fourth acceleration can be accelerations in the direction of the X axis, the second acceleration and the fifth acceleration can be accelerations in the direction of the Y axis, and the third acceleration and the sixth acceleration can be accelerations in the direction of the Z axis.

[0079] S203: The control device of the audio playback device determines whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device.

[0080] When the acceleration sensor in the audio playback device is a three-axis acceleration sensor, the control device of the audio playback device can determine whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device based on the acquired first acceleration, second acceleration, third acceleration, fourth acceleration, fifth acceleration and sixth acceleration.

[0081] Optionally, in a possible implementation, when the difference between the first acceleration and the fourth acceleration belongs to the first threshold range, the difference between the second acceleration and the fifth acceleration belongs to the second threshold range, and the difference between the third acceleration and the sixth acceleration belongs to the third threshold range, the control device of the audio playback device can determine that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0082] Among them, the first threshold range, the second threshold range and the third threshold range can be threshold ranges determined in advance by humans. The threshold ranges of the first threshold range, the second threshold range and the third threshold range can be equal or different. Exemplarily, the difference between the first acceleration and the fourth acceleration is calculated to be ΔX, the difference between the second acceleration and the fifth acceleration is ΔY, and the difference between the third acceleration and the sixth acceleration is ΔZ. If ΔX is within the first threshold range, ΔY is within the second threshold range, and ΔZ is within the third threshold range, the control device of the audio playback device can determine that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0083] It can be understood that the difference in the embodiment of the present application can be a negative value, so the first threshold range, the second threshold range and the third threshold range can include negative values.

[0084] S204: When it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the control device of the audio playback device controls the first audio playback device and / or the second audio playback device to be in a normal working state.

[0085] Since some users may only wear one audio playback device when using the audio playback device, optionally, in the control method of the audio playback device provided in the embodiment of the present application, the control device of the audio playback device may first control the first audio playback device to be in a normal working state when determining that the first audio playback device is in an in-ear wearing state, and then control the second audio playback device to be in a normal working state when determining that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device. Alternatively, the control device of the audio playback device may first control the second audio playback device to be in a normal working state when determining that the second audio playback device is in an in-ear wearing state, and then control the first audio playback device to be in a normal working state when determining that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0086] In the control method of the audio playback device provided in the embodiment of the present application, when it is determined based on the photoelectric sensor data that the first audio playback device and the second audio playback device are both in the in-ear wearing state, the two audio playback devices are not directly controlled to be in a normal working state. Instead, it is determined based on the acceleration sensor data of the two audio playback devices that the in-ear wearing directions of the two audio playback devices are consistent. When the in-ear wearing directions of the two audio playback devices are consistent, the first audio playback device and / or the second audio playback device are controlled to be in a normal working state. Since the acceleration sensor data is less affected by environmental factors, on the basis of the photoelectric sensor data, combined with the acceleration sensor data, in-ear detection can be performed more accurately. Therefore, the technical solution provided in the embodiment of the present application can improve the accuracy of in-ear detection of the audio playback device, thereby improving the user experience of the audio playback device with in-ear detection function.

[0087] Based on the above description, Figure 3 As shown, Figure 2 Step S201 in can be replaced by S2011-S2012:

[0088] S2011. The control device of the audio playback device obtains first photoelectric sensor data collected by a photoelectric sensor in the first audio playback device, and determines whether the first audio playback device is in an in-ear wearing state according to the first photoelectric sensor data;

[0089] S2012: The control device of the audio playback device obtains second photoelectric sensor data collected by a photoelectric sensor in the second audio playback device, and determines whether the second audio playback device is in an in-ear wearing state according to the second photoelectric sensor data.

[0090] Optional, such as Figure 4 As shown, Figure 2 Step S202 in can be replaced by S2021:

[0091] S2021. When it is determined based on the photoelectric sensing data that the first audio playback device and the second audio playback device are both in an in-ear wearing state, the control device of the audio playback device obtains a first acceleration, a second acceleration, and a third acceleration collected by the three-axis acceleration sensor in the first audio playback device, and obtains a fourth acceleration, a fifth acceleration, and a sixth acceleration collected by the three-axis acceleration sensor in the second audio playback device.

[0092] Correspondingly, such as Figure 4 As shown, Figure 2 Step S203 in can be replaced by S2031:

[0093] S2031. The control device of the audio playback device determines whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the first acceleration, the second acceleration, the third acceleration, the fourth acceleration, the fifth acceleration and the sixth acceleration.

[0094] Optional, such as Figure 5 As shown, Figure 4 Step S2031 in can be replaced by S2032:

[0095] S2032. When the difference between the first acceleration and the fourth acceleration belongs to the first threshold range, the difference between the second acceleration and the fifth acceleration belongs to the second threshold range, and the difference between the third acceleration and the sixth acceleration belongs to the third threshold range, the control device of the audio playback device determines that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0096] Optional, such as Figure 6 As shown, the embodiment of the present application also provides a method for controlling an audio playback device, including S601-S604:

[0097] S601: When the control device of the audio playback device determines, according to the photoelectric sensor data, that the first audio playback device is in the in-ear wearing state, the control device of the audio playback device controls the first audio playback device to be in a normal working state.

[0098] S602: When the control device of the audio playback device determines according to the photoelectric sensor data that the second audio playback device is in an in-ear wearing state, the control device of the audio playback device obtains the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device.

[0099] S603: The control device of the audio playback device determines whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device.

[0100] S604: When determining that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the control device of the audio playback device controls the second audio playback device to be in a normal working state.

[0101] It can be understood that in actual applications, if the control device of the audio playback device first determines that the second audio playback device is in the in-ear wearing state, it can first control the second audio playback device to be in a normal working state, and then determine whether the in-ear wearing directions of the two audio playback devices are consistent according to the acceleration sensor data, and then control the first audio playback device to be in a normal working state.

[0102] like Figure 7 As shown, the present application embodiment further provides a control device for an audio playback device. The control device for the audio playback device can be the control device of the above embodiment. Figure 1 The control device 01 of the audio playback device in the control system of the audio playback device involved comprises: an acquisition module 11 , a control module 12 and a determination module 13 .

[0103] The acquisition module 11 executes S202 in the above method embodiment, the control module 12 executes S204 in the above method embodiment, and the determination module 13 executes S201 and S203 in the above method embodiment.

[0104] Specifically, the determination module 13 is used to determine whether the first audio playback device and the second audio playback device are in an in-ear wearing state according to the photoelectric sensing data;

[0105] The acquisition module 11 is used to acquire the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device when the determination module 13 determines that the first audio playback device and the second audio playback device are both in the in-ear wearing state;

[0106] The determination module 13 is further used to determine whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device acquired by the acquisition module 11;

[0107] The control module 12 is used to control the first audio playback device and / or the second audio playback device to be in a normal working state when the determination module 13 determines that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0108] Optionally, in a possible implementation, the acquisition module 11 is specifically used to: acquire a first acceleration, a second acceleration, and a third acceleration acquired by a three-axis acceleration sensor in the first audio playback device, and acquire a fourth acceleration, a fifth acceleration, and a sixth acceleration acquired by a three-axis acceleration sensor in the second audio playback device; the first acceleration and the fourth acceleration are accelerations in a first preset direction; the second acceleration and the fifth acceleration are accelerations in a second preset direction; the third acceleration and the sixth acceleration are accelerations in a third preset direction;

[0109] The determination module 13 is specifically used to determine whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the first acceleration, the second acceleration, the third acceleration, the fourth acceleration, the fifth acceleration and the sixth acceleration.

[0110] Optionally, in another possible implementation, the determining module 13 is further specifically configured to:

[0111] When the difference between the first acceleration and the fourth acceleration belongs to the first threshold range, the difference between the second acceleration and the fifth acceleration belongs to the second threshold range, and the difference between the third acceleration and the sixth acceleration belongs to the third threshold range, it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

[0112] Optionally, in another possible implementation, the control module 12 is further configured to:

[0113] When it is determined according to the photoelectric sensor data that the first audio playback device is in the in-ear wearing state, the first audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the second audio playback device is controlled to be in a normal working state;

[0114] Alternatively, when it is determined according to the photoelectric sensing data that the second audio playback device is in the in-ear wearing state, the second audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the first audio playback device is controlled to be in a normal working state.

[0115] Optionally, in another possible implementation, the obtaining module 11 is specifically used for:

[0116] Acquire first photoelectric sensor data collected by a photoelectric sensor in the first audio playback device and second photoelectric sensor data collected by a photoelectric sensor in the second audio playback device;

[0117] The determination module 13 is specifically used to determine whether the first audio playback device is in the in-ear wearing state according to the first photoelectric sensor data, and determine whether the second audio playback device is in the in-ear wearing state according to the second photoelectric sensor data.

[0118] Optionally, in another possible implementation, the photoelectric sensor is an optical sensor or a capacitive sensor.

[0119] Optionally, the control device of the audio playback device may further include a storage module, and the storage module is used to store program codes and the like of the control device of the audio playback device.

[0120] like Figure 8 As shown, an embodiment of the present application also provides a control device for an audio playback device, including a memory 41, a processor 42, a bus 43 and a communication interface 44; the memory 41 is used to store computer execution instructions, and the processor 42 is connected to the memory 41 through the bus 43; when the control device of the audio playback device is running, the processor 42 executes the computer execution instructions stored in the memory 41, so that the control device of the audio playback device executes the control method of the audio playback device provided in the above embodiment.

[0121] In a specific implementation, as an embodiment, the processor 42 (42-1 and 42-2) may include one or more central processing units (CPUs), such as Figure 8 As an embodiment, the control device of the audio playback device may include multiple processors 42, such as Figure 8 42-1 and processor 42-2 are shown in FIG. Each CPU in these processors 42 may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor 42 here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0122] The memory 41 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 41 may exist independently and be connected to the processor 42 via a bus 43. The memory 41 may also be integrated with the processor 42.

[0123] In a specific implementation, the memory 41 is used to store the data in the present application and the computer execution instructions corresponding to the software program of the present application. The processor 42 can control various functions of the control device of the audio playback device by running or executing the software program stored in the memory 41 and calling the data stored in the memory 41.

[0124] The communication interface 44 uses any transceiver or other device for communicating with other devices or communication networks, such as a control system, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 44 may include a receiving unit to implement a receiving function, and a sending unit to implement a sending function.

[0125] The bus 43 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus 43 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0126] As an example, combining Figure 7 , the functions implemented by the acquisition module in the control device of the audio playback device are similar to Figure 8 The receiving unit in the audio player device implements the same function as the control device, and the determining module in the control device of the audio player device implements the same function as Figure 8 The functions implemented by the processor in the audio playback device are the same as those implemented by the storage module in the control device of the audio playback device. Figure 8 The memory in implements the same function.

[0127] The explanation of the relevant contents in this embodiment can refer to the above method embodiment, which will not be repeated here.

[0128] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0129] An embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes the control method of the audio playback device provided in the above embodiment.

[0130] Among them, the computer-readable storage medium, for example, can be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, RAM, ROM, an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In an embodiment of the present application, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.

[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for controlling an audio playback device, characterized in that: include: When it is determined according to the photoelectric sensor data that both the first audio playback device and the second audio playback device are in an in-ear wearing state, acquiring acceleration sensor data of the first audio playback device and acceleration sensor data of the second audio playback device; determining, according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device, whether an in-ear wearing direction of the first audio playback device is consistent with an in-ear wearing direction of the second audio playback device; When it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, controlling the first audio playback device and / or the second audio playback device to be in a normal working state; The method further comprises: When it is determined according to the photoelectric sensor data that the first audio playback device is in the in-ear wearing state, the first audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the second audio playback device is controlled to be in a normal working state; Alternatively, when it is determined according to the photoelectric sensing data that the second audio playback device is in the in-ear wearing state, the second audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the first audio playback device is controlled to be in a normal working state.

2. The control method of the audio playback device according to claim 1, characterized in that: The acquiring the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device includes: Acquire a first acceleration, a second acceleration, and a third acceleration acquired by a three-axis acceleration sensor in the first audio playback device, and acquire a fourth acceleration, a fifth acceleration, and a sixth acceleration acquired by a three-axis acceleration sensor in the second audio playback device; the first acceleration and the fourth acceleration are accelerations in a first preset direction; the second acceleration and the fifth acceleration are accelerations in a second preset direction; the third acceleration and the sixth acceleration are accelerations in a third preset direction; The determining, according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device, whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device includes: Determine whether an in-ear wearing direction of the first audio playback device is consistent with an in-ear wearing direction of the second audio playback device according to the first acceleration, the second acceleration, the third acceleration, the fourth acceleration, the fifth acceleration, and the sixth acceleration.

3. The control method of the audio playback device according to claim 2, characterized in that: The determining, according to the first acceleration, the second acceleration, the third acceleration, the fourth acceleration, the fifth acceleration, and the sixth acceleration, whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device includes: When the difference between the first acceleration and the fourth acceleration belongs to the first threshold range, the difference between the second acceleration and the fifth acceleration belongs to the second threshold range, and the difference between the third acceleration and the sixth acceleration belongs to the third threshold range, it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device.

4. The control method of the audio playback device according to claim 1, characterized in that: The method further comprises: Acquire first photoelectric sensor data collected by a photoelectric sensor in the first audio playback device, and determine whether the first audio playback device is in the in-ear wearing state according to the first photoelectric sensor data; Second photoelectric sensor data collected by a photoelectric sensor in the second audio playback device is obtained, and whether the second audio playback device is in the in-ear wearing state is determined according to the second photoelectric sensor data.

5. The control method of the audio playback device according to claim 4, characterized in that: The photoelectric sensor is an optical sensor or a capacitive sensor.

6. A control device for an audio playback device, characterized in that: include: A determination module, used to determine whether the first audio playback device and the second audio playback device are in an in-ear wearing state according to the photoelectric sensor data; an acquisition module, configured to acquire acceleration sensor data of the first audio playback device and acceleration sensor data of the second audio playback device when the determination module determines that both the first audio playback device and the second audio playback device are in the in-ear wearing state; The determining module is further used to determine whether the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device according to the acceleration sensor data of the first audio playback device and the acceleration sensor data of the second audio playback device acquired by the acquiring module; A control module, configured to control the first audio playback device and / or the second audio playback device to be in a normal working state when the determination module determines that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device; The control module is further configured to, when it is determined according to the photoelectric sensor data that the first audio playback device is in the in-ear wearing state, control the first audio playback device to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, control the second audio playback device to be in a normal working state; Alternatively, when it is determined according to the photoelectric sensing data that the second audio playback device is in the in-ear wearing state, the second audio playback device is controlled to be in a normal working state; when it is determined that the in-ear wearing direction of the first audio playback device is consistent with the in-ear wearing direction of the second audio playback device, the first audio playback device is controlled to be in a normal working state.

7. A control device for an audio playback device, characterized in that: It includes a memory, a processor, a bus and a communication interface; the memory is used to store computer-executable instructions, and the processor is connected to the memory via the bus; When the control device of the audio playback device is running, the processor executes the computer-executable instructions stored in the memory, so that the control device of the audio playback device executes the control method of the audio playback device according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when a computer executes the instructions, the computer executes the control method for an audio playback device as described in any one of claims 1 to 5.

9. A control system for an audio playback device, characterized in that: The device comprises a control device for an audio player as claimed in claim 6 or 7, a first audio player and a second audio player; the control device for the audio player is respectively connected to the first audio player and the second audio player in communication; The first audio playback device and the second audio playback device, in a normal working state, obtain an audio stream from the control device of the audio playback device to play the audio; The first audio player device and the second audio player device have built-in photoelectric sensors and acceleration sensors.

Citation Information

Patent Citations

  • TWS earphone audio output control method and device, equipment and medium

    CN111698607A