Volume control method, earphone equipment and computer readable storage medium

By dynamically adjusting the volume gain factor based on the difference in battery level of the wireless earbuds, the problem of interrupted stereo experience caused by uneven battery levels is solved, extending the earbuds' battery life and increasing the overall listening time.

CN121603826APending Publication Date: 2026-03-03WEIFANG GOERTEK ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511676036.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-14
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Existing wireless headphones suffer from a problem where listening time is shortened in stereo experiences due to the battery depletion of one earbud, especially when the battery levels are uneven. Current technology lacks an effective volume control strategy.

Method used

By obtaining the difference in battery levels between the left and right earbuds, the volume gain factor is dynamically adjusted so that the earbud with higher battery level has a larger volume gain and the earbud with lower battery level has a smaller volume gain. A time-varying function is used for a smooth transition to ensure the continuity of the stereo experience.

Benefits of technology

It extends the battery life of low-battery headphones, increases the overall listening time of the stereo experience, makes full use of the total capacity of the dual-ear batteries, and avoids interruption of the stereo experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121603826A_ABST
    Figure CN121603826A_ABST
Patent Text Reader

Abstract

The invention discloses a volume control method, earphone equipment and a computer readable storage medium, and relates to the technical field of wireless earphones, and the method comprises the steps: obtaining a first electric quantity of a first earphone and a second electric quantity of a second earphone, and calculating an electric quantity difference value between the first electric quantity and the second electric quantity; if the electric quantity difference value is greater than a preset threshold value, adjusting the volume of the target earphone based on a first volume gain factor, and adjusting the volume of the other earphone based on a second volume gain factor; wherein when the second volume gain factor is smaller than the first volume gain factor and the electric quantity of the first earphone is larger than the electric quantity of the second earphone, the first earphone is the target earphone, and the second earphone is the other earphone; when the electric quantity of the first earphone is smaller than that of the second earphone, the second earphone is the target earphone, and the first earphone is the other earphone. According to the invention, the overall listening duration of stereo experience of the earphone is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless headphone technology, and more particularly to a volume control method, headphone device, and computer-readable storage medium. Background Technology

[0002] Wireless headphones, such as TWS (True Wireless Stereo) and OWS (Open Wearable Stereo) headphones, have recently experienced rapid development, becoming a new hot spot in the headphone industry. A typical wireless headphone system consists of two independent earbuds, left and right, which connect to the audio source device via wireless communication technology and provide users with an immersive stereo audio experience.

[0003] To ensure synchronization and consistency of left and right channel audio, wireless headphones generally adopt a symmetrical volume output control strategy, meaning that the left and right headphones receive audio signals of the same volume level from the audio source device for playback.

[0004] However, the aforementioned symmetrical volume output control strategy is prone to interruption of the stereo experience in practical applications due to the exhaustion of the battery in one earphone, thus shortening the user's effective listening time.

[0005] Therefore, how to increase the overall listening time of the stereo headphone experience is a technical problem that urgently needs to be solved. Summary of the Invention

[0006] The main purpose of this application is to provide a volume control method, a headphone device, and a computer-readable storage medium, aiming to solve the technical problem of how to increase the overall listening time of the headphone stereo experience.

[0007] To achieve the above objectives, this application provides a volume control method, which includes: Obtain the first battery level of the first earphone and the second battery level of the second earphone, and calculate the battery difference between the first battery level and the second battery level; If the power difference is greater than a preset threshold, the volume of the target earphone is adjusted based on the first volume gain factor, and the volume of the other earphone is adjusted based on the second volume gain factor. Wherein, when the second volume gain factor is less than the first volume gain factor and the battery level of the first earphone is greater than that of the second earphone, the first earphone is the target earphone and the second earphone is the other earphone; When the battery level of the first earphone is lower than that of the second earphone, the second earphone is the target earphone, and the first earphone is the other earphone.

[0008] In one embodiment, the step of adjusting the volume of the other earphone based on the second volume gain factor includes: A second volume gain factor is determined based on the power difference, wherein the second volume gain factor and the power difference show a negative correlation trend. Adjust the volume of the other earphone based on the second volume gain factor.

[0009] In one embodiment, the step of determining the second volume gain factor based on the power difference includes: Calculate the product between the power difference and the preset adjustment coefficient, and subtract the product from the preset default volume gain factor to obtain the candidate volume gain factor; If the candidate volume gain factor is greater than or equal to the preset lower limit volume gain factor, then the candidate volume gain factor is determined as the second volume gain factor. If the candidate volume gain factor is less than the preset lower limit volume gain factor, then the preset lower limit volume gain factor is determined as the second volume gain factor.

[0010] In one embodiment, the step of adjusting the volume of the target headphones based on a first volume gain factor includes: Obtain the first current volume of the target earphone, and determine the first target volume obtained after adjusting the first current volume with the first volume gain factor; The volume of the target earphone is smoothly transitioned using a time-gradient function, so as to adjust the volume of the target earphone from the first current volume to the first target volume within a preset time period.

[0011] In one embodiment, the step of adjusting the volume of the other earphone based on the second volume gain factor includes: Obtain the second current volume of the other earphone, and determine the second target volume obtained after adjusting the second current volume with the second volume gain factor; The volume of the other earphone is smoothly transitioned using a time-gradient function, so that the volume of the other earphone is adjusted from the second current volume to the second target volume within a preset time.

[0012] In one embodiment, the first earphone is the master earphone, and the second earphone is the slave earphone. The step of obtaining the first battery level of the first earphone and the second battery level of the second earphone, and calculating the battery difference between the first battery level and the second battery level, includes: The battery level difference is obtained by continuously monitoring the first battery level and the second battery level using the first earphone and calculating the difference between the first battery level and the second battery level; or, The first earphone sends the first battery level to the second earphone, and the second earphone sends the second battery level to the first earphone, so that the first earphone and the second earphone calculate the battery level difference based on the battery level received from the other earphone; In one embodiment, prior to the steps of adjusting the volume of the target earphone based on a first volume gain factor and adjusting the volume of the other earphone based on a second volume gain factor, the method further includes: A first volume gain factor and a second volume gain factor are determined using the first earphone, and the gain factor used to adjust the volume of the second earphone is sent to the second earphone; or, The first volume gain factor is determined using the target earphone, and the second volume gain factor is determined using the other earphone.

[0013] In one embodiment, prior to the steps of adjusting the volume of the target earphone based on a first volume gain factor and adjusting the volume of the other earphone based on a second volume gain factor, the method further includes: If the battery difference is greater than a preset threshold and the battery difference is greater than a historical battery difference, then the volume of the target earphone is adjusted based on a first volume gain factor, and the volume of the other earphone is adjusted based on a second volume gain factor. The historical battery difference is the battery difference between the first earphone and the second earphone obtained last time. If the power difference is less than or equal to a preset threshold, or if the power difference is less than or equal to a historical power difference, then the volume of the first and second earphones is kept constant, or the volume of the first and second earphones is restored to symmetrical.

[0014] In addition, to achieve the above objectives, this application also provides a headphone device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the volume control method described above for volume control steps.

[0015] In addition, to achieve the above objectives, this application also provides a readable storage medium, which is a computer-readable storage medium storing a computer program that is executed by a processor to implement the steps of the volume control method described above.

[0016] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the volume control method described above.

[0017] One or more technical solutions proposed in this application have at least the following technical effects: This application embodiment obtains the first battery level of the first earphone and the second battery level of the second earphone, calculates the battery difference between the first and second battery levels, and initiates differentiated volume adjustment when the difference exceeds a preset threshold. This effectively improves the problem of one earphone prematurely running out of power and interrupting the stereo experience due to symmetrical volume control. Specifically: the first battery level of the first earphone and the second battery level of the second earphone are obtained, the battery difference between the first and second battery levels is calculated, and when the battery difference is greater than a preset threshold, the earphone with higher battery level adjusts its volume according to a larger first volume gain factor, while the other earphone with lower battery level adjusts its volume according to a smaller second volume gain factor. This dynamic adjustment mechanism makes the volume output of the left and right earphones no longer symmetrical and fixed, but flexibly changes according to the actual battery status of the earphones. By relatively reducing the volume of the low-battery earphone to slow down its power consumption, and at the same time adjusting the output of the high-battery earphone accordingly, the remaining usage time of both earphones is actively balanced, delaying the shutdown time of the low-battery earphone so that it can continue to work for a longer time, thus improving the battery life of the low-battery earphones. Therefore, while basically maintaining the stereo listening experience, the total capacity of the dual-ear batteries is fully utilized, thereby increasing the overall listening time of the stereo experience. Attached Figure Description

[0018] 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.

[0019] 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.

[0020] Figure 1 This is a flowchart illustrating the first embodiment of the volume control method of this application; Figure 2 This is a schematic diagram of the volume control process of one embodiment of the volume control method of this application; Figure 3 This is a flowchart illustrating the third embodiment of the volume control method of this application; Figure 4 This is another flowchart illustrating the third embodiment of the volume control method of this application; Figure 5 This is a schematic diagram of the hardware operating environment of the volume control method device in the embodiments of this application.

[0021] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0022] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] Current TWS earphone systems primarily employ symmetrical volume output, meaning the volume in both ears is identical. However, due to usage habits, master-slave switching, and asynchronous charging, the battery levels of the left and right ears often differ, especially during prolonged wear or when ambient temperatures vary. Current systems lack an effective mechanism to address this "uneven battery level → one earbud shuts down first" situation, potentially causing users to prematurely lose their binaural stereo experience.

[0024] Although some TWS earbuds have volume control functions, they do not take into account the battery status and are only available for manual settings by the user.

[0025] Based on this, the main solution of this application is: to obtain the first battery level of the first earphone and the second battery level of the second earphone, and to calculate the battery difference between the first battery level and the second battery level; if the battery difference is greater than a preset threshold, to adjust the volume of the target earphone based on a first volume gain factor, and to adjust the volume of the other earphone based on a second volume gain factor; wherein, when the battery level of the first earphone is greater than that of the second earphone, the first earphone is the target earphone and the second earphone is the other earphone; when the battery level of the first earphone is less than that of the second earphone, the second earphone is the target earphone and the first earphone is the other earphone.

[0026] This application obtains the first battery level of the first earphone and the second battery level of the second earphone, calculates the battery difference between the first and second battery levels, and when the battery difference exceeds a preset threshold, the earphone with the higher battery level adjusts its volume according to a larger first volume gain factor, while the earphone with the lower battery level adjusts its volume according to a smaller second volume gain factor. This dynamic adjustment mechanism makes the volume output of the left and right earphones no longer symmetrical and fixed, but flexibly changes according to the actual battery level of the earphones. By relatively reducing the volume of the low-battery earphone to slow down its energy consumption, and at the same time adjusting the output of the high-battery earphone accordingly, it actively balances the remaining usage time of both earphones, delays the shutdown time of the low-battery earphones so that they can continue to work for a longer time, and improves the battery life of the low-battery earphones. Thus, while basically maintaining the stereo sound experience, it makes full use of the total capacity of the dual-ear batteries, thereby increasing the overall listening time of the stereo sound experience.

[0027] It should be noted that the execution subject of the volume control method embodiments of this application can be a headphone device capable of realizing the above functions, such as TWS headphones, OWS headphones, etc. The volume control method embodiments of this application do not impose specific limitations on this.

[0028] Based on this, this application proposes a volume control method according to a first embodiment, referring to... Figure 1 As shown, the volume control method includes the following steps S10~S20: Step S10: Obtain the first battery level of the first earphone and the second battery level of the second earphone, and calculate the battery difference between the first battery level and the second battery level; The first and second earbuds can be a pair of paired wireless stereo earbuds, such as the left and right earbuds in a TWS earbud system. Their specific roles are relative; that is, the first earbud can be the left earbud, in which case the second earbud is the right earbud, and vice versa. That is, the first earbud can also be the right earbud, in which case the second earbud is the left earbud.

[0029] The headphone device can monitor the current battery levels of the first and second earbuds separately through a built-in Power Management Unit (PMU), and calculate the battery difference between them through a Microcontroller Unit (MCU). This process can be performed periodically, such as checking the battery level and calculating the difference every certain period of time (e.g., 1 minute, 5 minutes, etc.), or it can be triggered by specific operation commands, such as when the earbuds establish a communication connection with the mobile phone, when the user starts playing audio, when the earbuds are taken out of the charging case, or when a specific user command is received. This embodiment does not impose any limitations on this.

[0030] It should be noted that, to avoid calculation confusion caused by the interchange of earphone roles, in this embodiment, the battery difference refers to the absolute value of the difference between the battery values ​​of the first and second earphones. This absolute value ensures that the difference is always a non-negative value, facilitating direct comparison with the preset threshold in subsequent steps to determine whether the volume adjustment condition is triggered.

[0031] Step S20: If the power difference is greater than a preset threshold, adjust the volume of the target earphone based on the first volume gain factor, and adjust the volume of the other earphone based on the second volume gain factor. Wherein, when the second volume gain factor is less than the first volume gain factor and the battery level of the first earphone is greater than that of the second earphone, the first earphone is the target earphone and the second earphone is the other earphone; When the battery level of the first earphone is lower than that of the second earphone, the second earphone is the target earphone, and the first earphone is the other earphone.

[0032] This preset threshold can be set based on experience, such as 5% or 10% of the total battery level. The purpose is to avoid frequent volume adjustments when the battery level difference is small, ensuring a stable user experience. When the battery level difference exceeds this preset threshold, subsequent differentiated volume adjustments are triggered.

[0033] When the calculated battery difference exceeds a preset threshold, it indicates a significant imbalance in the battery status of the left and right earphones. In this case, the earphone volume is adjusted differentially to optimize battery life and listening experience. The specific method of volume adjustment is to adjust the volume of the target earphone and the other earphone separately based on two volume gain factors.

[0034] The volume gain factor can be set according to actual needs. For example, the first volume gain factor is usually set to a value equal to or greater than 1 to maintain or appropriately increase the volume gain of the target headphones in order to ensure the overall sound effect; while the second volume gain factor is set to a value less than the first volume gain factor. Preferably, the second volume gain factor is less than the first volume gain factor and less than one, so as to reduce the volume gain of the other headphones, thereby reducing its power consumption and extending the battery life.

[0035] This adjustment is achieved by using a digital signal processor (DSP) to perform gain multiplication on the audio digital stream sent to the corresponding headphones. The fundamental purpose is to significantly slow down the energy consumption rate of the low-battery headphones by reducing their output power, while simultaneously making compensatory adjustments to the high-battery headphones. This proactively balances the energy consumption rate of both ears while maintaining overall sound balance as much as possible, extending the battery life of the low-battery headphones and ultimately delaying the interruption of the stereo experience.

[0036] It should be noted that if the battery difference is less than or equal to the preset threshold, no processing is required, that is, the volume of the first and second earphones is not adjusted, and the current volume control process ends. Alternatively, the first and second earphones can be restored to symmetrical volume (if the current volume of the two earphones is inconsistent). For example, if the volume of one earphone remains unchanged, the volume of the other earphone is adjusted to match that earphone, thereby restoring the first and second earphones to symmetrical volume.

[0037] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Based on this, the step of adjusting the volume of the other earphone based on the second volume gain factor includes: Step A10: Determine a second volume gain factor based on the power difference, wherein the second volume gain factor and the power difference have a negative correlation trend; The second volume gain factor exhibits a negative correlation with the battery level difference. Specifically, when the battery level difference is large, the value of the second volume gain factor decreases accordingly to reduce the volume output of the other earphone, thereby lowering its power consumption. Conversely, when the battery level difference is small, the value of the second volume gain factor increases accordingly to appropriately increase the volume output of the other earphone, ensuring overall sound quality. This negative correlation can be adjusted and optimized based on actual test data and user experience requirements, and can be achieved through mapping functions or mapping tables to obtain the best volume control effect.

[0038] It should be noted that a negative correlation trend can refer to either a strict negative correlation or an approximate negative correlation. A strict negative correlation means there is a precise mathematical relationship between the second volume gain factor and the battery difference; for example, the second volume gain factor and the battery difference have a linear or exponential relationship, and changes in the battery difference cause the second volume gain factor to change according to a fixed pattern. An approximate negative correlation means that, overall, the second volume gain factor increases as the battery difference decreases, but there may be local fluctuations or deviations.

[0039] Step A20: Adjust the volume of the other earphone based on the second volume gain factor.

[0040] Based on a determined second volume gain factor, the headphone device can apply a corresponding digital gain to the audio signal sent to "another headphone" via an audio processing unit (such as a digital signal processor, DSP). Specifically, the DSP can multiply the value of each sample point of the audio data stream by this gain factor. For example, if the second volume gain factor is 0.85, it means that the amplitude of the audio signal is scaled down to 85% of its original value, equivalent to attenuating the output volume by approximately 1.4 dB. In this way, the amplifier load of the low-power headphones is reduced, decreasing their power consumption per unit time and thus improving the battery life of the low-power headphones.

[0041] In one possible implementation, the step of determining the second volume gain factor based on the power difference includes: Step B10: Calculate the product between the power difference and the preset adjustment coefficient, and subtract the product from the preset default volume gain factor to obtain the candidate volume gain factor; The preset default volume gain factor is typically set to 1.0, representing the initial, unadjusted volume reference. This preset adjustment factor controls the degree to which the power difference affects the volume gain factor. For example, if the power difference is 10% and the preset adjustment factor is 0.5, the product is 5%. Next, the headphone device subtracts this product from the preset default volume gain factor (e.g., 1.0, indicating no gain or default state) to obtain the candidate volume gain factor. Assuming the default volume gain factor is 1.0 and the product is 0.05, the candidate volume gain factor is 0.95.

[0042] Step B20: If the candidate volume gain factor is greater than or equal to the preset lower limit volume gain factor, then the candidate volume gain factor is determined as the second volume gain factor. The preset lower limit volume gain factor is a predefined lower limit value for volume gain factors. It's a protection mechanism to ensure the headphone volume isn't too low, thus affecting the user's listening experience. If the candidate volume gain factor is greater than or equal to this lower limit value, it indicates the adjustment is within a reasonable range, so the calculated candidate volume gain factor is directly used as the second volume gain factor. For example, if the preset lower limit volume gain factor is 0.8, and the candidate volume gain factor is 0.95, then the second volume gain factor is 0.95.

[0043] Step B30: If the candidate volume gain factor is less than the preset lower limit volume gain factor, then the preset lower limit volume gain factor is determined as the second volume gain factor.

[0044] When the power difference is very large, the candidate gain factor calculated based on the linear model may be too low, resulting in excessive volume attenuation and making the sound almost inaudible. In this case, the calculated value will be ignored, and the second volume gain factor will be locked to a preset lower limit volume gain factor. For example, assuming the preset default volume gain factor is 1, the determination of the second volume gain factor can be expressed by the formula: G=max(1-k*|Δ|, G min ), where G is the second volume gain factor, k is the preset adjustment coefficient, |Δ| is the power difference, G min This is the preset lower limit volume gain factor. It should be noted that k can be any value between 0 and 1.

[0045] This embodiment achieves precise, controllable, and safe automated management of low-battery headphone volume adjustment through a logic combining linear calculation and boundary protection. Specifically, by introducing a "preset adjustment coefficient" parameter, the abstract battery difference is transformed into a specific, proportional volume gain attenuation. This directly correlates the volume adjustment amplitude with the severity of the battery imbalance, ensuring the predictability and smoothness of the adjustment behavior and avoiding the impact of sudden volume changes on the listening experience. Furthermore, a dual-judgment mechanism ensures that within a reasonable adjustment range, the calculated adjustment scheme is executed to achieve energy-saving goals. Simultaneously, a "preset lower limit volume gain factor" sets a minimum volume attenuation threshold, effectively preventing the volume from nearly disappearing and severely impacting the basic listening experience when the battery difference is extremely large, due to an excessively low calculated gain factor. Thus, while pursuing a balance in battery life, the volume attenuation is intelligently limited to a predefined acceptable range, achieving a dynamic balance between extending the battery life of low-battery headphones and maintaining a basically usable listening experience, ensuring the practicality of volume adjustment and the robustness of the user experience.

[0046] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to that in embodiments one and two above can be referred to the above description, and will not be repeated hereafter. On this basis, refer to Figure 3 As shown, the step of adjusting the volume of the target headphones based on the first volume gain factor includes: Step C10: Obtain the first current volume of the target earphone and determine the first target volume obtained after adjusting the first current volume with the first volume gain factor; The first current volume refers to the current volume of the target headphones. The first current volume is adjusted based on a first volume gain factor to calculate the adjusted volume value, which is the first target volume. For example, if the first current volume of the target headphones is 70 dB and the first volume gain factor is 1.1, then the first target volume is 77 dB. This process ensures that the volume adjustment of the target headphones is based on the current actual volume and the first volume gain factor, thus achieving precise volume control.

[0047] Step C20: The volume of the target earphone is smoothly transitioned using a time gradient function to adjust the volume of the target earphone from the first current volume to the first target volume within a preset time period.

[0048] After determining the initial target volume, a time-varying function is used to smoothly transition the volume, avoiding abrupt changes that could cause significant auditory discomfort. The time-varying function is a mathematical function used to gradually adjust the volume over a preset time period. It generates a series of continuous, gradually changing intermediate gain values ​​within a preset duration (e.g., 200 or 500 milliseconds), preventing sudden volume changes from causing discomfort to the user. For example, this function could be a simple linear interpolation function, gradually changing the gain value in fixed steps during each audio processing cycle; or it could use a non-linear interpolation function (such as an exponential curve or S-curve) that better matches human hearing, making the change slower at the beginning and end, and faster in the middle, thus achieving a more natural auditory transition. In practice, the headphone device calculates the corresponding volume value at each time point based on the time-varying function and gradually adjusts the volume until the initial target volume is reached. This smooth transition significantly improves the user's auditory experience, avoiding discomfort caused by sudden volume changes.

[0049] In one possible implementation, refer to Figure 4 As shown, the step of adjusting the volume of the other earphone based on the second volume gain factor includes: Step D10: Obtain the second current volume of the other earphone and determine the second target volume obtained after adjusting the second current volume with the second volume gain factor; The second current volume refers to the current volume of the other earphone. The second current volume is adjusted based on a second volume gain factor to calculate the adjusted volume value, i.e., the second target volume. For example, if the second current volume of the other earphone is 70 dB and the first volume gain factor is 0.9, then the second target volume is 63 dB. This process ensures that the volume adjustment of the other earphone is based on the current actual volume and the second volume gain factor, thus achieving precise volume control.

[0050] Step D20: The volume of the other earphone is smoothly transitioned using a time gradient function to adjust the volume of the other earphone from the second current volume to the second target volume within a preset time period.

[0051] After determining the second target volume, a time-gradient function is used to smoothly transition the volume, avoiding abrupt changes that could cause significant auditory discomfort. The time-gradient function is a mathematical function used to gradually adjust the volume over a preset time period. It generates a series of continuous, gradually changing intermediate gain values ​​within a preset duration (e.g., 200 or 500 milliseconds), preventing sudden volume changes from causing discomfort to the user. For example, this function could be a simple linear interpolation function, gradually changing the gain value in fixed steps during each audio processing cycle; or it could use a non-linear interpolation function (such as an exponential curve or S-curve) that better matches human hearing, making the change slower at the beginning and end, and faster in the middle, thus achieving a more natural auditory transition. In practice, the headphone device calculates the corresponding volume value at each time point based on the time-gradient function and gradually adjusts the volume until the second target volume is reached. This smooth transition significantly improves the user's auditory experience, avoiding discomfort caused by sudden volume changes.

[0052] Based on the first, second, and / or third embodiments of this application, in the fourth embodiment of this application, the content that is the same as or similar to the above-described embodiments one, two, and three can be referred to the above description and will not be repeated hereafter. In this context, the first earphone is the main earphone, and the second earphone is the slave earphone. The step of obtaining the first battery level of the first earphone and the second battery level of the second earphone, and calculating the battery difference between the first battery level and the second battery level, includes: Step E10: Continuously monitor the first battery level and the second battery level through the first earphone, and calculate the difference between the first battery level and the second battery level to obtain the battery level difference. The main headset is the one that handles the primary control and communication functions, typically responsible for connecting to the audio source device, controlling volume, and coordinating other functions. The slave headset is the one that assists the main headset, usually used to receive commands from the main headset and execute corresponding operations.

[0053] In this mode, the first earpiece (master earpiece), acting as the primary communication device, actively sends a battery level query request to the second earpiece (slave earpiece) using the established wireless data link between them, for example, based on Bluetooth or a proprietary near-field communication protocol. Upon receiving the request, the slave earpiece reads its current second battery level value through its own power management unit and replies with this data packet to the master earpiece. Simultaneously, the master earpiece, upon receiving the slave earpiece's battery information, also reads its first battery level value through its own power management unit. Subsequently, the master earpiece uses its built-in microprocessor to subtract these two battery levels and take the absolute value to obtain the desired battery level difference. This approach centralizes the computational task on the master earpiece, facilitating unified control logic.

[0054] Alternatively, in step E20, the first power level is sent to the second earphone through the first earphone, and the second power level is sent to the first earphone through the second earphone, so that the first earphone and the second earphone calculate the power difference based on the power level received from the other earphone; In this mode, the first earpiece (master earpiece) and the second earpiece (slave earpiece) exchange their current first and second battery level data packets via their data link according to predetermined communication rules, such as periodically or after a specific event, completing one exchange of battery information. After the exchange, the master and slave earpieces independently subtract their own battery level data from the received data from the other earpiece to calculate the same battery difference. The advantage of this mechanism is that even if the master / slave roles switch or one party temporarily fails to calculate, the other party still retains complete decision information, ensuring the continuous operation of the volume control logic and improving the system's robustness.

[0055] In one possible implementation, prior to the steps of adjusting the volume of the target earphone based on a first volume gain factor and adjusting the volume of the other earphone based on a second volume gain factor, the method further includes: Step F10: Determine the first volume gain factor and the second volume gain factor through the first earphone, and send the gain factor used to adjust the volume of the second earphone to the second earphone. In this mode, after the first earphone (main earphone) completes the comparison of the power difference and determines that the power difference is greater than a preset threshold, the main earphone determines the first volume gain factor and the second volume gain factor. After determining the gain factor, the main earphone sends the gain factor used to adjust the volume of the slave earphone from the first gain factor and the second gain factor to the slave earphone.

[0056] Specifically, the main earphone can encapsulate the gain factor specifically used to adjust the volume of the second earphone into a control command data packet via its wireless communication unit, such as Bluetooth (BT) communication unit, and send it to the second earphone (the slave earphone). After receiving the data packet, the second earphone's internal audio processor will directly adjust its local audio playback gain based on the received gain factor value. This method helps ensure the immediacy and consistency of the control logic, with unified scheduling by the main device.

[0057] Alternatively, in step F20, a first volume gain factor is determined using the target earphone, and a second volume gain factor is determined using the other earphone.

[0058] In this mode, after the battery difference information is synchronized between the two ears, the calculation task is distributed. The target earphone (i.e., the one with the higher battery) independently determines the first volume gain factor for its own volume adjustment. At the same time, the other earphone (i.e., the one with the lower battery) also independently determines the second volume gain factor for its own volume adjustment. This method eliminates the need to transmit the final gain factor command between the earphones, reducing communication overhead and improving system redundancy. Even if one earphone experiences a brief failure, the other earphone can still execute its own adjustment logic.

[0059] For example, to aid in understanding the technical concept or principle of the volume control method combined with the first, second, and third embodiments described above, a specific embodiment is now provided. In this specific embodiment, refer to... Figure 2 As shown, the volume control process includes: 1. Get the current remaining battery power of the left and right earbuds.

[0060] 2. Calculate the battery difference |Δ| between the left and right earphones.

[0061] 3. Determine whether the power difference is greater than a preset threshold. If yes, proceed to step 4; otherwise, proceed to step 7.

[0062] 4. If the battery difference exceeds a preset threshold, the volume gain of the channel corresponding to the headphone with higher battery level is set to the first volume gain factor (default is 1); the volume gain of the channel corresponding to the headphone with lower battery level is set to the second volume gain factor, which is less than the first volume gain factor. Specifically, G = max(1 - k * |Δ|, G min Where G represents the second volume gain factor, k represents the preset adjustment coefficient, and G min This indicates the preset lower limit volume gain factor.

[0063] 5. The first volume gain factor and the second volume gain factor are applied to the corresponding left and right channel audio signals respectively to adjust the volume of the left and right headphones. When the volume gain factor changes, the volume is smoothly transitioned through a time-progression function to prevent abrupt changes in audio.

[0064] 6. Output the processed audio signal to the left and right headphones for playback.

[0065] 7. If the battery difference is less than or equal to the preset threshold, the left and right earphones will be restored to symmetrical volume.

[0066] Furthermore, to obtain the battery level and battery difference between the left and right earbuds, the following solution can be selected: Option 1: The main earphone continuously monitors its own and the slave earphone's battery status and transmits the calculated battery difference to the slave earphone. Option 2: The master earphone transfers its power to the slave earphone, and the slave earphone transfers its power to the master earphone. The master and slave earphones calculate the power difference respectively.

[0067] To obtain the volume gain factor, the following solutions can be selected: Option 1: The master earphone calculates the volume gain factor of the slave earphone and then passes the factor to the slave earphone. Option 2: The master and slave earphones calculate the volume gain factor applied to themselves based on the obtained power difference.

[0068] It should be noted that the above examples are only used to help understand this embodiment and do not constitute a limitation on the volume control process of this embodiment. Any simple modifications based on this technical concept are within the protection scope of this application.

[0069] Based on the first, second, third, and / or fourth embodiments of this application, a fifth embodiment of this application is proposed, prior to the steps of adjusting the volume of the target earphone based on a first volume gain factor and adjusting the volume of the other earphone based on a second volume gain factor, the method further includes: Step G10: If the battery difference is greater than a preset threshold and the battery difference is greater than a historical battery difference, then adjust the volume of the target earphone based on a first volume gain factor and adjust the volume of the other earphone based on a second volume gain factor, wherein the historical battery difference is the battery difference between the first earphone and the second earphone obtained last time. The system determines whether the current battery level difference is already significant (i.e., greater than a preset threshold) and whether the trend of battery imbalance is widening (i.e., whether the current battery level difference is greater than the historical battery level difference). If both conditions are met, a new volume balancing operation is required. For example, assuming the preset threshold is 5% and the historical battery level difference is 8%, if the current detected battery level difference is 10% (meeting both >5% and >8%), then volume adjustment is triggered. This mechanism effectively prevents redundant adjustments during the process of the battery level difference reaching its peak and beginning to naturally decline, ensuring that each volume adjustment is necessary and effective.

[0070] Step G20: If the power difference is less than or equal to a preset threshold, or if the power difference is less than or equal to a historical power difference, then control the volume of the first earphone and the second earphone to remain unchanged, or restore the volume of the first earphone and the second earphone to symmetrical volume.

[0071] When the battery difference is not significant (less than or equal to a preset threshold), it indicates that the battery levels of both earbuds are within an acceptable balance. When the battery difference is less than or equal to a historical battery difference, it indicates that the battery imbalance trend is improving, even if the current difference may still be higher than the threshold, but the system state is developing in a positive direction (e.g., the low-battery earbuds are charging or the battery drain rate is slowing down). Therefore, when the battery difference is less than or equal to the preset threshold, or less than or equal to a historical battery difference, the decision is made to maintain the existing volume output without any volume adjustment, or to restore the volume of both earbuds to symmetrical levels. This design reflects intelligent decision-making, enabling it to distinguish between "deteriorating conditions requiring intervention" and "stable or improving conditions without intervention," thereby minimizing auditory interference for the user while ensuring the goal of balanced battery life.

[0072] Furthermore, when the battery difference is less than or equal to a preset threshold, the first and second earphones are restored to symmetrical volume; when the battery difference is greater than the preset threshold but less than or equal to a historical battery difference, the volume of the first and second earphones remains unchanged. This ensures that symmetrical volume is restored after the battery difference has fallen back to an acceptable balance range (≤ threshold), alleviating battery anxiety and providing users with the best native stereo listening experience. Conversely, when the battery difference exceeds the threshold but shows an improving trend, the current volume is maintained, utilizing inertia to maintain adjustment stability and prevent volume fluctuations caused by over-response or frequent switching. Simultaneously, the current energy-saving strategy ensures a natural convergence process of battery balance. In this way, the volume adjustment behavior is highly consistent with the current battery status and trend, achieving an optimal dynamic balance between energy saving and sound quality.

[0073] In one possible implementation, after the steps of adjusting the volume of the target earphone based on a first volume gain factor and adjusting the volume of the other earphone based on a second volume gain factor, the method further includes: Step G101: Every first preset time interval, return to the step of obtaining the first battery level of the first earphone and the second battery level of the second earphone, and calculate the battery difference between the first battery level and the second battery level; The first preset duration is a pre-defined time interval. Immediately after the volume balancing operation, the power consumption rates of the two earphones have been redistributed, and their power difference is expected to stabilize or change slowly in the short term. Therefore, a relatively long first preset duration (e.g., 5 or 10 minutes) is set before initiating the next power difference detection and judgment process. The advantage of this periodic polling mechanism is that it effectively reduces unnecessary communication overhead and processor power consumption caused by frequent detection and calculation while ensuring continuous tracking of power status, thus optimizing the earphones' battery life.

[0074] In one possible implementation, after the step of controlling the volume of the first and second earphones to remain constant, or restoring the volume of the first and second earphones to symmetrical levels, the method further includes: Step G201: Every second preset time interval, return to execute the step of obtaining the first battery level of the first earphone and the second battery level of the second earphone, and calculating the battery difference between the first battery level and the second battery level, wherein the second preset time interval is less than the first preset time interval.

[0075] The second preset duration is a pre-set time interval shorter than the first preset duration. When the volume is kept constant or restored to symmetrical volume because the current battery difference does not exceed the threshold or the battery difference shows a decreasing trend, it usually means that the battery levels of both earphones are in a critical state or undergoing dynamic changes. In order to quickly detect potential deterioration in the battery status, a shorter second preset duration (e.g., 1 minute or 2 minutes) is used before initiating the next battery difference detection and judgment process. The design of the second preset duration being shorter than the first preset duration reflects the risk assessment and differentiated response strategy for different states. During the "silent observation" phase, a higher monitoring frequency ensures that intervention can be triggered immediately once an adverse trend is identified, thereby improving the response speed and control timeliness of the entire volume balancing system and preventing the low-battery earphones from running out of power prematurely due to monitoring delays.

[0076] Furthermore, this application also proposes an earphone device, which includes a first earphone and a second earphone, wherein the first earphone and the second earphone are controlled by the volume control method described above.

[0077] like Figure 5 As shown, either or both of the first and second earphones may include an MCU unit, a PMU unit, a DSP unit, and a BT unit. The PMU unit is used to obtain the battery level information of the earphones; each earphone obtains its own battery level information through its own PMU unit. The MCU unit is used to calculate the battery level difference between the first and second earphones, and determines a first volume gain factor and a second volume gain factor when the difference exceeds a preset threshold. The DSP unit is used to adjust the volume of the earphones according to the determined volume gain factors; each earphone adjusts its own volume using its own DSP unit and outputs the adjusted audio through a speaker. The BT unit is used for data communication, such as receiving audio signals from a mobile phone or other host device, transmitting earphone battery level to the other earphone, and transmitting volume gain factors to the other earphone, etc.

[0078] Furthermore, the MCU unit is also responsible for overall device control and management, including Bluetooth protocol stack, connection management, user interaction (buttons, touch), battery management and status synchronization.

[0079] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a read-only memory (ROM). When the computer program is executed by a processing device, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0080] The headphone device provided in this application, employing the volume control method described in the above embodiments, can solve the technical problem of how to increase the overall listening time of the stereo headphone experience. Compared with the prior art, the beneficial effects of the headphone device provided in this application are the same as those of the volume control method provided in the above embodiments, and other technical features of this headphone device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0081] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0082] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0083] In addition, to achieve the above objectives, this application also provides a readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the volume control method in the above embodiments.

[0084] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0085] The aforementioned computer-readable storage medium may be included in the headphone device; or it may exist independently and not assembled into the headphone device.

[0086] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the headphone device, cause the headphone device to: obtain a first battery level of a first headphone and a second battery level of a second headphone; calculate a battery level difference between the first battery level and the second battery level; if the battery level difference is greater than a preset threshold, adjust the volume of a target headphone based on a first volume gain factor, and adjust the volume of another headphone based on a second volume gain factor; wherein, when the battery level of the first headphone is greater than the battery level of the second headphone, the first headphone is the target headphone and the second headphone is the other headphone; when the battery level of the first headphone is less than the battery level of the second headphone, the second headphone is the target headphone and the first headphone is the other headphone.

[0087] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0088] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0089] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the modules themselves.

[0090] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described volume control method, thereby solving the technical problem of how to increase the overall listening time of the headphone stereo experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the volume control method provided in the above embodiments, and will not be repeated here.

[0091] Furthermore, embodiments of this application also propose a computer program product, including a computer program that, when executed by a processor, implements the steps of the volume control method described above.

[0092] The specific implementation of the computer program product in this application is basically the same as the various embodiments of the volume control method described above, and will not be repeated here.

[0093] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0094] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software sensor. This computer software sensor is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a headphone device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0096] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A volume control method, characterized in that, The volume control method includes the following steps: Obtain the first battery level of the first earphone and the second battery level of the second earphone, and calculate the battery difference between the first battery level and the second battery level; If the power difference is greater than a preset threshold, the volume of the target earphone is adjusted based on the first volume gain factor, and the volume of the other earphone is adjusted based on the second volume gain factor. Wherein, when the second volume gain factor is less than the first volume gain factor and the battery level of the first earphone is greater than that of the second earphone, the first earphone is the target earphone and the second earphone is the other earphone; When the battery level of the first earphone is lower than that of the second earphone, the second earphone is the target earphone, and the first earphone is the other earphone.

2. The volume control method as described in claim 1, characterized in that, The step of adjusting the volume of the other earphone based on the second volume gain factor includes: A second volume gain factor is determined based on the power difference, wherein the second volume gain factor and the power difference show a negative correlation trend. Adjust the volume of the other earphone based on the second volume gain factor.

3. The volume control method as described in claim 2, characterized in that, The step of determining the second volume gain factor based on the power difference includes: Calculate the product between the power difference and the preset adjustment coefficient, and subtract the product from the preset default volume gain factor to obtain the candidate volume gain factor; If the candidate volume gain factor is greater than or equal to the preset lower limit volume gain factor, then the candidate volume gain factor is determined as the second volume gain factor. If the candidate volume gain factor is less than the preset lower limit volume gain factor, then the preset lower limit volume gain factor is determined as the second volume gain factor.

4. The volume control method as described in claim 1, characterized in that, The step of adjusting the volume of the target headphones based on the first volume gain factor includes: Obtain the first current volume of the target earphone, and determine the first target volume obtained after adjusting the first current volume with the first volume gain factor; The volume of the target earphone is smoothly transitioned using a time-gradient function, so as to adjust the volume of the target earphone from the first current volume to the first target volume within a preset time period.

5. The volume control method as described in claim 1, characterized in that, The step of adjusting the volume of the other earphone based on the second volume gain factor includes: Obtain the second current volume of the other earphone, and determine the second target volume obtained after adjusting the second current volume with the second volume gain factor; The volume of the other earphone is smoothly transitioned using a time-gradient function, so that the volume of the other earphone is adjusted from the second current volume to the second target volume within a preset time.

6. The volume control method as described in claim 1, characterized in that, The first earphone is the master earphone, and the second earphone is the slave earphone. The step of obtaining the first battery level of the first earphone and the second battery level of the second earphone, and calculating the battery difference between the first battery level and the second battery level, includes: The battery level difference is obtained by continuously monitoring the first battery level and the second battery level using the first earphone and calculating the difference between the first battery level and the second battery level; or, The first earpiece sends the first battery level to the second earpiece, and the second earpiece sends the second battery level to the first earpiece, so that the first earpiece and the second earpiece calculate the battery level difference based on the battery level received from the other earpiece.

7. The volume control method as described in claim 6, characterized in that, Before the step of adjusting the volume of the target earphone based on a first volume gain factor and adjusting the volume of the other earphone based on a second volume gain factor, the method further includes: A first volume gain factor and a second volume gain factor are determined using the first earphone, and the gain factor used to adjust the volume of the second earphone is sent to the second earphone; or, The first volume gain factor is determined using the target earphone, and the second volume gain factor is determined using the other earphone.

8. The volume control method according to any one of claims 1 to 7, characterized in that, Before the step of adjusting the volume of the target earphone based on a first volume gain factor and adjusting the volume of the other earphone based on a second volume gain factor, the method further includes: If the battery difference is greater than a preset threshold and the battery difference is greater than a historical battery difference, then the volume of the target earphone is adjusted based on a first volume gain factor, and the volume of the other earphone is adjusted based on a second volume gain factor. The historical battery difference is the battery difference between the first earphone and the second earphone obtained last time. If the power difference is less than or equal to a preset threshold, or if the power difference is less than or equal to a historical power difference, then the volume of the first and second earphones is kept constant, or the volume of the first and second earphones is restored to symmetrical.

9. A headphone device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the volume control method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a volume control program, which, when executed by a processor, implements the steps of the volume control method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device for adjusting electric quantity of equipment, electronic equipment and medium

    CN110618805A

  • Wireless earphone and method for improving endurance of wireless earphone

    CN114286218A

  • Method for controlling volume of wireless headset, wireless headset and mobile terminal

    WO2020019846A1