CN117294983A - Earphone crosstalk reduction method and device, computer readable storage medium and terminal - Google Patents
Earphone crosstalk reduction method and device, computer readable storage medium and terminal Download PDFInfo
- Publication number
- CN117294983A CN117294983A CN202311320143.6A CN202311320143A CN117294983A CN 117294983 A CN117294983 A CN 117294983A CN 202311320143 A CN202311320143 A CN 202311320143A CN 117294983 A CN117294983 A CN 117294983A
- Authority
- CN
- China
- Prior art keywords
- earphone
- crosstalk
- sound
- gain
- channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000009467 reduction Effects 0.000 title claims description 9
- 230000005236 sound signal Effects 0.000 claims abstract description 27
- 238000012360 testing method Methods 0.000 claims abstract description 27
- 230000004044 response Effects 0.000 claims abstract description 6
- 230000008859 change Effects 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 16
- 230000002829 reductive effect Effects 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 11
- 230000000875 corresponding effect Effects 0.000 description 37
- 238000012545 processing Methods 0.000 description 14
- 230000003247 decreasing effect Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 6
- 230000000670 limiting effect Effects 0.000 description 5
- 230000036961 partial effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- CJDNEKOMKXLSBN-UHFFFAOYSA-N 1-chloro-3-(4-chlorophenyl)benzene Chemical compound C1=CC(Cl)=CC=C1C1=CC=CC(Cl)=C1 CJDNEKOMKXLSBN-UHFFFAOYSA-N 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 238000010992 reflux Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 101150002740 CYP74B2 gene Proteins 0.000 description 1
- 101150089216 LPR2 gene Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention discloses a method and a device for reducing earphone crosstalk, a computer-readable storage medium and a terminal, wherein the method comprises the following steps: in response to the earphone crosstalk calibration operation, playing a test sound source, wherein a signal input to a first sound channel by the test sound source is an audio signal, and a signal input to a second sound channel is a mute signal; adjusting the earphone crosstalk gain according to the set adjusting step length within the set earphone crosstalk gain interval range; compensating an original signal output by a second channel by adopting earphone crosstalk gain to obtain a signal after the second channel compensation, and collecting the sound size of the signal after the second channel compensation output by the second earphone, wherein the sound size of the second channel is collected when only the second earphone is worn; and determining the minimum sound value output by the second earphone, and determining the optimal crosstalk gain of the earphone inserted currently based on the earphone crosstalk gain corresponding to the minimum sound value. The scheme can reduce earphone crosstalk and improve earphone stereophonic effect.
Description
Technical Field
The embodiment of the invention relates to the technical field of audio processing, in particular to a method and a device for reducing earphone crosstalk, a computer readable storage medium and a terminal.
Background
Currently, with the popularization of mobile networks, audio and video multimedia is increasingly favored by consumers. The earphone mode is gradually favored by more and more users due to fine tone quality and real stereo effect. And because the left and right channels of the earphone are in backflow common ground, the partial pressure of the electric signal of the left channel on the backflow ground can influence the right channel, the partial pressure of the electric signal of the right channel on the backflow ground can influence the left channel, sound crosstalk can be formed at the earphone interface, the sound quality is reduced, and the user experience is influenced.
In order to ensure good stereo effect, the left and right channels need a certain isolation, i.e. the crosstalk between the two channels needs to be smaller than a certain standard, and how to effectively reduce the crosstalk between the two channels is an important problem to be solved in the industry.
Disclosure of Invention
The technical problem solved by the embodiment of the invention is how to reduce the crosstalk of the earphone and improve the stereo effect of the earphone.
In order to solve the above technical problems, an embodiment of the present invention provides a method for reducing crosstalk of an earphone, including: in response to the earphone crosstalk calibration operation, playing a test sound source, wherein a signal input to a first sound channel by the test sound source is an audio signal, and a signal input to a second sound channel is a mute signal; adjusting the earphone crosstalk gain according to the set adjusting step length within the set earphone crosstalk gain interval range; compensating an original signal output by a second channel by adopting the earphone crosstalk gain to obtain a second channel compensated signal, and collecting the sound size of the second channel compensated signal output by the second earphone which is currently inserted into the earphone, wherein the sound size of the second channel is collected when only the second earphone is worn; and determining the minimum value of the sound of the compensated signal output by the collected second earphone according to the change trend of the sound of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum value of the sound of the compensated signal output by the collected second earphone.
Optionally, the determining, based on the collected second earphone output the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal, the optimal crosstalk gain of the currently inserted earphone includes: determining a candidate crosstalk gain section according to the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone and the adjustment step length when the earphone crosstalk gain is adjusted; and reducing the adjustment step length, adjusting the earphone crosstalk gain in the candidate crosstalk gain interval based on the reduced adjustment step length, and taking the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone acquired again as the optimal crosstalk gain of the currently inserted earphone.
Optionally, the method for reducing earphone crosstalk further includes: and outputting sound turning change reminding information according to the change trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and when the trend of the sound size which is firstly reduced and then increased is determined, outputting the sound turning change reminding information, wherein the sound turning change reminding information is used for indicating the occurrence of the optimal crosstalk gain.
Optionally, the method for reducing earphone crosstalk further includes: and drawing and displaying a sound size change chart according to the change trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain.
Optionally, the compensating the original signal output by the second channel with the earphone crosstalk gain includes: determining a compensation signal corresponding to the earphone crosstalk gain according to a mapping relation between the preset earphone crosstalk gain and the compensation signal; and compensating the original signal output by the second channel by adopting the compensation signal.
Optionally, the method for reducing earphone crosstalk further includes: and saving the optimal crosstalk gain of the currently inserted earphone.
Optionally, the sound size of the second channel is acquired when the playing volume is the maximum volume.
In order to solve the above technical problem, an embodiment of the present invention further provides a device for reducing crosstalk of an earphone, including: the playing unit is used for responding to the earphone crosstalk calibration operation and playing the test sound source, wherein a first sound channel of the test sound source is an audio signal, and a second sound channel of the test sound source is a mute signal; the adjusting unit is used for adjusting the earphone crosstalk gain according to the set adjusting step length in the set earphone crosstalk gain interval range; the acquisition unit is used for compensating an original signal output by a second channel by adopting the earphone crosstalk gain to obtain a second compensated signal, and acquiring the sound size of the compensated signal output by a second earphone which is currently inserted into the earphone, wherein the sound size of the second channel is acquired when only the second earphone is worn; and the determining unit is used for determining a minimum value of sound of the compensated signal output by the collected second earphone according to the change trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum value of sound of the compensated signal output by the collected second earphone.
To solve the above technical problem, an embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, where the computer program when executed by a processor performs the steps of any of the above methods for reducing crosstalk of headphones.
In order to solve the above technical problems, an embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory stores a computer program capable of running on the processor, and the processor executes the steps of any one of the methods for reducing crosstalk of headphones when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
adjusting the earphone crosstalk gain according to the set adjusting step length within the set earphone crosstalk gain interval range; compensating an original signal output by a second channel by adopting the earphone crosstalk gain to obtain a second channel compensated signal, and collecting the sound size of the second channel compensated signal output by the second earphone which is currently inserted into the earphone, wherein the sound size of the second channel is collected when only the second earphone is worn; and determining the minimum value of the sound of the compensated signal output by the collected second earphone according to the change trend of the sound of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum value of the sound of the compensated signal output by the collected second earphone. When the earphone is inserted, the crosstalk gain of the earphone is adjusted according to the set adjusting step length, and the acquired minimum sound value of the compensated signal output by the second earphone is combined to obtain the optimal crosstalk gain matched with the current earphone, so that the degree of matching between the determined optimal crosstalk gain and the current earphone is improved. The method for reducing the crosstalk of the earphone provided by the embodiment of the invention determines the optimal crosstalk gain, can be adapted to earphones with different impedances, realizes customized configuration of the crosstalk gain of the earphone according to the requirements of users, optimizes the earphone to the minimum crosstalk effect, ensures the sound quality output by the earphone, and improves the anti-crosstalk performance and the stereo effect of the earphone.
Drawings
Fig. 1 is a flowchart of a method for reducing crosstalk between headphones according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an earphone crosstalk debug interface according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of reducing earphone crosstalk in a typical scenario;
FIG. 4 is a schematic diagram of an earphone circuit;
fig. 5 is a schematic structural diagram of an apparatus for reducing crosstalk of headphones according to an embodiment of the present invention.
Detailed Description
The 3.5mm earphone interface (coaxial audio jack with diameter of 3.5 mm) is widely applied to consumer products because of long history, unified standard, low cost and stable connection. The implementation scheme of adding the adapter to the USB Type-C earphone interface is the same as that of a 3.5mm earphone, because of the contact impedance of the 3.5mm earphone and the Type C mechanical interface and the PCB wiring impedance of the electronic product. As described above, since the left and right channels of the headphones are reflowed to the common ground, there is an impedance in the ground loop of the left and right channels of the headphones, which generates a divided voltage, which is crosstalk to the other channel. Specifically, the partial pressure of the electric signal of the left channel on the reflux ground can affect the right channel, the partial pressure of the electric signal of the right channel on the reflux ground can affect the left channel, sound crosstalk can be formed at the earphone interface, sound quality is reduced, and user experience is affected.
Some existing schemes can measure the compensation gain in a laboratory environment, and then the compensation gain can be used for signal compensation. However, due to the difference of the wiring of the earphone brands of different earphones, the impedance on the GND is different, and even the earphone brands are the same, the impedance on the GND is also possibly different, so that the compensation gain after the laboratory tuning is not necessarily suitable for all the earphones, and the problem of sound crosstalk still exists.
It is found that the reason why the earphone generates impedance is mainly: there are some hardware impedances Rg 1-Rg 3 in the earphone circuit, where Rg1 is the impedance of the ground wire on the earphone head, rg2 is the contact impedance between the earphone head and the earphone seat, and Rg3 is the impedance between the ground end of the earphone seat and the ground end of the PCB. The magnitude of crosstalk is related to the impedances Rg1, rg2, rg3, and decreasing the value of (rg1+rg2+rg3) can reduce the earphone crosstalk, but Rg1 is the impedance on the earphone line, and is related to the line length, and cannot be reduced to 0 ohm. Therefore, even if Rg2 and Rg3 are reduced to 0 ohm, the presence of earphone crosstalk cannot be completely eliminated.
Since the impedance Rg1 on the earphone wire and the contact impedance Rg2 between the earphone head and the earphone seat of different earphones may be different, the compensation gain obtained based on the laboratory environment test cannot be applied to all earphones.
In order to solve the above-mentioned problems, in the embodiment of the present invention, when an earphone is inserted, by adjusting the crosstalk gain of the earphone according to a set adjustment step, and combining the collected minimum sound value of the compensated signal output by the second earphone, an optimal crosstalk gain adapted to the currently inserted earphone is obtained, so that the degree of adaptation between the determined optimal crosstalk gain and the currently inserted earphone can be improved. The method for reducing the crosstalk of the earphone provided by the embodiment of the invention determines the optimal crosstalk gain, can be adapted to earphones with different impedances, realizes customized configuration of the crosstalk gain of the earphone according to the requirements of users, optimizes the earphone to the minimum crosstalk effect, ensures the sound quality output by the earphone, and improves the anti-crosstalk performance and the stereo effect of the earphone.
In order to make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
The embodiment of the invention provides a method for reducing earphone crosstalk, which can be executed by a terminal, a chip or a chip module with earphone crosstalk reduction function in the terminal, and a chip or a chip module with data processing function in the terminal. The terminal can be a device supporting mechanical interface type earphone such as a mobile phone, a computer and a tablet personal computer, and the mechanical interface type earphone comprises 3.5mm mechanical interface earphone, typeC mechanical interface earphone and other mechanical interface type earphone.
Referring to fig. 1, a flowchart of a method for reducing crosstalk of an earphone in an embodiment of the present invention may specifically include the following steps:
step 101, in response to the earphone crosstalk calibration operation, playing a test sound source, wherein a signal input to the first channel by the test sound source is an audio signal, and a signal input to the second channel is a mute signal.
Step 102, adjusting the earphone crosstalk gain according to the set adjusting step length within the set earphone crosstalk gain interval range.
And 103, compensating an original signal output by a second channel by adopting the earphone crosstalk gain to obtain a second channel compensated signal, and collecting the sound size of the second channel compensated signal output by the second earphone which is currently inserted into the earphone, wherein the sound size of the second channel is collected when only the second earphone is worn.
Step 104, determining a minimum value of sound of the compensated signal output by the collected second earphone according to a variation trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum value of sound of the compensated signal output by the collected second earphone.
According to the above, when the earphone is inserted, the crosstalk gain of the earphone is adjusted according to the set adjusting step length, and the acquired minimum sound value of the compensated signal is output by combining with the second earphone, so that the optimal crosstalk gain adapted to the currently inserted earphone is obtained, and the adaptation degree of the determined optimal crosstalk gain and the currently inserted earphone is improved. The method for reducing the crosstalk of the earphone provided by the embodiment of the invention determines the optimal crosstalk gain, can be adapted to earphones with different impedances, realizes customized configuration of the crosstalk gain of the earphone according to the requirements of users, optimizes the earphone to the minimum crosstalk effect, ensures the sound quality output by the earphone, and improves the stereo effect of the earphone.
In particular implementations, in step 101, the earpiece crosstalk calibration operation may be triggered in a number of ways, as illustrated below.
In some embodiments, an earphone crosstalk tuning or starting option may be set on an earphone crosstalk tuning interface of the terminal, and when a touch is detected or the earphone crosstalk tuning or starting option is clicked, it is determined that an earphone crosstalk calibration operation is triggered. And playing the test sound source in response to the earphone crosstalk calibration operation.
In other embodiments, an "earphone crosstalk tuning preference" option may be set on an earphone crosstalk tuning interface of the terminal, and when a touch or clicking on the "earphone crosstalk tuning preference" option is detected, the earphone crosstalk tuning interface may be entered, and a button for triggering an earphone crosstalk calibration operation, such as a "calibration" button or a "test audio play" button or a "start" button, may be set on the earphone crosstalk tuning interface. When clicking or touching the calibration button or the test sound source play button or the start button is detected, the earphone crosstalk calibration operation is judged to be triggered. And playing the test sound source in response to the earphone crosstalk calibration operation.
The user may be prompted to insert headphones, adjust the volume of the headphones to a specified play volume, and wear only the second headphones while playing the test sound source, or before or after playing the test sound source. One of the pair of headphones may include a first headphone for playing a signal of the first channel and a second headphone for playing a signal of the second channel. The first earphone may be a left earphone, the second earphone is a right earphone, and accordingly, the first channel is a left channel and the second channel is a right channel. Or, the first earphone is a right earphone, the second earphone is a left earphone, and correspondingly, the first channel is a right channel and the second channel is a left channel.
In some non-limiting embodiments, the sound size of the second channel is acquired when the play volume is at a maximum volume. Because the earphone crosstalk is serious under the maximum playing volume, when the maximum volume is reached, the interference of the first sound channel to the second sound channel is most easily perceived by a user, and the optimal crosstalk gain is determined under the maximum volume, the accuracy of the determined optimal crosstalk gain can be improved, and the effect of reducing the earphone crosstalk is improved.
It will be appreciated that the second earpiece may also be configured to output the sound of the compensated signal at other volumes between the minimum volume and the maximum volume.
In some non-limiting embodiments, the test sound source may be pre-stored, such as pre-stored at the terminal, or may be pre-stored at a cloud platform or server associated with the terminal, etc. The signal input to the first channel by the test audio source is an audio signal, which may be 0dbFS1khz, where 0dbFS refers to the full signal level.
In step 103, according to a mapping relationship between a preset earphone crosstalk gain and a compensation signal, determining a compensation signal corresponding to the earphone crosstalk gain; and compensating the original signal output by the second channel by adopting the compensation signal.
The second earphone which is inserted into the earphone at present is collected to output the sound size of the compensated signal, the sound size of the compensated signal can be heard by a user from the second earphone, the sound size of the compensated signal can be collected by the second earphone through a sound collecting device arranged on the second earphone, the voltage of a small loudspeaker on the earphone can be collected, the sound size of the compensated signal is determined to be output by the second earphone according to the voltage, and the voltage is normally positively correlated with the sound size, and the higher the voltage is, the larger the sound is.
In some embodiments, an earphone crosstalk gain adjustment item may be provided on an earphone crosstalk debug interface of the terminal, where the earphone crosstalk gain adjustment item may be in a sliding rail manner, or in an input frame manner, or in a manner of combining the sliding rail and the input frame.
When the sliding rail is adopted to adjust the earphone crosstalk gain, the set earphone crosstalk gain interval range is the minimum earphone crosstalk gain and the maximum earphone crosstalk gain supported by the sliding rail. As shown in the schematic diagram of the earphone crosstalk debug interface illustrated in fig. 2, the minimum earphone crosstalk gain (min) is 0, and the maximum earphone crosstalk gain (max) is 50000. The maximum headphone crosstalk gain is not limited to 50000, but may be another value, and is not limited thereto. When the user drags the slider 201, the earphone crosstalk gain may be increased or decreased according to the set step size, or the corresponding step size may be determined according to the displacement of the slider 201 dragged by the user, and the earphone crosstalk gain may be increased or decreased according to the determined step size. May be configured to increase the earphone crosstalk gain when the slider 201 is dragged in a first direction and decrease the earphone crosstalk gain when the slider 201 is dragged in a second direction, the second direction being opposite to the first direction.
Further, the crosstalk adjustment interface of the earphone may further be provided with a crosstalk gain display box 203, where the crosstalk gain display box 203 is configured to display a current crosstalk gain of the earphone, for example, the current crosstalk gain of the earphone is 14800. The crosstalk gain of the earphone is displayed through the crosstalk gain display frame 203, so that a user can intuitively know the current value and the change condition of the crosstalk gain of the earphone.
In some embodiments, the user may directly input the desired earphone crosstalk gain within the crosstalk gain display box 203. The position of the slider 201 in the slide rail 202 is adjusted according to the crosstalk gain of the earphone input by the user in the crosstalk gain display box 203.
The input frame may include an increase frame and a decrease frame, the trigger increase frame may increase the headphone crosstalk gain according to a set step size based on the current headphone crosstalk gain, and the trigger decrease frame may decrease the headphone crosstalk gain according to a set step size based on the current headphone crosstalk gain.
In some embodiments, as shown in FIG. 2, "+" may be used as an identification of an increasing box and "-" may be used as an identification of a decreasing box.
The adjustment step length of the sliding block to the earphone crosstalk gain can be the same as or different from the adjustment step length of the sliding block to the earphone crosstalk gain through the input frame. For example, the adjustment step size of the sliding rail for the earphone crosstalk gain may be larger than the adjustment step size of the sliding rail for the earphone crosstalk gain through the input box.
In one 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 acquired minimum sound value of the second earphone output the compensated signal may be implemented by specifically taking the earphone crosstalk gain corresponding to the acquired minimum sound value of the second earphone output the compensated signal as the optimal crosstalk gain of the currently inserted earphone.
In another non-limiting implementation of step 104, determining the optimal crosstalk gain of the currently inserted earphone based on the collected earphone crosstalk gain corresponding to the minimum sound value of the second earphone output compensated signal may be implemented by, specifically, determining a candidate crosstalk gain interval according to the earphone crosstalk gain corresponding to the minimum sound value of the second earphone output compensated signal and the adjustment step length when the earphone crosstalk gain is adjusted; and reducing the adjustment step length, adjusting the earphone crosstalk gain in the candidate crosstalk gain interval based on the reduced adjustment step length, and taking the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone acquired again as the optimal crosstalk gain of the currently inserted earphone.
Therefore, a relatively large adjustment step length is adopted, a candidate crosstalk gain section in which the optimal crosstalk gain is likely to appear can be rapidly determined through coarse adjustment of the crosstalk gain of the earphone, the adjustment step length is further reduced, the crosstalk gain of the earphone is finely adjusted through a relatively small adjustment step length in the candidate crosstalk gain section, the optimal crosstalk gain matched with the earphone is finally determined based on the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone acquired again, and the matching degree of the determined optimal crosstalk gain and the earphone is improved.
In some embodiments, according to the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone and the adjustment step length when the earphone crosstalk gain is adjusted, determining a first gain of the earphone crosstalk gain corresponding to the minimum sound value closest to the left, and determining a second gain of the earphone crosstalk gain corresponding to the minimum sound value closest to the right, where the first gain, the earphone crosstalk gain corresponding to the minimum sound value, and the second gain are sequentially increased. Wherein the first gain is used as the left end point of the section of the candidate crosstalk gain section, and the second gain is used as the right end point of the section of the candidate crosstalk gain section.
In some non-limiting embodiments, the sliding rail mode may be adopted first, and the earphone crosstalk gain is adjusted according to the set adjustment step size within the set earphone crosstalk gain range by dragging the sliding block to move. When the second earphone outputs the trend of decreasing before increasing of the sound size of the compensated signal, the sound minimum value of the second earphone outputting the compensated signal can be determined, and the candidate crosstalk gain interval is determined according to the crosstalk gain corresponding to the sound minimum value of the second earphone outputting the compensated signal.
And reducing the adjustment step length, and adjusting the earphone crosstalk gain in the candidate crosstalk gain section in the reduced adjustment step length by means of an input box. And compensating the original signal output by the second channel by adopting the earphone crosstalk gain to obtain a signal after the second channel compensation, and determining the minimum sound value of the acquired signal after the second earphone outputs the compensated signal according to the change trend of the sound size of the signal after the second earphone outputs the compensation corresponding to each earphone crosstalk gain. And taking the crosstalk gain of the earphone corresponding to the minimum sound value of the compensated signal output by the second earphone acquired again as the optimal crosstalk gain of the earphone inserted currently.
In some embodiments, according to the trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, when the trend of the sound size decreasing first and then increasing is determined, sound turning change reminding information is output, the sound turning change reminding information is used for indicating that the optimal crosstalk gain occurs, a circle area shown in fig. 2 is an area where the trend of the sound size decreasing first and then increasing is shown, and "Best" can be used as sound turning change reminding information for prompting that the optimal crosstalk gain occurs.
Further, according to the variation trend of the sound size of the compensated signal output by the second earphone corresponding to the crosstalk gain of each earphone, a sound size variation graph can be drawn and displayed. The crosstalk gain adjusting and optimizing process can be vividly displayed through the sound size change chart, so that a user can timely and intuitively know the sound size change process, and the occurrence of the optimal crosstalk gain can be intuitively and timely known. The sound size change chart may be a line chart, a combined chart in which a bar chart and a line chart are combined, or the like.
In some embodiments, after determining the optimal crosstalk gain of the currently inserted earphone, the optimal crosstalk gain of the currently inserted earphone may also be saved. Therefore, when the user uses the earphone next time, the optimal crosstalk gain corresponding to the earphone stored before can be used as the optimal crosstalk gain of the earphone, the optimal crosstalk gain of the earphone is not required to be determined again, and convenience in determining the optimal crosstalk gain of the earphone is improved.
In order to facilitate better understanding and implementation of the embodiments of the present invention by those skilled in the art, a method for reducing crosstalk between headphones in a typical scenario is described in detail below with reference to a flowchart of the method for reducing crosstalk between headphones in a typical scenario shown in fig. 3 and a schematic diagram of a headphone circuit shown in fig. 4.
The earphone circuit includes: an application processor (Application Processor, AP) 11, a Codec (Codec) chip 402, a PCB 13, a headset base 14 and a headset cord 15. The AP11 is used for audio decoding to obtain a digital audio signal; the codec chip 402 is configured to convert the digital audio signal into an analog signal, i.e. perform digital-to-analog conversion, and the analog signal is Power-adjusted by a PA (Power Amplifier) 421 for the left channel and Power-adjusted by a PA (Power Amplifier) 422 for the right channel.
R1 and R2 are impedances of two earphones on the earphone wire, and r1=r2; rg 1-Rg 3 are wiring impedances, wherein Rg1 is the impedance of the ground wire on the earphone head, rg2 is the contact impedance of the earphone head and the earphone seat, and Rg3 is the impedance between the grounding end of the earphone seat and the grounding end of the PCB 13. Rz is the contact resistance Hangzhou of the earphone seat and the PCB; JACK_PCB represents a grounding terminal, and (1), (2), (3), (4) and A-J represent different nodes respectively.
The method for reducing the earphone crosstalk specifically comprises the following steps:
step 301, a "earphone crosstalk tuning" option is built in the mobile phone.
Step 302, prompt the user to insert headphones, adjust the volume to maximum, and wear only the right headphone of the right ear.
In step 303, it is detected that the user clicks the "calibrate" button.
Step 304, play 1k_l test sound source.
The played 1k_L sound source inputs a test audio signal and a second sound channel input mute signal in a first sound channel of the earphone.
The digital signal processing circuit comprises a first processing unit and a second processing unit. The first processing unit adjusts the first channel to be decoded audio signal according to the earphone crosstalk gain, the second processing unit adjusts the second channel to be decoded audio signal according to the earphone crosstalk gain, the first channel is a left channel, and the second channel is a right channel. And ensuring that the phase of the adjusted audio signal to be decoded of the first channel is the same as that of the phase of the audio signal to be decoded of the second channel, and outputting the adjusted audio signal to be decoded to the encoding and decoding circuit.
The audio signal HPL1 after the first channel adjustment output to the codec module is: HPRX_Gain+HPL× (1-X_Gain). Wherein HPRX_Gain is a compensation signal corresponding to the crosstalk Gain of the earphone.
The audio signal LPR2 after the second channel adjustment output to the codec module is: HPL X_Gain+HPR X (1-X_Gain), wherein HPL X_Gain is a compensation signal corresponding to the earphone crosstalk Gain. Taking the first channel as the left channel and the second channel as the right channel as an example, in combination with fig. 4, the compensation signal can offset the crosstalk signal generated by the left channel to the right channel, and the voltage difference between the voltage of the node (2) of the right channel and the voltage of the node (3) can be made by the compensation signal, so that the voltage difference tends to be zero, and the sound output by the right earphone is as small as possible, so as to improve the anti-crosstalk performance of the right earphone.
The above-mentioned adjustment of the audio signal to be decoded by the first processing unit comprises two parts: the adjustment of the audio signal of the present channel, i.e., HPL× (1-X_Gain), and the correction of the crosstalk signal generated by the other channel, i.e., HPR×X_Gain. The audio signal of the present channel is adjusted to avoid full-width truncated distortion after the present channel signal is directly added 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 the adjustment of the audio signal to be decoded by the first processing unit, and will not be repeated here.
In step 305, the system prompts the user to observe the right ear sound size.
At step 306, the system prompts the user to slide the "headphone crosstalk gain" slider.
After each sliding of the 'headphone crosstalk gain' slider, the obtained headphone crosstalk gain is used to adjust the audio signal to be decoded of the first channel and the audio signal to be decoded of the second channel. And acquiring the sound size of the right earphone output compensated signal according to the adjusted first channel audio signal to be decoded and the second channel audio signal to be decoded.
In step 307, the system prompts the user that the right ear sound amplitude is decreasing and then increasing.
And 308, taking the corresponding crosstalk gain of the earphone when the sound of the right channel is the minimum value as the optimal crosstalk gain of the earphone inserted currently.
Step 309, the user is prompted to save the optimal crosstalk gain for the currently inserted earphone.
Step 310, when the system plays the audio later, the system automatically invokes the optimal crosstalk gain to adjust the audio crosstalk.
The embodiment of the present invention further provides a device for reducing crosstalk between headphones, referring to fig. 5, a schematic structural diagram of the device for reducing crosstalk between headphones is provided, and the device for reducing crosstalk between headphones 50 may include:
a playing unit 51, configured to respond to the earphone crosstalk calibration operation, and play a test sound source, where a signal input to the first channel by the test sound source is an audio signal, and a signal input to the second channel is a mute signal;
an adjusting unit 52, configured to adjust the headphone crosstalk gain according to the set adjustment step within the set headphone crosstalk gain range;
the acquisition unit 53 is configured to compensate an original signal output by the second channel by using the crosstalk gain of the earphone to obtain a second compensated signal, and acquire a sound size of the second channel, which is acquired when only the second earphone is worn, of the second earphone currently inserted into the earphone to output the compensated signal;
and the determining unit 54 is configured to determine, according to a trend of variation of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, a collected 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 collected minimum sound value of the compensated signal output by the second earphone.
In a specific implementation, the above-mentioned earphone crosstalk reduction device 50 may correspond to a Chip having an earphone crosstalk reduction function in a terminal, such as an SOC (System-On-a-Chip) or the like; or corresponds to a chip module including a function of reducing crosstalk of headphones in the terminal; or corresponds to a chip module having a chip with a data processing function, or corresponds to a terminal.
In a specific implementation, the device 50 for reducing earphone crosstalk may be used to implement the method for reducing earphone crosstalk, and for the specific working principle and working method of the device 50 for reducing earphone crosstalk, reference may be made to the description of the method for reducing earphone crosstalk in the foregoing embodiment, which is not repeated herein.
The embodiment of the present invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor performs the steps of the method for reducing crosstalk of headphones provided by any of the above embodiments of the present invention.
The computer readable storage medium may include non-volatile memory (non-volatile) or non-transitory memory, and may also include optical disks, mechanical hard disks, solid state disks, and the like.
Specifically, in the embodiment of the present invention, the processor may be a central processing unit (central processing unit, abbreviated as CPU), and the processor may also be other general purpose processors, digital signal processors (digital signal processor, abbreviated as DSP), application specific integrated circuits (application specific integrated circuit, abbreviated as ASIC), field programmable gate arrays (field programmable gate array, abbreviated as FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should also be appreciated that the memory in embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable ROM (Electrically EPROM, EEPROM), or a flash Memory. The volatile memory may be a random access memory (Random Access Memory, RAM for short) which acts as an external cache. By way of example but not limitation, many forms of random access memory (Random Access Memory, abbreviated as RAM) are available, such as Static random access memory (Static RAM, abbreviated as SRAM), dynamic Random Access Memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM, abbreviated as SDRAM), double data rate Synchronous dynamic random access memory (Double Data Rate SDRAM, abbreviated as DDR SDRAM), enhanced Synchronous dynamic random access memory (Enhanced SDRAM, abbreviated as ESDRAM), synchronous link dynamic random access memory (Synchronous DRAM, abbreviated as SLDRAM), and direct memory bus random access memory (Direct Rambus RAM, abbreviated as DR RAM).
The embodiment of the invention also provides a terminal, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the steps of the earphone crosstalk reduction method provided by any embodiment when running the computer program.
The memory is coupled to the processor and may be located within the terminal or external to the terminal. The memory and the processor may be connected by a communication bus.
The terminal may include, but is not limited to, a terminal device such as a cell phone, computer, tablet computer, etc.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present application are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer program may be stored in or transmitted from one computer readable storage medium to another, for example, by wired or wireless means from one website, computer, server, or data center.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and system may be implemented in other manners. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units. For example, for each device or product applied to or integrated on a chip, each module/unit included in the device or product may be implemented in hardware such as a circuit, or at least part of the modules/units may be implemented in software program, where the software program runs on a processor integrated inside the chip, and the rest (if any) of the modules/units may be implemented in hardware such as a circuit; for each device and product applied to or integrated in the chip module, each module/unit contained in the device and product can be realized in a hardware manner such as a circuit, different modules/units can be located in the same component (such as a chip, a circuit module and the like) or different components of the chip module, or at least part of the modules/units can be realized in a software program, the software program runs on a processor integrated in the chip module, and the rest (if any) of the modules/units can be realized in a hardware manner such as a circuit; for each device, product, or application to or integrated with the terminal, each module/unit included in the device, product, or application may be implemented by using hardware such as a circuit, different modules/units may be located in the same component (for example, a chip, a circuit module, or the like) or different components in the terminal, or at least part of the modules/units may be implemented by using a software program, where the software program runs on a processor integrated inside the terminal, and the remaining (if any) part of the modules/units may be implemented by using hardware such as a circuit. In this context, the character "/" indicates that the front and rear associated objects are an "or" relationship.
The term "plurality" as used in the embodiments herein refers to two or more.
The first, second, etc. descriptions in the embodiments of the present application are only used for illustrating and distinguishing the description objects, and no order division is used, nor does it indicate that the number of the devices in the embodiments of the present application is particularly limited, and no limitation on the embodiments of the present application should be construed.
It should be noted that the serial numbers of the steps in the present embodiment do not represent a limitation on the execution sequence of the steps.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.
Claims (10)
1. A method for reducing crosstalk of an earphone, comprising:
in response to the earphone crosstalk calibration operation, playing a test sound source, wherein a signal input to a first sound channel by the test sound source is an audio signal, and a signal input to a second sound channel is a mute signal;
adjusting the earphone crosstalk gain according to the set adjusting step length within the set earphone crosstalk gain interval range;
compensating an original signal output by a second channel by adopting the earphone crosstalk gain to obtain a second channel compensated signal, and collecting the sound size of the second channel compensated signal output by the second earphone which is currently inserted into the earphone, wherein the sound size of the second channel is collected when only the second earphone is worn;
and determining the minimum value of the sound of the compensated signal output by the collected second earphone according to the change trend of the sound of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum value of the sound of the compensated signal output by the collected second earphone.
2. The method for reducing crosstalk between headphones according to claim 1, wherein determining the optimal crosstalk gain for the currently inserted headphone based on the headphone crosstalk gain corresponding to the acquired minimum sound value of the second headphone output the compensated signal comprises:
determining a candidate crosstalk gain section according to the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone and the adjustment step length when the earphone crosstalk gain is adjusted;
and reducing the adjustment step length, adjusting the earphone crosstalk gain in the candidate crosstalk gain interval based on the reduced adjustment step length, and taking the earphone crosstalk gain corresponding to the minimum sound value of the compensated signal output by the second earphone acquired again as the optimal crosstalk gain of the currently inserted earphone.
3. The method for reducing crosstalk of headphones according to claim 1 or 2, further comprising: and outputting sound turning change reminding information according to the change trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and when the trend of the sound size which is firstly reduced and then increased is determined, outputting the sound turning change reminding information, wherein the sound turning change reminding information is used for indicating the occurrence of the optimal crosstalk gain.
4. The method for reducing crosstalk of headphones of claim 1, further comprising:
and drawing and displaying a sound size change chart according to the change trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain.
5. The method for reducing crosstalk of headphones according to claim 1, wherein said compensating the original signal output from the second channel with the headphone crosstalk gain comprises:
determining a compensation signal corresponding to the earphone crosstalk gain according to a mapping relation between the preset earphone crosstalk gain and the compensation signal;
and compensating the original signal output by the second channel by adopting the compensation signal.
6. The method for reducing crosstalk of headphones of claim 1, further comprising: and saving the optimal crosstalk gain of the currently inserted earphone.
7. The method for reducing crosstalk between headphones according to claim 1, wherein the sound size of the second channel is acquired when the play volume is the maximum volume.
8. A headset crosstalk reduction apparatus, comprising:
the playing unit is used for responding to the earphone crosstalk calibration operation and playing the test sound source, wherein a first sound channel of the test sound source is an audio signal, and a second sound channel of the test sound source is a mute signal;
the adjusting unit is used for adjusting the earphone crosstalk gain according to the set adjusting step length in the set earphone crosstalk gain interval range;
the acquisition unit is used for compensating an original signal output by a second channel by adopting the earphone crosstalk gain to obtain a second compensated signal, and acquiring the sound size of the compensated signal output by a second earphone which is currently inserted into the earphone, wherein the sound size of the second channel is acquired when only the second earphone is worn;
and the determining unit is used for determining a minimum value of sound of the compensated signal output by the collected second earphone according to the change trend of the sound size of the compensated signal output by the second earphone corresponding to each earphone crosstalk gain, and determining the optimal crosstalk gain of the currently inserted earphone based on the earphone crosstalk gain corresponding to the minimum value of sound of the compensated signal output by the collected second earphone.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the steps of the earphone crosstalk reduction method according to any one of claims 1 to 7.
10. A terminal comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, characterized in that the processor, when executing the computer program, performs the steps of the earphone crosstalk reduction method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311320143.6A CN117294983A (en) | 2023-10-11 | 2023-10-11 | Earphone crosstalk reduction method and device, computer readable storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311320143.6A CN117294983A (en) | 2023-10-11 | 2023-10-11 | Earphone crosstalk reduction method and device, computer readable storage medium and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117294983A true CN117294983A (en) | 2023-12-26 |
Family
ID=89240685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311320143.6A Pending CN117294983A (en) | 2023-10-11 | 2023-10-11 | Earphone crosstalk reduction method and device, computer readable storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117294983A (en) |
-
2023
- 2023-10-11 CN CN202311320143.6A patent/CN117294983A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111447539B (en) | Fitting method and device for hearing earphones | |
US11418884B2 (en) | Audio processing apparatus, audio crosstalk processing method and apparatus | |
CN101179871B (en) | Earphone and audio play device | |
US8401200B2 (en) | Electronic device and headset with speaker seal evaluation capabilities | |
US10284943B2 (en) | Method and apparatus for adjusting sound field of an earphone and a terminal | |
TWI522902B (en) | Electronic device and method for sensing headset | |
KR20120085691A (en) | Method for processing and audio signal and apparatus for processing an audio signal thereof | |
KR102066649B1 (en) | Personalized system of smart headphone device and method of using the same | |
JP2020109968A (en) | Customized audio processing based on user-specific audio information and hardware-specific audio information | |
WO2016187946A1 (en) | Volume control method, electronic device and computer storage medium | |
WO2021238458A1 (en) | Method for optimizing sound quality of speaker device | |
WO2020252973A1 (en) | Wireless earphone noise reduction method and system, wireless earphone and storage medium | |
TWI522904B (en) | Electronic device and headset for calibrating electronic device | |
CN114903473A (en) | Hearing detection method, device, electronic equipment and storage medium | |
US20240098412A1 (en) | Dynamic rendering device metadata-informed audio enhancement system | |
WO2019100750A1 (en) | Method, circuit, and device for eliminating crosstalk between audio signal playback channels | |
KR20140017121A (en) | Method and apparatus for controlling sound signal output | |
CN117294983A (en) | Earphone crosstalk reduction method and device, computer readable storage medium and terminal | |
KR101995670B1 (en) | Personalized system of smart headphone device with oriented chatting function and method of using the same | |
CN109218875B (en) | Intelligent earphone device personalization system with directional conversation function and use method | |
KR20070056709A (en) | Apparatus and method for compensating of ear phone output according to ear phone impedence |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |