Method and device for reducing earphone crosstalk, computer readable storage medium and terminal

By adjusting the headphone crosstalk gain within a set gain range and combining it with the minimum sound value collected, the optimal crosstalk gain is determined, thus solving the headphone crosstalk problem, adapting to headphones with different impedances, and improving the stereo effect and sound quality of the headphones.

CN117294983BActive Publication Date: 2026-05-29SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
Filing Date
2023-10-11
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In the prior art, the electrical signals of the left and right channels of the headphones share a common ground, which causes voltage division and crosstalk in the left channel electrical signal at the ground, affecting the audio frequency of the right channel electrical signal at the headphone jack.

Method used

By adjusting the set step size, the headphone crosstalk gain is adjusted. Combined with the collected optimal crosstalk gain, the optimal crosstalk gain at the headphone interface is solved, thereby improving the headphone's anti-crosstalk performance and stereo effect.

Benefits of technology

It enables adaptation to headphones with different impedances, customized configuration, reduced headphone crosstalk, and improved headphone stereo effect and sound quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117294983B_ABST
    Figure CN117294983B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for reducing earphone crosstalk, a computer readable storage medium and a terminal. The method comprises the following steps: in response to an earphone crosstalk calibration operation, a test sound source is played, wherein the signal input to a first sound channel is an audio signal, and the signal input to a second sound channel is a mute signal; within a set earphone crosstalk gain interval range, the earphone crosstalk gain is adjusted according to a set adjustment step; the original signal output by the second sound channel is compensated by using the earphone crosstalk gain to obtain a compensated signal of the second sound channel; the sound size of the compensated signal output by the second earphone is collected, and the sound size of the second sound channel is collected when only the second earphone is worn; the minimum value of the sound output by the second earphone is determined, and the optimal crosstalk gain of the inserted earphone is determined based on the earphone crosstalk gain corresponding to the minimum value. The above scheme can reduce earphone crosstalk and improve the stereo sound effect of the earphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of audio processing technology, and in particular to a method and apparatus for reducing headphone crosstalk, a computer-readable storage medium, and a terminal. Background Technology

[0002] Currently, with the widespread adoption of mobile networks, audio and video multimedia is increasingly favored by consumers. Headphone mode, due to its delicate sound quality and realistic stereo effect, is gradually gaining popularity among users. However, because the left and right channels of headphones share a common ground, the voltage drop across the return ground of the left channel's electrical signal can affect the right channel, and vice versa. This creates audio crosstalk at the headphone jack, reducing sound quality and impacting the user experience.

[0003] To ensure good stereo sound, the left and right channels need a certain degree of isolation, meaning that the crosstalk between the two channels needs to be less than a certain standard. How to effectively reduce crosstalk between the two channels is an important problem that the industry needs to solve. Summary of the Invention

[0004] The technical problem solved by the embodiments of the present invention is how to reduce headphone crosstalk and improve the stereo effect of the headphone.

[0005] To address the aforementioned technical problems, this invention provides a method for reducing headphone crosstalk, comprising: responding to a headphone crosstalk calibration operation, playing a test audio source, wherein the signal input to the first channel is an audio signal, and the signal input to the second channel is a mute signal; adjusting the headphone crosstalk gain within a set headphone crosstalk gain range according to a set adjustment step size; compensating the original signal output from the second channel using the headphone crosstalk gain to obtain a compensated signal for the second channel; acquiring the volume of the compensated signal output by the currently inserted second headphone, wherein the volume of the second channel is acquired when only the second headphone is worn; determining the minimum volume of the compensated signal output by the second headphone based on the changing trend of the volume of the compensated signal output by the second headphone corresponding to each headphone crosstalk gain; and determining the optimal crosstalk gain for the currently inserted headphone based on the headphone crosstalk gain corresponding to the minimum volume of the compensated signal output by the second headphone.

[0006] Optionally, determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone includes: determining a candidate crosstalk gain range based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone and the adjustment step size when adjusting the earphone crosstalk gain; reducing the adjustment step size, and adjusting the earphone crosstalk gain within the candidate crosstalk gain range based on the reduced adjustment step size, and taking the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone that is collected again as the optimal crosstalk gain of the currently inserted earphone.

[0007] Optionally, the method for reducing headphone crosstalk further includes: based on the changing trend of the sound volume of the compensated signal output by the second headphone corresponding to each headphone crosstalk gain, when it is determined that the sound volume shows a trend of first decreasing and then increasing, outputting a sound transition change reminder message, wherein the sound transition change reminder message is used to indicate the occurrence of the optimal crosstalk gain.

[0008] Optionally, the method for reducing headphone crosstalk further includes: plotting and displaying a sound volume change graph based on the change trend of the sound volume of the compensated signal output by the second headphone corresponding to each headphone crosstalk gain.

[0009] Optionally, the step of using the headphone crosstalk gain to compensate the original signal output from the second channel includes: determining the compensation signal corresponding to the headphone crosstalk gain according to a preset mapping relationship between the headphone crosstalk gain and the compensation signal; and using the compensation signal to compensate the original signal output from the second channel.

[0010] Optionally, the method for reducing headphone crosstalk further includes: saving the optimal crosstalk gain of the currently inserted headphone.

[0011] Optionally, the volume of the second channel is captured when the playback volume is at its maximum.

[0012] To address the aforementioned technical problems, this invention also provides a headphone crosstalk reduction device, comprising: a playback unit for playing a test sound source in response to a headphone crosstalk calibration operation, wherein the first channel of the test sound source is an audio signal and the second channel is a mute signal; an adjustment unit for adjusting the headphone crosstalk gain within a set headphone crosstalk gain range according to a set adjustment step size; a acquisition unit for compensating the original signal output from the second channel using the headphone crosstalk gain to obtain a compensated signal for the second channel, and acquiring the volume of the compensated signal output from the currently inserted headphone, wherein the volume of the second channel is acquired when only the second headphone is worn; and a determination unit for determining the minimum volume of the compensated signal output from the second headphone based on the changing trend of the volume of the compensated signal output from the second headphone corresponding to each headphone crosstalk gain, and determining the optimal crosstalk gain for the currently inserted headphone based on the headphone crosstalk gain corresponding to the minimum volume of the compensated signal output from the second headphone.

[0013] To address the aforementioned technical problems, embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, performs the steps of any of the above-described headphone crosstalk reduction methods.

[0014] To address the aforementioned technical problems, embodiments of the present invention also provide a terminal, including a memory and a processor. The memory stores a computer program capable of running on the processor, and when the processor runs the computer program, it executes the steps of any of the headphone crosstalk reduction methods described above.

[0015] Compared with the prior art, the technical solution of the embodiments of the present invention has the following beneficial effects:

[0016] Within a set headphone crosstalk gain range, the headphone crosstalk gain is adjusted according to a set adjustment step size. The original signal output from the second channel is compensated using this headphone crosstalk gain to obtain a compensated signal for the second channel. The volume of the compensated signal output from the currently inserted second headphone is collected, where the volume of the second channel is collected when only the second headphone is worn. Based on the changing trend of the volume of the compensated signal output from the second headphone corresponding to each headphone crosstalk gain, the minimum volume of the compensated signal output from the second headphone is determined. The optimal crosstalk gain for the currently inserted headphone is determined based on the headphone crosstalk gain corresponding to the minimum volume of the compensated signal output from the second headphone. Thus, when headphones are inserted, by adjusting the headphone crosstalk gain according to a set adjustment step size and combining this with the minimum volume of the compensated signal output from the second headphone, an optimal crosstalk gain suitable for the currently inserted headphone is obtained, improving the compatibility between the determined optimal crosstalk gain and the currently inserted headphone. The headphone crosstalk reduction method provided in this invention determines the optimal crosstalk gain, which can be adapted to headphones with different impedances. This allows users to customize the headphone crosstalk gain according to their needs, optimize the headphone to minimize crosstalk, ensure the sound quality of the headphone output, and improve the headphone's anti-crosstalk performance and stereo effect. Attached Figure Description

[0017] Figure 1 This is a flowchart of a method for reducing headphone crosstalk in an embodiment of the present invention;

[0018] Figure 2 This is a schematic diagram of an earphone crosstalk debugging interface in an embodiment of the present invention;

[0019] Figure 3 This is a flowchart of a method for reducing headphone crosstalk in a typical scenario;

[0020] Figure 4 This is a schematic diagram of an earphone circuit.

[0021] Figure 5 This is a schematic diagram of the structure of a headphone crosstalk reduction device according to an embodiment of the present invention. Detailed Implementation

[0022] The 3.5mm headphone jack (a 3.5mm coaxial audio jack) is widely used in consumer products due to its long history, standardized design, low cost, and stable connection. The implementation of a USB Type-C headphone jack with an adapter is the same as that of a 3.5mm headphone jack, because of the contact impedance of the 3.5mm headphone jack and the Type-C mechanical interface, as well as the PCB trace impedance of electronic products. As mentioned above, since the left and right channels of the headphones share a common ground, there is impedance in the ground loop of the left and right channels. This impedance generates voltage division, which crosstalks to the other channel. Specifically, the voltage division of the electrical signal of the left channel on the return ground affects the right channel, and the voltage division of the electrical signal of the right channel on the return ground affects the left channel, creating audio crosstalk at the headphone jack, reducing sound quality, and affecting the user experience.

[0023] Some existing methods allow for the measurement of compensation gain in a laboratory environment, which can then be used for signal compensation. However, due to differences in the wiring of different headphone brands, the impedance at GND varies. Even headphones from the same brand may have different impedances at GND. Therefore, the compensation gain optimized in the laboratory may not be suitable for all headphones, and the problem of audio crosstalk still exists.

[0024] Research has revealed that the impedance generated in headphones is primarily due to the presence of hardware impedances Rg1 to Rg3 in the headphone circuit. Rg1 is the impedance of the ground wire on the headphone head, which is related to the wire length; Rg2 is the contact impedance between the headphone head and the headphone socket; and Rg3 is the impedance between the ground terminal of the headphone socket and the ground terminal of the PCB board. The magnitude of crosstalk is related to impedances Rg1, Rg2, and Rg3. Reducing the value of (Rg1 + Rg2 + Rg3) can decrease headphone crosstalk, but Rg1, being the impedance on the headphone wire, is related to the wire length and cannot be reduced to 0 ohms. Therefore, even if Rg2 and Rg3 are reduced to 0 ohms, headphone crosstalk cannot be completely eliminated.

[0025] Since the impedance Rg1 of the headphone cable and the contact impedance Rg2 between the headphone head and the headphone base may be different for different headphones, the compensation gain obtained based on laboratory environment testing cannot be applied to all headphones.

[0026] To address the aforementioned issues, in this embodiment of the invention, when headphones are inserted, the headphone crosstalk gain is adjusted according to a set adjustment step size. Combined with the minimum sound value of the compensated signal from the second headphone output, an optimal crosstalk gain suitable for the currently inserted headphones is obtained. This improves the compatibility between the determined optimal crosstalk gain and the currently inserted headphones. Using the headphone crosstalk reduction method provided in this embodiment to determine the optimal crosstalk gain allows for compatibility with headphones of different impedances, enabling users to customize the headphone crosstalk gain according to their needs. This optimizes the headphones to minimize crosstalk, ensuring the sound quality of the headphone output and improving the headphone's anti-crosstalk performance and stereo effect.

[0027] To make the above-mentioned objectives, features and beneficial effects of the embodiments of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0028] This invention provides a method for reducing headphone crosstalk. This method can be executed by a terminal, a chip or chip module within the terminal that has headphone crosstalk reduction functionality, or a chip or chip module within the terminal that has data processing functionality. The terminal can be a mobile phone, computer, tablet computer, or other device that supports mechanical interface headphones, including 3.5mm mechanical interface headphones, Type-C mechanical interface headphones, and other types of mechanical interface headphones.

[0029] refer to Figure 1 A flowchart of a method for reducing headphone crosstalk according to an embodiment of the present invention is provided, which may specifically include the following steps:

[0030] Step 101: In response to the headphone crosstalk calibration operation, a test audio source is played, wherein the signal input to the first channel of the test audio source is an audio signal, and the signal input to the second channel is a mute signal.

[0031] Step 102: Within the set headphone crosstalk gain range, adjust the headphone crosstalk gain according to the set adjustment step size.

[0032] Step 103: Compensate the original signal output by the second channel using the headphone crosstalk gain to obtain the compensated signal of the second channel. Collect the volume of the compensated signal output by the second headphone currently inserted, wherein the volume of the second channel is collected when only the second headphone is worn.

[0033] Step 104: Based on the changing trend of the sound volume of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, determine the minimum sound value of the compensated signal output by the second earphone, and determine the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone.

[0034] As shown above, when headphones are plugged in, the headphone crosstalk gain is adjusted according to a set adjustment step size. Combined with the minimum sound value of the compensated signal from the second headphone output, the optimal crosstalk gain suitable for the currently plugged headphones is obtained, improving the compatibility between the determined optimal crosstalk gain and the currently plugged headphones. The headphone crosstalk reduction method provided in this embodiment of the invention, which determines the optimal crosstalk gain, can adapt to headphones with different impedances, allowing users to customize the headphone crosstalk gain according to their needs, optimizing the headphones to minimize crosstalk, ensuring the sound quality of the headphone output, and improving the stereo effect of the headphones.

[0035] In specific implementation, in step 101, the headphone crosstalk calibration operation can be triggered in a variety of ways, as illustrated below.

[0036] In some embodiments, the headphone crosstalk debugging interface on the terminal may have a "Headphone Crosstalk Optimization" or "Start" option. When a touch or click on the "Headphone Crosstalk Optimization" or "Start" option is detected, a headphone crosstalk calibration operation is triggered. In response to the headphone crosstalk calibration operation, a test audio source is played.

[0037] In other embodiments, a "Headphone Crosstalk Optimization" option may be provided on the terminal's headphone crosstalk debugging interface. When the "Headphone Crosstalk Optimization" option is touched or clicked, the headphone crosstalk optimization interface can be accessed. This interface may include buttons for triggering headphone crosstalk calibration operations, such as a "Calibrate" button, a "Test Audio Source Playback" button, or a "Start" button. When the "Calibrate" button, "Test Audio Source Playback" button, or "Start" button is clicked or touched, the headphone crosstalk calibration operation is determined to be triggered. In response to the headphone crosstalk calibration operation, a test audio source is played.

[0038] When playing a test audio source, or before or after playing a test audio source, the user can be prompted to plug in headphones, adjust the headphone volume to a specified playback volume, and wear only the second headphone. One pair of headphones can include a first headphone and a second headphone. The first headphone is used to play the signal from the first channel, and the second headphone is used to play the signal from the second channel. The first headphone can be the left headphone, and the second headphone can be the right headphone; correspondingly, the first channel is the left channel, and the second channel is the right channel. Alternatively, the first headphone can be the right headphone, and the second headphone can be the left headphone; correspondingly, the first channel is the right channel, and the second channel is the left channel.

[0039] In some non-limiting embodiments, the volume of the second channel is measured when the playback volume is at its maximum. Since headphone crosstalk is severe at maximum playback volume, the interference of the first channel to the second channel is most easily perceived by the user at maximum volume. Determining the optimal crosstalk gain at maximum volume can improve the accuracy of the determined optimal crosstalk gain, thereby improving the effect of reducing headphone crosstalk.

[0040] Understandably, the second earphone can also be configured to output the compensated signal at other volumes between the minimum and maximum volumes.

[0041] In some non-limiting embodiments, the test audio source may be pre-stored, such as pre-stored on the terminal, or pre-stored on a cloud platform or server associated with the terminal. The signal input from the test audio source to the first channel is an audio signal, which may be 0dBFS1kHz, where 0dBFS refers to the full-amplitude signal level.

[0042] In step 103, the compensation signal corresponding to the headphone crosstalk gain can be determined according to the preset mapping relationship between the headphone crosstalk gain and the compensation signal; the compensation signal is used to compensate the original signal output from the second channel.

[0043] The volume of the compensated signal output by the second earphone currently inserted can be the volume of the compensated signal heard by the user from the second earphone, or it can be collected by the sound acquisition device on the second earphone. Alternatively, the voltage of the small speaker on the earphone can be collected, and the volume of the compensated signal output by the second earphone can be determined based on the voltage. Generally, voltage is positively correlated with volume; the higher the voltage, the louder the sound.

[0044] In some embodiments, the headphone crosstalk debugging interface of the terminal may include a headphone crosstalk gain adjustment item. The headphone crosstalk gain adjustment item may be a slider, an input box, or a combination of a slider and an input box.

[0045] When adjusting headphone crosstalk gain using a slider, the set headphone crosstalk gain range represents the minimum and maximum headphone crosstalk gain supported by the slider. For example... Figure 2 This diagram illustrates the headphone crosstalk adjustment interface. The minimum headphone crosstalk gain (min) is 0, and the maximum headphone crosstalk gain (max) is 50000. It should be noted that the maximum headphone crosstalk gain is not limited to the example of 50000; other values ​​are possible and are not limited here. When the user drags slider 201, the headphone crosstalk gain can be increased or decreased by a set step size. Alternatively, the step size can be determined based on the displacement of slider 201, and the headphone crosstalk gain can be increased or decreased accordingly. It can be configured to increase the headphone crosstalk gain when dragging slider 201 along a first direction and decrease the headphone crosstalk gain when dragging slider 201 along a second direction, where the second direction is opposite to the first direction.

[0046] Furthermore, the headphone crosstalk adjustment interface can also include a crosstalk gain display box 203. This box displays the current headphone crosstalk gain, such as a current gain of 14800. By displaying the current headphone crosstalk gain through the crosstalk gain display box 203, users can easily and intuitively understand the current value and changes in the headphone crosstalk gain.

[0047] In some embodiments, the user can directly input the desired headphone crosstalk gain in the crosstalk gain display box 203. Based on the headphone crosstalk gain input by the user in the crosstalk gain display box 203, the position of the slider 201 in the slide rail 202 is adjusted.

[0048] The input box can include an increase box and a decrease box. Triggering the increase box can increase the headphone crosstalk gain by a set step size based on the current headphone crosstalk gain, and triggering the decrease box can decrease the headphone crosstalk gain by a set step size based on the current headphone crosstalk gain.

[0049] In some embodiments, such as Figure 2 As shown, "+" can be used as the indicator for increasing the size of the box, and "-" can be used as the indicator for decreasing the size of the box.

[0050] The adjustment step size for the headphone crosstalk gain using the sliding slider can be the same as or different from the adjustment step size using the input box. For example, the adjustment step size for the headphone crosstalk gain using the sliding slider can be larger than the adjustment step size using the input box.

[0051] In a non-limiting implementation of step 104, determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone can be achieved in the following way: specifically, the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone is taken as the optimal crosstalk gain of the currently inserted earphone.

[0052] In another non-limiting implementation of step 104, determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone can be achieved as follows: Specifically, a candidate crosstalk gain range is determined based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone and the adjustment step size when adjusting the earphone crosstalk gain; the adjustment step size is reduced, and the earphone crosstalk gain is adjusted within the candidate crosstalk gain range based on the reduced adjustment step size; the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone that is acquired again is taken as the optimal crosstalk gain of the currently inserted earphone.

[0053] In this way, by using a relatively large adjustment step size, the candidate crosstalk gain range where the optimal crosstalk gain may occur can be quickly determined by coarsely adjusting the headphone crosstalk gain. Then, the adjustment step size is reduced, and the headphone crosstalk gain is finely adjusted by using a relatively small adjustment step size within the candidate crosstalk gain range. Based on the headphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second headphone, the optimal crosstalk gain that is suitable for the headphone is finally determined, thereby improving the matching degree between the determined optimal crosstalk gain and the headphone.

[0054] In some embodiments, based on the headphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second headphone and the adjustment step size during headphone crosstalk gain adjustment, a first gain is determined for the headphone crosstalk gain corresponding to the nearest minimum sound value on the left, and a second gain is determined for the headphone crosstalk gain corresponding to the nearest minimum sound value on the right. The first gain, the headphone crosstalk gain corresponding to the minimum sound value, and the second gain increase sequentially. The first gain serves as the left endpoint of the candidate crosstalk gain interval, and the second gain serves as the right endpoint of the candidate crosstalk gain interval.

[0055] In some non-limiting embodiments, a sliding rail method can be used, where a slider is dragged to adjust the headphone crosstalk gain within a set range and according to a set adjustment step size. When the volume of the compensated signal output by the second headphone shows a trend of first decreasing and then increasing, the minimum volume of the compensated signal output by the second headphone can be determined, and a candidate crosstalk gain range can be determined based on the crosstalk gain corresponding to the minimum volume of the compensated signal output by the second headphone.

[0056] Subsequently, the adjustment step size is reduced, and the headphone crosstalk gain is adjusted within the candidate crosstalk gain range using the reduced adjustment step size via an input box. The headphone crosstalk gain is used to compensate for the original signal output from the second channel, resulting in a compensated signal for the second channel. Based on the changing trend of the volume of the compensated signal output from the second headphone corresponding to each headphone crosstalk gain, the minimum volume value of the compensated signal output from the second headphone is determined. The headphone crosstalk gain corresponding to the minimum volume value of the compensated signal output from the second headphone, which is acquired again, is taken as the optimal crosstalk gain for the currently inserted headphone.

[0057] In some embodiments, based on the changing trend of the volume of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, when it is determined that the volume first decreases and then increases, a sound transition reminder message is output. This sound transition reminder message is used to indicate the occurrence of optimal crosstalk gain, such as... Figure 2 The circled area shown represents the region where the sound volume first decreases and then increases. "Best" can serve as a reminder of the sound transition and indicate the optimal crosstalk gain.

[0058] Furthermore, a volume change graph can be plotted and displayed based on the volume change trend of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain. This volume change graph vividly illustrates the crosstalk gain optimization process, allowing users to quickly and intuitively understand the volume change process and thus readily identify the optimal crosstalk gain. The volume change graph can be a line graph, or a combination of a bar chart and a line graph, etc.

[0059] In some embodiments, after determining the optimal crosstalk gain for the currently inserted headphones, the optimal crosstalk gain can be saved. Thus, when the user uses the headphones again, the previously saved optimal crosstalk gain can be used as the optimal crosstalk gain for that headphone, without needing to determine it again, thus improving the convenience of determining the optimal crosstalk gain for the headphones.

[0060] To facilitate a better understanding and implementation of the embodiments of the present invention by those skilled in the art, the following description is provided in conjunction with... Figure 3 A flowchart of a method for reducing headphone crosstalk in a typical scenario is given, along with... Figure 4 A schematic diagram of an earphone circuit is provided, and a detailed explanation of methods for reducing earphone crosstalk is given.

[0061] The headphone circuit includes: an application processor (AP) 11, a codec chip 402, a PCB board 13, a headphone socket 14, and a headphone cable 15. The AP 11 is used for audio decoding to obtain digital audio signals; the codec chip 402 is used to convert the digital audio signals into analog signals, i.e., to perform digital-to-analog conversion. The left channel has a power amplifier (PA) 421 to adjust the power of the analog signal, and the right channel has a power amplifier (PA) 422 to adjust the power of the analog signal.

[0062] R1 and R2 are the impedances of the two earpieces on the headphone cable, R1 = R2; Rg1 to Rg3 are the trace impedances, where Rg1 is the impedance of the ground wire on the headphone head, which is related to the wire length; Rg2 is the contact impedance between the headphone head and the headphone socket; Rg3 is the impedance between the ground terminal of the headphone socket and the ground terminal of PCB board 13. Rz is the contact impedance between the headphone socket and the PCB board; JACK_PCB represents the ground terminal; ①, ②, ③, ④, and A to J represent different nodes.

[0063] The methods for reducing headphone crosstalk include the following steps:

[0064] Step 301: The phone has a built-in "Headphone Crosstalk Optimization" option.

[0065] Step 302 prompts the user to insert headphones, adjust the volume to maximum, and wear only the right earphone in the right ear.

[0066] Step 303: It was detected that the user clicked the "Calibrate" button.

[0067] Step 304: Play the 1k_L test audio source.

[0068] The 1k_L audio source being played inputs a test audio signal to the first channel of the headphones and a mute signal to the second channel.

[0069] The digital signal processing circuit includes a first processing unit and a second processing unit. The first processing unit adjusts the first channel audio signal to be decoded based on the headphone crosstalk gain, and the second processing unit adjusts the second channel audio signal to be decoded based on the headphone crosstalk gain. The first channel is the left channel, and the second channel is the right channel. The adjusted first channel audio signal and the second channel audio signal to be decoded are ensured to be in phase, and the adjusted audio signal to be decoded is output to the encoding / decoding circuit.

[0070] The first channel adjusted audio signal HPL1 output to the encoding / decoding module is: HPR×X_Gain+HPL×(1-X_Gain). Wherein, HPR×X_Gain is the compensation signal corresponding to the headphone crosstalk gain.

[0071] The adjusted audio signal LPR2 output to the second channel of the codec module is: HPL×X_Gain + HPR×(1-X_Gain), where HPL×X_Gain is the compensation signal corresponding to the headphone crosstalk gain. Taking the first channel as the left channel and the second channel as the right channel as an example, combined with... Figure 4 The compensation signal can cancel the crosstalk signal generated by the left channel to the right channel. The compensation signal can make the voltage difference between node ② and node ③ of the right channel approach zero, thereby making the volume of the right earphone output as small as possible, so as to improve the anti-crosstalk performance of the right earphone.

[0072] The adjustment of the audio signal to be decoded by the first processing unit includes two parts: adjustment of the audio signal of the current channel, i.e., HPL×(1-X_Gain), and correction of the crosstalk signal generated by the other channel, i.e., HPR×X_Gain. The adjustment of the audio signal of the current channel is to avoid full-width clipping distortion after directly adding the current channel signal to the compensation signal, i.e., HPR×X_Gain+HPL×(1-X_Gain). The adjustment of the audio signal to be decoded by the second processing unit is similar to that of the first processing unit, and will not be described further here.

[0073] Step 305: The system prompts the user to observe the sound level in the right ear.

[0074] In step 306, the system prompts the user to slide the "Headphone Crosstalk Gain" slider.

[0075] Each time the "Headphone Crosstalk Gain" slider is moved, the obtained headphone crosstalk gain is used to adjust the audio signals to be decoded in the first and second channels. Based on the adjusted audio signals in the first and second channels, the volume of the compensated signal output from the right headphone is measured.

[0076] In step 307, the system prompts the user that the sound amplitude in the right ear first decreases and then increases.

[0077] Step 308: Take the headphone crosstalk gain corresponding to the minimum right channel sound value as the optimal crosstalk gain for the currently inserted headphone.

[0078] Step 309 prompts the user to save the optimal crosstalk gain for the currently inserted headphones.

[0079] Step 310: When the system plays audio subsequently, it will automatically call the optimal crosstalk gain to adjust the audio crosstalk.

[0080] This invention also provides a device for reducing headphone crosstalk, referring to... Figure 5 The given schematic diagram shows the structure of the headphone crosstalk reduction device 50, which may include:

[0081] Playback unit 51 is used to play a test sound source in response to headphone crosstalk calibration operation, wherein the signal input to the first channel of the test sound source is an audio signal and the signal input to the second channel is a mute signal;

[0082] The adjustment unit 52 is used to adjust the headphone crosstalk gain within a set headphone crosstalk gain range according to a set adjustment step size.

[0083] The acquisition unit 53 is used to compensate the original signal output by the second channel using the headphone crosstalk gain to obtain the compensated signal of the second channel, and to acquire the volume of the compensated signal output by the currently inserted headphone, wherein the volume of the second channel is acquired when only the second headphone is worn;

[0084] The determining unit 54 is used to determine the minimum sound value of the compensated signal output by the second earphone based on the changing trend of the sound level of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and to determine the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone.

[0085] In specific implementations, the aforementioned headphone crosstalk reduction device 50 may correspond to a chip in the terminal that has headphone crosstalk reduction function, such as a SOC (System-On-a-Chip); or correspond to a chip module in the terminal that includes headphone crosstalk reduction function; or correspond to a chip module with data processing function; or correspond to the terminal itself.

[0086] In specific implementation, the headphone crosstalk reduction device 50 can be used to implement the above-mentioned headphone crosstalk reduction method. For the specific working principle and working method of the headphone crosstalk reduction device 50, please refer to the description of the headphone crosstalk reduction method in the above embodiments, which will not be repeated here.

[0087] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the steps of the headphone crosstalk reduction method provided in any of the above embodiments of this invention.

[0088] The computer-readable storage medium may include non-volatile or non-transitory memory, and may also include optical discs, hard disk drives, solid-state drives, etc.

[0089] Specifically, in this embodiment of the invention, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0090] It should also be understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DR RAM).

[0091] This invention also provides a terminal, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor runs the computer program, it performs the steps of the headphone crosstalk reduction method provided in any of the above embodiments.

[0092] The memory and the processor are coupled, and the memory can be located inside or outside the terminal. The memory and the processor can be connected via a communication bus.

[0093] Terminals may include, but are not limited to, mobile phones, computers, tablets, and other terminal devices.

[0094] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means.

[0095] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatus, and systems can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of units is merely a logical functional division, and other division methods may exist in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0096] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically included separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or in a combination of hardware and software functional units. For example, for various devices or products applied to or integrated into a chip, each module / unit can be implemented using hardware such as circuits, or at least some modules / units can be implemented using software programs running on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware such as circuits; for various devices or products applied to or integrated into a chip module, each module / unit can be implemented using hardware such as circuits, and different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware such as circuits. The components can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, all their modules / units can be implemented using hardware methods such as circuits. Different modules / units can reside in the same component (e.g., chip, circuit module, etc.) or different components within the terminal. Alternatively, at least some modules / units can be implemented using software programs that run on the processor integrated within the terminal, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. Additionally, the character " / " in this text indicates an "OR" relationship between the preceding and following objects.

[0097] In the embodiments of this application, "multiple" refers to two or more.

[0098] The descriptions of "first," "second," etc., appearing in the embodiments of this application are for illustrative purposes and to distinguish the objects being described. They have no order and do not indicate any special limitation on the number of devices in the embodiments of this application, nor do they constitute any limitation on the embodiments of this application.

[0099] It should be noted that the sequence number of each step in this embodiment does not represent a limitation on the execution order of each step.

[0100] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.

Claims

1. A method for reducing headphone crosstalk, characterized in that, include: In response to the headphone crosstalk calibration operation, a test audio source is played, wherein the signal input to the first channel of the test audio source is an audio signal, and the signal input to the second channel is a mute signal; Within the set headphone crosstalk gain range, adjust the headphone crosstalk gain according to the set adjustment step size; The original signal output from the second channel is compensated using the headphone crosstalk gain to obtain the compensated signal from the second channel. The volume of the compensated signal output from the currently inserted headphone is then collected, wherein the volume of the second channel is collected when only the second headphone is worn. Based on the changing trend of the sound volume of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, the minimum sound value of the compensated signal output by the second earphone is determined, and the optimal crosstalk gain of the currently inserted earphone is determined based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone.

2. The method for reducing headphone crosstalk as described in claim 1, characterized in that, The process of determining the optimal crosstalk gain for the currently inserted earphone based on the minimum sound value of the compensated signal output by the second earphone includes: Based on the minimum sound value of the compensated signal output by the second earphone and the adjustment step size when adjusting the earphone crosstalk gain, a candidate crosstalk gain range is determined. Reduce the adjustment step size, and adjust the headphone crosstalk gain within the candidate crosstalk gain range based on the reduced adjustment step size. The headphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second headphone that is collected again is taken as the optimal crosstalk gain of the currently inserted headphone.

3. The method for reducing headphone crosstalk as described in claim 1 or 2, characterized in that, Also includes: Based on the changing trend of the sound volume of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, when it is determined that the sound volume first decreases and then increases, a sound transition change reminder message is output. The sound transition change reminder message is used to indicate the occurrence of the optimal crosstalk gain.

4. The method for reducing headphone crosstalk as described in claim 1, characterized in that, Also includes: Based on the changing trend of the sound volume of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, a sound volume change graph is plotted and displayed.

5. The method for reducing headphone crosstalk as described in claim 1, characterized in that, The compensation of the original signal output from the second channel using the headphone crosstalk gain includes: The compensation signal corresponding to the headphone crosstalk gain is determined based on the preset mapping relationship between the headphone crosstalk gain and the compensation signal. The compensation signal is used to compensate the original signal output from the second channel.

6. The method for reducing headphone crosstalk as described in claim 1, characterized in that, Also includes: Save the optimal crosstalk gain for the currently inserted headphones.

7. The method for reducing headphone crosstalk as described in claim 1, characterized in that, The volume of the second channel was measured when the playback volume was at its maximum.

8. A device for reducing headphone crosstalk, characterized in that, include: The playback unit is used to play a test audio source in response to the headphone crosstalk calibration operation, wherein the first channel of the test audio source is an audio signal and the second channel is a mute signal; The adjustment unit is used to adjust the headphone crosstalk gain within a set headphone crosstalk gain range according to a set adjustment step size. The acquisition unit is used to compensate the original signal output by the second channel using the headphone crosstalk gain to obtain the compensated signal of the second channel, and to acquire the volume of the compensated signal output by the currently inserted headphone, wherein the volume of the second channel is acquired when only the second headphone is worn; The determining unit is used to determine the minimum sound value of the compensated signal output by the second earphone based on the changing trend of the sound level of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and to determine the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is run by the processor, it performs the steps of the headphone crosstalk reduction method according to any one of claims 1 to 7.

10. A terminal comprising a memory and a processor, wherein the memory stores a computer program capable of running on the processor, characterized in that, When the processor runs the computer program, it performs the steps of the headphone crosstalk reduction method according to any one of claims 1 to 7.