Earphone, control method thereof and storage medium
Patent Information
- Application Number
- CN202510325777.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2026-09-22
AI Technical Summary
[0003]然而,由于不同类型耳机的声音的外泄漏量会存在显著差异,声学的调校也会因此产生很大变化
[0041]In the headphone control method provided in this application embodiment, the headphone includes a shell and a sound-emitting part. The sound-emitting part is retractable relative to the shell to adjust the current wearing mode of the headphone. The method can obtain the retraction position of the sound-emitting part. Then, if the retraction position meets a first preset condition, the target acoustic parameter of the headphone is determined as a first acoustic parameter, wherein the first preset condition is used to characterize the current wearing mode of the headphone as an open-back wearing mode. If the retraction position meets a second preset condition, the target acoustic parameter of the headphone is determined as a second acoustic parameter, wherein the second preset condition is used to characterize the current wearing mode of the headphone as an in-ear wearing mode. Then, audio is output according to the target acoustic parameter. Thus, the target acoustic parameter of the headphone can be dynamically determined according to different wearing modes, and then audio can be output according to the target acoustic parameter. This can improve the sound quality of the audio output by the headphone in different wearing modes.
Smart Images

Figure CN122802829A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of headphone technology, and more particularly to a headphone, its control method, and storage medium. Background Technology
[0002] With the continuous development of technology, headphone varieties have become increasingly diverse. Based on the depth of insertion into the ear, they are mainly divided into in-ear headphones, shallow in-ear headphones, semi-in-ear headphones, and open-back headphones. Each type of headphone has its unique advantages and disadvantages, meeting the needs of different users.
[0003] However, due to significant differences in sound leakage between different types of headphones, the acoustic tuning also varies considerably. In related technologies, for in-ear, semi-in-ear, and open-back headphones, users typically adjust acoustic parameters such as EQ (Equalizer) and ANC (Active Noise Control), resulting in poor sound quality of the audio output from the headphones.
[0004] It is clear that improving the sound quality of headphone output is a technical issue worthy of attention. Summary of the Invention
[0005] In view of this, in order to solve some or all of the above-mentioned technical problems, embodiments of this application provide an earphone, a control method thereon, and a storage medium.
[0006] In a first aspect, embodiments of this application provide an earphone, the earphone including a housing and a sound-emitting part, the sound-emitting part being retractable relative to the housing to adjust the current wearing mode of the earphone; the method includes the following steps:
[0007] Obtain the extension / retraction position of the sound output part;
[0008] If the telescopic position meets the first preset condition, the target acoustic parameter of the earphone is determined as the first acoustic parameter, wherein the first preset condition is used to characterize the current wearing mode of the earphone as an open wearing mode;
[0009] If the telescopic position meets the second preset condition, the target acoustic parameter of the earphone is determined as the second acoustic parameter, wherein the second preset condition is used to characterize the current wearing mode of the earphone as an in-ear wearing mode;
[0010] Output audio according to the target acoustic parameters.
[0011] In one possible implementation, the headphones further include a detection device for detecting the extension / retraction position of the sound output section; and
[0012] The step of obtaining the extension / retraction position of the sound output part includes:
[0013] The extension / retraction position of the sound output part is determined based on the detection results of the detection device.
[0014] In one possible implementation, the detection device includes a plurality of Hall sensors and a magnetic element, wherein the plurality of Hall sensors are spaced apart within the housing along the extension and retraction direction of the sound-emitting portion, and the magnetic element is disposed on the sound-emitting portion; and
[0015] Determining the extension / retraction position of the sound output section based on the detection results of the detection device includes:
[0016] Based on the detection results of the detection device, the target Hall sensor triggered by the magnetic component is identified among the multiple Hall sensors.
[0017] The extension / retraction position of the sound output section is determined based on the target Hall sensor.
[0018] In one possible implementation, determining the target Hall sensor triggered by the magnetic element among a plurality of Hall sensors based on the detection results of the detection device includes:
[0019] Based on the detection results of the detection device, the Hall sensor with the largest magnetic flux is determined from among the multiple Hall sensors;
[0020] The Hall sensor with the largest magnetic flux is identified as the target Hall sensor triggered by the magnetic component.
[0021] In one possible implementation, after obtaining the extension / retraction position of the sound output section before outputting audio according to the target acoustic parameters, the method further includes:
[0022] If the telescopic position meets the third preset condition, the target acoustic parameter of the earphone is determined as the third acoustic parameter, wherein the third preset condition is used to characterize the current wearing mode of the earphone as a semi-in-ear wearing mode.
[0023] In one possible implementation, the target acoustic parameters include at least one of the following:
[0024] Active noise cancellation parameters, equalizer parameters.
[0025] In one possible implementation, the method further includes:
[0026] Obtain environmental noise information;
[0027] The target wearing mode is determined based on the environmental noise information;
[0028] Determine whether the current wearing mode matches the target wearing mode;
[0029] If the current wearing mode does not match the target wearing mode, the extension / retraction position of the sound output section is adjusted based on the target wearing mode.
[0030] In one possible implementation, determining the target wearing mode based on the environmental noise information includes:
[0031] If the external environment in which the headphones are located is determined to be a quiet environment based on the noise information, then the target wearing mode is determined to be an open-fit wearing mode.
[0032] If the external environment in which the headphones are located is determined to be a noisy environment based on the noise information, then the target wearing mode of the headphones is determined to be an in-ear wearing mode.
[0033] In one possible implementation, the method further includes:
[0034] Obtain user control commands, wherein the control commands are used to indicate the target wearing mode of the headphones;
[0035] Determine whether the current wearing mode matches the target wearing mode;
[0036] If the current wearing mode does not match the target wearing mode, the extension / retraction position of the sound output section is adjusted based on the target wearing mode.
[0037] Secondly, embodiments of this application provide an earphone, which includes a processing unit, a housing, and a sound output part;
[0038] The sound output section is retractable relative to the housing to adjust the current wearing mode of the headphones;
[0039] The processing unit is used to implement the method of any embodiment of the headphone control method of the first aspect described above.
[0040] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any embodiment of the headphone control method of the first aspect described above.
[0041] In the headphone control method provided in this application embodiment, the headphone includes a shell and a sound-emitting part. The sound-emitting part is retractable relative to the shell to adjust the current wearing mode of the headphone. The method can obtain the retraction position of the sound-emitting part. Then, if the retraction position meets a first preset condition, the target acoustic parameter of the headphone is determined as a first acoustic parameter, wherein the first preset condition is used to characterize the current wearing mode of the headphone as an open-back wearing mode. If the retraction position meets a second preset condition, the target acoustic parameter of the headphone is determined as a second acoustic parameter, wherein the second preset condition is used to characterize the current wearing mode of the headphone as an in-ear wearing mode. Then, audio is output according to the target acoustic parameter. Thus, the target acoustic parameter of the headphone can be dynamically determined according to different wearing modes, and then audio can be output according to the target acoustic parameter. This can improve the sound quality of the audio output by the headphone in different wearing modes. Attached Figure Description
[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0045] Figure 1 A flowchart illustrating a headphone control method provided in an embodiment of this application;
[0046] Figure 2 This is a schematic diagram of the structure of an earphone provided in an embodiment of this application;
[0047] Figure 3 A schematic diagram of the circuit structure of an earphone provided in an embodiment of this application;
[0048] Figure 4 A flowchart illustrating another headphone control method provided in an embodiment of this application;
[0049] Figure 5 This is a schematic diagram of the structure of an earphone provided in an embodiment of this application. Detailed Implementation
[0050] Various exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this application.
[0051] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of this application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they indicate the logical order between them.
[0052] It should also be understood that in this embodiment, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.
[0053] It should also be understood that any component, data or structure mentioned in the embodiments of this application can generally be understood as one or more unless explicitly defined or given contrary guidance in the context.
[0054] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.
[0055] It should also be understood that the description of the various embodiments in this application emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0056] The following description of at least one exemplary embodiment is merely illustrative and is not intended to limit the scope of this application or its application or use.
[0057] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0058] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0059] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0060] In order to solve the technical problem of how to improve the sound quality of the audio output of headphones in the prior art, this application provides headphones, their control method and storage medium, which can improve the sound quality of the audio output of headphones.
[0061] Figure 1 This is a flowchart illustrating a headphone control method provided in an embodiment of this application. This method can be applied to one or more electronic devices such as headphones, smartphones, laptops, desktop computers, portable computers, and servers. Furthermore, the execution entity of this method can be hardware or software. When the execution entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the execution entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are made here.
[0062] The headphones include a housing and a sound output section. The sound output section is retractable relative to the housing to adjust the current wearing mode of the headphones.
[0063] The aforementioned sound-emitting section can transmit the audio output from inside the headphones to the ear, and the sound-emitting section can extend and retract relative to the housing. For example, the sound-emitting section can extend and retract along the ear canal by moving linearly; or, the sound-emitting section can also extend and retract along the ear canal by rotating spirally.
[0064] Different wearing modes can represent different degrees of extension and retraction of the speaker relative to the housing. As an example, wearing modes (including current wearing mode and target wearing mode) can include one of the following: open-back wearing mode, in-ear wearing mode, and semi-in-ear wearing mode.
[0065] like Figure 1 As shown, the method specifically includes:
[0066] Step 101: Obtain the extension / retraction position of the sound output part.
[0067] In this embodiment, the telescopic position can represent the telescopic position of the sound part relative to the housing.
[0068] Step 102: If the telescopic position satisfies the first preset condition, the target acoustic parameter of the earphone is determined as the first acoustic parameter, wherein the first preset condition is used to characterize the current wearing mode of the earphone as an open wearing mode.
[0069] In this embodiment, different wearing modes can be set with different acoustic parameters. The first acoustic parameter can be an acoustic parameter set for the open-fit wearing mode. As an example, the acoustic parameters (including the target acoustic parameter, the first acoustic parameter, the second acoustic parameter, and the third acoustic parameter) can include at least one of the following: frequency response range, frequency response curve, sensitivity, impedance, etc.
[0070] Step 103: If the telescopic position satisfies the second preset condition, the target acoustic parameter of the earphone is determined as the second acoustic parameter, wherein the second preset condition is used to characterize the current wearing mode of the earphone as an in-ear wearing mode.
[0071] In this embodiment, the second acoustic parameter can be an acoustic parameter set for the in-ear wearing mode.
[0072] In some optional implementations of this embodiment, the target acoustic parameters include at least one of the following:
[0073] Active noise cancellation parameters, equalizer parameters.
[0074] It is understandable that the above-mentioned optional implementation methods allow for setting different active noise cancellation parameters, equalizer parameters, and other target acoustic parameters for different wearing modes. This can further improve the sound quality of the headphones' output audio in different wearing modes.
[0075] Step 104: Output audio according to the target acoustic parameters.
[0076] In this embodiment, after determining the target acoustic parameters, audio can be output according to the target acoustic parameters.
[0077] In some optional implementations of this embodiment, the earphone further includes a detection device for detecting the extension / retraction position of the sound output section.
[0078] Based on this, the extension / retraction position of the sound output part can be obtained in the following way:
[0079] The extension / retraction position of the sound output part is determined based on the detection results of the detection device.
[0080] The aforementioned detection device may include, for example, at least one of the following: an infrared sensor, an ultrasonic sensor, a laser sensor, a capacitive sensor, etc.
[0081] It is understood that, in the above-mentioned optional implementation methods, the extension and retraction position of the sound output part can be determined by the detection result of the detection device set in the headphones. Thus, the extension and retraction position of the sound output part can be determined more accurately, and the target acoustic parameters of the headphones can be determined more accurately, so as to further improve the sound quality of the headphone output audio.
[0082] In some application scenarios of the above-mentioned optional implementations, the detection device includes multiple Hall sensors and a magnetic component. The multiple Hall sensors are spaced apart within the housing along the extension / retraction direction of the sound-emitting portion. The magnetic component is disposed on the sound-emitting portion.
[0083] When multiple Hall sensors are disposed in the sound output section, the magnetic component can be disposed in the housing.
[0084] The aforementioned Hall sensors can be arranged linearly, or they can be arranged in a ring.
[0085] Based on this, the extension / retraction position of the sound output section can be determined using the detection results from the detection device as follows:
[0086] First, based on the detection results of the detection device, the target Hall sensor that is triggered by the magnetic component is identified among the multiple Hall sensors.
[0087] The target Hall sensor may be one of the multiple Hall sensors that is triggered by the magnetic element.
[0088] Then, the extension / retraction position of the sound output section is determined based on the target Hall sensor.
[0089] Here, since the magnetic component can generate a magnetic field, the detection device can use the electrical signals from multiple Hall sensors as the detection result. The electrical signal represents the magnetic field information detected by the Hall sensor. Therefore, based on this detection result, the target Hall sensor triggered by the magnetic component can be identified among the multiple Hall sensors.
[0090] As an example, such as Figure 2As shown, the detection device includes n Hall sensors. The sound output part can move along the ear canal. The n Hall sensors are represented by H1, H2, ..., Hn. Therefore, when the magnetic component is directly above Hall sensor H1, Hall sensor H1 is sensed (i.e., Hall sensor H1 is the target Hall sensor), triggering an electrical signal W1. W1 represents one way of wearing the headphones. Similarly, with n Hall sensors serving as target Hall sensors, there can be Wn ways of wearing the headphones, corresponding to n wearing modes.
[0091] Here, a triggered electrical signal can be represented by 1, and an untriggered electrical signal by 0. Therefore, Table 1 can be used to represent the linkage relationship between H, S, and W:
[0092] Table 1:
[0093]
[0094]
[0095] It is understandable that, in the above application scenarios, using a Hall sensor to determine the extension and retraction position of the sound output section can more accurately determine the extension and retraction position of the sound output section, and thus more accurately determine the target acoustic parameters of the headphones, so as to further improve the sound quality of the headphone output audio.
[0096] In some of the above application scenarios, the target Hall sensor triggered by the magnetic component among multiple Hall sensors can be determined based on the detection results of the detection device in the following manner:
[0097] The first step is to determine the Hall sensor with the largest magnetic flux from among the multiple Hall sensors based on the detection results of the detection device.
[0098] The second step is to identify the Hall sensor with the largest magnetic flux as the target Hall sensor that is triggered by the magnetic component.
[0099] Understandably, in the above situation, determining the wearing mode of the headphones by detecting the magnetic flux of each Hall sensor can improve the accuracy of determining the target acoustic parameters, which can further improve the sound quality of the headphone output audio.
[0100] In some optional implementations of this embodiment, before outputting audio according to the target acoustic parameters, after obtaining the extension / retraction position of the sound output part, the following steps may also be performed:
[0101] If the telescopic position meets the third preset condition, the target acoustic parameter of the earphone is determined as the third acoustic parameter, wherein the third preset condition is used to characterize the current wearing mode of the earphone as a semi-in-ear wearing mode.
[0102] The third acoustic parameter can be an acoustic parameter set for the semi-in-ear wearing mode.
[0103] It is understandable that among the above-mentioned optional implementation methods, different target acoustic parameters can be set for open-ear, semi-in-ear, and in-ear wearing modes, thereby improving the matching degree between the headphone output audio and different wearing modes.
[0104] In some optional implementations of this embodiment, the following steps may also be performed:
[0105] The first step is to obtain environmental noise information.
[0106] The environmental noise information may include at least one of the following: noise frequency, noise type (e.g., whether it is wind noise), and noise loudness.
[0107] The second step is to determine the target's wearing mode based on the environmental noise information.
[0108] Here, different noise environment information can correspond to different target wearing modes. For example, noise environment information 1 can correspond to target wearing mode 1 (e.g., in-ear wearing mode), noise environment information 2 can correspond to target wearing mode 2 (e.g., semi-in-ear wearing mode), and noise environment information 3 can correspond to target wearing mode 3 (e.g., open-back wearing mode).
[0109] The third step is to determine whether the current wearing mode matches the target wearing mode.
[0110] As an example, if the current wearing mode is the same as the target wearing mode, it can be determined that the current wearing mode matches the target wearing mode. If the current wearing mode is different from the target wearing mode, it can be determined that the current wearing mode does not match the target wearing mode.
[0111] Fourth step: If the current wearing mode does not match the target wearing mode, adjust the extension and retraction position of the sound output part based on the target wearing mode.
[0112] Here, the extension and retraction position of the sound output part can be adjusted based on a preset formula or a corresponding relationship table, according to the target wearing mode.
[0113] It is understood that, in the above-mentioned optional implementation methods, the target wearing mode can be automatically matched based on environmental noise information, and the extension / retraction position of the sound output part can be adjusted. This allows for automatic adjustment of the headphone's wearing mode and target acoustic parameters, further improving the matching degree between the headphone's output audio and environmental noise information.
[0114] In some application scenarios of the above-mentioned optional implementation methods, the target wearing mode can be determined based on the environmental noise information in the following way:
[0115] The first step is to determine that the external environment in which the headphones are located is a quiet environment based on the noise information, and then determine that the target wearing mode is an open-back wearing mode.
[0116] The second step is to determine that the external environment in which the headphones are located is a noisy environment based on the noise information, and then determine that the target wearing mode of the headphones is the in-ear wearing mode.
[0117] It is understandable that in the above application scenarios, in a quiet environment, the headphones can automatically switch to open-ear mode and output audio according to the first acoustic parameter. In a noisy environment, the headphones can automatically switch to in-ear mode and output audio according to the second acoustic parameter. Thus, the sound quality of the headphones can be automatically adjusted in quiet and noisy environments.
[0118] In some optional implementations of the embodiments, the following steps may also be performed:
[0119] The first step is to obtain the user's control commands.
[0120] The control command is used to indicate the target wearing mode of the headphones.
[0121] The second step is to determine whether the current wearing mode matches the target wearing mode.
[0122] As an example, if the current wearing mode is the same as the target wearing mode, it can be determined that the current wearing mode matches the target wearing mode. If the current wearing mode is different from the target wearing mode, it can be determined that the current wearing mode does not match the target wearing mode.
[0123] Third, if the current wearing mode does not match the target wearing mode, adjust the extension and retraction position of the sound output part based on the target wearing mode.
[0124] Here, the extension and retraction position of the sound output part can be adjusted based on a preset formula or a corresponding relationship table, according to the target wearing mode.
[0125] It is understood that, in the above-mentioned optional implementation methods, the user can manually match the target wearing mode and adjust the extension and retraction position of the sound output part through user control commands. This allows for manual adjustment of the headphone's wearing mode and target acoustic parameters, further improving user satisfaction with the headphone's audio output.
[0126] The headphone control method provided in this application includes a housing and a sound-emitting part, wherein the sound-emitting part is retractable relative to the housing to adjust the current wearing mode of the headphone. The method acquires the retraction position of the sound-emitting part. If the retraction position satisfies a first preset condition, the target acoustic parameter of the headphone is determined as a first acoustic parameter, wherein the first preset condition indicates that the current wearing mode of the headphone is an open-back mode. If the retraction position satisfies a second preset condition, the target acoustic parameter of the headphone is determined as a second acoustic parameter, wherein the second preset condition indicates that the current wearing mode of the headphone is an in-ear mode. Then, audio is output according to the target acoustic parameter. Therefore, the target acoustic parameter of the headphone can be dynamically determined according to different wearing modes, and audio can be output according to the target acoustic parameter. This improves the sound quality of the audio output by the headphone in different wearing modes.
[0127] The following describes the embodiments of this application by way of example. However, it should be noted that the following content is only used to understand the technical solutions of the embodiments of this application and does not constitute a limitation on the protection scope of the embodiments of this application.
[0128] With the continuous development of technology, headphone varieties have become increasingly diverse. Based on the depth of insertion into the ear, they are mainly divided into in-ear headphones, shallow in-ear headphones, semi-in-ear headphones, and open-back headphones. Each type of headphone has its unique advantages and disadvantages, meeting the needs of different users. However, different users may have various different wearing styles for the same model of headphones.
[0129] Due to variations in the depth of the earphone insertion, the amount of sound leakage can differ significantly, necessitating substantial changes in acoustic parameter adjustments. Therefore, the EQ (Equalizer) and ANC (Active Noise Control) acoustic parameters for headphones with different wearing styles—in-ear, semi-in-ear, and open-back—will differ considerably. Consequently, it is necessary to set multiple acoustic EQ and ANC parameters according to the depth of the ear insertion.
[0130] Currently, headphones compatible with multiple in-ear modes require users to manually adjust and select appropriate acoustic parameters, which is not only cumbersome but also prone to errors. Therefore, how to achieve automatic adaptation of these multi-in-ear headphones to various acoustic EQ and ANC parameters has become a pressing technical problem to be solved.
[0131] In view of this, this solution can provide a multi-in-ear compatible headphone with automatic adaptation to various acoustic EQ and ANC parameters.
[0132] In this solution, the method for sensing location distance using the HALL (Hall Sensor) is as follows:
[0133] like Figure 2 As shown, the headphones are divided into left and right ears, with identical structures for both. The headphones include a PCB (Printed Circuit Board), FPC (Flexible Printed Circuit), SPK (Speaker), a movable sound outlet assembly (i.e., the aforementioned sound outlet section), magnetic components, HALL sensors, and multiple MICs (microphones). The multiple HALL sensors can be represented by H1, H2...Hn, and the movable sound outlet assembly's distance of movement towards the ear canal is represented by S1, S2...Sn.
[0134] The magnetic component can be fixed to the movable sound outlet assembly. The entire assembly can move forward and backward manually or electrically. When the magnetic component is directly above the Hall sensor H1, H1 is sensed and triggered to generate an electrical signal W1. W1 represents one way of wearing headphones, and so on, there can be Wn ways of wearing headphones.
[0135] The electrical signal that the HALL is triggered by sensing is represented by 1, and the state that is not triggered by sensing is represented by 0. The linkage relationship between H, S, and W can be represented by Table 1 above.
[0136] Therefore, the headphones can automatically switch EQ and ANC parameters based on the location sensed by the hall.
[0137] like Figure 3 As shown, Figure 3 This is a schematic diagram of the circuit structure of an earphone provided in an embodiment of this application. The circuit structures of the left and right ears are identical. The earphone circuit mainly includes components such as a BT SOC (Bluetooth System on Chip), a power supply, multiple external microphones, an antenna, a speaker, and multiple HALL sensors.
[0138] Automatic control methods of EQ and ANC, such as Figure 4As shown, after the headphones (left and right ears) are powered on, they first detect the trigger status of the earpieces via GPIO (General Purpose Input / Output) (1 indicates triggering, 0 indicates no triggering). If a trigger is detected, the BT SOC can operate using the corresponding preset EQ and ANC parameters. For example, preset W1 is for in-ear wearing mode, preset W2 is for semi-in-ear wearing mode, and preset Wn is for open-back in-ear headphone mode. Users can then automatically identify and freely switch between these three headphone modes.
[0139] It should be noted that, in addition to the contents described above, this embodiment may also include the technical features described in the above embodiments, thereby achieving the technical effect of the headphone control method shown above. Please refer to the above description for details. For the sake of brevity, it will not be elaborated here.
[0140] This solution achieves precise sensing of the distance between the headphone's sound outlet and the ear canal by using multiple Hall sensors and magnetic components (such as magnets). Based on the sensed distance, it automatically selects the corresponding acoustic EQ and ANC parameters, eliminating the need for manual adjustment by the user. This simple and accurate operation improves the headphone's sound quality and user experience, meeting the needs of different users regarding wearing comfort and acoustic parameters. By accurately sensing the distance between the sound outlet and the ear canal through multiple Hall sensors, it can automatically identify the wearing mode (corresponding to the degree of in-ear insertion) and automatically adjust the EQ and / or ANC parameters.
[0141] Figure 5 This is a schematic diagram of the structure of an earphone provided in an embodiment of this application. Figure 5 The earphone shown includes a processing unit 20, a housing 10, and a sound output section 30;
[0142] The sound output section 30 is retractable relative to the housing 10 to adjust the current wearing mode of the headphones;
[0143] The processing unit 20 is used to implement the headphone control method described above. For example, it includes:
[0144] Obtain the extension / retraction position of the sound output part;
[0145] If the telescopic position meets the first preset condition, the target acoustic parameter of the earphone is determined as the first acoustic parameter, wherein the first preset condition is used to characterize the current wearing mode of the earphone as an open wearing mode;
[0146] If the telescopic position meets the second preset condition, the target acoustic parameter of the earphone is determined as the second acoustic parameter, wherein the second preset condition is used to characterize the current wearing mode of the earphone as an in-ear wearing mode;
[0147] Output audio according to the target acoustic parameters.
[0148] This application also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0149] One or more programs in the storage medium can be executed by one or more processors to implement the headphone control method described above, which is executed on the electronic device side.
[0150] The processor described above is used to execute the headphone control program stored in the memory to implement the following steps of the headphone control method executed on the electronic device side:
[0151] Obtain the extension / retraction position of the sound output part;
[0152] If the telescopic position meets the first preset condition, the target acoustic parameter of the earphone is determined as the first acoustic parameter, wherein the first preset condition is used to characterize the current wearing mode of the earphone as an open wearing mode;
[0153] If the telescopic position meets the second preset condition, the target acoustic parameter of the earphone is determined as the second acoustic parameter, wherein the second preset condition is used to characterize the current wearing mode of the earphone as an in-ear wearing mode;
[0154] Output audio according to the target acoustic parameters.
[0155] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0156] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0157] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0158] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for controlling headphones, characterized in that, The earphones include a housing and a sound-emitting part, the sound-emitting part being retractable relative to the housing to adjust the current wearing mode of the earphones; the method includes: Obtain the extension / retraction position of the sound output part; If the telescopic position meets the first preset condition, the target acoustic parameter of the earphone is determined as the first acoustic parameter, wherein the first preset condition is used to characterize the current wearing mode of the earphone as an open wearing mode; If the telescopic position meets the second preset condition, the target acoustic parameter of the earphone is determined as the second acoustic parameter, wherein the second preset condition is used to characterize the current wearing mode of the earphone as an in-ear wearing mode; Output audio according to the target acoustic parameters.
2. The method according to claim 1, characterized in that, The headphones also include a detection device for detecting the extension and retraction position of the sound output section; as well as The step of obtaining the extension / retraction position of the sound output part includes: The extension / retraction position of the sound output part is determined based on the detection results of the detection device.
3. The method according to claim 2, characterized in that, The detection device includes multiple Hall sensors and a magnetic component. The multiple Hall sensors are spaced apart inside the housing along the extension and retraction direction of the sound output section, and the magnetic component is disposed on the sound output section. as well as Determining the extension / retraction position of the sound output section based on the detection results of the detection device includes: Based on the detection results of the detection device, the target Hall sensor triggered by the magnetic component is identified among the multiple Hall sensors. The extension / retraction position of the sound output section is determined based on the target Hall sensor.
4. The method according to claim 3, characterized in that, The step of determining the target Hall sensor triggered by the magnetic component among multiple Hall sensors based on the detection results of the detection device includes: Based on the detection results of the detection device, the Hall sensor with the largest magnetic flux is determined from among the multiple Hall sensors; The Hall sensor with the largest magnetic flux is identified as the target Hall sensor triggered by the magnetic component.
5. The method according to any one of claims 1-4, characterized in that, Before outputting audio according to the target acoustic parameters, and after obtaining the extension / retraction position of the sound output section, the method further includes: If the telescopic position meets the third preset condition, the target acoustic parameter of the earphone is determined as the third acoustic parameter, wherein the third preset condition is used to characterize the current wearing mode of the earphone as a semi-in-ear wearing mode.
6. The method according to any one of claims 1-4, characterized in that, The target acoustic parameters include at least one of the following: Active noise cancellation parameters, equalizer parameters.
7. The method according to any one of claims 1-4, characterized in that, The method further includes: Obtain environmental noise information; The target wearing mode is determined based on the environmental noise information; Determine whether the current wearing mode matches the target wearing mode; If the current wearing mode does not match the target wearing mode, the extension / retraction position of the sound output section is adjusted based on the target wearing mode.
8. The method according to claim 7, characterized in that, Determining the target wearing mode based on the environmental noise information includes: If the external environment in which the headphones are located is determined to be a quiet environment based on the noise information, then the target wearing mode is determined to be an open-fit wearing mode. If the external environment in which the headphones are located is determined to be a noisy environment based on the noise information, then the target wearing mode of the headphones is determined to be an in-ear wearing mode.
9. The method according to any one of claims 1-4, characterized in that, The method further includes: Obtain user control commands, wherein the control commands are used to indicate the target wearing mode of the headphones; Determine whether the current wearing mode matches the target wearing mode; If the current wearing mode does not match the target wearing mode, the extension / retraction position of the sound output section is adjusted based on the target wearing mode.
10. An earphone, characterized in that, The headphones include a processing unit, a housing, and a sound output section; The sound output section is retractable relative to the housing to adjust the current wearing mode of the headphones; The processing unit is used to implement the control method of the headphones according to any one of claims 1-9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the headphone control method according to any one of claims 1-9.