Earphone parameter adjustment method and device, computer device and readable storage medium

CN123021020APending Publication Date: 2026-10-30MERRY ELECTRONICS (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510521188.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

但也有隔音效果差,主动降噪效果也较差,无法有效降低环境噪声

Benefits of technology

[0039]上述耳机参数调整方法、装置、计算机设备、计算机可读存储介质和计算机程序产品,通过获取目标对象在佩戴耳机过程中气压检测器检测到的多个气压值。可以提高识别佩戴状态的准确性,避免单次测量误差。获取耳机对应的气压阈值。可以适应不同用户的佩戴习惯和需求。基于多个气压值和气压阈值,确定耳机的当前佩戴模式;当前佩戴模式表征目标对象佩戴的耳机是否拆卸耳帽。能够自动识别当前的佩戴模式(入耳式或半入耳式),无需用户手动操作。获取当前佩戴模式对应的目标音频参数,将耳机的当前音频参数调整为目标音频参数。通过调整音频参数,耳机可以在不同佩戴模式下提供更舒适的听觉体验,减少长时间佩戴的不适感。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123021020A_ABST
    Figure CN123021020A_ABST
Patent Text Reader

Abstract

The application relates to an earphone parameter adjustment method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a plurality of air pressure values detected by an air pressure detector during the process in which a target object wears an earphone; acquiring an air pressure threshold value corresponding to the earphone; determining a current wearing mode of the earphone based on the plurality of air pressure values and the air pressure threshold value; the current wearing mode represents whether the earphone worn by the target object is disassembled from an ear cap; acquiring a target audio parameter corresponding to the current wearing mode, and adjusting a current audio parameter of the earphone to the target audio parameter. The method can automatically identify and adjust the wearing mode, and adjust the audio parameter according to different modes, so that the advantages of in-ear and semi-in-ear types can be realized on the same earphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for adjusting headphone parameters. Background Technology

[0002] Currently, Bluetooth headphones on the market can be broadly categorized into in-ear and semi-in-ear types. In-ear headphones offer good passive noise isolation and are easy to adjust for active noise cancellation. The combination of passive noise cancellation and active noise cancellation (ANC) provides excellent results, effectively reducing ambient noise in noisy environments. They also offer advantages such as low sound leakage, no bass loss, and full, detailed sound quality. However, their deep insertion into the ear canal can cause discomfort and make them unsuitable for extended wear. They are particularly unsuitable for some individuals with otitis media. Semi-in-ear headphones offer high wearing comfort, eliminating ear canal pressure. They provide excellent environmental awareness, allowing for uninterrupted communication. However, they also have disadvantages such as poor sound isolation, weaker active noise cancellation, and ineffective reduction of ambient noise. They also suffer from sound leakage and significant low-frequency attenuation.

[0003] However, in-ear and semi-in-ear headphones on the market are independent of each other, and users can only choose one or buy two pairs. Buying one pair of headphones cannot cover all user scenarios, while buying two pairs increases the cost and takes up more space. Therefore, there is an urgent need for a method that can combine the advantages of both in-ear and semi-in-ear headphones in a single pair. Summary of the Invention

[0004] Therefore, it is necessary to provide a headphone parameter adjustment method, device, computer equipment, computer-readable storage medium, and computer program product that can be compatible with the advantages of in-ear and semi-in-ear headphones, addressing the aforementioned technical problems.

[0005] In a first aspect, this application provides a method for adjusting headphone parameters, applied to headphones, the headphones being equipped with a barometric pressure detector and detachable ear tips, the method comprising:

[0006] Acquire multiple air pressure values ​​detected by the air pressure detector during the process of the target object wearing the headphones;

[0007] Obtain the air pressure threshold corresponding to the headphones;

[0008] Based on the multiple air pressure values ​​and air pressure thresholds, the current wearing mode of the headphones is determined; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed.

[0009] Obtain the target audio parameters corresponding to the current wearing mode, and adjust the current audio parameters of the headphones to the target audio parameters.

[0010] In one embodiment, obtaining the air pressure threshold corresponding to the headphones includes:

[0011] In response to a barometric pressure test request for a target object, the device enters a monitoring state for the headphones. In this monitoring state, it acquires multiple first barometric pressure values ​​detected by the barometric pressure detector each time the target object wears the headphones in an in-ear configuration (where in-ear refers to the wearing mode with the ear tips attached). It also acquires multiple second barometric pressure values ​​detected by the barometric pressure detector each time the target object wears the headphones in a semi-in-ear configuration (where the ear tips are removed). Based on the multiple first barometric pressure values ​​and the multiple second barometric pressure values, it determines the corresponding barometric pressure threshold for the headphones.

[0012] In one embodiment, determining the air pressure threshold corresponding to the headphones based on the plurality of first air pressure values ​​and the plurality of second air pressure values ​​includes:

[0013] A first pressure difference is determined among the plurality of first pressure values, between the minimum first pressure value and the maximum first pressure value; a first average pressure is determined based on the first pressure difference corresponding to each wear; a second pressure difference is determined among the plurality of second pressure values, between the minimum second pressure value and the maximum second pressure value; a second average pressure is determined based on the second pressure difference corresponding to each wear; and an air pressure threshold corresponding to the earphone is determined based on the first average pressure and the second average pressure.

[0014] In one embodiment, the current wearing mode includes in-ear and semi-in-ear modes, wherein the in-ear mode is the wearing mode with the ear tips attached, and the semi-in-ear mode is the wearing mode with the ear tips removed; determining the current wearing mode of the headphones based on the plurality of air pressure values ​​and air pressure thresholds includes:

[0015] A target pressure difference is determined between the maximum and minimum pressure values ​​among the plurality of pressure values; the target pressure difference is compared with the pressure threshold; if the target pressure difference is greater than the pressure threshold, the earphone is determined to be in a detachable wearing mode; if the target pressure difference is not greater than the pressure threshold, the earphone is determined to be in a non-detachable wearing mode.

[0016] In one embodiment, the target audio parameters include in-ear audio parameters and semi-in-ear audio parameters; obtaining the target audio parameters corresponding to the current wearing mode includes:

[0017] If the current wearing mode is when the headphones are in a detachable wearing mode, the in-ear audio parameters are retrieved from the headphones' internal storage; if the current wearing mode is when the headphones are in a non-detachable wearing mode, the semi-in-ear audio parameters are retrieved from the headphones' internal storage.

[0018] In one embodiment, after the target removes the headphones, the current audio parameters of the headphones are adjusted to the semi-in-ear audio parameters.

[0019] Secondly, this application also provides a headphone parameter adjustment device, including:

[0020] The first acquisition module is used to acquire multiple air pressure values ​​detected by the air pressure detector during the process of the target object wearing the headphones;

[0021] The second acquisition module is used to acquire the air pressure threshold corresponding to the earphone;

[0022] The determining module is used to determine the current wearing mode of the headphones based on the plurality of air pressure values ​​and air pressure thresholds; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed.

[0023] The first adjustment module is used to obtain the target audio parameters corresponding to the current wearing mode and adjust the current audio parameters of the headphones to the target audio parameters.

[0024] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0025] Acquire multiple air pressure values ​​detected by the air pressure detector during the process of the target object wearing the headphones;

[0026] Obtain the air pressure threshold corresponding to the headphones;

[0027] Based on the multiple air pressure values ​​and air pressure thresholds, the current wearing mode of the headphones is determined; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed.

[0028] Obtain the target audio parameters corresponding to the current wearing mode, and adjust the current audio parameters of the headphones to the target audio parameters.

[0029] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0030] Acquire multiple air pressure values ​​detected by the air pressure detector during the process of the target object wearing the headphones;

[0031] Obtain the air pressure threshold corresponding to the headphones;

[0032] Based on the multiple air pressure values ​​and air pressure thresholds, the current wearing mode of the headphones is determined; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed.

[0033] Obtain the target audio parameters corresponding to the current wearing mode, and adjust the current audio parameters of the headphones to the target audio parameters.

[0034] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0035] Acquire multiple air pressure values ​​detected by the air pressure detector during the process of the target object wearing the headphones;

[0036] Obtain the air pressure threshold corresponding to the headphones;

[0037] Based on the multiple air pressure values ​​and air pressure thresholds, the current wearing mode of the headphones is determined; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed.

[0038] Obtain the target audio parameters corresponding to the current wearing mode, and adjust the current audio parameters of the headphones to the target audio parameters.

[0039] The aforementioned headphone parameter adjustment method, device, computer equipment, computer-readable storage medium, and computer program product acquire multiple air pressure values ​​detected by a barometer during headphone wearing by the target object. This improves the accuracy of identifying the wearing status and avoids single-measurement errors. It also acquires the corresponding air pressure threshold for the headphones. This allows for adaptation to different users' wearing habits and needs. Based on multiple air pressure values ​​and the air pressure threshold, the current wearing mode of the headphones is determined; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed. It can automatically identify the current wearing mode (in-ear or semi-in-ear) without manual operation by the user. It acquires the target audio parameters corresponding to the current wearing mode and adjusts the current audio parameters of the headphones to the target audio parameters. By adjusting the audio parameters, the headphones can provide a more comfortable listening experience in different wearing modes, reducing discomfort during prolonged wear.

[0040] Through the four steps described above, the headphones can automatically recognize and adjust the wearing mode, and adjust the audio parameters according to different modes, thus combining the advantages of both in-ear and semi-in-ear headphones in the same pair. This method not only saves users purchase costs and carrying space, but also improves the flexibility of headphone use and the user experience. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is an application environment diagram of the headphone parameter adjustment method in one embodiment;

[0043] Figure 2 This is a flowchart illustrating a headphone parameter adjustment method in one embodiment;

[0044] Figure 3 This is a schematic diagram of the headphones with detachable ear tips installed in one embodiment;

[0045] Figure 4 This is a schematic diagram of an embodiment where the headphones are not fitted with detachable ear tips;

[0046] Figure 5 This is a schematic diagram of a clip in the earphone in one embodiment;

[0047] Figure 6 This is a schematic diagram of a barometric pressure detector in an earphone in one embodiment;

[0048] Figure 7 This is a structural block diagram of the headphone parameter adjustment device in one embodiment;

[0049] Figure 8 This is a structural block diagram of the headphone parameter adjustment device in another embodiment;

[0050] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0052] The headphone parameter adjustment method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed in the cloud or on another network server. Terminal 102 generates a headphone parameter adjustment request and sends it to server 104, so that server 104 obtains the target audio parameters corresponding to the current wearing mode and adjusts the headphone's current audio parameters to the target audio parameters. In this application, terminal 102 is a novel type of headphone capable of automatically switching between different working modes (such as in-ear and semi-in-ear) according to the user's wearing method and environmental needs. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0053] In one exemplary embodiment, such as Figure 2 As shown, a method for adjusting headphone parameters is provided, which can be applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps 202 to 208. Wherein:

[0054] The headphones described in this application represent a novel headphone design capable of automatically switching between different operating modes (such as in-ear and semi-in-ear) based on the user's wearing style and environmental needs. These headphones utilize a built-in barometric pressure sensor to detect the wearing status and adjust audio parameters accordingly to optimize sound quality and wearing comfort.

[0055] A barometric pressure sensor is a sensor inside the headphones used to detect changes in air pressure when the headphones are worn. When a user wears the headphones, the barometric pressure sensor measures the changes in air pressure inside the ear canal. Based on the magnitude of the air pressure change, the headphones can determine whether the user has selected in-ear or semi-in-ear wearing mode.

[0056] Detachable ear tips are a component of headphones, typically used in in-ear headphone designs. In this application, the ear tip design allows users to choose whether or not to wear ear tips, thereby changing the headphone's wearing mode. The presence or absence of ear tips affects the barometer reading, which in turn affects the headphone's determination of the wearing mode.

[0057] Step 202: Obtain multiple air pressure values ​​detected by the barometer during the wearing of headphones by the target object.

[0058] The target audience refers to the user of the headphones. Specifically, it refers to the person currently wearing and using the headphones. The target audience's wearing behavior (such as whether or not they wear ear tips) will affect the headphones' detection and parameter adjustment process.

[0059] Multiple air pressure values ​​refer to a series of air pressure data recorded by the barometer while the user is wearing the headphones. These data reflect the changes in air pressure inside the ear canal detected by the headphones at different times. By analyzing these air pressure values, the headphones can determine the current wearing mode (e.g., whether ear tips are worn) and thus adjust the audio parameters to adapt to different usage scenarios and needs.

[0060] Specifically, the target user (i.e., the user) begins wearing the headphones. The headphones are designed to allow users to use them in different wearing modes, such as in-ear or semi-in-ear. The headphones' built-in barometer begins to operate, ready to record air pressure values. Optionally, the barometer is located in the front cavity of the headphones or other suitable location to monitor changes in air pressure within the ear canal.

[0061] While the user is wearing the headphones, a barometer performs multiple measurements, recording the air pressure at different points in time. These measurements can be continuous or taken at specific time intervals to ensure sufficient data is captured to analyze the user's wearing pattern. Each air pressure value recorded by the barometer is collected and stored in the headphones' memory. These air pressure values ​​reflect changes in the air pressure within the ear canal, helping the headphone system determine the user's wearing pattern.

[0062] Step 204: Obtain the air pressure threshold corresponding to the headphones.

[0063] The air pressure threshold is a pre-set value used to distinguish different wearing states of the headphones. This threshold is determined based on the air pressure value recorded by the air pressure detector during the detection process. Optionally, the air pressure threshold is usually derived from extensive user testing and data analysis to ensure accurate differentiation of different wearing states. Users can also customize the air pressure threshold through the application to suit their personal usage habits and preferences.

[0064] Specifically, the headphones are pre-set with a default initial air pressure threshold at the factory. This initial air pressure threshold is derived from extensive user testing and data analysis and is used to initially distinguish the headphone's wearing mode. Users can personalize the initial air pressure threshold through the accompanying application (APP) to obtain a unique air pressure threshold for that user. The calculated air pressure threshold is stored in the headphones' non-volatile memory for direct retrieval in subsequent use and as a basis for determining the wearing mode. Understandably, the calibration process aims to ensure that the threshold accurately reflects the user's actual wearing conditions.

[0065] Step 206: Determine the current wearing mode of the headphones based on multiple air pressure values ​​and air pressure thresholds; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed.

[0066] The current wearing mode refers to the headphone's determination of the user's current headphone wearing status by comparing the air pressure value detected by the barometer with a preset air pressure threshold. For example, whether the user is wearing ear tips.

[0067] Specifically, the built-in barometer in the earphones continuously or periodically detects and records the air pressure inside the ear canal while the user is wearing the earphones. These air pressure values ​​reflect the wearing status of the earphones. Furthermore, the range of air pressure variation is calculated from the recorded air pressure values. For example, the difference between adjacent air pressure values ​​is compared to determine the maximum amount of air pressure change.

[0068] The calculated air pressure change is then compared to a preset air pressure threshold. Understandably, this air pressure threshold, obtained through user calibration or default settings, is used to distinguish different wearing modes. If the air pressure change is less than or equal to the air pressure threshold, the headphone system determines the current wearing mode as "semi-in-ear." (Reference) Figure 3 At this time, the user may not be wearing ear tips or the ear tips may not completely seal the ear canal. If the air pressure change exceeds a certain threshold, the headphone system determines the current wearing mode as "in-ear". (Reference) Figure 4 At this time, the user was wearing an ear cap, and the ear cap completely sealed the ear canal.

[0069] Step 208: Obtain the target audio parameters corresponding to the current wearing mode, and adjust the current audio parameters of the headphones to the target audio parameters.

[0070] The current audio parameters refer to the audio settings that the headphones are using at a given moment. These parameters determine the headphones' sound quality, volume, noise cancellation, and other related characteristics. Understandably, before any adjustments are made, the headphones' audio output is based on these current audio parameters. These parameters may be default settings or the result of previous manual adjustments by the user.

[0071] Target audio parameters refer to the audio settings selected based on the current wearing mode (such as in-ear or semi-in-ear). Understandably, these parameters are preset to optimize headphone performance and user experience.

[0072] Specifically, the headphone system first compares the air pressure value detected by the barometer with a preset air pressure threshold to determine the current wearing mode. The wearing mode can be in-ear or semi-in-ear, depending on whether the user is wearing ear tips and whether the ear tips completely seal the ear canal.

[0073] The headphone system then searches for the corresponding target audio parameters from a pre-stored audio parameter library based on the identified current wearing mode. These parameters are pre-calibrated to adapt to different wearing modes. The headphone system adjusts the current audio parameters (i.e., the headphone's current sound quality, volume, noise cancellation, and other settings) to the target audio parameters. This adjustment process may involve the simultaneous updating of multiple audio parameters to ensure optimized sound quality and functionality.

[0074] The final adjusted target audio parameters are applied to the headphone's audio output. This means that the headphone's sound quality, volume, noise cancellation, and other aspects will be optimized based on the current wearing mode. The headphone system confirms that the audio parameter adjustments are complete and continues to provide the best sound quality and wearing experience based on the current wearing mode.

[0075] In one embodiment, in response to a barometric pressure test request for the target object, the device enters a monitoring state for the headphones. In the monitoring state, multiple first barometric pressure values ​​detected by the barometric pressure detector are acquired each time the target object wears the headphones in an in-ear mode (where the headphones are in an in-ear mode with ear tips attached). Multiple second barometric pressure values ​​are acquired each time the target object wears the headphones in a semi-in-ear mode (where the headphones are in a semi-in-ear mode with ear tips removed). Based on the multiple first barometric pressure values ​​and the multiple second barometric pressure values, a corresponding barometric pressure threshold for the headphones is determined.

[0076] The barometric pressure test request refers to a command issued by the user through the accompanying application (APP) to request the headphones to enter barometric pressure test mode. This request can be issued when the user uses the headphones for the first time or when the barometric pressure threshold needs to be recalibrated.

[0077] Monitoring mode refers to a special operating mode that the headphones enter after receiving a barometric pressure test request. In this mode, the headphones' barometric pressure detector continuously monitors and records the barometric pressure value. For example, in monitoring mode, the headphones can collect enough data to analyze and determine the barometric pressure threshold, thereby ensuring accurate subsequent wearing mode recognition.

[0078] The first barometric pressure value refers to the barometric pressure detected by the barometer when the user wears the headphones in an in-ear configuration. Understandably, these first barometric pressure values ​​are used to analyze the barometric pressure variation characteristics during in-ear wearing, helping to determine the upper limit of the barometric pressure threshold.

[0079] The second pressure value refers to the air pressure detected by the air pressure sensor when the user wears the headphones in a semi-in-ear configuration. Understandably, these second pressure values ​​are used to analyze the air pressure change characteristics during semi-in-ear wearing, helping to determine the lower limit of the air pressure threshold.

[0080] Specifically, the user first sends a barometric pressure test request through the accompanying application (APP). This request instructs the earphones to enter monitoring mode, preparing to perform a barometric pressure test. Upon receiving the barometric pressure test request, the earphones enter monitoring mode. For example, in monitoring mode, the earphones' barometric pressure sensor starts working, ready to record the barometric pressure value.

[0081] The user then wears the headphones in an in-ear configuration (i.e., with the ear tips on) multiple times. Each time, a barometer detects and records the air pressure inside the ear canal. This process is repeated multiple times (e.g., 10 times) to obtain multiple initial air pressure values. These values ​​reflect typical air pressure changes in the headphones during in-ear wearing mode.

[0082] Next, the user wears the headphones in a semi-in-ear style (i.e., without ear tips or with ear tips not completely sealing the ear canal) multiple times. Each time, the barometer detects and records the air pressure inside the ear canal. This process is repeated multiple times (e.g., 10 times) to obtain multiple secondary air pressure values. These values ​​reflect the typical air pressure changes of the headphones in semi-in-ear wearing mode.

[0083] Finally, the headphone system analyzes the collected first and second air pressure values. By comparing these values, the system determines a suitable air pressure threshold. The determined air pressure threshold is stored in the headphone's memory for subsequent wearing pattern recognition and audio parameter adjustment. Through the above steps, the headphone can obtain an air pressure threshold suitable for the current user's wearing habits, thereby more accurately recognizing wearing patterns and providing optimized sound quality and wearing experience.

[0084] By allowing users to perform their own pressure tests, the headphones can determine a suitable pressure threshold based on individual wearing habits and ear canal structure. This method improves the headphones' adaptability to different users, making wearing pattern recognition more accurate. Furthermore, analyzing multiple pressure values, rather than a single value, reduces the impact of random errors and improves the accuracy of wearing pattern recognition. This helps the headphones react quickly when users change their wearing style, providing corresponding audio parameter adjustments.

[0085] In one embodiment, a first pressure difference between a minimum first pressure value and a maximum first pressure value is determined among a plurality of first pressure values; a first average pressure value is determined based on the first pressure difference value corresponding to each wear; a second pressure difference between a minimum second pressure value and a maximum second pressure value is determined among a plurality of second pressure values; a second average pressure value is determined based on the second pressure difference value corresponding to each wear; and an air pressure threshold corresponding to the headphones is determined based on the first average pressure value and the second average pressure value.

[0086] The first air pressure difference refers to the difference between the maximum and minimum air pressure values ​​detected during each wear of the headphones in in-ear mode. This difference reflects the range of air pressure variation within the ear canal during in-ear wearing. Understandably, calculating the first air pressure difference helps to understand the fluctuations in air pressure during in-ear wearing, thus helping to determine a suitable threshold range.

[0087] The first average pressure is calculated based on the first pressure difference measured multiple times during in-ear wearing. This average value represents the typical level of pressure change during in-ear wearing.

[0088] The second air pressure difference refers to the difference between the maximum and minimum air pressure values ​​detected during each wear of the headphones in a semi-in-ear configuration. This difference reflects the range of air pressure variation within the ear canal during semi-in-ear wearing mode. Understandably, by calculating the second air pressure difference, one can understand the fluctuations in air pressure during semi-in-ear wearing, helping to determine a suitable threshold range.

[0089] The second average pressure is calculated based on the second pressure difference measured multiple times during semi-in-ear wearing. This average value represents the typical level of pressure variation during semi-in-ear wearing.

[0090] Specifically, firstly, for each instance of in-ear headphone wearing, multiple first air pressure values ​​are detected, and the minimum and maximum values ​​for each measurement are identified. The first air pressure difference for each measurement is calculated, that is, the difference between the maximum and minimum first air pressure values ​​for each measurement. Furthermore, all measured first air pressure differences are collected. The average of these first air pressure differences is calculated to obtain the average first air pressure. This average value represents the typical air pressure variation under in-ear wearing conditions.

[0091] Then, for each instance of semi-in-ear earphone wearing, multiple second pressure values ​​are detected, and the minimum and maximum values ​​for each measurement are identified. The second pressure difference for each measurement is calculated, i.e., the difference between the maximum and minimum second pressure values ​​for each measurement. Furthermore, all measured second pressure differences are collected. The average of these second pressure differences is calculated to obtain the average second pressure. This average represents the typical pressure variation during semi-in-ear wearing.

[0092] Finally, based on the calculated average of the first and second air pressures, a suitable air pressure threshold is determined. Optionally, this threshold is taken as the midpoint of the two averages to ensure accurate differentiation between in-ear and semi-in-ear wearing modes.

[0093] By calculating the pressure difference during each wear and determining the average pressure based on these differences, the user's wearing mode (in-ear or semi-in-ear) can be identified more accurately. This method reduces the impact of single measurement errors and improves the reliability of identification.

[0094] In one embodiment, a target pressure difference between the maximum and minimum pressure values ​​is determined among multiple pressure values; the target pressure difference is compared with a pressure threshold; if the target pressure difference is greater than the pressure threshold, it is determined that the earphone is currently in a detachable earphone wearing mode; if the target pressure difference is not greater than the pressure threshold, it is determined that the earphone is currently in a non-detachable earphone wearing mode.

[0095] The target air pressure difference refers to the difference between the maximum and minimum air pressure values ​​detected by the air pressure detector under the current wearing condition. Understandably, while the user is wearing the headphones, the air pressure detector continuously or periodically monitors the air pressure inside the ear canal. For each measurement, the system identifies the maximum and minimum air pressure values ​​and calculates the difference between them, which is the target air pressure difference.

[0096] Specifically, the earphone's barometric pressure sensor first records a series of pressure values ​​while the user is wearing the earphones. These values ​​reflect changes in air pressure within the ear canal. From the recorded pressure values, the maximum and minimum pressure values ​​for each test are identified. The difference between the maximum and minimum pressure values ​​for each test is calculated to obtain the target pressure difference. This difference represents the range of air pressure variation under the current wearing condition.

[0097] The calculated target air pressure difference is then compared to a preset air pressure threshold. If the target air pressure difference is greater than the air pressure threshold, the headphone system determines the current wearing mode as "in-ear." This usually means the user is wearing ear tips that completely seal the ear canal. If the target air pressure difference is not greater than the air pressure threshold (i.e., less than or equal to the air pressure threshold), the headphone system determines the current wearing mode as "semi-in-ear." This usually means the user is not wearing ear tips or the ear tips do not completely seal the ear canal.

[0098] By automatically adjusting audio parameters based on different wearing modes, sound quality can be optimized. For example, in in-ear mode, the headphones can activate stronger noise cancellation, while in semi-in-ear mode, they can provide more natural sound quality and better environmental awareness. Furthermore, the switching is automatic, eliminating the need for manual adjustment by the user. This improves the user experience and reduces operational complexity.

[0099] In one embodiment, if the current wearing mode is that the headphones are currently in a detachable wearing mode, then the in-ear audio parameters are retrieved from the headphones' internal storage; if the current wearing mode is that the headphones are currently in a non-detachable wearing mode, then the semi-in-ear audio parameters are retrieved from the headphones' internal storage.

[0100] In-ear audio parameters refer to a set of audio settings specifically designed for in-ear wearing mode. In-ear wearing typically means that the headphones have ear tips that completely seal the ear canal. These parameters include, but are not limited to: Noise cancellation: Enabling stronger active noise cancellation (ANC) because in-ear headphones offer better sound isolation. Sound quality optimization: Adjusting the low-frequency response to compensate for potential low-frequency attenuation caused by in-ear wearing. Volume control: Adjusting the volume according to the characteristics of in-ear wearing to ensure a moderate and comfortable volume. Understandably, using these parameters in in-ear wearing mode can provide better sound quality and noise cancellation, especially in noisy environments.

[0101] Semi-in-ear audio parameters refer to a set of audio settings specifically designed for semi-in-ear wearing mode. Semi-in-ear wearing typically refers to headphones without ear tips or with ear tips not completely sealing the ear canal. These parameters include, but are not limited to: Ambient awareness: reducing noise cancellation to enhance awareness of the external environment, facilitating communication. Natural sound quality: maintaining a more natural sound quality and avoiding distortion caused by over-adjustment. Moderate volume: adjusting the volume according to the characteristics of semi-in-ear wearing to ensure the volume is neither too loud nor too soft. Understandably, using these parameters in semi-in-ear wearing mode provides a more natural sound quality and better ambient awareness, suitable for quiet environments or environments where communication with others is required.

[0102] Specifically, the headphone system first compares the air pressure value detected by the barometer with a preset air pressure threshold to determine the current wearing mode. There are two wearing modes: in-ear mode with detachable ear tips and semi-in-ear mode without detachable ear tips.

[0103] The headphone system then determines that the current wearing mode is in-ear (i.e., ear tips are installed). It then retrieves pre-set in-ear audio parameters from the headphone's internal storage. These parameters include optimized noise cancellation settings, sound quality adjustments, and volume control to suit the characteristics of in-ear wear. Alternatively, the headphone system determines that the current wearing mode is semi-in-ear (i.e., ear tips are not installed). It then retrieves pre-set semi-in-ear audio parameters from the headphone's internal storage. These parameters include fewer noise cancellation settings, adjustments to maintain natural sound quality, and moderate volume control to suit the characteristics of semi-in-ear wear.

[0104] Finally, the headphone system applies the acquired target audio parameters to the current audio output to ensure that the sound quality and functional performance match the current wearing mode.

[0105] By automatically adjusting audio parameters based on the wearing mode (in-ear or semi-in-ear), sound quality is optimized. In-ear mode typically offers better noise cancellation and sound detail, while semi-in-ear mode maintains a more natural sound and better ambient awareness. Furthermore, users don't need to manually switch audio settings; the headphone system automatically recognizes the wearing mode and adjusts audio parameters, simplifying the process and enhancing the user experience. This intelligence improves the headphones' usability and user satisfaction.

[0106] In one embodiment, after the target removes the headphones, the current audio parameters of the headphones are adjusted to semi-in-ear audio parameters.

[0107] Specifically, the headphone system first monitors the wearing status of the headphones using a barometer or other sensors. When it detects that the headphones have been removed, the system recognizes that the headphones are no longer worn. Since the headphones have been removed, the default wearing mode is set to non-wearing mode. To simplify processing, the headphone's current audio parameters are adjusted to a default non-wearing mode parameter. The headphone system then adjusts the current audio parameters to a pre-set semi-in-ear audio parameter. The adjusted semi-in-ear audio parameter is saved as the headphone's current audio parameter. Therefore, when the user puts the headphones back on, the system can quickly restore the audio settings suitable for semi-in-ear mode.

[0108] Because the headphones can adjust the audio parameters to a semi-in-ear mode after the user removes them, they provide a quick and adaptive adjustment when the user puts them back on. This method simplifies the user's workflow and improves the user experience.

[0109] In one embodiment, reference Figure 5 The headphones include a main body and a clip assembly located on the outside of the main body. The detachable ear tips are connected to the main body via the clip assembly.

[0110] In one embodiment, reference Figure 6 The headphones include a main body and a pressure detector located inside the main body.

[0111] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0112] Based on the same inventive concept, this application also provides a headphone parameter adjustment device for implementing the headphone parameter adjustment method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of the one or more headphone parameter adjustment device embodiments provided below can be found in the limitations of the headphone parameter adjustment method described above, and will not be repeated here.

[0113] In one exemplary embodiment, such as Figure 7 As shown, a headphone parameter adjustment device 700 is provided, including: a first acquisition module 702, a second acquisition module 704, a determination module 706, and a first adjustment module 708, wherein:

[0114] The first acquisition module 702 is used to acquire multiple air pressure values ​​detected by the air pressure detector during the wearing of headphones by the target object;

[0115] The second acquisition module 704 is used to acquire the air pressure threshold corresponding to the headphones;

[0116] The determination module 706 is used to determine the current wearing mode of the headphones based on multiple air pressure values ​​and air pressure thresholds; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed.

[0117] The first adjustment module 708 is used to obtain the target audio parameters corresponding to the current wearing mode and adjust the current audio parameters of the headphones to the target audio parameters.

[0118] In one embodiment, the second acquisition module 704 is configured to enter the headphone monitoring state in response to a barometric pressure test request for the target object; in the monitoring state, acquire multiple first barometric pressure values ​​detected by the barometric pressure detector each time the target object wears the headphone in an in-ear mode, where in-ear mode refers to the headphone wearing mode with ear tips installed; acquire multiple second barometric pressure values ​​detected by the barometric pressure detector each time the target object wears the headphone in a semi-in-ear mode, where semi-in-ear mode refers to the headphone wearing mode with ear tips removed; and determine the corresponding barometric pressure threshold for the headphone based on the multiple first barometric pressure values ​​and the multiple second barometric pressure values.

