CN113194388B - Signal processing method, device, equipment, medium and chip system - Google Patents

Signal processing method, device, equipment, medium and chip system Download PDF

Info

Publication number
CN113194388B
CN113194388B CN202110490553.XA CN202110490553A CN113194388B CN 113194388 B CN113194388 B CN 113194388B CN 202110490553 A CN202110490553 A CN 202110490553A CN 113194388 B CN113194388 B CN 113194388B
Authority
CN
China
Prior art keywords
signal
gain
audio digital
displacement
digital signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110490553.XA
Other languages
Chinese (zh)
Other versions
CN113194388A (en
Inventor
董斐
纪伟
潘思伟
陈皓
姜双双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202110490553.XA priority Critical patent/CN113194388B/en
Publication of CN113194388A publication Critical patent/CN113194388A/en
Application granted granted Critical
Publication of CN113194388B publication Critical patent/CN113194388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/04Circuits for transducers, loudspeakers or microphones for correcting frequency response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/03Synergistic effects of band splitting and sub-band processing

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a signal processing method, a device, equipment, a medium and a chip system, wherein the method can be executed by a terminal, and comprises the following steps: the method comprises the steps that a terminal obtains an audio digital signal and k signal components of different frequency bands of the audio digital signal; then determining the displacement gain of the diaphragm displacement generated by the audio digital signal on the loudspeaker and the signal gain of the voltage signal of the audio digital signal, when the displacement gain is smaller than the signal gain, determining the gain of the signal component of the first frequency band according to the displacement gain, determining the gains of the signal components of k-1 second frequency bands according to the preset frequency band gain and the displacement gain of the k-1 second frequency bands, and processing the signal components of all the frequency bands according to the gains of the signal components of the k frequency bands to obtain the processed audio digital signal; and outputting the processed audio digital signal. The method can improve the loudness of the loudspeaker and improve the auditory experience of human ears on the premise of protecting the loudspeaker from working in a safe state.

Description

Signal processing method, device, equipment, medium and chip system
Technical Field
The present invention relates to the field of signal processing technologies, and in particular, to a signal processing method, apparatus, device, medium, and chip system.
Background
The loudspeaker is a device for converting an electric signal into an acoustic signal, and the quality of the loudspeaker has great influence on the sound quality. With the adoption of the design concept that portable multimedia equipment such as a smart phone, a notebook computer and a tablet computer pursues lightness and thinness, the size and space occupied by the loudspeaker in the portable multimedia equipment are more and more limited, so that the sound quality is deteriorated, and the specific expression is that the playback capability is low and the sound loudness is not enough. The user has higher and higher audio requirements for terminals such as mobile phones, and hopes that the output sound has higher loudness and better quality.
The technology for improving the output volume mainly comprises two technologies, wherein the first technology is a full-band or multi-band dynamic range control technology, the dynamic range of an input signal is controlled, a large signal can be compressed, a small signal is amplified, the output is ensured not to clip, and the volume can be amplified to a certain degree by adjusting parameters. However, this scheme only controls the amplitude of the output signal, and may cause the diaphragm of the speaker to be displaced too much, resulting in damage to the speaker. In the second scheme, when any one of the parameters of output voltage, displacement and temperature reaches a threshold value, the output gain of the audio signal is reduced, and the control strategy can ensure the safety of the loudspeaker. For example, when the displacement of the diaphragm of the loudspeaker reaches the control threshold, the loudspeaker control system reduces the output gain of the audio signal, so that the displacement of the loudspeaker is not too large, but the output energy of the audio signal is also reduced, the maximum output volume is influenced, the hearing feeling of the human ear cannot reach the optimum, and the use experience of a user is influenced.
Disclosure of Invention
The embodiment of the invention provides a signal processing method, a signal processing device, a signal processing medium and a signal processing chip system.
An embodiment of the present invention provides a signal processing method, which may be executed by a terminal, and includes: firstly, acquiring an audio digital signal and k signal components of different frequency bands of the audio digital signal, wherein k is a positive integer; then, the displacement gain of the diaphragm displacement of the audio digital signal generated at the speaker and the signal gain of the voltage signal of the audio digital signal are determined. Determining a gain of the signal component of the first frequency band based on the displacement gain when the displacement gain is less than the signal gain, and based on k-1AnDetermining gains of signal components of k-1 second frequency bands according to preset frequency band gains and displacement gains of the second frequency bands, wherein the cut-off frequency of the first frequency band is lower than that of the second frequency band, and the first frequency band is a frequency band in a preset frequency range; then, processing the signal components of each frequency band according to the gains of the signal components of the k frequency bands to obtain processed audio digital signals; and finally outputting the processed audio digital signal.
According to the method, when the audio digital signal is greatly influenced by displacement, for example, the low-frequency component in the audio digital signal accounts for a large amount, the low-frequency component and the high-frequency component in the audio digital signal can be respectively subjected to gain processing according to the signal processing method, so that the loudness of the loudspeaker can be improved and the auditory experience of human ears can be improved on the premise that the loudspeaker works in a safe state after the audio signal processed by the method.
In one possible design, the method further includes determining gains of the signal components of the k frequency bands according to the signal gains when the displacement gain is greater than or equal to the signal gain. According to the method, when the audio digital signal is greatly influenced by the signal, for example, when the high-frequency component in the audio digital signal accounts for a large amount, the gain of the signal component of k frequency bands is determined according to the signal gain, so that the working voltage of the loudspeaker can not exceed the maximum allowable voltage of a power amplifier of the loudspeaker, and the safe working of the loudspeaker is ensured.
In one possible design, the method further includes: determining a temperature gain of the temperature generated by the audio digital signal at the speaker; when the displacement gain is smaller than the signal gain, the following processing is executed for the signal component of any one of the k-1 second frequency bands: and selecting the minimum value from the preset frequency band gain and the displacement gain of the signal component of the second frequency band, and taking the product of the minimum value and the temperature gain as the gain of the signal component of the second frequency band. The gain of the signal component obtained by the method can control the output signal not to exceed the preset maximum allowable temperature and not to exceed the maximum allowable diaphragm displacement.
In one possible design, one way to determine the above displacement gain may be: and calculating to obtain the estimated displacement of the diaphragm generated by the audio digital signal based on the voltage displacement transfer function, and calculating the ratio of the preset maximum allowable diaphragm displacement to the estimated displacement of the diaphragm generated by the audio digital signal to obtain the displacement gain. The voltage displacement transfer function may be calculated according to the voltage and the current generated by the audio digital signal at the speaker, or may be preset. One way to determine the signal gain may be: and calculating the ratio of the maximum allowable voltage of the power amplifier of the loudspeaker to the voltage of the audio digital signal to obtain the signal gain.
In one possible design, one way to determine the temperature gain of the audio digital signal at the temperature generated by the speaker may be: and calculating the temperature generated by the audio digital signal based on a voltage-temperature transfer function, wherein the voltage-temperature transfer function can be calculated according to the voltage and the current generated by the audio digital signal at the loudspeaker, and can also be preset, and calculating the ratio of the preset maximum allowable temperature to the temperature generated by the audio digital signal to obtain the temperature gain.
In one possible design, processing the signal components of each frequency band according to the gains of the signal components of k frequency bands to obtain a processed audio digital signal includes: multiplying the gain of the signal component of each frequency band by the corresponding signal component to obtain k processed signal components; summing the k processed signal components to obtain a processed audio digital signal; and D/A conversion is carried out on the processed audio digital signal to obtain the processed audio digital signal.
In a second aspect, the present application further provides a signal processing apparatus, which includes a module/unit for executing the method of any one of the possible designs of the first aspect. These modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. Wherein the memory is used to store one or more computer programs; the one or more computer programs stored in the memory, when executed by the processor, enable the terminal device to implement the method of any one of the possible designs of the first aspect described above.
In a fourth aspect, this application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on an electronic device, the computer program causes the electronic device to perform any one of the possible design methods of the first aspect.
In a fifth aspect, the present application further provides a computer program product, which when run on an electronic device, causes the electronic device to execute any one of the possible design methods of the first aspect.
In a sixth aspect, an embodiment of the present application further provides a chip system, coupled to the memory, for executing the computer program stored in the memory, so that the electronic device performs any one of the possible design methods of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings may be obtained based on these drawings without creative efforts.
FIG. 1 is a graph showing a typical voltage-displacement transfer function of a micro-speaker;
fig. 2 is a schematic diagram of a speaker control system according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a speaker control method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a filtering method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a signal processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a calculation manner of signal gain, temperature gain, and displacement gain according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another displacement gain calculation method according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a calculation method of signal components in each frequency band according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a signal processing effect according to an embodiment of the present invention;
FIG. 10 is a schematic diagram illustrating another signal processing effect according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
At present, a loudspeaker is widely applied to various fields as a tool for transmitting sound, and particularly in the field of terminal equipment, the loudspeaker is one of indispensable components, so that the protection of the loudspeaker is very important. The important part in the loudspeaker is a diaphragm of the loudspeaker, and in the process of playing an audio signal through the loudspeaker, the diaphragm can deviate from the original position to different degrees along with the difference of the frequency of the audio signal, namely, vibration is generated. Moreover, low frequency audio signals have a greater effect on diaphragm displacement of the diaphragm than high frequency audio signals, and even low frequency audio signals may cause diaphragm vibration displacements exceeding the maximum diaphragm displacement, causing temporary or permanent damage to the loudspeaker. Illustratively, as shown in fig. 1, a typical voltage displacement transfer function curve of a micro-speaker is shown, from which it can be seen that a frequency band having a large influence on displacement is a middle and low frequency band below 3KHz, and the middle and high frequency band has a very small influence on displacement. Diaphragm displacement limitation of the loudspeaker diaphragm is an important aspect of loudspeaker protection. In addition, when the power of the audio signal input to the speaker is large, the speaker may generate nonlinear distortion or the diaphragm may be damaged, so it is also important to control the voltage level of the input audio signal of the speaker. Furthermore, the temperature of the device inevitably increases due to the increase of the voltage, and the temperature is also high, which causes nonlinear distortion of the speaker or damage to the diaphragm, so it is also important to control the temperature of the speaker.
The existing intelligent loudspeaker protection system adopts full-band control on input audio digital signals, when any performance parameter of output voltage, displacement or temperature in the input audio digital signals reaches a threshold value, output gain of the full-band of the input audio signals is reduced, and the control strategy can ensure safe work of the loudspeaker, but cannot fully utilize the performance potential of the loudspeaker. For example, when the loudspeaker diaphragm displacement reaches a threshold value and the output voltage has not yet reached the threshold value, the loudspeaker control system starts to reduce the full-band output gain to protect the loudspeaker displacement, but this affects the final output volume.
In consideration of the fact that the low-frequency signal component in the audio signal has a larger influence on the displacement of the diaphragm than the high-frequency signal component of the audio signal, the embodiment of the application provides a loudspeaker control method, which mainly divides the input audio digital signal into signal components of multiple frequency bands, and performs gain control on the signal components of the frequency bands respectively, so that the loudspeaker can work safely and the performance potential of the loudspeaker can be fully utilized, thereby improving the output volume.
Before describing the specific implementation of the present invention, some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
(1) High-frequency signal component and low-frequency signal component in audio digital signal
Hereinafter, the signal component of the first frequency band in the embodiments of the present application may be referred to as a low frequency signal component, and refers to an audio signal of a frequency band below 3KHZ, for example, an audio signal of a (0,1khz) frequency band, an audio signal of a (1khz, 2khz) frequency band, or an audio signal of a (2khz, 3khz. Hereinafter, the high frequency signal component of k-1 second frequency band in the embodiments of the present application refers to an audio signal of a frequency band above 3KHZ, for example, [3khz,1whz ]. The low frequency and the high frequency are two opposite concepts, and the cutoff frequency of the signal component of the first frequency band is lower than that of the signal component of the second frequency band, and since the audio signal of the low frequency has a greater influence on diaphragm displacement of the diaphragm than the audio signal of the high frequency, the signal component of the first frequency band may reach maximum diaphragm displacement corresponding to the diaphragm displacement.
The technical solution in the embodiments of the present application is described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the", and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two). The term "and/or" is used to describe an association relationship that associates objects, meaning that three relationships may exist; for example, a and/or B, may represent: a exists singly, A and B exist simultaneously, and B exists singly, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise. The term "coupled" includes direct coupling and indirect coupling, unless otherwise noted. "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
Fig. 2 is a schematic diagram of a speaker control system 20 provided in the embodiment of the present application, which includes a processor 200 and an audio signal processing circuit 300. The processor 200 is configured to perform audio digital signal processing on the received audio digital signal, where the audio digital signal processing mainly includes decryption, deinterleaving, recombining, channel decoding, speech decoding, and the like, and optionally, when the received audio digital signal is not an audio signal local to the device, the processor 200 may also demodulate the received audio digital signal. The audio signal processing circuit 300 includes a digital to analog converter (DAC) for converting a digital audio signal into an audio analog signal, and a power amplifier for amplifying the power of the analog audio signal to increase the sound volume.
In this embodiment, the processor 200 (such as a baseband processor, a signal processor, etc.) in the speaker control system 20 receives an audio digital signal sent from the radio frequency circuit, demodulates the audio digital signal, further processes the gain of the demodulated audio digital signal, inputs the processed audio digital signal to the DAC, converts the audio digital signal into an analog audio signal by the DAC, amplifies the analog audio signal by the power amplifier, and finally sends the amplified output signal to the speaker for playing.
Based on the speaker control system, the embodiment of the present application provides a speaker control method, which is mainly an improvement of the gain processing of the demodulated audio digital signal by the processor 200, and fig. 3 shows a flow chart of the speaker control method, which specifically includes the following steps.
S301, the terminal acquires the audio digital signal and k signal components of different frequency bands of the audio digital signal.
Wherein k is a positive integer. In this embodiment, the k different frequency band signal components include a first frequency band signal component and k-1 second frequency band signal components. Illustratively, the baseband processor of the terminal receives the audio digital signal from the rf circuit and then filters the audio digital signal with a plurality of filters to obtain k different frequency band signal components. Referring to fig. 4, the processor 200 of the terminal receives the audio data from the rf circuitAfter the word signal s (n), the input audio digital signal is first divided into k frequency bands (k ≧ 2) by filters 1 through k, and the cutoff frequencies of the k frequency bands can be respectively represented as f c1 、f c2 …f ck The signal components of the k frequency bands can be denoted as s band1 (n),s band2 (n)…s bandk (n) of (a). Wherein the filter 1 is typically a low-pass filter, f c1 Can be set to medium-high frequencies, e.g. f c1 At a frequency of 2500Hz to 3500Hz, e.g. f c1 Is 3000HZ, s, the maximum cut-off frequency band1 (n) the corresponding first frequency band is (0, 3000 HZ)],f c2 …f ck Has a maximum cut-off frequency higher than f c1 E.g. f c2 4000HZ band2 (n) the corresponding second frequency band is (3000HZ, 4000HZ]. It can be seen that band1 (n) is the main contributing frequency band, s, of the loudspeaker displacement band2 (n)…s bandk The (n) signal components contribute little to the displacement. That is, the signal component of the first frequency band in the present embodiment may be s in fig. 4 band1 The (n), k-1 signal components of the second frequency band may be s in fig. 4 respectively band2 (n)…s bandk (n)。
It should be noted that the cut-off frequency of the k frequency bands, i.e. f c1 、f c2 …f ck The cutoff frequency may also be the lowest cutoff frequency, which may be selected according to actual needs, and the embodiment of the present invention does not specifically limit whether the cutoff frequency is the maximum cutoff frequency or the minimum cutoff frequency.
S302, the terminal determines the displacement gain of the diaphragm displacement generated by the audio digital signal on the loudspeaker and the signal gain of the voltage signal of the audio digital signal.
Specifically, in a possible implementation, the displacement of the diaphragm corresponding to the audio signal may be obtained through measurement, for example, the displacement of the diaphragm is obtained through measurement by a displacement sensor and the like; in another possible implementation, the diaphragm displacement corresponding to the audio signal may be obtained by calculation, for example, based on a voltage displacement transfer function h vx (n) calculating to obtain the estimated displacement of the diaphragm generated by the buffer signal
Figure GDA0003735588230000081
And calculating the ratio of the preset maximum allowable diaphragm displacement to the estimated diaphragm displacement x (n) generated by the buffer signal to obtain the displacement gain g x (n) in the formula (I). Wherein the voltage displacement transfer function h vx And (n) can be preset or calculated according to the voltage and the current generated by the audio digital signal at the loudspeaker. In addition, the processor 200 of the terminal obtains the signal gain g by calculating the ratio between the maximum allowable voltage of the power amplifier of the speaker and the voltage of the buffered signal s (n) in the formula (I). Furthermore, the processor 200 of the terminal calculates the temperature generated by the audio digital signal according to the voltage-temperature transfer function, and calculates the ratio between the maximum allowable temperature of the power amplifier of the speaker and the temperature generated by the audio digital signal to obtain the temperature gain g t (n), wherein the voltage-temperature transfer function may be preset or calculated according to the voltage and current generated by the audio digital signal at the speaker.
S303, when the displacement gain is smaller than the signal gain, the terminal determines the gain of the signal component of the first frequency band according to the displacement gain, and determines the gain of the signal component of the k-1 second frequency bands according to the preset frequency band gain and the displacement gain of the k-1 second frequency bands.
In this step, when the displacement gain is smaller than the signal gain, it indicates that the audio digital signal acquired by the terminal is greatly affected by the displacement. For example, the audio digital signal acquired by the terminal has a large proportion of low-frequency signal components, and the low-frequency signal components have a large influence on the displacement, so the audio digital signal acquired by the terminal is greatly influenced by the displacement. For such audio digital signals, the gain of the signal component in the first frequency band may be determined according to the displacement gain of the audio digital signal, and then the gains of the signal components in the k-1 second frequency bands may be determined according to the preset frequency band gain and the displacement gain of the k-1 second frequency bands.
Illustratively, when the gain g is displaced x (n) less than the signal gain g s And (n) taking the product of the displacement gain and the temperature gain as the gain of the signal component of the first frequency band. Such as g band1 (n)=g x (n)×g t (n) wherein g band1 (n) represents the gain of the signal component of the first frequency band. When the displacement gain is smaller than the signal gain, the following processing is executed for the signal component of any one of the k-1 second frequency bands: and selecting the minimum value from the preset frequency band gain and the displacement gain of the signal component of the second frequency band, and taking the product of the minimum value and the temperature gain as the gain of the signal component of the second frequency band.
For example, g band2 (n)=min(g x (n)*coeff band2 ,g max )*g t (n),…,g bandk (n)=min(g x (n)*coeff bandk ,g max )*g t (n)
Wherein, g band2 (n)、g band2 (n)...g bandk (n) gains, coeff, of signal components in k-1 second frequency bands, respectively band2 ,coeff bandk Preset band gain g for k-1 second bands respectively max Is a preset maximum gain.
Optionally, S304, when the displacement gain is greater than or equal to the signal gain, the terminal determines the gains of the signal components of the k frequency bands according to the signal gain.
In this step, when the displacement gain is greater than or equal to the signal gain, it indicates that the audio digital signal acquired by the terminal is greatly affected by the signal. For example, the audio digital signal acquired by the terminal has a large proportion of high-frequency signal components, and the high-frequency signal components have a large influence on the voltage, so the audio digital signal acquired by the terminal is greatly influenced by the signal. For such audio digital signals, the gains of the signal components of the k frequency bands may be determined from the signal gains. Illustratively, when the gain g is displaced x (n) is greater than or equal to the signal gain g s (n) taking the product of the signal gain and the temperature gain as the gain of the signal component of k frequency bands, such as:
g band1 (n)=g s (n)*g t (n),
gband2(n)=g s 9n)*g t (n)
g bandk (n)=g s (n)*g t (n)
s305, the terminal processes the signal components of each frequency band according to the gain of the signal components of the k frequency bands to obtain processed audio digital signals.
Specifically, the terminal may multiply the gain of the signal component of each frequency band by the corresponding signal component to obtain k processed signal components; then summing the k processed signal components to obtain a processed audio digital signal; and D/A conversion is carried out on the processed audio digital signal to obtain the processed audio digital signal. Exemplarily, after the terminal calculates the gain of each signal component, the terminal performs gain control on each signal component, and obtains each controlled signal component, which is respectively expressed as: s band1c (n),s band2c (n)…s bandkc (n) the calculation formula is as follows:
s band1c (n)=s band1 (n)*g band1 (n)
s band2c (n)=s band2 (n)*g band2 (n)
s bandkc (n)=s bandk (n)*g bandk (n)
wherein s is band1c (n)、s band2c (n)、....、s bandkc And (n) is each signal component after control.
Then, the terminal adds each frequency band to obtain a full-band control signal s c (n),s c (n)=s band1c (n)+s band2c (n)+…s bandkc (n)。
And S306, the terminal outputs the processed audio digital signal.
For example, referring to fig. 2, the terminal may output the processed audio digital signal to the audio signal processing circuit 300, the DAC in the audio signal processing circuit 300 may convert the audio digital signal into an audio analog signal, and then the power amplifier in the audio signal processing circuit 300 may perform power amplification on the audio analog signal and output the amplified audio analog signal to the speaker, so that the speaker performs playing.
Therefore, according to the signal processing method provided by the embodiment, the low-frequency signal component and the high-frequency signal component in the audio digital signal can be subjected to gain processing respectively under the condition that the audio digital signal is determined to have a large proportion of low-frequency signal components, so that the loudness of the loudspeaker can be improved and the auditory experience of human ears can be improved on the premise that the loudspeaker works in a safe state after the audio signal processed by the method. In addition, in the case that it is determined that the audio digital signal is a high-frequency signal component, the present embodiment may also determine the gains of the signal components in the k frequency bands according to the signal gains, so as to ensure that the operating voltage of the speaker does not exceed the maximum allowable voltage of the power amplifier of the speaker, thereby ensuring safe operation of the speaker.
The embodiment of the present application discloses a signal processing apparatus, as shown in fig. 5, the apparatus is configured to implement the signal processing method described in the foregoing method embodiments, and the apparatus includes: a full-band gain calculation module 501, a sub-band gain calculation module 502, and a signal processing module 503.
And a full-band gain calculation module 501, configured to calculate a signal gain, a displacement gain, and a temperature gain of the entire frequency band of the audio digital signal.
A sub-band gain calculation module 502, configured to calculate gains of signal components of k frequency bands of the audio digital signal.
The signal processing module 503 is configured to process the signal components in the k frequency bands based on the gains of the signal components in the k frequency bands, so as to obtain a processed audio digital signal.
As shown in fig. 5, after the terminal acquires the audio digital signal, the full-band gain calculation module 501 obtains a full-band signal gain, a displacement gain, and a temperature gain, the sub-band gain control module 502 calculates a gain of a signal component of k frequency bands according to the full-band signal gain, the displacement gain, and the temperature gain to obtain a gain of a signal component of k frequency bands, performs sub-band control on the signal component of k frequency bands based on the gain of the signal component of k frequency bands, outputs the controlled audio digital signal to the DAC, converts the controlled audio digital signal into an audio analog signal, and outputs the audio analog signal to the speaker after being amplified by the power amplifier. Optionally, the signal processing apparatus may further include a speaker state real-time monitoring module 504, the speaker may further feed back the voltage signal/current signal at the two ends of the speaker to the speaker state real-time monitoring module 504, and the speaker state real-time monitoring module 504 outputs the speaker state to the full-band gain calculation module 501. The full band gain calculation module 501 thus calculates a signal gain, a displacement gain, and a temperature gain for the full band using the speaker state.
The modules are described below.
The full-band gain calculation module 501 includes a voltage gain calculation module 5011, a displacement gain calculation module 5012, and a temperature gain calculation module 5013, as shown in fig. 6. The voltage gain calculation module 5011 controls the signal output to the speaker not to exceed the set threshold s thrd The signal gain g can be obtained s (n) in the formula (I). The displacement gain calculation module 5012 controls the generated displacement x (n) not to exceed the set threshold x thrd . The temperature gain calculation module 5013 controls the generated temperature T (n) not to exceed the set threshold T thrd
In particular, the frequency band with the largest contribution due to the displacement is usually at 4 times the resonance frequency f 0 Hereinafter, to reduce the amount of calculation, as shown in fig. 7, the terminal may first perform down-sampling processing on the input audio digital signal s (n), where the down-sampled sampling rate is f d Down-sampling to obtain signal s d (n) of (a). Then to s d (n) performing a displacement to obtain an estimated displacement x (n), wherein,
Figure GDA0003735588230000121
Figure GDA0003735588230000122
is a convolution of h vx (n) is a voltage-displacement transfer function, and x (n) can obtain a displacement gain g through displacement gain calculation x (n) of (a). It is to be noted that h vx (n) is determined by impedance characteristics and mechanical characteristics of the speaker, and can be preset to a fixed value, or h vx (n) may be calculated from the monitoring results of the speaker status real-time monitoring module 504.
The temperature gain calculation module 5013 can estimate the temperature T (n) resulting from s (n),
Figure GDA0003735588230000123
Figure GDA0003735588230000124
wherein h is vt (n) is a voltage-temperature transfer function,
Figure GDA0003735588230000125
for convolution, or the temperature T (n) is monitored by the real-time monitoring module 504 for the speaker status. Based on the temperature T (n) and the maximum temperature allowed by the signal, a temperature gain g can be obtained t (n)。
As shown in FIG. 8, an audio digital signal s (n) is divided into signal components of k frequency bands (k ≧ 2) by filters 1 through k, and the signal components of the respective frequency bands are denoted as s band1 (n),s band2 (n)…s bandk (n) of (a). The sub-band gain calculation module 502 calculates the gains of k signal components, which are respectively denoted as g, according to the signal gain, the displacement gain and the temperature gain output by the full-band gain module band1 (n),g band2 (n)…g bandk (n), after the gain of each frequency band is obtained through calculation, each frequency band signal is controlled, and each frequency band signal s after control is obtained respectively band1c (n),s band2c (n)…s bandkc (n), the specific calculation formula is shown above, and the full-band control signal s is obtained after the addition of all the frequency bands c (n),s c (n)=s band1c (n)+s band2c (n)+…s bandkc (n) of (a). To prevent the output from exceeding the maximum undistorted voltage of the power amplifier, s c (n) limiting the output signal to a value not exceeding a threshold s thrd Obtaining a processed audio digital signal s ct (n) of (a). After the frequency division section is processed, the output audio digital signal can not exceed the maximum voltage of the power amplifier, and the displacement of the loudspeaker diaphragm is also controlled within a safe range. Illustratively, fig. 9 shows the voltage output across the speaker after the crossover section process, from which it can be seen that the voltage does not exceed the set threshold of 8.5V. Fig. 10 shows the displacement of the signal output to the speaker after the frequency division processing, and it can be seen that the displacement does not exceed the set threshold of 0.2 mm. Therefore, the signal processing method provided by the embodiment can fully utilize the performance potential of the loudspeaker and improve the output loudness. Referring to table 1 below, table 1 shows the comparison between the sound pressure level output by the speaker after the frequency-division processing and the full-frequency-division processing, and the sound pressure level is averagely increased by 2.95dB after the frequency-division processing.
TABLE 1
Figure GDA0003735588230000131
In other embodiments of the present application, an embodiment of the present application discloses an electronic device, which may include, as shown in fig. 11: one or more processors 1101; a memory 1102; a display 1103; one or more application programs (not shown); and one or more computer programs 1104, which may be connected by one or more communication buses 1105. Wherein the one or more computer programs 1104 are stored in the memory 1102 and configured to be executed by the one or more processors 1101, the one or more computer programs 1104 comprising instructions which may be used to perform the steps of the respective embodiments of fig. 3.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus, and the module described above, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
Each functional module in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method of signal processing, the method comprising:
acquiring an audio digital signal and k signal components of different frequency bands of the audio digital signal, wherein k is a positive integer, and the k signal components of different frequency bands comprise signal components of a first frequency band and signal components of k-1 second frequency bands;
determining the displacement gain of the diaphragm displacement generated by the audio digital signal on a loudspeaker and the signal gain of the voltage signal of the audio digital signal;
determining a temperature gain of a temperature generated by the audio digital signal at a speaker;
when the displacement gain is smaller than the signal gain, determining the gain of the signal component of the first frequency band according to the displacement gain, and executing the following processing aiming at the signal component of any one of the k-1 second frequency bands: selecting a minimum value from the preset frequency band gain and the displacement gain of the signal component of the second frequency band, and taking the product of the minimum value and the temperature gain as the gain of the signal component of the second frequency band, wherein the cut-off frequency of a first frequency band is lower than the cut-off frequency of the second frequency band, and the first frequency band is a frequency band in a preset frequency range;
processing the signal components of each frequency band according to the gains of the signal components of the k different frequency bands to obtain processed audio digital signals;
and outputting the processed audio digital signal.
2. The method of claim 1, further comprising:
and when the displacement gain is greater than or equal to the signal gain, determining the gains of the signal components of the k different frequency bands according to the signal gain.
3. The method of claim 1, wherein when the displacement gain is less than the signal gain, determining a gain of a signal component of a first frequency band based on the displacement gain, the method comprising:
and when the displacement gain is smaller than the signal gain, taking the product of the displacement gain and the temperature gain as the gain of the signal component of the first frequency band.
4. The method of any one of claims 1 to 3, wherein determining a displacement gain of a diaphragm displacement produced by the audio digital signal at a loudspeaker and a signal gain of a voltage signal of the audio digital signal comprises:
calculating to obtain an estimated diaphragm displacement generated by an audio digital signal based on a voltage displacement transfer function, and calculating a ratio between a preset maximum allowable diaphragm displacement and the estimated diaphragm displacement generated by the audio digital signal to obtain the displacement gain, wherein the voltage displacement transfer function is calculated according to the voltage and the current generated by the audio digital signal in the loudspeaker;
and calculating the ratio of the maximum allowable voltage of the power amplifier of the loudspeaker to the voltage of the audio digital signal to obtain the signal gain.
5. The method of claim 1, wherein determining a temperature gain of the temperature generated by the audio digital signal at the speaker comprises:
and calculating the temperature generated by the audio digital signal based on a voltage-temperature transfer function, and calculating the ratio of a preset maximum allowable temperature to the temperature generated by the audio digital signal to obtain the temperature gain, wherein the voltage-temperature transfer function is calculated according to the voltage and the current generated by the audio digital signal at the loudspeaker.
6. The method according to any one of claims 1 to 3, wherein the processing the signal components of each frequency band according to the gains of the signal components of the k frequency bands to obtain the processed audio digital signal comprises:
multiplying the gain of the signal component of each frequency band by the corresponding signal component to obtain k processed signal components;
summing the k processed signal components to obtain a processed audio digital signal;
and performing digital-to-analog conversion on the processed audio digital signal to obtain a processed audio digital signal.
7. A signal processing apparatus, characterized in that the apparatus comprises:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an audio digital signal and k signal components of different frequency bands of the audio digital signal, k is a positive integer, and the k signal components of different frequency bands comprise signal components of a first frequency band and signal components of k-1 second frequency bands;
the full-band gain calculation module is used for determining the displacement gain of the diaphragm displacement generated by the audio digital signal at the loudspeaker and the signal gain of the voltage signal of the audio digital signal, and determining the temperature gain of the audio digital signal at the temperature generated by the loudspeaker;
a sub-band gain calculation module, configured to determine, according to the displacement gain, a gain of a signal component in a first frequency band when the displacement gain is smaller than the signal gain, and execute, for the signal component in any one of the k-1 second frequency bands, the following processing: selecting a minimum value from the preset frequency band gain and the displacement gain of the signal component of the second frequency band, and taking the product of the minimum value and the temperature gain as the gain of the signal component of the second frequency band, wherein the cut-off frequency of a first frequency band is lower than the cut-off frequency of the second frequency band, and the first frequency band is a frequency band in a preset frequency range;
the signal processing module is used for processing the signal components of each frequency band according to the gains of the signal components of the k frequency bands to obtain processed audio signals;
and the sending module is used for outputting the processed audio signal.
8. The apparatus of claim 7, wherein the full-band gain calculation module is further configured to: and when the displacement gain is larger than or equal to the signal gain, determining the gains of the signal components of the k frequency bands according to the signal gain.
9. The apparatus of claim 7, wherein the sub-band gain calculation module is specifically configured to:
and when the displacement gain is smaller than the signal gain, taking the product of the displacement gain and the temperature gain as the gain of the signal component of the first frequency band.
10. The apparatus according to any one of claims 7 to 9, wherein the full band gain calculation module, when determining the displacement gain of the diaphragm displacement generated by the audio digital signal at the loudspeaker and the signal gain of the voltage signal of the audio digital signal, is specifically configured to:
calculating to obtain an estimated diaphragm displacement generated by an audio digital signal based on a voltage displacement transfer function, and calculating a ratio between a preset maximum allowable diaphragm displacement and the estimated diaphragm displacement generated by the audio digital signal to obtain the displacement gain, wherein the voltage displacement transfer function is calculated according to the voltage and the current generated by the audio digital signal in the loudspeaker;
and calculating the ratio of the maximum allowable voltage of the power amplifier of the loudspeaker to the voltage of the audio digital signal to obtain the signal gain.
11. The apparatus of claim 7, wherein the full-band gain calculation module, when determining the temperature gain of the temperature generated by the audio digital signal at the speaker, is specifically configured to:
and calculating the temperature generated by the audio digital signal based on a voltage-temperature transfer function, and calculating the ratio of a preset maximum allowable temperature to the temperature generated by the audio digital signal to obtain the temperature gain, wherein the voltage-temperature transfer function is calculated according to the voltage and the current generated by the audio digital signal at the loudspeaker.
12. The apparatus according to any one of claims 7 to 9, wherein the signal processing module is specifically configured to:
multiplying the gain of the signal component of each frequency band by the corresponding signal component to obtain k processed signal components;
summing the k processed signal components to obtain a processed audio digital signal;
and performing digital-to-analog conversion on the processed audio digital signal to obtain a processed audio digital signal.
13. A computer-readable storage medium having a computer program stored therein, the computer program characterized by: the computer program, when executed by a processor, implements the method of any one of claims 1 to 6.
14. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, the computer program, when executed by the processor, causing the processor to carry out the method of any one of claims 1 to 6.
15. A chip system, coupled to a memory, for reading and executing program instructions stored in the memory to implement the method of any of claims 1 to 6.
CN202110490553.XA 2021-05-06 2021-05-06 Signal processing method, device, equipment, medium and chip system Active CN113194388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110490553.XA CN113194388B (en) 2021-05-06 2021-05-06 Signal processing method, device, equipment, medium and chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110490553.XA CN113194388B (en) 2021-05-06 2021-05-06 Signal processing method, device, equipment, medium and chip system

Publications (2)

Publication Number Publication Date
CN113194388A CN113194388A (en) 2021-07-30
CN113194388B true CN113194388B (en) 2022-10-21

Family

ID=76983704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110490553.XA Active CN113194388B (en) 2021-05-06 2021-05-06 Signal processing method, device, equipment, medium and chip system

Country Status (1)

Country Link
CN (1) CN113194388B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632708A (en) * 2017-03-23 2018-10-09 展讯通信(上海)有限公司 Loudspeaker output control method and system
CN111294711A (en) * 2019-07-18 2020-06-16 展讯通信(上海)有限公司 Signal processing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632708A (en) * 2017-03-23 2018-10-09 展讯通信(上海)有限公司 Loudspeaker output control method and system
CN111294711A (en) * 2019-07-18 2020-06-16 展讯通信(上海)有限公司 Signal processing method and device

Also Published As

Publication number Publication date
CN113194388A (en) 2021-07-30

Similar Documents

Publication Publication Date Title
US6072885A (en) Hearing aid device incorporating signal processing techniques
US8085959B2 (en) Hearing compensation system incorporating signal processing techniques
WO2015192711A1 (en) Pick-up device and method
US20190130930A1 (en) Active noise control headphones
JP5151762B2 (en) Speech enhancement device, portable terminal, speech enhancement method, and speech enhancement program
KR102004460B1 (en) Digital hearing device using bluetooth circuit and digital signal processing
US10142742B2 (en) Audio systems, devices, and methods
WO2011001010A1 (en) Apparatus, method and computer program for controlling an acoustic signal
CN104378774A (en) Voice quality processing method and device
WO2022199518A1 (en) Audio signal processing method and apparatus, electronic device, and storage medium
US20190304458A1 (en) Method for configuring wireless sound box, wireless sound box, and terminal device
EP3010146A1 (en) Audio signal amplitude suppression device
US9787824B2 (en) Method of processing telephone signals and electronic device thereof
CN102421049A (en) Audio signal processing system and audiometric curve adjustment unit thereof
CN116208879A (en) Earphone with active noise reduction function and active noise reduction method
CN113194388B (en) Signal processing method, device, equipment, medium and chip system
CN113613123A (en) Audio data processing method and device, earphone and storage medium
US8180307B2 (en) Electric device
CN102576560B (en) electronic audio device
CN111083250A (en) Mobile terminal and noise reduction method thereof
CN114466278A (en) Method for determining parameters corresponding to earphone mode, earphone, terminal and system
CN110809222B (en) Multi-section dynamic range control method and system and loudspeaker
US10374566B2 (en) Perceptual power reduction system and method
CN111988702A (en) Audio signal processing method, electronic device and storage medium
US11688383B2 (en) Context aware compressor for headphone audio feedback path

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant