WO2022242101A1 - Vibration diaphragm control circuit, vibration diaphragm control method, chip and electronic device - Google Patents

Vibration diaphragm control circuit, vibration diaphragm control method, chip and electronic device Download PDF

Info

Publication number
WO2022242101A1
WO2022242101A1 PCT/CN2021/134519 CN2021134519W WO2022242101A1 WO 2022242101 A1 WO2022242101 A1 WO 2022242101A1 CN 2021134519 W CN2021134519 W CN 2021134519W WO 2022242101 A1 WO2022242101 A1 WO 2022242101A1
Authority
WO
WIPO (PCT)
Prior art keywords
gain
stereo
input signal
diaphragm control
mth
Prior art date
Application number
PCT/CN2021/134519
Other languages
French (fr)
Chinese (zh)
Inventor
朱马
姚炜
Original Assignee
上海艾为电子技术股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 上海艾为电子技术股份有限公司 filed Critical 上海艾为电子技术股份有限公司
Publication of WO2022242101A1 publication Critical patent/WO2022242101A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R19/00Electrostatic transducers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments

Definitions

  • the invention relates to the technical field of signal processing, in particular to a diaphragm control circuit, a diaphragm control method, a chip and electronic equipment.
  • stereo sound is provided by the stereo electro-acoustic conversion unit (speaker) located below the mobile phone and the stereo electro-acoustic conversion unit (earpiece) located above, respectively, and there is an asymmetric difference between the speaker and the earpiece ,
  • the left and right channels of the stereo sound source itself will also have differences.
  • the sound effect algorithm will involve the dynamic range control (DRC) module, which can amplify the small signal in the signal, increase the output power of the two stereo electroacoustic conversion units, the speaker and the earpiece, and improve the loudness and strength of the sound; the DRC module will also The large signal in the signal is suppressed to protect the diaphragm amplitude of the two stereo electro-acoustic conversion units of the speaker and the earpiece from being too large to break the line and cause reliability problems.
  • DRC dynamic range control
  • the present invention provides a diaphragm control circuit, a diaphragm control method, a chip and an electronic device to solve the problem of weakening sound effects in the prior art when the left and right channels are asymmetrical.
  • the present invention provides the following technical solutions:
  • a diaphragm control circuit applied to an electronic device including N stereo electroacoustic conversion units, wherein N is an integer, and N is greater than or equal to 2, and the diaphragm control circuit includes:
  • N input signal transmission circuits N gain adjustment circuits, comparators and N gain additional circuits;
  • the Mth input signal transmission circuit is connected to the Mth gain adjustment circuit, the Mth gain adjustment circuit is connected to the comparator, the output terminal of the comparator is connected to the Mth gain addition circuit, and the Mth gain addition circuit
  • each of the gain adjustment circuits is used to receive a corresponding input signal, calculate an initial gain value according to the input signal, and process the initial gain value according to a preset gain value to obtain a reduced gain value;
  • the comparator receives the N reduced gain values of the N gain adjustment circuits, and takes the minimum value after comparison;
  • Each of the gain addition circuits is used to receive the preset gain value of the corresponding gain adjustment circuit and process the minimum value
  • the input signal transmission circuit is used to receive the output signal of the corresponding gain adding circuit, process the corresponding input signal, and obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
  • each input signal transmission circuit includes a multiplier, and one end of the multiplier is used to receive a corresponding input signal.
  • each input signal transmission circuit further includes a delay device
  • the input end of the delayer is used to receive the input signal
  • the output terminal of the delayer is connected with the input terminal of the multiplier in the input signal transmission circuit
  • each gain adjustment circuit includes a dynamic range control module and a first calculation module
  • the input end of the dynamic range control module is used to receive the input signal, and according to the input Signal calculation to obtain the initial gain value
  • the input terminal of the first calculation module is connected to the output terminal of the dynamic range control module, and is used to subtract the preset gain value from the initial gain value to obtain the Lower the gain value.
  • each gain additional circuit includes a second calculation module, the input terminal of the second calculation module is connected to the output terminal of the comparator, and receives the corresponding gain adjustment circuit.
  • the preset gain value so that the smaller value increases the preset gain value;
  • the output of the second calculation module is connected to the multiplier in the corresponding input signal transmission circuit, and the multiplier converts the input signal multiplied by the output signal of the second calculation module in the corresponding gain addition circuit to obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
  • the first calculation modules are subtracters; the second calculation modules are adders;
  • the first calculation modules are all adders; the second calculation modules are all subtractors;
  • the first calculation module is a divider; the second calculation module is a multiplier;
  • the first calculation modules are all multipliers; the second calculation modules are all dividers.
  • the present invention also provides a diaphragm control method, based on the diaphragm control circuit described in any one of the above, the diaphragm control method includes:
  • N is an integer, and N is greater than or equal to 2;
  • M 1, 2, ... N.
  • the present invention also provides a chip, which includes the diaphragm control circuit described in any one of the above.
  • An electronic device comprising:
  • N stereo electroacoustic conversion units and a diaphragm control circuit, where N is an integer, and N is greater than or equal to 2;
  • the diaphragm control circuit includes N signal input terminals and N signal output terminals;
  • the Mth signal output terminal is connected to the Mth stereo electro-acoustic conversion unit
  • the diaphragm control circuit is the diaphragm control circuit described in any one of claims 1-6.
  • the electronic device is a mobile phone, a tablet computer or an audio-visual player.
  • the first stereo electro-acoustic conversion unit is an earpiece
  • the second stereo electro-acoustic conversion unit is a speaker
  • the diaphragm control circuit includes: N input signal transmission circuits, N gain adjustment circuits, A comparator and N additional gain circuits; after obtaining the gains of multiple stereo electroacoustic conversion unit branches in the diaphragm control circuit, and then superimposing the preset gain value to obtain the reduced gain value in each circuit, based on the reduced gain value , take the minimum value in each circuit; then superimpose the corresponding preset gain values based on the minimum value, thus ensuring that the final gain values in multiple stereo electro-acoustic conversion unit branches are different, so that stereo electro-acoustic conversion units with different tolerances The gain values of the sound conversion units are different.
  • the performance of other stereo electro-acoustic conversion units with better sound amplitude tolerance is maximized, thereby The characteristics of the stereo electro-acoustic conversion unit taking into account the safety and the ability to withstand different sound amplitudes, avoiding the weakening of the stereo effect.
  • the diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electro-acoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures stereo electro-acoustics with poor sound amplitude tolerance. Under the premise that the conversion unit will not be disconnected or burned out, the performance of the stereo electroacoustic conversion unit with strong sound amplitude tolerance is maximized.
  • the present invention also provides a diaphragm control method, a chip and an electronic device, which are based on the same inventive concept as the above-mentioned diaphragm control circuit, and thus can achieve the same technical effect.
  • FIG. 1 is a schematic diagram of a diaphragm control circuit provided by related art 1;
  • FIG. 2 is a schematic diagram of a diaphragm control circuit provided in related art 2;
  • FIG. 3 is a schematic diagram of a diaphragm control circuit provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another diaphragm control circuit provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a diaphragm control circuit including two stereo electroacoustic conversion units provided by an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a diaphragm control method provided by an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the reason for the above phenomenon is that, for example, the stereo sound of a mobile phone as described in the Background Art section provides left and right sound channels through a speaker located below the mobile phone and an earpiece located above the mobile phone.
  • the left and right sound channels provided by the two stereo electroacoustic conversion units of the loudspeaker and the earpiece are processed independently. If there is an airplane flying from the left to the right in the sound source, the sound amplitude of the left sound channel is relatively large at the beginning.
  • the sound amplitude of the right channel is small, so that the user can hear the sound of the aircraft on the left, and then the sound amplitude of the left channel gradually decreases, and the sound amplitude of the right channel gradually increases, so that The user hears the sound of the plane on the right side.
  • the result heard by the user is that the plane flies from the left to the right.
  • the DRC module will suppress the signal amplitude of the left channel, and the signal amplitude of the right channel is small, and the DRC module will increase the signal amplitude of the right channel.
  • the signal amplitudes of the left and right channels are not as large as the difference in the original sound source. Therefore, the final sound of the plane heard is the feeling of flying in the middle. That is to say, in the original sound source, the information reflecting the positioning of the stereo sound field through the amplitude difference between the left and right channels will be weakened by the independent processing of the left and right channel sound effects, and many sounds heard are emitted from the middle.
  • the gain processing of the left and right channels is processed independently, some obvious sound positions in the original sound source, such as some drums, etc., because the two gains are processed independently, the left and right channel signals of each drum are relatively The amplitude is changing, making the sound jump around.
  • Figure 1 is a schematic diagram of a diaphragm control circuit provided by related technology 1
  • Figure 2 is a schematic diagram of a diaphragm control circuit provided by related technology 2; wherein, the diaphragm control circuit in Figure 1 It includes: a first delayer 011 , a first multiplier 012 , a second delayer 021 , a second multiplier 022 , a calculation module 031 and a DRC module 032 .
  • the channel input signal L is multiplied by the gain Gain to obtain the left channel output signal L' (Left output), and the second multiplier 022 multiplies the right channel input signal R delayed by the second delayer 021 by the gain Gain Get the right channel output signal R'(Right output).
  • the diaphragm control circuit in FIG. 2 includes: a first delayer 011 , a first multiplier 012 , a second delayer 021 , a second multiplier 022 , a comparison and selection module 033 and a DRC module 032 .
  • the left channel input signal L and the gain Gain are multiplied to obtain the left channel output signal L' (Left output), and the second multiplier 022 delays the right channel input signal R and the gain Gain after the second delayer 021 Multiply to get the right channel output signal R'(Right output).
  • the above-mentioned related technologies shown in FIG. 1 and FIG. 2 can avoid the phenomenon that the sound is weakened.
  • the left channel is used to produce sound from the earpiece
  • the right channel is used to produce sound from a speaker.
  • the electrical signal tolerance of the earpiece is relatively weak. If the electrical signal is large, such as a signal with a sound amplitude of 6V and a frequency of 300Hz, it is easy to make the diaphragm of the earpiece exceed the maximum limit given by the electronic equipment factory.
  • the processing gain of the DRC module for the left channel will be relatively small, but due to the related technologies shown in Figure 1 and Figure 2 above, the gain is synchronized, so it will cause The signal amplitude of the right channel also becomes smaller.
  • the right channel is the speaker, and the voltage tolerance of the speaker is relatively strong. Some signals above 9V are still within the acceptable range of the speaker, and the speaker will not be broken due to overheating. Therefore, the above-mentioned related technologies shown in Figure 1 and Figure 2 do not fully play the role of the speaker, thereby wasting the hardware performance of the speaker, causing users to feel the impact subjectively, such as low volume, insufficient drum sound, and insufficient fullness of the low frequency, etc. question.
  • the present invention provides a diaphragm control circuit, which is applied to an electronic device including N stereo electroacoustic conversion units (the stereo electroacoustic conversion units can be loudspeaker components such as loudspeakers, horns, receivers, etc.), wherein N is an integer, And N is greater than or equal to 2.
  • the sound amplitude tolerance of at least one stereo electroacoustic conversion unit among the plurality of stereo electroacoustic conversion units is different from the sound amplitude tolerance of other stereo electroacoustic conversion units.
  • the diaphragm control circuit includes:
  • N input signal transmission circuits N gain adjustment circuits, comparators and N gain additional circuits;
  • the Mth input signal transmission circuit is connected to the Mth gain adjustment circuit, the Mth gain adjustment circuit is connected to the comparator, the output terminal of the comparator is connected to the Mth gain addition circuit, and the Mth gain addition circuit
  • each of the gain adjustment circuits is used to receive a corresponding input signal, calculate an initial gain value according to the input signal, and process the initial gain value according to a preset gain value to obtain a reduced gain value;
  • the comparator receives the N reduced gain values of the N gain adjustment circuits, and takes the minimum value after comparison;
  • Each of the gain addition circuits is used to receive the preset gain value of the corresponding gain adjustment circuit and process the minimum value
  • the input signal transmission circuit is used to receive the output signal of the corresponding gain adding circuit, process the corresponding input signal, and obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
  • the diaphragm control circuit provided by the present invention is applied in electronic equipment including a plurality of stereo electroacoustic conversion units, and the diaphragm control circuit includes: N input signal transmission circuits, N gain adjustment circuits, comparators and N gain additional circuit; after obtaining the gains of multiple stereo electroacoustic conversion unit branches in the diaphragm control circuit, and then superimposing the preset gain value, the reduced gain value in each circuit is obtained, and based on the reduced gain value, the value in each circuit is taken The minimum value; and then superimpose the corresponding preset gain values based on the minimum value, thereby ensuring that the final gain values in multiple stereo electro-acoustic conversion unit branches are different, so that the stereo electro-acoustic conversion unit gain values with different tolerances are different.
  • the performance of other stereo electro-acoustic conversion units with better sound amplitude tolerance is maximized, thus taking into account safety and differences.
  • the characteristics of the stereo electro-acoustic conversion unit with the ability to withstand the sound amplitude avoid the weakening of the stereo effect.
  • the diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electro-acoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures stereo electro-acoustics with poor sound amplitude tolerance. Under the premise that the conversion unit will not be disconnected or burned out, the performance of the stereo electroacoustic conversion unit with strong sound amplitude tolerance is maximized.
  • FIG. 3 is a schematic diagram of a diaphragm control circuit provided by an embodiment of the present invention; the diaphragm control circuit is applied to an electronic device including N stereo electroacoustic conversion units 15, where N is an integer, and N is greater than or equal to 2.
  • At least one stereo electro-acoustic conversion unit 15 has a sound amplitude tolerance different from that of other stereo electro-acoustic conversion units 15 .
  • the number of stereo electroacoustic conversion units is not limited in this embodiment, as long as at least two stereo electroacoustic conversion units are included, and the sound amplitude tolerance of at least one stereo electroacoustic conversion unit is comparable to that of other stereo electroacoustic conversion units.
  • the sound amplitude tolerance of the conversion units may be different.
  • the number of stereo electro-acoustic conversion units is not limited. It can be two, such as the handset and speaker of a mobile phone, or multiple stereo electroacoustic conversion units.
  • only one stereo electroacoustic conversion unit may have a sound amplitude tolerance different from that of other stereo electroacoustic conversion units, or the sound amplitude tolerance of multiple stereo electroacoustic conversion units may be different. Capabilities are different, which is not limited in this embodiment.
  • the diaphragm control circuit includes: N input signal transmission circuits 11, N gain adjustment circuits 12, comparators 13 and N gain additional circuits 14; the Mth input signal transmission circuit 11 and the Mth
  • the N input signal transmission circuits have the same structure
  • the N gain adjustment circuits have the same structure
  • the N gain adjustment circuits have the same structure.
  • each said gain adjustment circuit 12 is used to receive the corresponding input signal Input, and the input signal Input includes the first input signal Input 1, the second input signal Input 2, ... the Mth input signal Input M ... the Nth Input signal Input N, and calculate initial gain value Gain according to described input signal Input, wherein each branch all obtains corresponding initial gain value (respectively Gain 1, ... Gain M, ... Gain M among Fig. 3 in each branch circuit ...Gain N), and according to the preset gain value Offset (each circuit is respectively Offset 1, ... Offset M, ... Offset N in Fig. 3), the initial gain value Gain is processed to obtain a reduced gain value ;
  • the comparator 13 receives the N reduced gain values of the N gain adjustment circuits 12, and takes the minimum value after comparison;
  • Each of the gain additional circuits 14 is used to receive the preset gain value Offset of the corresponding gain adjustment circuit 12 (respectively Offset 1, ... Offset M, ... Offset N in Fig. 3 in each circuit) The above minimum value is processed;
  • the input signal transmission circuit 11 is used to receive the output signal corresponding to the gain adding circuit 14, and process the corresponding input signal Input to obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
  • the diaphragm control circuit is applied in an electronic device including a plurality of stereo electroacoustic conversion units, and the diaphragm control circuit includes: N input signal transmission circuits 11, N gain adjustment circuits 12, comparators 13 and N gain additional circuits 14; after obtaining the gains of multiple stereo electroacoustic conversion unit branches in the diaphragm control circuit, then superimposing the preset gain value to obtain the reduced gain value in each circuit, based on the reduced gain value , take the minimum value in each circuit; then superimpose the corresponding preset gain values based on the minimum value, thus ensuring that the final gain values in multiple stereo electro-acoustic conversion unit branches are different, so that stereo electro-acoustic conversion units with different tolerances The gain values of the sound conversion units are different.
  • the diaphragm control circuit realizes the gain linkage of multiple stereo electro-acoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures stereo electro-acoustics with poor sound amplitude tolerance. Under the premise that the conversion unit will not be disconnected or burned out, the performance of the stereo electroacoustic conversion unit with strong sound amplitude tolerance is maximized.
  • each input signal transmission circuit 11 includes a multiplier 111, one end of the multiplier 111 is used to receive the input signal Input, the input signal Input includes the first input signal Input 1, the second input signal Input 2, ... Mth input signal Input M ... Nth input signal Input N.
  • each gain adjustment circuit 12 includes a dynamic range control module 121 and a first calculation module 122, wherein each dynamic range control module corresponds to its own name DRC as shown in FIG. 3 1.
  • ...DRC M, ...DRC N the input terminal of the dynamic range control module 121 is used to receive the input signal Input, and calculate the initial gain value Gain according to the input signal Input, wherein each branch obtains a corresponding initial gain value (respectively Gain 1, ... Gain M, ... Gain N in Fig. 3 in each circuit); the input end of the first calculation module 122 is connected with the output end of the dynamic range control module 121, is used for initial gain The value decreases the preset gain value Offset (respectively Offset 1, ... Offset M, ... Offset N in Fig. 3 in each circuit), and the reduced gain value is obtained.
  • the comparator 13 receives N reduced gain values from N gain adjustment circuits, compares them and takes the minimum value.
  • each gain addition circuit 14 includes a second calculation module 140, the input terminal of the second calculation module 140 is connected to the output terminal of the comparator 13, and receives the preset value of the corresponding gain adjustment circuit 12. Set the gain value so that the smaller value increases the preset gain value; the output of the second calculation module 140 is connected with the multiplier 111 in the corresponding input signal transmission circuit 11, and the multiplier 111 combines the input signal Input with the corresponding gain addition circuit The output signals of the second calculation module 140 are multiplied to serve as the driving signal corresponding to the stereo electro-acoustic conversion unit 15 .
  • each branch circuit in this embodiment includes the same components, but the parameters involved may be different, for example, the parameters of the dynamic range control module DRC in each branch can be independent If it is set, there is no need to bind multiple audio channels, and the setting of the DRC will not be described in detail in this embodiment.
  • the function of the first calculation module 122 in this embodiment is to subtract a certain gain (that is, the preset gain value) from the initial gain to ensure that the subsequent second calculation module 140 increases the preset gain value to form the final gain value, the stereo electro-acoustic conversion unit will not be disconnected or burned because the gain value exceeds the tolerance range of the stereo electro-acoustic conversion unit with the smallest sound amplitude tolerance. Therefore, the role of the first calculation module 122 in this embodiment In order to reduce the initial gain value, the function of the second calculating module 140 is to increase the gain value on the basis of the minimum gain value.
  • the specific structures of the first calculation module 122 and the second calculation module 140 are not limited in this embodiment.
  • the unit is dB.
  • the first The first calculation module is a subtractor; the second calculation module is an adder.
  • the corresponding preset gain value is a positive value.
  • the first calculation module can also be an adder; the second calculation module can also be a subtractor. At this time, the corresponding preset gain value is a negative value.
  • the corresponding first calculation modules are all dividers; the second calculation modules are all multipliers. At this time, the preset gain value is greater than 1.
  • the first calculation modules can also all be multipliers; the second calculation modules can also all be dividers.
  • the preset gain value is a value less than 1.
  • the diaphragm control circuit on the basis of the gain generated by the dynamic range control module DRC, a part of the gain value is uniformly lowered to obtain the reduced gain value, and then the reduced gain value of the multiple stereo electroacoustic conversion units The value takes the minimum value; on the basis of the minimum value, the original reduced preset gain is superimposed to ensure the safety of the speaker with the smallest sound amplitude tolerance.
  • the final gains of stereo electroacoustic conversion units with different sound amplitude tolerances are different, so that stereo electroacoustic conversion units with different sound amplitude tolerances have different sound amplitudes, making full use of
  • the large-amplitude characteristic of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance makes the stereo effect better and avoids the problem of weakening the stereo effect caused by the same gain of multiple channels.
  • the diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electroacoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures that the sound amplitude tolerance is poor. Under the premise that the stereo electro-acoustic conversion unit will not be disconnected or burnt out, the performance of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance is brought into play as much as possible.
  • FIG 4 is a schematic diagram of another diaphragm control circuit provided by the embodiment of the present invention; different from the diaphragm control circuit shown in Figure 3, each input signal transmission circuit in this embodiment also includes Delay device 112, for example the first delay device among Fig. 4, ... the M delay device, ... the N delay device; The input end of delay device 112 is used for receiving input signal; The delay device 112 The output end is connected with the input end of the multiplier 111 in the input signal transmission circuit; the extension time of the delayer 112 in all input signal transmission circuits is the same.
  • Delay device 112 for example the first delay device among Fig. 4, ... the M delay device, ... the N delay device;
  • the input end of delay device 112 is used for receiving input signal;
  • the delay device 112 The output end is connected with the input end of the multiplier 111 in the input signal transmission circuit; the extension time of the delayer 112 in all input signal transmission circuits is the same.
  • the function of the delayer in this embodiment is to delay the input signal, so that the channels of the multiple stereo electro-acoustic conversion units are delayed the same, so that there is no relative delay and phase difference between the multiple output channels.
  • the signal needs to be strictly suppressed within a certain range, such as -6dB.
  • the input signal amplitude is 0dB
  • the gain needs to be adjusted, and the gain cannot suddenly jump from 0dB to -6dB. If the gain changes suddenly, pop sounds will be introduced into the final listening experience, which will seriously affect the subjective listening experience, which is unacceptable to customers. Therefore, it takes time to slowly change the gain from 0dB to -6dB without adding a delay device.
  • the gain When the gain has not changed to the corresponding gain, the signal has been sent to the speaker.
  • the amplitude of this signal is above -6dB. is unacceptable. Therefore, a delayer is added, and the length of the delayer corresponds to the time of gain change, so as to ensure that when the signal is multiplied by the gain, the gain has been adjusted to the predetermined gain.
  • the embodiment of the present invention provides a diaphragm control circuit in which the left channel is an earpiece and the right channel is a speaker.
  • FIG. 5 Schematic diagram of the diaphragm control circuit; the diaphragm control circuit provided by the embodiment of the present invention includes: a first multiplier 51, a second multiplier 52, a first dynamic range control module 53, a second dynamic range control module 54, and a third calculation module 55 , a fourth calculation module 56 , a comparator 57 , a fifth calculation module 58 , and a sixth calculation module 59 .
  • the input terminal of the first dynamic range control module 53 is used for receiving the first input signal Left input, and calculates and obtains the first initial gain value Gain 1 according to the first input signal Left input;
  • the output end of a dynamic range control module 53 is connected, and is used to reduce the first preset gain value Offset 1 by the first initial gain value Gain 1, obtains the first reduced gain value (Gain 1-Offset 1);
  • Offset 1 is positive and the gain is in the Log domain.
  • the input end of the second dynamic range control module 54 is used to receive the second input signal Right input, and calculates and obtains the second initial gain value Gain 2 according to the second input signal Right input;
  • the input end of the fourth calculation module 56 is connected with the second dynamic range.
  • the output terminal of the range control module 54 is connected, and is used for superimposing the second initial gain value Gain 2 with the second preset gain value Offset 2 to obtain a second reduced gain value (Gain 2-Offset 2).
  • comparator 57 is connected with the 3rd calculation module 55 and the 4th calculation module 56 respectively, compares the first reduction gain value (Gain 1-Offset 1) and the second reduction gain value (Gain 2-Offset 2), and outputs The smaller value Min of the first reduced gain value (Gain 1-Offset 1) and the second reduced gain value (Gain 2-Offset 2).
  • the input terminal of the fifth calculation module 58 is connected with the output terminal of the comparator, and receives the first preset gain value Offset 1, so that the smaller value Min increases the first preset gain value Offset 1; the output terminal of the fifth calculation module 58 It is connected to the first multiplier 51, and the first multiplier 51 multiplies the first input signal by the output signal of the fifth calculation module 58, and serves as the driving signal Left output of the first stereo electroacoustic conversion unit.
  • the input terminal of the sixth calculation module 59 is connected with the output terminal of the comparator 57, and receives the second preset gain value, so that the smaller value Min increases the second preset gain value Offset 2; the output terminal of the sixth calculation module 59 and The second multiplier 52 is connected, and the second multiplier 52 multiplies the second input signal by the output signal of the sixth calculation module 59 to serve as the driving signal Right output of the second stereo electroacoustic conversion unit.
  • a first delayer 510 and a second delayer 511 are also included in this embodiment; the input end of the first delayer 510 is used to receive the first delayer 510 An input signal Left input, and delay the preset time to the first input signal Left input; the output end of the first delayer 510 is connected with the second input end of the first multiplier 51; the input of the second delayer 511 The end is used to receive the second input signal Right input, and delay the second input signal Right input for a preset time; the output end of the second delayer 511 is connected to the second input end of the second multiplier 52 .
  • the input signal is delayed to ensure that there is no relative delay between the left and right channels.
  • This embodiment does not limit the specific structures of the third computing module, the fourth computing module, the fifth computing module, and the sixth computing module.
  • the third computing module and the fourth computing module are both Subtractor; both the fifth calculation module and the sixth calculation module are adders.
  • both the third computing module and the fourth computing module are dividers; the fifth computing module and the sixth computing module are both multipliers.
  • Offset1-Offset2 can be set to 0dB
  • Offset2 can be set to a value greater than 0dB, such as 3dB.
  • the output of the right channel can be 3dB larger than that of the left channel, and the performance of the right channel speaker will not be limited by the earpiece of the left channel. If the positions of the earpieces and speakers of the left and right channels are interchanged, you can set Offset1 to be greater than 0dB, and Offset2 to be equal to 0dB.
  • the setting values of Offset1 and Offset2 are set according to the difference between the actual earpiece and the speaker, and are not specifically limited in this embodiment of the present invention.
  • the embodiment of the present invention proposes a new gain-linked diaphragm control circuit, which not only makes the relative signal amplitude of the processed L and R relatively constant, but also ensures that the earpiece will not be disconnected or burned out. Under the premise, the performance of the stereo electro-acoustic conversion unit should be brought out as much as possible.
  • FIG. 6 is a schematic flow chart of a diaphragm control method provided by an embodiment of the present invention; the diaphragm control method is based on the diaphragm control circuit described in the above embodiment, the diaphragm Membrane control methods include:
  • S101 Acquire N input signals, where N is an integer, and N is greater than or equal to 2;
  • S102 Calculate and obtain N initial gain values according to N input signals, and respectively superimpose corresponding preset gain values on the N initial gain values to obtain corresponding N reduced gain values;
  • the diaphragm control circuit Based on the gain generated by the dynamic range control module DRC, first reduce a part of the gain value uniformly to obtain a reduced gain value, and then convert multiple stereo electroacoustics The reduced gain value of the unit takes the minimum value; on the basis of the minimum value, the original reduced preset gain is superimposed to ensure the safety of the stereo electroacoustic conversion unit with the smallest sound amplitude tolerance.
  • the diaphragm control circuit realizes the gain linkage of multiple stereo electroacoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures that the sound amplitude tolerance is poor. Under the premise that the stereo electro-acoustic conversion unit will not be disconnected or burnt out, the performance of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance is brought into play as much as possible.
  • the function of delaying the N input signals is to make the same delay for the channels of multiple stereo electroacoustic conversion units, so that the output of multiple channels There is no relative delay and phase difference between them.
  • the signal needs to be strictly suppressed within a certain range, such as -6dB.
  • the input signal amplitude is 0dB
  • the gain needs to be adjusted, and the gain cannot suddenly jump from 0dB to -6dB. If the gain changes suddenly, pop sounds will be introduced into the final listening experience, which will seriously affect the subjective listening experience, which is unacceptable to customers.
  • a chip is also provided, and the chip includes the diaphragm control circuit described in the above embodiments.
  • the chip and the above-mentioned diaphragm control circuit are based on the same inventive concept, so they can achieve the same technical effect.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the electronic device 100 can be referred to as shown in FIG. 3 first.
  • the diaphragm control circuit is the diaphragm control circuit in the above embodiment.
  • the electronic device in this embodiment can be a mobile phone, a tablet computer or an audio-visual player.
  • the electronic device 100 is a mobile phone.
  • the conversion unit, the second stereo electroacoustic conversion unit is a speaker R, which can be used as a right channel stereo electroacoustic conversion unit.
  • the electronic equipment provided by the embodiment of the present invention includes the above-mentioned diaphragm control circuit for multi-channel gain linkage, which realizes the gain linkage of multiple stereo electroacoustic conversion units, which not only makes the relative signals of multiple channels after processing
  • the amplitude is relatively constant, and under the premise of ensuring that the stereo electro-acoustic conversion unit with poor sound amplitude tolerance will not be disconnected or burned out, the performance of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance will be brought out as much as possible.

Abstract

Provided in the present application are a vibration diaphragm control circuit, a vibration diaphragm control method, a chip and an electronic device. The vibration diaphragm control circuit comprises: N input signal transmission circuits, N gain adjustment circuits, a comparator and N gain adjunct circuits. The method comprises: acquiring gains of a plurality of stereo electroacoustic conversion unit branches in a vibration diaphragm control circuit, then superimposing preset gain values, so as to obtain a reduced gain value in each circuit, and taking the minimum value in each circuit on the basis of the reduced gain value; and then respectively superimposing the corresponding preset gain value on the basis of the minimum value. Gains of a plurality of stereo electroacoustic conversion units are linked, and the relative signal amplitude of a plurality of processed sound tracks is relatively constant, and it is thus ensured that the performance of the stereo electroacoustic conversion units that have a high sound amplitude bearing capacity is exerted as much as possible on the premise that the stereo electroacoustic conversion units that have a low sound amplitude bearing capacity can be free from wire breakage or burning-out.

Description

一种振膜控制电路、振膜控制方法、芯片及电子设备A diaphragm control circuit, a diaphragm control method, a chip and electronic equipment
本申请要求于2021年05月21日提交中国专利局、申请号为202110557414.4、发明名称为“一种振膜控制电路、振膜控制方法、芯片及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on May 21, 2021, the application number is 202110557414.4, and the invention title is "a diaphragm control circuit, diaphragm control method, chip and electronic equipment". The entire contents are incorporated by reference in this application.
技术领域technical field
本发明涉及信号处理技术领域,尤其涉及一种振膜控制电路、振膜控制方法、芯片及电子设备。The invention relates to the technical field of signal processing, in particular to a diaphragm control circuit, a diaphragm control method, a chip and electronic equipment.
背景技术Background technique
在终端产品,例如手机的立体音频应用中,立体声是由位于手机下方的立体声电声转换单元(喇叭)和位于上方的立体声电声转换单元(听筒)分别提供,喇叭和听筒存在不对称的差异,立体声的音源本身左右声道也会有差异。音效算法中会涉及动态范围控制(DRC)模块,能够将信号中的小信号放大,提高喇叭和听筒这两个立体声电声转换单元的输出功率,提高声音的响度和力度;DRC模块也会对信号中的大信号进行压制,以保护喇叭和听筒这两个立体声电声转换单元的振膜幅度不会太大以至于断线,出现可靠性问题。In terminal products, such as stereo audio applications of mobile phones, stereo sound is provided by the stereo electro-acoustic conversion unit (speaker) located below the mobile phone and the stereo electro-acoustic conversion unit (earpiece) located above, respectively, and there is an asymmetric difference between the speaker and the earpiece , The left and right channels of the stereo sound source itself will also have differences. The sound effect algorithm will involve the dynamic range control (DRC) module, which can amplify the small signal in the signal, increase the output power of the two stereo electroacoustic conversion units, the speaker and the earpiece, and improve the loudness and strength of the sound; the DRC module will also The large signal in the signal is suppressed to protect the diaphragm amplitude of the two stereo electro-acoustic conversion units of the speaker and the earpiece from being too large to break the line and cause reliability problems.
但是当电子设备中的立体声电声转换单元左右声道不对称时,则会出现音效弱化的问题。However, when the left and right channels of the stereo electroacoustic conversion unit in the electronic device are asymmetrical, the problem of weakening of the sound effect will occur.
发明内容Contents of the invention
有鉴于此,本发明提供一种振膜控制电路、振膜控制方法、芯片及电子设备,以解决现有技术中左右声道不对称时,出现的音效弱化的问题。In view of this, the present invention provides a diaphragm control circuit, a diaphragm control method, a chip and an electronic device to solve the problem of weakening sound effects in the prior art when the left and right channels are asymmetrical.
为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:
一种振膜控制电路,应用于包括N个立体声电声转换单元的电子设备,其中N为整数,且N大于或等于2,所述振膜控制电路包括:A diaphragm control circuit, applied to an electronic device including N stereo electroacoustic conversion units, wherein N is an integer, and N is greater than or equal to 2, and the diaphragm control circuit includes:
N条输入信号传输电路、N条增益调节电路、比较器和N条增益附加电路;N input signal transmission circuits, N gain adjustment circuits, comparators and N gain additional circuits;
第M输入信号传输电路与第M增益调节电路相连,第M增益调节电路 与所述比较器相连,所述比较器的输出端与所述第M增益附加电路相连,所述第M增益附加电路的输出端与所述第M输入信号传输电路相连,M=1、2、……N;The Mth input signal transmission circuit is connected to the Mth gain adjustment circuit, the Mth gain adjustment circuit is connected to the comparator, the output terminal of the comparator is connected to the Mth gain addition circuit, and the Mth gain addition circuit The output terminal is connected to the Mth input signal transmission circuit, M=1, 2, ... N;
其中,每条所述增益调节电路用于接收相对应的输入信号,并根据所述输入信号计算得到初始增益值,并根据预设增益值对所述初始增益值进行处理得到降低增益值;Wherein, each of the gain adjustment circuits is used to receive a corresponding input signal, calculate an initial gain value according to the input signal, and process the initial gain value according to a preset gain value to obtain a reduced gain value;
所述比较器接收N条增益调节电路的N个降低增益值,并比较后取最小值;The comparator receives the N reduced gain values of the N gain adjustment circuits, and takes the minimum value after comparison;
每条所述增益附加电路用于接收对应增益调节电路的所述预设增益值对所述最小值进行处理;Each of the gain addition circuits is used to receive the preset gain value of the corresponding gain adjustment circuit and process the minimum value;
所述输入信号传输电路用于接收对应增益附加电路的输出信号,对相对应的所述输入信号进行处理,得到相对应所述立体声电声转换单元的驱动信号。The input signal transmission circuit is used to receive the output signal of the corresponding gain adding circuit, process the corresponding input signal, and obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
优选的,在上述振膜控制电路中,每条输入信号传输电路均包括乘法器,所述乘法器的一端用于接收相对应的输入信号。Preferably, in the above diaphragm control circuit, each input signal transmission circuit includes a multiplier, and one end of the multiplier is used to receive a corresponding input signal.
优选的,在上述振膜控制电路中,每条输入信号传输电路中还包括延时器;Preferably, in the above diaphragm control circuit, each input signal transmission circuit further includes a delay device;
所述延时器的输入端用于接收所述输入信号;The input end of the delayer is used to receive the input signal;
所述延时器的输出端与所在输入信号传输电路中的乘法器的输入端相连;The output terminal of the delayer is connected with the input terminal of the multiplier in the input signal transmission circuit;
所有输入信号传输电路中的延时器的延长时间均相同。The extension times of the delayers in all input signal transmission circuits are the same.
优选的,在上述振膜控制电路中,每条增益调节电路均包括动态范围控制模块和第一计算模块,所述动态范围控制模块的输入端用于接收所述输入信号,并根据所述输入信号计算得到所述初始增益值;所述第一计算模块的输入端与所述动态范围控制模块的输出端相连,用于将所述初始增益值减去所述预设增益值,得到所述降低增益值。Preferably, in the above diaphragm control circuit, each gain adjustment circuit includes a dynamic range control module and a first calculation module, the input end of the dynamic range control module is used to receive the input signal, and according to the input Signal calculation to obtain the initial gain value; the input terminal of the first calculation module is connected to the output terminal of the dynamic range control module, and is used to subtract the preset gain value from the initial gain value to obtain the Lower the gain value.
优选的,在上述振膜控制电路中,每条增益附加电路均包括第二计算模块,所述第二计算模块的输入端与所述比较器的输出端相连,并接收对应增益调节 电路的所述预设增益值,使得所述较小值增加所述预设增益值;所述第二计算模块的输出端与对应输入信号传输电路中的乘法器相连,所述乘法器将所述输入信号与对应增益附加电路中的所述第二计算模块的输出信号相乘,得到相对应所述立体声电声转换单元的驱动信号。Preferably, in the above diaphragm control circuit, each gain additional circuit includes a second calculation module, the input terminal of the second calculation module is connected to the output terminal of the comparator, and receives the corresponding gain adjustment circuit. The preset gain value, so that the smaller value increases the preset gain value; the output of the second calculation module is connected to the multiplier in the corresponding input signal transmission circuit, and the multiplier converts the input signal multiplied by the output signal of the second calculation module in the corresponding gain addition circuit to obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
优选的,在上述振膜控制电路中,所述第一计算模块均为减法器;所述第二计算模块均为加法器;Preferably, in the above diaphragm control circuit, the first calculation modules are subtracters; the second calculation modules are adders;
或,所述第一计算模块均为加法器;所述第二计算模块均为减法器;Or, the first calculation modules are all adders; the second calculation modules are all subtractors;
或,所述第一计算模块均为除法器;所述第二计算模块均为乘法器;Or, the first calculation module is a divider; the second calculation module is a multiplier;
或,所述第一计算模块均为乘法器;所述第二计算模块均为除法器。Or, the first calculation modules are all multipliers; the second calculation modules are all dividers.
本发明还提供了一种振膜控制方法,基于上述任意一项所述的振膜控制电路,所述振膜控制方法包括:The present invention also provides a diaphragm control method, based on the diaphragm control circuit described in any one of the above, the diaphragm control method includes:
获取N个输入信号,其中N为整数,且N大于或等于2;Get N input signals, where N is an integer, and N is greater than or equal to 2;
根据N个输入信号计算得到N个初始增益值,并对N个初始增益值分别叠加对应的预设增益值得到对应的N个降低增益值;Calculate and obtain N initial gain values according to N input signals, and respectively superimpose corresponding preset gain values on the N initial gain values to obtain corresponding N reduced gain values;
比较N个降低增益值,并取最小值;Compare N reduced gain values and take the minimum value;
基于所述最小值,分别增加第M预设增益值,并与第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N。Based on the minimum value, respectively increase the Mth preset gain value and multiply it with the Mth input signal as the driving signal of the Mth stereo electroacoustic conversion unit, M=1, 2, ... N.
优选的,在上述振膜控制方法中,所述基于所述最小值,分别增加第M预设增益值,并与第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N,包括:Preferably, in the above diaphragm control method, based on the minimum value, the Mth preset gain value is increased respectively, and multiplied by the Mth input signal as the driving signal of the Mth stereo electroacoustic conversion unit, M= 1, 2, ... N, including:
对N个所述输入信号进行延时处理;performing delay processing on the N input signals;
基于所述最小值,分别增加第M预设增益值,并与延时处理后的第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N。Based on the minimum value, the Mth preset gain value is increased respectively, and multiplied with the Mth input signal after delay processing as the driving signal of the Mth stereo electroacoustic conversion unit, M=1, 2, . . . N.
本发明还提供了一种芯片,所述芯片包括上述任意一项所述的振膜控制电路。The present invention also provides a chip, which includes the diaphragm control circuit described in any one of the above.
一种电子设备,包括:An electronic device comprising:
N个立体声电声转换单元,以及振膜控制电路,其中N为整数,且N大于或等于2;N stereo electroacoustic conversion units, and a diaphragm control circuit, where N is an integer, and N is greater than or equal to 2;
所述振膜控制电路包括N个信号输入端和N信号输出端;The diaphragm control circuit includes N signal input terminals and N signal output terminals;
第M信号输入端用于接收第M输入信号,M=1、2、……N;The Mth signal input terminal is used to receive the Mth input signal, M=1, 2, ... N;
第M信号输出端与第M立体声电声转换单元连接;The Mth signal output terminal is connected to the Mth stereo electro-acoustic conversion unit;
其中,所述振膜控制电路为权利要求1-6任意一项所述的振膜控制电路。Wherein, the diaphragm control circuit is the diaphragm control circuit described in any one of claims 1-6.
优选的,在上述电子设备中,所述电子设备为手机、平板电脑或影音播放器。Preferably, in the above-mentioned electronic device, the electronic device is a mobile phone, a tablet computer or an audio-visual player.
优选的,在上述电子设备中,N=2,第一立体声电声转换单元为听筒,第二立体声电声转换单元为喇叭。Preferably, in the above electronic device, N=2, the first stereo electro-acoustic conversion unit is an earpiece, and the second stereo electro-acoustic conversion unit is a speaker.
经由上述的技术方案可知,本发明提供的振膜控制电路,应用在包括多个立体声电声转换单元的电子设备中,振膜控制电路包括:N条输入信号传输电路、N条增益调节电路、比较器和N条增益附加电路;通过振膜控制电路中获取多个立体声电声转换单元支路的增益后,再叠加预设增益值得到各条电路中的降低增益值,基于该降低增益值,取各个电路中的最小值;再基于最小值分别叠加对应的预设增益值,从而保证了多个立体声电声转换单元支路中的最终增益值不相同,从而使得承受能力不同的立体声电声转换单元增益值不相同,在保证声音振幅承受能力较差的立体声电声转换单元不被损坏的基础上,将其他声音振幅承受能力较好的立体声电声转换单元的性能发挥到最大,从而兼顾了安全性和不同声音振幅承受能力的立体声电声转换单元的特性,避免了立体声效果被弱化。It can be seen from the above technical solutions that the diaphragm control circuit provided by the present invention is applied in electronic equipment including multiple stereo electroacoustic conversion units. The diaphragm control circuit includes: N input signal transmission circuits, N gain adjustment circuits, A comparator and N additional gain circuits; after obtaining the gains of multiple stereo electroacoustic conversion unit branches in the diaphragm control circuit, and then superimposing the preset gain value to obtain the reduced gain value in each circuit, based on the reduced gain value , take the minimum value in each circuit; then superimpose the corresponding preset gain values based on the minimum value, thus ensuring that the final gain values in multiple stereo electro-acoustic conversion unit branches are different, so that stereo electro-acoustic conversion units with different tolerances The gain values of the sound conversion units are different. On the basis of ensuring that the stereo electro-acoustic conversion units with poor sound amplitude tolerance are not damaged, the performance of other stereo electro-acoustic conversion units with better sound amplitude tolerance is maximized, thereby The characteristics of the stereo electro-acoustic conversion unit taking into account the safety and the ability to withstand different sound amplitudes, avoiding the weakening of the stereo effect.
本发明实施例提供的振膜控制电路,实现了多个立体声电声转换单元增益联动,不仅让处理后的多个声道的相对信号幅度较为恒定,并且保证声音振幅承受能力差的立体声电声转换单元不会断线或者烧坏的前提下,尽可能的将声音振幅承受能力强的立体声电声转换单元的性能给发挥出来。The diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electro-acoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures stereo electro-acoustics with poor sound amplitude tolerance. Under the premise that the conversion unit will not be disconnected or burned out, the performance of the stereo electroacoustic conversion unit with strong sound amplitude tolerance is maximized.
本发明还提供一种振膜控制方法、芯片和电子设备,与上述振膜控制电路基于相同的发明构思,因此能够达到相同的技术效果。The present invention also provides a diaphragm control method, a chip and an electronic device, which are based on the same inventive concept as the above-mentioned diaphragm control circuit, and thus can achieve the same technical effect.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述 中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为相关技术一提供的一种振膜控制电路示意图;FIG. 1 is a schematic diagram of a diaphragm control circuit provided by related art 1;
图2为相关技术二提供的一种振膜控制电路示意图;FIG. 2 is a schematic diagram of a diaphragm control circuit provided in related art 2;
图3为本发明实施例提供的一种振膜控制电路示意图;FIG. 3 is a schematic diagram of a diaphragm control circuit provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种振膜控制电路示意图;FIG. 4 is a schematic diagram of another diaphragm control circuit provided by an embodiment of the present invention;
图5为本发明实施例提供的一种包括两个立体声电声转换单元的振膜控制电路示意图;5 is a schematic diagram of a diaphragm control circuit including two stereo electroacoustic conversion units provided by an embodiment of the present invention;
图6为本发明实施例提供的一种振膜控制方法流程示意图;FIG. 6 is a schematic flowchart of a diaphragm control method provided by an embodiment of the present invention;
图7为本发明实施例提供的一种电子设备结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
正如背景技术部分所述,现有电子设备中的这两个立体声电声转换单元左右声道不对称时,则会出现音效弱化的问题。As mentioned in the background section, when the left and right channels of the two stereo electro-acoustic conversion units in the existing electronic equipment are asymmetrical, the problem of weakening of the sound effect will occur.
发明人发现,出现上述现象的原因是,例如背景技术部分所述的手机立体声是通过位于手机下方的喇叭和位于手机上方的听筒分别提供左右声道的。而相关技术中喇叭和听筒这两个立体声电声转换单元提供的左右声道是分别独立处理的,假如音源中有飞机从左边飞到右边,刚开始的时候,左声道的声音振幅较大,而右声道的声音振幅较小,从而能够使得用户听到飞机的声音是在左边的,之后左边声道的声音振幅慢慢变小,右边声道的声音振幅慢慢变大,从而使得用户听到飞机的声音是在右边的,声音振幅变化过程中,用户听到的结果就是飞机从左边飞到右边了。The inventors have found that the reason for the above phenomenon is that, for example, the stereo sound of a mobile phone as described in the Background Art section provides left and right sound channels through a speaker located below the mobile phone and an earpiece located above the mobile phone. In the related art, the left and right sound channels provided by the two stereo electroacoustic conversion units of the loudspeaker and the earpiece are processed independently. If there is an airplane flying from the left to the right in the sound source, the sound amplitude of the left sound channel is relatively large at the beginning. , and the sound amplitude of the right channel is small, so that the user can hear the sound of the aircraft on the left, and then the sound amplitude of the left channel gradually decreases, and the sound amplitude of the right channel gradually increases, so that The user hears the sound of the plane on the right side. During the change of the sound amplitude, the result heard by the user is that the plane flies from the left to the right.
但是由于左右声道分别独立处理导致的,刚开始时,左声道的信号幅度大,DRC模块会压制左声道信号幅度,右声道信号幅度小,DRC模块会抬升右声道信号幅度,导致左右声道的信号幅度没有原音源中相差的那么大,因此,最终听到的飞机的声音是在中间飞的感觉。也就是说原音源中通过左右声道的幅度差来体现立体声声场定位的信息会被左右声道音效独立处理所弱化,听到的很多声音都是从中间发出的。更有甚者,因为左右声道的增益处理是独立处理的,原音源中的一些比较明显的声音位置,比如一些鼓声等,因为两个增益独立处 理,导致各个鼓的左右声道信号相对幅度在发生变化,使得声音变得到处乱跳。However, due to the independent processing of the left and right channels, at the beginning, the signal amplitude of the left channel is large, the DRC module will suppress the signal amplitude of the left channel, and the signal amplitude of the right channel is small, and the DRC module will increase the signal amplitude of the right channel. As a result, the signal amplitudes of the left and right channels are not as large as the difference in the original sound source. Therefore, the final sound of the plane heard is the feeling of flying in the middle. That is to say, in the original sound source, the information reflecting the positioning of the stereo sound field through the amplitude difference between the left and right channels will be weakened by the independent processing of the left and right channel sound effects, and many sounds heard are emitted from the middle. What's more, because the gain processing of the left and right channels is processed independently, some obvious sound positions in the original sound source, such as some drums, etc., because the two gains are processed independently, the left and right channel signals of each drum are relatively The amplitude is changing, making the sound jump around.
如图1和图2所示,图1为相关技术一提供的一种振膜控制电路示意图;图2为相关技术二提供的一种振膜控制电路示意图;其中,图1中振膜控制电路包括:第一延时器011、第一乘法器012、第二延时器021、第二乘法器022、计算模块031和DRC模块032。左声道输入信号L(Left input)输入电路中的第一延时器011和计算模块031,同时右声道输入信号R(Right input)输入电路中的第二延时器021和计算模块031,计算模块031同时接收左声道输入信号L和右声道输入信号R,并将两者进行计算得到(L+R)/2,然后再作为DRC模块032的输入信号,通过DRC模块032的调制,并经过计算得到增益Gain,然后同时在第一乘法器012和第二乘法器022中分别作用于对应的输入信号,即第一乘法器012将第一延时器011延时后的左声道输入信号L与增益Gain相乘得到左声道输出信号L’(Left output),第二乘法器022将第二延时器021延时后的右声道输入信号R与增益Gain相乘得到右声道输出信号R’(Right output)。As shown in Figure 1 and Figure 2, Figure 1 is a schematic diagram of a diaphragm control circuit provided by related technology 1; Figure 2 is a schematic diagram of a diaphragm control circuit provided by related technology 2; wherein, the diaphragm control circuit in Figure 1 It includes: a first delayer 011 , a first multiplier 012 , a second delayer 021 , a second multiplier 022 , a calculation module 031 and a DRC module 032 . The first delayer 011 and the calculation module 031 in the left channel input signal L (Left input) input circuit, while the second delayer 021 and the calculation module 031 in the right channel input signal R (Right input) input circuit , the calculation module 031 receives the left channel input signal L and the right channel input signal R at the same time, and calculates the two to obtain (L+R)/2, and then as the input signal of the DRC module 032, through the DRC module 032 Modulation, and gain Gain after calculation, and then act on the corresponding input signals in the first multiplier 012 and the second multiplier 022 at the same time, that is, the first multiplier 012 delays the left side of the first delayer 011 The channel input signal L is multiplied by the gain Gain to obtain the left channel output signal L' (Left output), and the second multiplier 022 multiplies the right channel input signal R delayed by the second delayer 021 by the gain Gain Get the right channel output signal R'(Right output).
图2中振膜控制电路包括:第一延时器011、第一乘法器012、第二延时器021、第二乘法器022、比较选择模块033和DRC模块032。左声道输入信号L(Left input)输入电路中的第一延时器011和比较选择模块033,同时右声道输入信号R(Right input)输入电路中的第二延时器021和比较选择模块033,比较选择模块033同时接收左声道输入信号L和右声道输入信号R,并将两者进行比较,选择其中较大的值,然后再作为DRC模块032的输入信号,通过DRC模块032的调制,并经过计算得到增益Gain,然后同时在第一乘法器012和第二乘法器022中分别作用于对应的输入信号,即第一乘法器012将第一延时器011延时后的左声道输入信号L与增益Gain相乘得到左声道输出信号L’(Left output),第二乘法器022将第二延时器021延时后的右声道输入信号R与增益Gain相乘得到右声道输出信号R’(Right output)。The diaphragm control circuit in FIG. 2 includes: a first delayer 011 , a first multiplier 012 , a second delayer 021 , a second multiplier 022 , a comparison and selection module 033 and a DRC module 032 . The first delayer 011 and comparison selection module 033 in the left channel input signal L (Left input) input circuit, while the second delayer 021 and comparison selection in the right channel input signal R (Right input) input circuit Module 033, the comparison and selection module 033 simultaneously receives the left channel input signal L and the right channel input signal R, and compares the two, selects the larger value, and then uses it as the input signal of the DRC module 032, through the DRC module 032 modulation, and gain Gain after calculation, and then act on the corresponding input signals in the first multiplier 012 and the second multiplier 022 at the same time, that is, the first multiplier 012 delays the first delayer 011 The left channel input signal L and the gain Gain are multiplied to obtain the left channel output signal L' (Left output), and the second multiplier 022 delays the right channel input signal R and the gain Gain after the second delayer 021 Multiply to get the right channel output signal R'(Right output).
上述图1和图2所示的相关技术中,虽然保证了左右两个声道的信号调整增益是一致的,因此,左右声道的信号幅度相对大小不会有变化,保留了左右声道信号幅度差体现了声场定位信息。In the above-mentioned related technologies shown in Figure 1 and Figure 2, although the signal adjustment gains of the left and right channels are guaranteed to be consistent, the relative magnitude of the signal amplitudes of the left and right channels will not change, and the left and right channel signals are retained. The amplitude difference reflects the sound field localization information.
也就是说,对于左右声道元件对称的电子设备而言,上述图1和图2所示的相关技术能够避免声音被弱化的现象。但对于背景技术部分所述的电子设备, 例如手机,左声道是听筒发声,而右声道是喇叭发声。本领域技术人员公知的,听筒的电信号承受能力相对较弱,若电信号较大,如声音振幅为6V、频率为300Hz的信号就很容易使得听筒的振膜超出电子设备厂给出的最大位移,从而导致听筒断线;因此,为了保护听筒,DRC模块对左声道的处理增益会比较小,但是由于上面图1和图2所示的相关技术,增益是同步的,因此,会导致右声道的信号幅度也变得比较小。而右声道是喇叭,喇叭的电压承受能力是相对较强的,有些9V以上的信号仍旧在喇叭的可接受范围内,而不会发生断线而过温烧坏喇叭。因此,上述图1和图2所示的相关技术并没有完全发挥喇叭的作用,从而浪费了喇叭的硬件性能,导致用户主观感受到影响,如音量较小、鼓声力度不够、低频不够丰满等问题。That is to say, for an electronic device with symmetrical left and right channel components, the above-mentioned related technologies shown in FIG. 1 and FIG. 2 can avoid the phenomenon that the sound is weakened. However, for the electronic device described in the background art section, such as a mobile phone, the left channel is used to produce sound from the earpiece, and the right channel is used to produce sound from a speaker. As is well known to those skilled in the art, the electrical signal tolerance of the earpiece is relatively weak. If the electrical signal is large, such as a signal with a sound amplitude of 6V and a frequency of 300Hz, it is easy to make the diaphragm of the earpiece exceed the maximum limit given by the electronic equipment factory. Therefore, in order to protect the earpiece, the processing gain of the DRC module for the left channel will be relatively small, but due to the related technologies shown in Figure 1 and Figure 2 above, the gain is synchronized, so it will cause The signal amplitude of the right channel also becomes smaller. The right channel is the speaker, and the voltage tolerance of the speaker is relatively strong. Some signals above 9V are still within the acceptable range of the speaker, and the speaker will not be broken due to overheating. Therefore, the above-mentioned related technologies shown in Figure 1 and Figure 2 do not fully play the role of the speaker, thereby wasting the hardware performance of the speaker, causing users to feel the impact subjectively, such as low volume, insufficient drum sound, and insufficient fullness of the low frequency, etc. question.
基于此,本发明提供一种振膜控制电路,应用于包括N个立体声电声转换单元(立体声电声转换单元可以为扬声器、喇叭、听筒等扬声部件)的电子设备,其中N为整数,且N大于或等于2。Based on this, the present invention provides a diaphragm control circuit, which is applied to an electronic device including N stereo electroacoustic conversion units (the stereo electroacoustic conversion units can be loudspeaker components such as loudspeakers, horns, receivers, etc.), wherein N is an integer, And N is greater than or equal to 2.
可选的,所述多个立体声电声转换单元中至少存在一个立体声电声转换单元的声音振幅承受能力与其他立体声电声转换单元的声音振幅承受能力不同。Optionally, the sound amplitude tolerance of at least one stereo electroacoustic conversion unit among the plurality of stereo electroacoustic conversion units is different from the sound amplitude tolerance of other stereo electroacoustic conversion units.
具体的,所述振膜控制电路包括:Specifically, the diaphragm control circuit includes:
N条输入信号传输电路、N条增益调节电路、比较器和N条增益附加电路;N input signal transmission circuits, N gain adjustment circuits, comparators and N gain additional circuits;
第M输入信号传输电路与第M增益调节电路相连,第M增益调节电路与所述比较器相连,所述比较器的输出端与所述第M增益附加电路相连,所述第M增益附加电路的输出端与所述第M输入信号传输电路相连,M=1、2、……N;The Mth input signal transmission circuit is connected to the Mth gain adjustment circuit, the Mth gain adjustment circuit is connected to the comparator, the output terminal of the comparator is connected to the Mth gain addition circuit, and the Mth gain addition circuit The output terminal is connected to the Mth input signal transmission circuit, M=1, 2, ... N;
其中,每条所述增益调节电路用于接收相对应的输入信号,并根据所述输入信号计算得到初始增益值,并根据预设增益值对所述初始增益值进行处理得到降低增益值;Wherein, each of the gain adjustment circuits is used to receive a corresponding input signal, calculate an initial gain value according to the input signal, and process the initial gain value according to a preset gain value to obtain a reduced gain value;
所述比较器接收N条增益调节电路的N个降低增益值,并比较后取最小值;The comparator receives the N reduced gain values of the N gain adjustment circuits, and takes the minimum value after comparison;
每条所述增益附加电路用于接收对应增益调节电路的所述预设增益值对所述最小值进行处理;Each of the gain addition circuits is used to receive the preset gain value of the corresponding gain adjustment circuit and process the minimum value;
所述输入信号传输电路用于接收对应增益附加电路的输出信号,对相对应的所述输入信号进行处理,得到相对应所述立体声电声转换单元的驱动信号。The input signal transmission circuit is used to receive the output signal of the corresponding gain adding circuit, process the corresponding input signal, and obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
本发明提供的振膜控制电路,应用在包括多个立体声电声转换单元的电子设备中,振膜控制电路包括:N条输入信号传输电路、N条增益调节电路、比较器和N条增益附加电路;通过振膜控制电路中获取多个立体声电声转换单元支路的增益后,再叠加预设增益值,得到各条电路中的降低增益值,基于该降低增益值,取各个电路中的最小值;再基于最小值分别叠加对应的预设增益值,从而保证了多个立体声电声转换单元支路中的最终增益值不相同,从而使得承受能力不同的立体声电声转换单元增益值不相同,在保证声音振幅承受能力较差的立体声电声转换单元不被损坏的基础上,将其他声音振幅承受能力较好的立体声电声转换单元的性能发挥到最大,从而兼顾了安全性和不同声音振幅承受能力的立体声电声转换单元的特性,避免了立体声效果被弱化。本发明实施例提供的振膜控制电路,实现了多个立体声电声转换单元增益联动,不仅让处理后的多个声道的相对信号幅度较为恒定,并且保证声音振幅承受能力差的立体声电声转换单元不会断线或者烧坏的前提下,尽可能的将声音振幅承受能力强的立体声电声转换单元的性能给发挥出来。The diaphragm control circuit provided by the present invention is applied in electronic equipment including a plurality of stereo electroacoustic conversion units, and the diaphragm control circuit includes: N input signal transmission circuits, N gain adjustment circuits, comparators and N gain additional circuit; after obtaining the gains of multiple stereo electroacoustic conversion unit branches in the diaphragm control circuit, and then superimposing the preset gain value, the reduced gain value in each circuit is obtained, and based on the reduced gain value, the value in each circuit is taken The minimum value; and then superimpose the corresponding preset gain values based on the minimum value, thereby ensuring that the final gain values in multiple stereo electro-acoustic conversion unit branches are different, so that the stereo electro-acoustic conversion unit gain values with different tolerances are different. Similarly, on the basis of ensuring that the stereo electro-acoustic conversion unit with poor sound amplitude tolerance is not damaged, the performance of other stereo electro-acoustic conversion units with better sound amplitude tolerance is maximized, thus taking into account safety and differences. The characteristics of the stereo electro-acoustic conversion unit with the ability to withstand the sound amplitude avoid the weakening of the stereo effect. The diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electro-acoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures stereo electro-acoustics with poor sound amplitude tolerance. Under the premise that the conversion unit will not be disconnected or burned out, the performance of the stereo electroacoustic conversion unit with strong sound amplitude tolerance is maximized.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
请参见图3,图3为本发明实施例提供的一种振膜控制电路示意图;所述振膜控制电路,应用于包括N个立体声电声转换单元15的电子设备,其中N为整数,且N大于或等于2。Please refer to FIG. 3. FIG. 3 is a schematic diagram of a diaphragm control circuit provided by an embodiment of the present invention; the diaphragm control circuit is applied to an electronic device including N stereo electroacoustic conversion units 15, where N is an integer, and N is greater than or equal to 2.
可选的,多个立体声电声转换单元15中至少存在一个立体声电声转换单元15的声音振幅承受能力与其他立体声电声转换单元15的声音振幅承受能力不同。Optionally, among the plurality of stereo electro-acoustic conversion units 15 , at least one stereo electro-acoustic conversion unit 15 has a sound amplitude tolerance different from that of other stereo electro-acoustic conversion units 15 .
需要说明的是,本实施例中不限定立体声电声转换单元的个数,只要包括 至少两个立体声电声转换单元,且至少有一个立体声电声转换单元的声音振幅承受能力与其他立体声电声转换单元的声音振幅承受能力不同即可。本实施例中对立体声电声转换单元的个数不做限定。可以是两个,例如手机的听筒和喇叭,还可以是多个立体声电声转换单元。而且多个立体声电声转换单元中可以只有一个立体声电声转换单元的声音振幅承受能力与其他立体声电声转换单元的声音振幅承受能力不同,也可以是多个立体声电声转换单元的声音振幅承受能力均不相同,本实施例中对此不作限定。It should be noted that the number of stereo electroacoustic conversion units is not limited in this embodiment, as long as at least two stereo electroacoustic conversion units are included, and the sound amplitude tolerance of at least one stereo electroacoustic conversion unit is comparable to that of other stereo electroacoustic conversion units. The sound amplitude tolerance of the conversion units may be different. In this embodiment, the number of stereo electro-acoustic conversion units is not limited. It can be two, such as the handset and speaker of a mobile phone, or multiple stereo electroacoustic conversion units. Moreover, among the plurality of stereo electroacoustic conversion units, only one stereo electroacoustic conversion unit may have a sound amplitude tolerance different from that of other stereo electroacoustic conversion units, or the sound amplitude tolerance of multiple stereo electroacoustic conversion units may be different. Capabilities are different, which is not limited in this embodiment.
请继续参见图3,所述振膜控制电路包括:N条输入信号传输电路11、N条增益调节电路12、比较器13和N条增益附加电路14;第M输入信号传输电路11与第M增益调节电路12相连,第M增益调节电路12与比较器13相连,比较器13的输出端与第M增益附加电路14相连,第M增益附加电路14的输出端与第M输入信号传输电路11相连,M=1、2、……N。Please continue to refer to FIG. 3, the diaphragm control circuit includes: N input signal transmission circuits 11, N gain adjustment circuits 12, comparators 13 and N gain additional circuits 14; the Mth input signal transmission circuit 11 and the Mth The gain adjustment circuit 12 is connected, the Mth gain adjustment circuit 12 is connected with the comparator 13, the output end of the comparator 13 is connected with the Mth gain addition circuit 14, the output end of the Mth gain addition circuit 14 is connected with the Mth input signal transmission circuit 11 Connected, M=1, 2, ... N.
也即,本实施例中N条输入信号传输电路的结构相同,N条增益调节电路的结构也相同,N条增益调节电路的结构也相同。下面结合附图说明每个电路中的详细结构。That is, in this embodiment, the N input signal transmission circuits have the same structure, the N gain adjustment circuits have the same structure, and the N gain adjustment circuits have the same structure. The detailed structure in each circuit is described below in conjunction with the accompanying drawings.
其中,每条所述增益调节电路12用于接收相对应的输入信号Input,输入信号Input包括第一输入信号Input 1、第二输入信号Input 2、……第M输入信号Input M……第N输入信号Input N,并根据所述输入信号Input计算得到初始增益值Gain,其中每个支路都得到对应的初始增益值(每支电路中分别为图3中的Gain 1、……Gain M、……Gain N),并根据预设增益值Offset(每支电路中分别为图3中的Offset 1、……Offset M、……Offset N)对所述初始增益值Gain进行处理得到降低增益值;Wherein, each said gain adjustment circuit 12 is used to receive the corresponding input signal Input, and the input signal Input includes the first input signal Input 1, the second input signal Input 2, ... the Mth input signal Input M ... the Nth Input signal Input N, and calculate initial gain value Gain according to described input signal Input, wherein each branch all obtains corresponding initial gain value (respectively Gain 1, ... Gain M, ... Gain M among Fig. 3 in each branch circuit ...Gain N), and according to the preset gain value Offset (each circuit is respectively Offset 1, ... Offset M, ... Offset N in Fig. 3), the initial gain value Gain is processed to obtain a reduced gain value ;
所述比较器13接收N条增益调节电路12的N个降低增益值,并比较后取最小值;The comparator 13 receives the N reduced gain values of the N gain adjustment circuits 12, and takes the minimum value after comparison;
每条所述增益附加电路14用于接收对应增益调节电路12的所述预设增益值Offset(每支电路中分别为图3中的Offset 1、……Offset M、……Offset N)对所述最小值进行处理;Each of the gain additional circuits 14 is used to receive the preset gain value Offset of the corresponding gain adjustment circuit 12 (respectively Offset 1, ... Offset M, ... Offset N in Fig. 3 in each circuit) The above minimum value is processed;
所述输入信号传输电路11用于接收对应增益附加电路14的输出信号,对相 对应的所述输入信号Input进行处理,得到相对应所述立体声电声转换单元的驱动信号。The input signal transmission circuit 11 is used to receive the output signal corresponding to the gain adding circuit 14, and process the corresponding input signal Input to obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
在该实施例中,该振膜控制电路应用在包括多个立体声电声转换单元的电子设备中,振膜控制电路包括:N条输入信号传输电路11、N条增益调节电路12、比较器13和N条增益附加电路14;通过振膜控制电路中获取多个立体声电声转换单元支路的增益后,再叠加预设增益值,得到各条电路中的降低增益值,基于该降低增益值,取各个电路中的最小值;再基于最小值分别叠加对应的预设增益值,从而保证了多个立体声电声转换单元支路中的最终增益值不相同,从而使得承受能力不同的立体声电声转换单元增益值不相同,在保证声音振幅承受能力较差的立体声电声转换单元不被损坏的基础上,将其他声音振幅承受能力较好的立体声电声转换单元的性能发挥到最大,从而兼顾了安全性和不同声音振幅承受能力的立体声电声转换单元的特性,避免了立体声效果被弱化。本发明实施例提供的振膜控制电路,实现了多个立体声电声转换单元增益联动,不仅让处理后的多个声道的相对信号幅度较为恒定,并且保证声音振幅承受能力差的立体声电声转换单元不会断线或者烧坏的前提下,尽可能的将声音振幅承受能力强的立体声电声转换单元的性能给发挥出来。In this embodiment, the diaphragm control circuit is applied in an electronic device including a plurality of stereo electroacoustic conversion units, and the diaphragm control circuit includes: N input signal transmission circuits 11, N gain adjustment circuits 12, comparators 13 and N gain additional circuits 14; after obtaining the gains of multiple stereo electroacoustic conversion unit branches in the diaphragm control circuit, then superimposing the preset gain value to obtain the reduced gain value in each circuit, based on the reduced gain value , take the minimum value in each circuit; then superimpose the corresponding preset gain values based on the minimum value, thus ensuring that the final gain values in multiple stereo electro-acoustic conversion unit branches are different, so that stereo electro-acoustic conversion units with different tolerances The gain values of the sound conversion units are different. On the basis of ensuring that the stereo electro-acoustic conversion units with poor sound amplitude tolerance are not damaged, the performance of other stereo electro-acoustic conversion units with better sound amplitude tolerance is maximized, thereby The characteristics of the stereo electro-acoustic conversion unit taking into account the safety and the ability to withstand different sound amplitudes, avoiding the weakening of the stereo effect. The diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electro-acoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures stereo electro-acoustics with poor sound amplitude tolerance. Under the premise that the conversion unit will not be disconnected or burned out, the performance of the stereo electroacoustic conversion unit with strong sound amplitude tolerance is maximized.
可选的,如图3所示,每条输入信号传输电路11均包括乘法器111,乘法器111的一端用于接收输入信号Input,输入信号Input包括第一输入信号Input 1、第二输入信号Input 2、……第M输入信号Input M……第N输入信号Input N。Optionally, as shown in Figure 3, each input signal transmission circuit 11 includes a multiplier 111, one end of the multiplier 111 is used to receive the input signal Input, the input signal Input includes the first input signal Input 1, the second input signal Input 2, ... Mth input signal Input M ... Nth input signal Input N.
可选的,如图3所示,每条增益调节电路12均包括动态范围控制模块121和第一计算模块122,其中,每个动态范围控制模块对应其自身名称如图3中所示的DRC 1、……DRC M、……DRC N,动态范围控制模块121的输入端用于接收输入信号Input,并根据输入信号Input计算得到初始增益值Gain,其中每个支路都得到对应的初始增益值(每支电路中分别为图3中的Gain 1、……Gain M、……Gain N);第一计算模块122的输入端与动态范围控制模块121的输出端相连,用于将初始增益值减小预设增益值Offset(每支电路中分别为图3中的Offset 1、……Offset M、……Offset N),得到降低增益值。Optionally, as shown in FIG. 3, each gain adjustment circuit 12 includes a dynamic range control module 121 and a first calculation module 122, wherein each dynamic range control module corresponds to its own name DRC as shown in FIG. 3 1. ...DRC M, ...DRC N, the input terminal of the dynamic range control module 121 is used to receive the input signal Input, and calculate the initial gain value Gain according to the input signal Input, wherein each branch obtains a corresponding initial gain value (respectively Gain 1, ... Gain M, ... Gain N in Fig. 3 in each circuit); the input end of the first calculation module 122 is connected with the output end of the dynamic range control module 121, is used for initial gain The value decreases the preset gain value Offset (respectively Offset 1, ... Offset M, ... Offset N in Fig. 3 in each circuit), and the reduced gain value is obtained.
可选的,如图3所示,比较器13接收N条增益调节电路的N个降低增益值,并比较后取最小值。Optionally, as shown in FIG. 3 , the comparator 13 receives N reduced gain values from N gain adjustment circuits, compares them and takes the minimum value.
可选的,如图3所示,每条增益附加电路14均包括第二计算模块140,第二计算模块140的输入端与比较器13的输出端相连,并接收对应增益调节电路12的预设增益值,使得较小值增加预设增益值;第二计算模块140的输出端与对应输入信号传输电路11中的乘法器111相连,乘法器111将输入信号Input与对应增益附加电路中的第二计算模块140的输出信号相乘,作为对应立体声电声转换单元15的驱动信号。Optionally, as shown in FIG. 3 , each gain addition circuit 14 includes a second calculation module 140, the input terminal of the second calculation module 140 is connected to the output terminal of the comparator 13, and receives the preset value of the corresponding gain adjustment circuit 12. Set the gain value so that the smaller value increases the preset gain value; the output of the second calculation module 140 is connected with the multiplier 111 in the corresponding input signal transmission circuit 11, and the multiplier 111 combines the input signal Input with the corresponding gain addition circuit The output signals of the second calculation module 140 are multiplied to serve as the driving signal corresponding to the stereo electro-acoustic conversion unit 15 .
需要说明的是,本实施例中每个支路电路的结构包括的元器件是相同的,但是所涉及的参数可以不相同,例如每个支路中的动态范围控制模块DRC的参数是可以独立设置的,无需多个声道绑定,对DRC的设置,本实施例中对此不作详细说明。It should be noted that the structure of each branch circuit in this embodiment includes the same components, but the parameters involved may be different, for example, the parameters of the dynamic range control module DRC in each branch can be independent If it is set, there is no need to bind multiple audio channels, and the setting of the DRC will not be described in detail in this embodiment.
另外,本实施例中第一计算模块122的作用是在初始增益基础上减去一定的增益(即预设增益值),以保证后续第二计算模块140增加上预设增益值,形成最终增益值时,不会因为增益值超过声音振幅承受能力最小的立体声电声转换单元的可承受范围,导致立体声电声转换单元断线或烧坏,因此,本实施例中第一计算模块122的作用为降低初始增益值,而第二计算模块140的作用为在最小增益值的基础上增加增益值。In addition, the function of the first calculation module 122 in this embodiment is to subtract a certain gain (that is, the preset gain value) from the initial gain to ensure that the subsequent second calculation module 140 increases the preset gain value to form the final gain value, the stereo electro-acoustic conversion unit will not be disconnected or burned because the gain value exceeds the tolerance range of the stereo electro-acoustic conversion unit with the smallest sound amplitude tolerance. Therefore, the role of the first calculation module 122 in this embodiment In order to reduce the initial gain value, the function of the second calculating module 140 is to increase the gain value on the basis of the minimum gain value.
需要说明的是,本实施例中不限定第一计算模块122和第二计算模块140的具体结构,可选的,当初始增益值为Log域时,单位为dB,此时可选的,第一计算模块均为减法器;第二计算模块均为加法器。此时,对应的预设增益值为正值。It should be noted that the specific structures of the first calculation module 122 and the second calculation module 140 are not limited in this embodiment. Optionally, when the initial gain value is in the Log domain, the unit is dB. At this time, optional, the first The first calculation module is a subtractor; the second calculation module is an adder. At this time, the corresponding preset gain value is a positive value.
同样原理的,第一计算模块还可以为加法器;第二计算模块还可以为减法器。此时,对应的预设增益值为负值。In the same principle, the first calculation module can also be an adder; the second calculation module can also be a subtractor. At this time, the corresponding preset gain value is a negative value.
而当增益从初始到结束均为线性域,则对应的第一计算模块均为除法器;第二计算模块均为乘法器。此时,预设增益值为大于1的值。And when the gain is in the linear domain from the beginning to the end, the corresponding first calculation modules are all dividers; the second calculation modules are all multipliers. At this time, the preset gain value is greater than 1.
其他实施例中,第一计算模块还可以均为乘法器;第二计算模块还可以均为除法器。此时,预设增益值为小于1的值。In other embodiments, the first calculation modules can also all be multipliers; the second calculation modules can also all be dividers. At this time, the preset gain value is a value less than 1.
本发明实施例提供的振膜控制电路,通过在动态范围控制模块DRC产生的增益基础上,先统一都调低一部分增益值,得到降低增益值,然后将多个立体声电声转换单元的降低增益值取最小值;在该最小值的基础上,再将原来减小 的预设增益叠加上,保证了声音振幅承受能力最小的扬声器的安全性。同时,通过调节不同的预设增益值,使得声音振幅承受能力不同的立体声电声转换单元的最终增益不同,从而使得声音振幅承受能力不同的立体声电声转换单元具有不同的声音振幅,充分利用了声音振幅承受能力强的立体声电声转换单元的大振幅特性,使得立体声的效果更好,避免了由于多个声道增益相同导致的立体声效果弱化的问题。In the diaphragm control circuit provided by the embodiment of the present invention, on the basis of the gain generated by the dynamic range control module DRC, a part of the gain value is uniformly lowered to obtain the reduced gain value, and then the reduced gain value of the multiple stereo electroacoustic conversion units The value takes the minimum value; on the basis of the minimum value, the original reduced preset gain is superimposed to ensure the safety of the speaker with the smallest sound amplitude tolerance. At the same time, by adjusting different preset gain values, the final gains of stereo electroacoustic conversion units with different sound amplitude tolerances are different, so that stereo electroacoustic conversion units with different sound amplitude tolerances have different sound amplitudes, making full use of The large-amplitude characteristic of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance makes the stereo effect better and avoids the problem of weakening the stereo effect caused by the same gain of multiple channels.
也即,本发明实施例提供的振膜控制电路,实现了多个立体声电声转换单元增益联动,不仅让处理后的多个声道的相对信号幅度较为恒定,并且保证声音振幅承受能力差的立体声电声转换单元不会断线或者烧坏的前提下,尽可能的将声音振幅承受能力强的立体声电声转换单元的性能给发挥出来。That is to say, the diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electroacoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures that the sound amplitude tolerance is poor. Under the premise that the stereo electro-acoustic conversion unit will not be disconnected or burnt out, the performance of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance is brought into play as much as possible.
请参见图4,图4为本发明实施例提供的另一种振膜控制电路示意图;与图3所示的振膜控制电路不同的是,本实施例中每条输入信号传输电路中还包括延时器112,例如图4中的第一延时器、……第M延时器、……第N延时器;延时器112的输入端用于接收输入信号;延时器112的输出端与所在输入信号传输电路中的乘法器111的输入端相连;所有输入信号传输电路中的延时器112的延长时间均相同。Please refer to Figure 4, Figure 4 is a schematic diagram of another diaphragm control circuit provided by the embodiment of the present invention; different from the diaphragm control circuit shown in Figure 3, each input signal transmission circuit in this embodiment also includes Delay device 112, for example the first delay device among Fig. 4, ... the M delay device, ... the N delay device; The input end of delay device 112 is used for receiving input signal; The delay device 112 The output end is connected with the input end of the multiplier 111 in the input signal transmission circuit; the extension time of the delayer 112 in all input signal transmission circuits is the same.
本实施例中延时器的作用为对输入信号做延迟,是为了多个立体声电声转换单元的声道做相同的延迟,使输出的多个声道之间没有相对的延迟和相位差。有些应用场景,需要把信号严格压制在某个幅度以内,比如-6dB。当输入信号幅度为0dB时,将信号压制在-6dB,需要调整增益,而增益是不能突然从0dB跳变到-6dB的。如果增益突变,会在最后的听感上引入pop音,严重影响主观听感,这是客户没法接受的。因此,需要有个时间将增益从0dB缓慢变到-6dB,而不加延时器,当增益还未变到对应增益时,信号已经输送到扬声器了,这段信号的幅度在-6dB以上,是不可接受的。因此,加个延时器,且延时器的长度和增益变化的时间对应,保证信号和增益相乘时,增益已经调整到预定增益。The function of the delayer in this embodiment is to delay the input signal, so that the channels of the multiple stereo electro-acoustic conversion units are delayed the same, so that there is no relative delay and phase difference between the multiple output channels. In some application scenarios, the signal needs to be strictly suppressed within a certain range, such as -6dB. When the input signal amplitude is 0dB, to suppress the signal at -6dB, the gain needs to be adjusted, and the gain cannot suddenly jump from 0dB to -6dB. If the gain changes suddenly, pop sounds will be introduced into the final listening experience, which will seriously affect the subjective listening experience, which is unacceptable to customers. Therefore, it takes time to slowly change the gain from 0dB to -6dB without adding a delay device. When the gain has not changed to the corresponding gain, the signal has been sent to the speaker. The amplitude of this signal is above -6dB. is unacceptable. Therefore, a delayer is added, and the length of the delayer corresponds to the time of gain change, so as to ensure that when the signal is multiplied by the gain, the gain has been adjusted to the predetermined gain.
本发明实施例提供一种左声道为听筒,右声道为喇叭的振膜控制电路,请参见图5,图5为本发明实施例提供的一种包括两个立体声电声转换单元的振膜控制电路示意图;本发明实施例提供的振膜控制电路包括:第一乘法器51、第 二乘法器52、第一动态范围控制模块53、第二动态范围控制模块54、第三计算模块55、第四计算模块56、比较器57、第五计算模块58、第六计算模块59。The embodiment of the present invention provides a diaphragm control circuit in which the left channel is an earpiece and the right channel is a speaker. Please refer to FIG. 5 . Schematic diagram of the diaphragm control circuit; the diaphragm control circuit provided by the embodiment of the present invention includes: a first multiplier 51, a second multiplier 52, a first dynamic range control module 53, a second dynamic range control module 54, and a third calculation module 55 , a fourth calculation module 56 , a comparator 57 , a fifth calculation module 58 , and a sixth calculation module 59 .
其中,第一动态范围控制模块53的输入端用于接收第一输入信号Left input,并根据第一输入信号Left input计算得到第一初始增益值Gain 1;第三计算模块55的输入端与第一动态范围控制模块53的输出端相连,用于将第一初始增益值Gain 1降低第一预设增益值Offset 1,得到第一降低增益值(Gain 1-Offset 1);本实施例中Offset 1为正值,增益为在Log域中。Wherein, the input terminal of the first dynamic range control module 53 is used for receiving the first input signal Left input, and calculates and obtains the first initial gain value Gain 1 according to the first input signal Left input; The output end of a dynamic range control module 53 is connected, and is used to reduce the first preset gain value Offset 1 by the first initial gain value Gain 1, obtains the first reduced gain value (Gain 1-Offset 1); In the present embodiment, Offset 1 is positive and the gain is in the Log domain.
第二动态范围控制模块54的输入端用于接收第二输入信号Right input,并根据第二输入信号Right input计算得到第二初始增益值Gain 2;第四计算模块56的输入端与第二动态范围控制模块54的输出端相连,用于将第二初始增益值Gain 2叠加第二预设增益值Offset 2,得到第二降低增益值(Gain 2-Offset 2)。The input end of the second dynamic range control module 54 is used to receive the second input signal Right input, and calculates and obtains the second initial gain value Gain 2 according to the second input signal Right input; The input end of the fourth calculation module 56 is connected with the second dynamic range The output terminal of the range control module 54 is connected, and is used for superimposing the second initial gain value Gain 2 with the second preset gain value Offset 2 to obtain a second reduced gain value (Gain 2-Offset 2).
比较器57的输入端分别与第三计算模块55和第四计算模块56相连,比较第一降低增益值(Gain 1-Offset 1)和第二降低增益值(Gain 2-Offset 2),并输出第一降低增益值(Gain 1-Offset 1)和第二降低增益值(Gain 2-Offset 2)中的较小值Min。The input end of comparator 57 is connected with the 3rd calculation module 55 and the 4th calculation module 56 respectively, compares the first reduction gain value (Gain 1-Offset 1) and the second reduction gain value (Gain 2-Offset 2), and outputs The smaller value Min of the first reduced gain value (Gain 1-Offset 1) and the second reduced gain value (Gain 2-Offset 2).
第五计算模块58的输入端与比较器的输出端相连,并接收第一预设增益值Offset 1,使得较小值Min增加第一预设增益值Offset 1;第五计算模块58的输出端与第一乘法器51相连,第一乘法器51将第一输入信号与第五计算模块58的输出信号相乘,作为第一立体声电声转换单元的驱动信号Left output。The input terminal of the fifth calculation module 58 is connected with the output terminal of the comparator, and receives the first preset gain value Offset 1, so that the smaller value Min increases the first preset gain value Offset 1; the output terminal of the fifth calculation module 58 It is connected to the first multiplier 51, and the first multiplier 51 multiplies the first input signal by the output signal of the fifth calculation module 58, and serves as the driving signal Left output of the first stereo electroacoustic conversion unit.
第六计算模块59的输入端与比较器57的输出端相连,并接收第二预设增益值,使得较小值Min增加第二预设增益值Offset 2;第六计算模块59的输出端与第二乘法器52相连,第二乘法器52将第二输入信号与第六计算模块59的输出信号相乘,作为第二立体声电声转换单元的驱动信号Right output。The input terminal of the sixth calculation module 59 is connected with the output terminal of the comparator 57, and receives the second preset gain value, so that the smaller value Min increases the second preset gain value Offset 2; the output terminal of the sixth calculation module 59 and The second multiplier 52 is connected, and the second multiplier 52 multiplies the second input signal by the output signal of the sixth calculation module 59 to serve as the driving signal Right output of the second stereo electroacoustic conversion unit.
为了使输出的左右声道之间没有相对的延迟和相位差,本实施例中还包括第一延时器510和第二延时器511;第一延时器510的输入端用于接收第一输入信号Left input,并对第一输入信号Left input延时预设时间;第一延时器510的输出端与第一乘法器51的第二输入端相连;第二延时器511的输入端用于接收 第二输入信号Right input,并对第二输入信号Right input延时预设时间;第二延时器511的输出端与第二乘法器52的第二输入端相连。In order to make there is no relative delay and phase difference between the left and right channels of the output, a first delayer 510 and a second delayer 511 are also included in this embodiment; the input end of the first delayer 510 is used to receive the first delayer 510 An input signal Left input, and delay the preset time to the first input signal Left input; the output end of the first delayer 510 is connected with the second input end of the first multiplier 51; the input of the second delayer 511 The end is used to receive the second input signal Right input, and delay the second input signal Right input for a preset time; the output end of the second delayer 511 is connected to the second input end of the second multiplier 52 .
通过延时器的作用,对输入信号做延迟,以保证左右声道之间没有相对延迟。Through the function of the delayer, the input signal is delayed to ensure that there is no relative delay between the left and right channels.
本实施例中不限定,第三计算模块、第四计算模块、第五计算模块和第六计算模块的具体结构,可选的,在Log域中,第三计算模块和第四计算模块均为减法器;第五计算模块和第六计算模块均为加法器。或者在线性域中,第三计算模块和第四计算模块均为除法器;第五计算模块和第六计算模块均为乘法器。This embodiment does not limit the specific structures of the third computing module, the fourth computing module, the fifth computing module, and the sixth computing module. Optionally, in the Log domain, the third computing module and the fourth computing module are both Subtractor; both the fifth calculation module and the sixth calculation module are adders. Or in the linear domain, both the third computing module and the fourth computing module are dividers; the fifth computing module and the sixth computing module are both multipliers.
通过图5,可以知道最终作用于左声道的L_gain和作用于右声道的R_gain之间为固定的(Offset1-Offset2)dB的差距,因此,左右声道输出的相对幅度是恒定的,不会随着左右声道的输入信号的幅度而变化,保证了声场的稳定。另外,对于左声道是听筒,右声道是喇叭的手机应用场景,可以将Offset1设置为0dB,Offset2设置为大于0dB的值,如3dB。这样,右声道就可以额外大于左声道3dB的状态下输出,不会因为左声道的听筒而限制右声道喇叭的性能。如果左右声道的听筒、喇叭的位置互换,可以将Offset1设置为大于0dB,Offset2等于0dB。其中Offset1和Offset2的设置值,根据实际听筒和喇叭的差异设定,本发明实施例不做具体限定。Through Fig. 5, it can be known that the gap between the L_gain acting on the left channel and the R_gain acting on the right channel is fixed (Offset1-Offset2)dB. Therefore, the relative amplitude of the left and right channel output is constant, not It will change with the amplitude of the input signal of the left and right channels, ensuring the stability of the sound field. In addition, for mobile phone application scenarios where the left channel is the earpiece and the right channel is the speaker, Offset1 can be set to 0dB, and Offset2 can be set to a value greater than 0dB, such as 3dB. In this way, the output of the right channel can be 3dB larger than that of the left channel, and the performance of the right channel speaker will not be limited by the earpiece of the left channel. If the positions of the earpieces and speakers of the left and right channels are interchanged, you can set Offset1 to be greater than 0dB, and Offset2 to be equal to 0dB. The setting values of Offset1 and Offset2 are set according to the difference between the actual earpiece and the speaker, and are not specifically limited in this embodiment of the present invention.
综上所述,本发明实施例中提出了一种新的增益联动的振膜控制电路,不仅让处理后的L、R的相对信号幅度较为恒定,并且保证听筒不会断线或者烧坏的前提下,尽可能的将立体声电声转换单元的性能给发挥出来。To sum up, the embodiment of the present invention proposes a new gain-linked diaphragm control circuit, which not only makes the relative signal amplitude of the processed L and R relatively constant, but also ensures that the earpiece will not be disconnected or burned out. Under the premise, the performance of the stereo electro-acoustic conversion unit should be brought out as much as possible.
基于相同的发明构思,请参见图6,图6为本发明实施例提供的一种振膜控制方法流程示意图;所述振膜控制方法,基于上面实施例中所述的振膜控制电路,振膜控制方法包括:Based on the same inventive concept, please refer to FIG. 6. FIG. 6 is a schematic flow chart of a diaphragm control method provided by an embodiment of the present invention; the diaphragm control method is based on the diaphragm control circuit described in the above embodiment, the diaphragm Membrane control methods include:
S101:获取N个输入信号,其中N为整数,且N大于或等于2;S101: Acquire N input signals, where N is an integer, and N is greater than or equal to 2;
S102:根据N个输入信号计算得到N个初始增益值,并对N个初始增益值分别叠加对应的预设增益值得到对应的N个降低增益值;S102: Calculate and obtain N initial gain values according to N input signals, and respectively superimpose corresponding preset gain values on the N initial gain values to obtain corresponding N reduced gain values;
S103:比较N个降低增益值,并取最小值;S103: Comparing the N reduced gain values, and taking the minimum value;
S104:基于最小值,分别增加第M预设增益值,并与第M输入信号相乘 作为第M立体声电声转换单元的驱动电压,M=1、2、……N。S104: Based on the minimum value, respectively increase the Mth preset gain value, and multiply it by the Mth input signal as the driving voltage of the Mth stereo electroacoustic conversion unit, M=1, 2, ... N.
具体过程可以参见上面振膜控制电路的具体工作原理说明,通过在动态范围控制模块DRC产生的增益基础上,先统一都调低一部分增益值,得到降低增益值,然后将多个立体声电声转换单元的降低增益值取最小值;在该最小值的基础上,再将原来减小的预设增益叠加上,保证了声音振幅承受能力最小的立体声电声转换单元的安全性。同时,通过调节不同的预设增益值,使得声音振幅承受能力不同的立体声电声转换单元的最终增益不同,从而使得声音振幅承受能力不同的立体声电声转换单元具有不同的声音振幅,充分利用了声音振幅承受能力强的立体声电声转换单元的大振幅特性,使得立体声的效果更好,避免了由于多个声道增益相同导致的立体声效果弱化的问题。也即,本发明实施例提供的振膜控制电路,实现了多个立体声电声转换单元增益联动,不仅让处理后的多个声道的相对信号幅度较为恒定,并且保证声音振幅承受能力差的立体声电声转换单元不会断线或者烧坏的前提下,尽可能的将声音振幅承受能力强的立体声电声转换单元的性能给发挥出来。For the specific process, please refer to the specific working principle description of the diaphragm control circuit above. Based on the gain generated by the dynamic range control module DRC, first reduce a part of the gain value uniformly to obtain a reduced gain value, and then convert multiple stereo electroacoustics The reduced gain value of the unit takes the minimum value; on the basis of the minimum value, the original reduced preset gain is superimposed to ensure the safety of the stereo electroacoustic conversion unit with the smallest sound amplitude tolerance. At the same time, by adjusting different preset gain values, the final gains of stereo electroacoustic conversion units with different sound amplitude tolerances are different, so that stereo electroacoustic conversion units with different sound amplitude tolerances have different sound amplitudes, making full use of The large-amplitude characteristic of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance makes the stereo effect better and avoids the problem of weakening the stereo effect caused by the same gain of multiple channels. That is to say, the diaphragm control circuit provided by the embodiment of the present invention realizes the gain linkage of multiple stereo electroacoustic conversion units, which not only makes the relative signal amplitudes of the processed multiple channels relatively constant, but also ensures that the sound amplitude tolerance is poor. Under the premise that the stereo electro-acoustic conversion unit will not be disconnected or burnt out, the performance of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance is brought into play as much as possible.
可选的,在本发明另一实施例中,所述基于所述最小值,分别增加第M预设增益值,并与第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N,包括:Optionally, in another embodiment of the present invention, based on the minimum value, the Mth preset gain value is increased respectively, and multiplied by the Mth input signal as the driving signal of the Mth stereo electroacoustic conversion unit, M=1, 2, ... N, including:
对N个所述输入信号进行延时处理;performing delay processing on the N input signals;
基于所述最小值,分别增加第M预设增益值,并与延时处理后的第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N。Based on the minimum value, the Mth preset gain value is increased respectively, and multiplied with the Mth input signal after delay processing as the driving signal of the Mth stereo electroacoustic conversion unit, M=1, 2, . . . N.
具体过程可以参见上面振膜控制电路的具体工作原理说明,对N个输入信号进行延时处理的作用是为了多个立体声电声转换单元的声道做相同的延迟,使输出的多个声道之间没有相对的延迟和相位差。有些应用场景,需要把信号严格压制在某个幅度以内,比如-6dB。当输入信号幅度为0dB时,将信号压制在-6dB,需要调整增益,而增益是不能突然从0dB跳变到-6dB的。如果增益突变,会在最后的听感上引入pop音,严重影响主观听感,这是客户没法接受的。因此,需要有个时间将增益从0dB缓慢变到-6dB,而不加延时器,当增益还未变到对应增益时,信号已经输送到扬声器了,这段信号的幅度在-6dB以上,是不可接受的。因此,加个延时器,且延时器的长度和增益变化的时间对应,保证 信号和增益相乘时,增益已经调整到预定增益。For the specific process, please refer to the specific working principle of the diaphragm control circuit above. The function of delaying the N input signals is to make the same delay for the channels of multiple stereo electroacoustic conversion units, so that the output of multiple channels There is no relative delay and phase difference between them. In some application scenarios, the signal needs to be strictly suppressed within a certain range, such as -6dB. When the input signal amplitude is 0dB, to suppress the signal at -6dB, the gain needs to be adjusted, and the gain cannot suddenly jump from 0dB to -6dB. If the gain changes suddenly, pop sounds will be introduced into the final listening experience, which will seriously affect the subjective listening experience, which is unacceptable to customers. Therefore, it takes time to slowly change the gain from 0dB to -6dB without adding a delay device. When the gain has not changed to the corresponding gain, the signal has been sent to the speaker. The amplitude of this signal is above -6dB. is unacceptable. Therefore, add a delayer, and the length of the delayer corresponds to the time of gain change, so as to ensure that the gain has been adjusted to the predetermined gain when the signal is multiplied by the gain.
在本发明的其他实施例中,还提供了一种芯片,该芯片包括上述实施例所述的振膜控制电路。In other embodiments of the present invention, a chip is also provided, and the chip includes the diaphragm control circuit described in the above embodiments.
在该实施例中,该芯片与上述振膜控制电路是基于相同的发明构思,因此能够达到相同的技术效果。In this embodiment, the chip and the above-mentioned diaphragm control circuit are based on the same inventive concept, so they can achieve the same technical effect.
本发明的其他实施例中,还提供一种电子设备,请参见图7,图7为本发明实施例提供的一种电子设备结构示意图。所述电子设备100,可以先参见图3所示,电子设备包括:N个立体声电声转换单元15,以及振膜控制电路,其中N为整数,且N大于或等于2;振膜控制电路101包括N个信号输入端和N信号输出端;第M信号输入端用于接收第M输入信号,M=1、2、……N;第M信号输出端与第M立体声电声转换单元连接;其中,振膜控制电路为上面实施例中的振膜控制电路。In other embodiments of the present invention, an electronic device is also provided, please refer to FIG. 7 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device 100 can be referred to as shown in FIG. 3 first. The electronic device includes: N stereo electroacoustic conversion units 15, and a diaphragm control circuit, wherein N is an integer, and N is greater than or equal to 2; the diaphragm control circuit 101 It includes N signal input terminals and N signal output terminals; the Mth signal input terminal is used to receive the Mth input signal, M=1, 2, ... N; the Mth signal output terminal is connected to the Mth stereo electroacoustic conversion unit; Wherein, the diaphragm control circuit is the diaphragm control circuit in the above embodiment.
本实施例中不限定电子设备的具体形式,只要包括至少一个立体声电声转换单元的电子设备均可以,具体的,本实施例中电子设备可以为手机、平板电脑或影音播放器。例如图7所示,电子设备100为手机,通常手机包括两个立体声电声转换单元,也即此处N=2,第一立体声电声转换单元为听筒L,可以作为左声道立体声电声转换单元,第二立体声电声转换单元为喇叭R,可以作为右声道立体声电声转换单元。The specific form of the electronic device is not limited in this embodiment, as long as it includes at least one stereo electro-acoustic conversion unit. Specifically, the electronic device in this embodiment can be a mobile phone, a tablet computer or an audio-visual player. For example, as shown in FIG. 7, the electronic device 100 is a mobile phone. Usually, the mobile phone includes two stereo electroacoustic conversion units, that is, here N=2, and the first stereo electroacoustic conversion unit is a receiver L, which can be used as a left channel stereo electroacoustic conversion unit. The conversion unit, the second stereo electroacoustic conversion unit is a speaker R, which can be used as a right channel stereo electroacoustic conversion unit.
本发明实施例提供的电子设备,包括上面所述的多个声道增益联动的振膜控制电路,实现了多个立体声电声转换单元增益联动,不仅让处理后的多个声道的相对信号幅度较为恒定,并且保证声音振幅承受能力差的立体声电声转换单元不会断线或者烧坏的前提下,尽可能的将声音振幅承受能力强的立体声电声转换单元的性能给发挥出来。The electronic equipment provided by the embodiment of the present invention includes the above-mentioned diaphragm control circuit for multi-channel gain linkage, which realizes the gain linkage of multiple stereo electroacoustic conversion units, which not only makes the relative signals of multiple channels after processing The amplitude is relatively constant, and under the premise of ensuring that the stereo electro-acoustic conversion unit with poor sound amplitude tolerance will not be disconnected or burned out, the performance of the stereo electro-acoustic conversion unit with strong sound amplitude tolerance will be brought out as much as possible.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包 含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括上述要素的物品或者设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations Any such actual relationship or order exists between. Moreover, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that an article or device comprising a set of elements includes not only those elements but also other elements not expressly listed, Or also include elements inherent in the article or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in an article or device comprising the aforementioned element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

  1. 一种振膜控制电路,其特征在于,应用于包括N个立体声电声转换单元的电子设备,其中N为整数,且N大于或等于2,所述振膜控制电路包括:A diaphragm control circuit, characterized in that it is applied to electronic equipment including N stereo electroacoustic conversion units, wherein N is an integer, and N is greater than or equal to 2, and the diaphragm control circuit includes:
    N条输入信号传输电路、N条增益调节电路、比较器和N条增益附加电路;N input signal transmission circuits, N gain adjustment circuits, comparators and N gain additional circuits;
    第M输入信号传输电路与第M增益调节电路相连,第M增益调节电路与所述比较器相连,所述比较器的输出端与所述第M增益附加电路相连,所述第M增益附加电路的输出端与所述第M输入信号传输电路相连,M=1、2、……N;The Mth input signal transmission circuit is connected to the Mth gain adjustment circuit, the Mth gain adjustment circuit is connected to the comparator, the output terminal of the comparator is connected to the Mth gain addition circuit, and the Mth gain addition circuit The output terminal is connected to the Mth input signal transmission circuit, M=1, 2, ... N;
    其中,每条所述增益调节电路用于接收相对应的输入信号,并根据所述输入信号计算得到初始增益值,并根据预设增益值对所述初始增益值进行处理得到降低增益值;Wherein, each of the gain adjustment circuits is used to receive a corresponding input signal, calculate an initial gain value according to the input signal, and process the initial gain value according to a preset gain value to obtain a reduced gain value;
    所述比较器接收N条增益调节电路的N个降低增益值,并比较后取最小值;The comparator receives the N reduced gain values of the N gain adjustment circuits, and takes the minimum value after comparison;
    每条所述增益附加电路用于接收对应增益调节电路的所述预设增益值对所述最小值进行处理;Each of the gain addition circuits is used to receive the preset gain value of the corresponding gain adjustment circuit and process the minimum value;
    所述输入信号传输电路用于接收对应增益附加电路的输出信号,对相对应的所述输入信号进行处理,得到相对应所述立体声电声转换单元的驱动信号。The input signal transmission circuit is used to receive the output signal of the corresponding gain adding circuit, process the corresponding input signal, and obtain the driving signal corresponding to the stereo electroacoustic conversion unit.
  2. 根据权利要求1所述的振膜控制电路,其特征在于,每条输入信号传输电路均包括乘法器,所述乘法器的一端用于接收相对应的输入信号。The diaphragm control circuit according to claim 1, wherein each input signal transmission circuit includes a multiplier, and one end of the multiplier is used to receive a corresponding input signal.
  3. 根据权利要求2所述的振膜控制电路,其特征在于,每条输入信号传输电路中还包括延时器;The diaphragm control circuit according to claim 2, wherein each input signal transmission circuit also includes a delay device;
    所述延时器的输入端用于接收所述输入信号;The input end of the delayer is used to receive the input signal;
    所述延时器的输出端与所在输入信号传输电路中的乘法器的输入端相连;The output terminal of the delayer is connected with the input terminal of the multiplier in the input signal transmission circuit;
    所有输入信号传输电路中的延时器的延长时间均相同。The extension times of the delayers in all input signal transmission circuits are the same.
  4. 根据权利要求1所述的振膜控制电路,其特征在于,每条增益调节电路均包括动态范围控制模块和第一计算模块,所述动态范围控制模块的输入端用于接收所述输入信号,并根据所述输入信号计算得到所述初始增益值;所述第一计算模块的输入端与所述动态范围控制模块的输出端相连,用于将所述初始增益值减去所述预设增益值,得到所述降低增益值。The diaphragm control circuit according to claim 1, wherein each gain adjustment circuit includes a dynamic range control module and a first calculation module, the input end of the dynamic range control module is used to receive the input signal, And calculate the initial gain value according to the input signal; the input terminal of the first calculation module is connected to the output terminal of the dynamic range control module, and is used to subtract the preset gain value from the initial gain value value to obtain the reduced gain value.
  5. 根据权利要求4所述的振膜控制电路,其特征在于,每条增益附加电路均包括第二计算模块,所述第二计算模块的输入端与所述比较器的输出端相连,并接收对应增益调节电路的所述预设增益值,使得所述较小值增加所述预设增益值;所述第二计算模块的输出端与对应输入信号传输电路中的乘法器相连,所述乘法器将所述输入信号与对应增益附加电路中的所述第二计算模块的输出信号相乘,得到相对应所述立体声电声转换单元的驱动信号。The diaphragm control circuit according to claim 4, wherein each gain additional circuit includes a second calculation module, the input terminal of the second calculation module is connected to the output terminal of the comparator, and receives the corresponding The preset gain value of the gain adjustment circuit, so that the smaller value increases the preset gain value; the output terminal of the second calculation module is connected to the multiplier in the corresponding input signal transmission circuit, and the multiplier The input signal is multiplied by the output signal of the second calculation module in the corresponding gain addition circuit to obtain a driving signal corresponding to the stereo electroacoustic conversion unit.
  6. 根据权利要求4所述的振膜控制电路,其特征在于,所述第一计算模块均为减法器;所述第二计算模块均为加法器;The diaphragm control circuit according to claim 4, wherein the first calculation modules are subtracters; the second calculation modules are adders;
    或,所述第一计算模块均为加法器;所述第二计算模块均为减法器;Or, the first calculation modules are all adders; the second calculation modules are all subtractors;
    或,所述第一计算模块均为除法器;所述第二计算模块均为乘法器;Or, the first calculation module is a divider; the second calculation module is a multiplier;
    或,所述第一计算模块均为乘法器;所述第二计算模块均为除法器。Or, the first calculation modules are all multipliers; the second calculation modules are all dividers.
  7. 一种振膜控制方法,其特征在于,基于权利要求1-6任意一项所述的振膜控制电路,所述振膜控制方法包括:A diaphragm control method, characterized in that, based on the diaphragm control circuit according to any one of claims 1-6, the diaphragm control method comprises:
    获取N个输入信号,其中N为整数,且N大于或等于2;Get N input signals, where N is an integer, and N is greater than or equal to 2;
    根据N个输入信号计算得到N个初始增益值,并对N个初始增益值分别叠加对应的预设增益值得到对应的N个降低增益值;Calculate and obtain N initial gain values according to N input signals, and respectively superimpose corresponding preset gain values on the N initial gain values to obtain corresponding N reduced gain values;
    比较N个降低增益值,并取最小值;Compare N reduced gain values and take the minimum value;
    基于所述最小值,分别增加第M预设增益值,并与第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N。Based on the minimum value, respectively increase the Mth preset gain value and multiply it with the Mth input signal as the driving signal of the Mth stereo electroacoustic conversion unit, M=1, 2, ... N.
  8. 根据权利要求7所述的振膜控制方法,其特征在于,所述基于所述最小值,分别增加第M预设增益值,并与第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N,包括:The diaphragm control method according to claim 7, wherein, based on the minimum value, respectively increasing the Mth preset gain value, and multiplying the Mth input signal as the Mth stereo electroacoustic conversion unit Drive signal, M=1, 2, ... N, including:
    对N个所述输入信号进行延时处理;performing delay processing on the N input signals;
    基于所述最小值,分别增加第M预设增益值,并与延时处理后的第M输入信号相乘作为第M立体声电声转换单元的驱动信号,M=1、2、……N。Based on the minimum value, respectively increase the Mth preset gain value, and multiply it with the Mth input signal after delay processing as the driving signal of the Mth stereo electroacoustic conversion unit, M=1, 2, ... N.
  9. 一种芯片,其特征在于,所述芯片包括权利要求1-6任意一项所述的振膜控制电路。A chip, characterized in that the chip includes the diaphragm control circuit according to any one of claims 1-6.
  10. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    N个立体声电声转换单元,以及振膜控制电路,其中N为整数,且N大于或等于2;N stereo electroacoustic conversion units, and a diaphragm control circuit, where N is an integer, and N is greater than or equal to 2;
    所述振膜控制电路包括N个信号输入端和N信号输出端;The diaphragm control circuit includes N signal input terminals and N signal output terminals;
    第M信号输入端用于接收第M输入信号,M=1、2、……N;The Mth signal input terminal is used to receive the Mth input signal, M=1, 2, ... N;
    第M信号输出端与第M立体声电声转换单元连接;The Mth signal output terminal is connected to the Mth stereo electro-acoustic conversion unit;
    其中,所述振膜控制电路为权利要求1-6任意一项所述的振膜控制电路。Wherein, the diaphragm control circuit is the diaphragm control circuit described in any one of claims 1-6.
  11. 根据权利要求10所述的电子设备,其特征在于,所述电子设备为手机、平板电脑或影音播放器。The electronic device according to claim 10, wherein the electronic device is a mobile phone, a tablet computer or a video player.
  12. 根据权利要求11所述的电子设备,其特征在于,N=2,第一立体声电声转换单元为听筒,第二立体声电声转换单元为喇叭。The electronic device according to claim 11, wherein N=2, the first stereo electroacoustic conversion unit is an earpiece, and the second stereo electroacoustic conversion unit is a speaker.
PCT/CN2021/134519 2021-05-21 2021-11-30 Vibration diaphragm control circuit, vibration diaphragm control method, chip and electronic device WO2022242101A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110557414.4A CN115379357A (en) 2021-05-21 2021-05-21 Vibrating diaphragm control circuit, vibrating diaphragm control method, chip and electronic equipment
CN202110557414.4 2021-05-21

Publications (1)

Publication Number Publication Date
WO2022242101A1 true WO2022242101A1 (en) 2022-11-24

Family

ID=84058634

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134519 WO2022242101A1 (en) 2021-05-21 2021-11-30 Vibration diaphragm control circuit, vibration diaphragm control method, chip and electronic device

Country Status (2)

Country Link
CN (1) CN115379357A (en)
WO (1) WO2022242101A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150117648A1 (en) * 2012-06-06 2015-04-30 Sony Corporation Audio signal processing device, audio signal processing method, and computer program
CN107295442A (en) * 2016-04-11 2017-10-24 展讯通信(上海)有限公司 speaker control method and device
CN111543039A (en) * 2018-04-04 2020-08-14 华为技术有限公司 Screen sounding method and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150117648A1 (en) * 2012-06-06 2015-04-30 Sony Corporation Audio signal processing device, audio signal processing method, and computer program
CN107295442A (en) * 2016-04-11 2017-10-24 展讯通信(上海)有限公司 speaker control method and device
CN111543039A (en) * 2018-04-04 2020-08-14 华为技术有限公司 Screen sounding method and terminal device