[0119] In one embodiment, the second acquisition module 704 is configured to: determine a first pressure difference between a minimum first pressure value and a maximum first pressure value among a plurality of first pressure values; determine a first average pressure value based on the first pressure difference value corresponding to each wear; determine a second pressure difference between a minimum second pressure value and a maximum second pressure value among a plurality of second pressure values; determine a second average pressure value based on the second pressure difference value corresponding to each wear; and determine a pressure threshold corresponding to the headphones based on the first average pressure value and the second average pressure value.

[0120] In one embodiment, the determining module 706 is used to determine a target pressure difference between the maximum and minimum pressure values ​​among multiple pressure values; compare the target pressure difference with a pressure threshold; if the target pressure difference is greater than the pressure threshold, determine that the earphone is currently in a detachable earphone wearing mode; if the target pressure difference is not greater than the pressure threshold, determine that the earphone is currently in a non-detachable earphone wearing mode.

[0121] In one embodiment, the first adjustment module 708 is configured to, if the current wearing mode is a detachable wearing mode, retrieve in-ear audio parameters from the internal storage of the headphones; and if the current wearing mode is a non-detachable wearing mode, retrieve semi-in-ear audio parameters from the internal storage of the headphones.

[0122] In one embodiment, the headphone parameter adjustment device further includes a second adjustment module 710, used to adjust the current audio parameters of the headphones to semi-in-ear audio parameters after the target object removes the headphones.

[0123] In another embodiment, such as Figure 8 As shown, Figure 8 The following is a structural block diagram of a headphone parameter adjustment device in another embodiment, including: a first acquisition module 702, a second acquisition module 704, a determination module 706, and a first adjustment module 708. The headphone parameter adjustment device further includes a second adjustment module 710, used to adjust the current audio parameters of the headphones to semi-in-ear audio parameters after the target object removes the headphones.

[0124] Each module in the aforementioned headphone parameter adjustment device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0125] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data related to headphone parameter adjustment. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a headphone parameter adjustment method.

[0126] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0127] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0128] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0129] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0130] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0131] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0132] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0133] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for adjusting headphone parameters, characterized in that, Applied to headphones, the headphones being equipped with a barometric pressure sensor and detachable ear tips, the method includes: Acquire multiple air pressure values ​​detected by the air pressure detector during the process of the target object wearing the headphones; Obtain the air pressure threshold corresponding to the headphones; Based on the multiple air pressure values ​​and air pressure thresholds, the current wearing mode of the headphones is determined; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed. Obtain the target audio parameters corresponding to the current wearing mode, and adjust the current audio parameters of the headphones to the target audio parameters.

2. The method according to claim 1, characterized in that, The step of obtaining the air pressure threshold corresponding to the headphones includes: In response to a request for a barometric pressure test of the target object, the headphones enter a monitoring state; In the monitoring state, multiple first air pressure values ​​detected by the air pressure detector are acquired each time the target object wears the headphones in an in-ear style, where the in-ear style is the wearing mode of the headphones with the ear tips installed; multiple second air pressure values ​​are acquired each time the target object wears the headphones in a semi-in-ear style, where the semi-in-ear style is the wearing mode of the headphones with the ear tips removed. Based on the plurality of first air pressure values ​​and the plurality of second air pressure values, the air pressure threshold corresponding to the earphone is determined.

3. The method according to claim 2, characterized in that, The step of determining the air pressure threshold corresponding to the headphones based on the plurality of first air pressure values ​​and the plurality of second air pressure values ​​includes: Determine a first pressure difference between the minimum first pressure value and the maximum first pressure value from the plurality of first pressure values; The average value of the first air pressure is determined based on the first air pressure difference value corresponding to each wear; Determine the second pressure difference between the minimum and maximum second pressure values ​​among the plurality of second pressure values; The average value of the second air pressure is determined based on the second air pressure difference value corresponding to each wear. Based on the first average air pressure and the second average air pressure, the air pressure threshold corresponding to the earphone is determined.

4. The method according to claim 1, characterized in that, The current wearing mode includes in-ear and semi-in-ear. The in-ear mode is the wearing mode in which the earphones are fitted with the ear tips, and the semi-in-ear mode is the wearing mode in which the earphones are detached from the ear tips. Determining the current wearing mode of the headphones based on the multiple air pressure values ​​and air pressure thresholds includes: Determine the target pressure difference between the maximum and minimum pressure values ​​among the plurality of pressure values; The target air pressure difference is compared with the air pressure threshold. If the target air pressure difference is greater than the air pressure threshold, it is determined that the earphone is currently in the earphone installation and detachable wearing mode. If the target air pressure difference is not greater than the air pressure threshold, it is determined that the earphone is currently in the uninstalled and detachable wearing mode.

5. The method according to claim 4, characterized in that, The target audio parameters include in-ear audio parameters and semi-in-ear audio parameters; The step of obtaining the target audio parameters corresponding to the current wearing mode includes: If the current wearing mode is the earphone being in a detachable wearing mode, then the in-ear audio parameters are retrieved from the earphone's internal storage; If the current wearing mode is that the headphones are currently in an uninstalled and detachable wearing mode, then the semi-in-ear audio parameters are retrieved from the headphones' internal storage.

6. The method according to claim 5, characterized in that, The method further includes: After the target removes the headphones, the current audio parameters of the headphones are adjusted to the semi-in-ear audio parameters.

7. A headphone parameter adjustment device, characterized in that, The device includes: The first acquisition module is used to acquire multiple air pressure values ​​detected by the air pressure detector during the process of the target object wearing the headphones; The second acquisition module is used to acquire the air pressure threshold corresponding to the earphone; The determining module is used to determine the current wearing mode of the headphones based on the plurality of air pressure values ​​and air pressure thresholds; the current wearing mode indicates whether the ear tips of the headphones worn by the target object have been removed. The first adjustment module is used to obtain the target audio parameters corresponding to the current wearing mode and adjust the current audio parameters of the headphones to the target audio parameters.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.