Also Published As

Publication number Publication date
CN115379357A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
US10999695B2 (en) System and method for stereo field enhancement in two channel audio systems
CA2854092C (en) System and method for stereo field enhancement in two-channel audio systems
US9055367B2 (en) Integrated psychoacoustic bass enhancement (PBE) for improved audio
US10475434B2 (en) Electronic device and control method of earphone device
WO2016131266A1 (en) Method and apparatus for adjusting sound field of earphone, terminal and earphone
US20230353113A1 (en) Systems and methods of volume limiting
US20230171539A1 (en) Audio output device, method for eliminating sound leakage, and storage medium (as amended)
KR102122638B1 (en) Asymmetric multi-channel audio dynamic range processing
KR100727973B1 (en) Acoustic reproducing apparatus and method for enhancing low-frequency content
WO2022242101A1 (en) Vibration diaphragm control circuit, vibration diaphragm control method, chip and electronic device
WO2023098401A1 (en) Earphone having active noise reduction function and active noise reduction method
US10431199B2 (en) Electronic device and control method of earphone device
WO2021057214A1 (en) Sound field extension method, computer apparatus, and computer readable storage medium
JP2013255050A (en) Channel divider and audio reproduction system including the same
TWI753672B (en) Apparatus and method for enhancing call quality of wireless earbuds
KR101067595B1 (en) Apparatus for compensating low frequency band audio signal based on listenr's characteristics
Self Crossovers: Loudspeakers by Philip Newell and Keith Holland

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21940545

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE