CN109327765A - Acoustic signal processing method, device and terminal - Google Patents

Acoustic signal processing method, device and terminal Download PDF

Info

Publication number
CN109327765A
CN109327765A CN201710640003.5A CN201710640003A CN109327765A CN 109327765 A CN109327765 A CN 109327765A CN 201710640003 A CN201710640003 A CN 201710640003A CN 109327765 A CN109327765 A CN 109327765A
Authority
CN
China
Prior art keywords
subband
displacement
subband signal
signal
vibrating diaphragm
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.)
Granted
Application number
CN201710640003.5A
Other languages
Chinese (zh)
Other versions
CN109327765B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710640003.5A priority Critical patent/CN109327765B/en
Publication of CN109327765A publication Critical patent/CN109327765A/en
Application granted granted Critical
Publication of CN109327765B publication Critical patent/CN109327765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the present application discloses a kind of acoustic signal processing method, device and terminal, the demand for having differential declines degree for meeting different subband signals.The embodiment of the present application method includes: the audio signal obtained within the scope of predeterminated frequency, and the audio signal includes at least two subband signals;The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, the corresponding target gain of at least two subband signals is obtained;Subband signal after at least two processing is obtained according at least two subband signal and the corresponding target gain of at least two subband signals, and described at least two treated that the sum of respective vibrating diaphragm displacement of subband signal is less than or equal to the default vibrating diaphragm displacement;Subband signal after at least two processing is merged to audio signal after forming processing.

Description

Acoustic signal processing method, device and terminal
Technical field
This application involves field of signal processing more particularly to a kind of signal processing method, device, terminal, storage medium and Computer program.
Background technique
Loudspeaker is all widely used, especially in field of terminal, loudspeaking as the tool for propagating sound in every field Device is even more one of essential component, so the protection to loudspeaker is very important.An important portion in loudspeaker Part is the diaphragm of loudspeaker, in audio signal by the way that in loudspeaker playing process, diaphragm can be with the size of audio signal frequency And deviate original position to varying degrees, that is, generate vibration.Moreover, comparing the audio of high frequency compared with the audio signal of low frequency Influence of the signal to the vibrating diaphragm displacement of diaphragm is bigger, or even existing is more than a possibility that diaphragm maximum vibrating diaphragm is displaced.Once diaphragm Displacement be more than its receptible maximum vibrating diaphragm displacement, then damage temporarily or permanently can be caused to loudspeaker.So to raising The vibrating diaphragm displacement limitation of sound device diaphragm is the important content of loudspeaker protection.
In order to protect loudspeaker, the prior art passes through low-pass filter first and extracts low frequency signal from audio signal, Then vibrating diaphragm displacement corresponding with low frequency signal is calculated, and obtains the peak value of vibrating diaphragm displacement.Then by the peak value and it is preset most Big vibrating diaphragm displacement is compared, if the peak value is more than maximum vibrating diaphragm displacement, is decayed to the low frequency signal, so that film The vibrating diaphragm displacement of piece is less than or equal to maximum vibrating diaphragm displacement.It finally will be in the low frequency signal and audio signal after overdamping Former high-frequency signal is synthesized, and is input in loudspeaker.
Since the prior art decays low frequency signal as a whole, although can be realized the mesh of protection loudspeaker , but the sound quality of low frequency signal is damaged larger.
Summary of the invention
The embodiment of the present application provides a kind of acoustic signal processing method, device, terminal, storage medium and computer journey Sequence realizes the purpose for meeting the differential declines demand of different sub-band signal on the basis of protecting speaker diaphragm, improves The sound quality of audio signal.
The embodiment of the present application provides a kind of acoustic signal processing method, which comprises
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, it is described extremely It is not overlapped between few corresponding frequency range of two subband signals;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband is obtained The corresponding target gain of signal;
It is obtained according at least two subband signal and the corresponding target gain of at least two subband signals Subband signal after at least two processing, the sum of respective vibrating diaphragm displacement of described at least two treated subband signals are small In or equal to the default vibrating diaphragm displacement;
Subband signal after at least two processing is merged to audio signal after forming processing.
Optionally, in described at least two treated subband signals at least one subband signal diaphragm of loudspeaker position The value of shifting is number of signals obtained value of the default vibrating diaphragm displacement divided by least two subband signal.
Optionally, the basis presets vibrating diaphragm displacement and corresponding diaphragm of loudspeaker displacement, obtains described The corresponding target gain of at least two subband signals includes:
The corresponding initial gain of at least two subband signals is obtained according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband The number of signals of signal, d are the default vibrating diaphragm displacement, aiFor i-th of subband signal corresponding diaphragm of loudspeaker position It moves, i is integer;
If xi≤Ath, then by the initial gain xiAs the corresponding target gain of the subband signal, the AthIt is default Gain.
Optionally, if the xi> Ath, then the method also includes:
By the preset gain AthAs the corresponding target gain of the subband signal.
Optionally, be displaced according to the displacement of default vibrating diaphragm and the corresponding diaphragm of loudspeaker, obtain it is described at least Two corresponding target gains of subband signal include:
The corresponding initial gain of at least two subband signals is successively obtained according to the sequence from 1 to n, wherein For i-th of subband signal, if xi≤Ath, then by the initial gain xiIt is corresponding as i-th of subband signal Target gain;If the xi> Ath, by the preset gain AthAs the corresponding target gain of i-th of subband signal, and And the default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm is displaced to be displaced for the replacement default vibrating diaphragm, with For i+1 subband signal obtaining to the corresponding target gain of n-th of subband signal at least two subband signal It takes, wherein d is the default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
Optionally, the basis presets vibrating diaphragm displacement and corresponding diaphragm of loudspeaker displacement, obtain it is described extremely Two corresponding target gains of subband signal include: less
According to the displacement of default vibrating diaphragm, the corresponding weight of at least two subband signal and corresponding loudspeaking The displacement of device vibrating diaphragm, obtains the corresponding target gain of at least two subband signals, at least two subband signal is each Self-corresponding weight is not all identical.
Optionally, described corresponding according at least two subband signal and at least two subband signal Subband signal includes: after target gain obtains at least two processing
The corresponding target gain of at least two subband signal is carried out smoothly, to obtain at least two subband The corresponding smooth rear target gain of signal;
At least two processing are obtained according at least two subband signal and corresponding smooth rear target gain Subband signal afterwards.
The embodiment of the present application also provides a kind of audio signal processor, described device includes:
Audio signal acquiring unit, vibrating diaphragm displacement acquiring unit, target gain acquiring unit, processing unit and merging are single Member;
Wherein, the audio signal acquiring unit, for obtaining the audio signal within the scope of predeterminated frequency, the audio letter Number include at least two subband signals, is not overlapped between the corresponding frequency range of at least two subband signal;
Vibrating diaphragm is displaced acquiring unit, for obtaining the corresponding loudspeaking of at least two subband signals respectively The displacement of device vibrating diaphragm;
The target gain acquiring unit, for according to default vibrating diaphragm displacement and corresponding diaphragm of loudspeaker Displacement, obtains the corresponding target gain of at least two subband signals;
The processing unit, for according at least two subband signal and at least two subband signal respectively Corresponding target gain obtains subband signal after at least two processing, and described at least two treated that subband signal is respective The sum of vibrating diaphragm displacement is less than or equal to the default vibrating diaphragm displacement;
The combining unit merges audio signal after forming processing for subband signal after handling described at least two.
Optionally, in described at least two treated subband signals at least one subband signal diaphragm of loudspeaker position The value of shifting is number of signals obtained value of the default vibrating diaphragm displacement divided by least two subband signal.
Optionally, the target gain acquiring unit is used for:
The corresponding initial gain of at least two subband signals is obtained according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband The number of signals of signal, d are the default vibrating diaphragm displacement, aiFor i-th of subband signal corresponding diaphragm of loudspeaker position It moves, i is integer;
If xi≤Ath, then by the initial gain xiAs the corresponding target gain of the subband signal, the AthIt is default Gain.
Optionally, if the xi> Ath, then the target gain acquiring unit is used for:
By the preset gain AthAs the corresponding target gain of i-th of subband signal.
Optionally, the target gain acquiring unit is used for: successively obtaining described at least two according to the sequence from 1 to n The corresponding initial gain of subband signal;
For i-th of subband signal, if xi≤Ath, then by the initial gain xiBelieve as i-th of subband Number corresponding target gain;
If the xi> Ath, by the preset gain AthAs the corresponding target gain of the subband signal, and will be described Default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm displacement is for replacing the default vibrating diaphragm displacement, for described I+1 subband signal to the acquisition of the corresponding target gain of n-th of subband signal, wherein d be at least two subband signals The default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
Optionally, the target gain acquiring unit, is used for:
According to the displacement of default vibrating diaphragm, the corresponding weight of at least two subband signal and corresponding loudspeaking The displacement of device vibrating diaphragm, obtains the corresponding target gain of at least two subband signals, at least two subband signal is each Self-corresponding weight is not all identical.
Optionally, the processing unit is used for:
The corresponding target gain of at least two subband signal is carried out smoothly, to obtain at least two subband The corresponding smooth rear target gain of signal;
At least two processing are obtained according at least two subband signal and corresponding smooth rear target gain Subband signal afterwards.
The embodiment of the present application also provides a kind of terminal, the terminal includes processor and the memory for being stored with program, Wherein, when the processor executes described program, following operation is executed:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, it is described extremely It is not overlapped between few corresponding frequency range of two subband signals;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband is obtained The corresponding target gain of signal;
It is obtained according at least two subband signal and the corresponding target gain of at least two subband signals Subband signal after at least two processing, the sum of respective vibrating diaphragm displacement of described at least two treated subband signals are small In or equal to the default vibrating diaphragm displacement;
Subband signal after at least two processing is merged to audio signal after forming processing.
Optionally, in described at least two treated subband signals at least one subband signal diaphragm of loudspeaker position The value of shifting is number of signals obtained value of the default vibrating diaphragm displacement divided by least two subband signal.
Optionally, the processor executes the basis and presets vibrating diaphragm displacement and corresponding diaphragm of loudspeaker Displacement, obtaining the corresponding target gain of at least two subband signals includes:
The processor obtains the corresponding initial gain of at least two subband signals according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband The number of signals of signal, d are the default vibrating diaphragm displacement, aiFor i-th of subband signal corresponding diaphragm of loudspeaker position It moves, i is integer;
If xi≤Ath, then the processor is by the initial gain xiAs the corresponding target gain of the subband signal, institute State AthFor preset gain.
Optionally, if the xi> Ath, then the processor is also by the preset gain AthIt is corresponding as the subband signal Target gain.
Optionally, the processor is displaced according to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker, is obtained Include: to the corresponding target gain of at least two subband signals
It is corresponding initial that the processor according to the sequence from 1 to n successively obtains at least two subband signal Gain, wherein for i-th of subband signal, if xi≤Ath, then by the initial gain xiAs i-th of son The corresponding target gain of band signal;If the xi> Ath, by the preset gain AthIt is corresponding as i-th of subband signal Target gain, and the default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm displacement is used to replace described pre- If vibrating diaphragm is displaced, with corresponding to n-th of subband signal for i+1 subband signal at least two subband signal The acquisition of target gain, wherein d is the default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
Optionally, the processor is displaced according to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker, is obtained The corresponding target gain of at least two subband signals includes:
The processor is displaced according to default vibrating diaphragm, the corresponding weight of at least two subband signal and respectively The displacement of the corresponding diaphragm of loudspeaker, obtains the corresponding target gain of at least two subband signals, and described at least two The corresponding weight of subband signal is not all identical.
Optionally, the processor according at least two subband signal and at least two subband signal respectively Subband signal includes: after corresponding target gain obtains at least two processing
The processor the corresponding target gain of at least two subband signal is carried out it is smooth, obtain it is described extremely Few corresponding smooth rear target gain of two subband signals;
The processor according at least two subband signal and it is corresponding it is smooth after target gain obtain to Subband signal after few two processing.
The embodiment of the present application also provides a kind of storage mediums, and for storing program, described program makes when executed Terminal executes following operation:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, it is described extremely It is not overlapped between few corresponding frequency range of two subband signals;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband is obtained The corresponding target gain of signal;
It is obtained according at least two subband signal and the corresponding target gain of at least two subband signals Subband signal after at least two processing, the sum of respective vibrating diaphragm displacement of described at least two treated subband signals are small In or equal to the default vibrating diaphragm displacement;
Subband signal after at least two processing is merged to audio signal after forming processing.
The embodiment of the present application also provides a kind of computer program, the computer program is being done so that terminal execution It operates below:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, it is described extremely It is not overlapped between few corresponding frequency range of two subband signals;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband is obtained The corresponding target gain of signal;
It is obtained according at least two subband signal and the corresponding target gain of at least two subband signals Subband signal after at least two processing, the sum of respective vibrating diaphragm displacement of described at least two treated subband signals are small In or equal to the default vibrating diaphragm displacement;
Subband signal after at least two processing is merged to audio signal after forming processing.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
The embodiment of the present application meet the sum of respective vibrating diaphragm displacement of at least two treated subband signals be less than or Equal under the default vibrating diaphragm displacement condition, making each subband signal that there is corresponding target gain, that is, meet different Subband signal has the demand of differential declines degree.
Detailed description of the invention
Fig. 1 is the relation schematic diagram of corresponding audio signal frequency and diaphragm of loudspeaker displacement by taking a kind of loudspeaker as an example;
Fig. 2 is a kind of flow chart for acoustic signal processing method that the embodiment of the present application one provides;
Fig. 3 is a kind of structural block diagram for audio signal processor that the embodiment of the present application two provides;
Fig. 4 is a kind of structural block diagram for terminal that the embodiment of the present application three provides.
Specific embodiment
Before introducing signal processing method and device provided by the present application, basic principle is introduced first.Referring to figure 1, which is the relation schematic diagram of corresponding audio signal frequency and diaphragm of loudspeaker displacement by taking a kind of loudspeaker as an example.The figure Horizontal axis be audio signal frequency logarithm, unit Hz, 100,1000 and the 10000 of mark be before taking logarithm frequency (for Description is convenient, and the audio signal frequency cited below about Fig. 1 refers both to take the frequency before logarithm);The longitudinal axis indicates loudspeaker The vibrating diaphragm of diaphragm is displaced.Because diaphragm be it is elastic, can front and back vibration, the displacement of static position is 0, if set to Preceding vibrating diaphragm displacement is positive displacement, then vibrating diaphragm displacement backward is negative displacement.From this figure, it can be seen that identical audio letter The corresponding positive vibrating diaphragm displacement of number frequency and the displacement of negative vibrating diaphragm are slightly different, and the positive negative vibrating diaphragm displacement of vibrating diaphragm Displacement Ratio is slightly smaller.We Be 0 for line of demarcation with vibrating diaphragm displacement, the envelope of Fig. 1 is divided into two curves, i.e., upper and lower two curves, though this two curves It is so upper slightly different in vibrating diaphragm displacement, but the line that it is 0 with the longitudinal axis that the shape of two curves, which is substantially, is in symmetrical, all same Reach peak value at one audio signal frequency (about 850Hz).By taking curve above as an example, audio signal be 100Hz extremely In the range of 1000Hz, the displacement of the vibrating diaphragm of diaphragm generally with audio signal frequency correlation, and the width that curve rises Degree is relatively slow.After reaching peak value, with the increase of audio signal frequency, the vibrating diaphragm displacement of diaphragm sharply declines.That is, Audio signal is larger in the vibrating diaphragm displacement of low frequency part (such as 100Hz-1000Hz), (is greater than in high frequency section Vibrating diaphragm displacement 1000Hz) is smaller.It is necessary to ensure that audio signal is no more than its institute in the vibrating diaphragm displacement of low-frequency range diaphragm The maximum vibrating diaphragm displacement that can be born.
The prior art passes through low-pass filter first and extracts low frequency signal from audio signal, then calculates and believes with low frequency Number corresponding vibrating diaphragm displacement, and obtain the peak value of vibrating diaphragm displacement.Then the peak value and preset maximum vibrating diaphragm displacement are compared Compared with if the peak value is more than maximum, vibrating diaphragm is displaced, and is integrally decayed to the low frequency signal, so that the vibrating diaphragm of diaphragm is displaced It is displaced less than or equal to maximum vibrating diaphragm.Such as from the low frequency signal extracted in low-pass filter within the scope of 100Hz-1000Hz, Reach peak value when the frequency of low frequency signal is 850Hz, it is assumed that the peak value is greater than preset maximum vibration peak value, then low to this Frequency signal is integrally decayed, for example is less than 1 multiplied by one by the low frequency signal entirety within the scope of 100Hz-1000Hz Number, so that corresponding peak value is less than or equal to the preset maximum vibration peak value when frequency of low frequency signal is 850Hz.But It is, since the frequency separation that vibrating diaphragm displacement is greater than the audio signal of default vibration peak may be only the section of a very little, Such as 800Hz-900Hz will lead to if the low frequency signal within the scope of 100Hz-1000Hz integrally decayed The sound quality of low frequency signal within the scope of 100Hz-800Hz and within the scope of 900Hz-1000Hz is impaired, and because of the two frequency zones The corresponding vibrating diaphragm displacement of interior low frequency signal is lower than the preset maximum vibration peak value, so decaying is not needed, or The degree of decaying is not needed as the degree of the low frequency signals decay within the scope of 800Hz-900Hz is so high.
In order to overcome the above technical problems, the embodiment of the present application provides a kind of acoustic signal processing method and device, first First receive predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, described at least two It is not overlapped between the corresponding frequency range of subband signal, and total frequency model of at least two subband signal covering It encloses and is equal to the predeterminated frequency range;Then, the corresponding diaphragm of loudspeaker of at least two subband signals is obtained respectively Son displacement, and be displaced according to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker, obtain at least two son The corresponding target gain of band signal;Then according at least two subband signal and corresponding target gain Obtain subband signal after at least two processing, described at least two treated the sum of respective vibrating diaphragm displacements of subband signal It is displaced less than or equal to the default vibrating diaphragm;Subband signal after at least two processing is finally merged to sound after forming processing Frequency signal.
The embodiment of the present application meet the sum of respective vibrating diaphragm displacement of at least two treated subband signals be less than or Equal under the default vibrating diaphragm displacement condition, making each subband signal that there is corresponding target gain, that is, meet different Subband signal has the demand of differential declines degree.
The following examples will be described in more detail referring to the accompanying drawings technical solution provided herein.
Embodiment one
Referring to fig. 2, which is a kind of flow chart for acoustic signal processing method that the embodiment of the present application one provides.
Acoustic signal processing method provided in this embodiment includes the following steps:
S101: obtaining the audio signal within the scope of predeterminated frequency, and the audio signal includes at least two subband signals.
Acoustic signal processing method provided in this embodiment can be executed by terminal, and the terminal can be mobile phone, put down Plate computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sale Terminal) or vehicle-mounted computer etc..The audio signal that terminal generates can also be come from some application, such as music APP Derived from user's communication, such as user makes a phone call, sends out wechat voice etc., these audio signals are original audio signal.
In the present embodiment, the audio signal within the scope of predeterminated frequency, the audio of the predeterminated frequency range are obtained first Signal is the audio signal in the original audio signal within the scope of predeterminated frequency.
The original audio signal can be divided into two parts of signals, and a part of signal is low frequency signal, i.e., described default Audio signal within frequency range, such as (0,1kHz];Another part is high-frequency signal, i.e., in the predeterminated frequency range Except audio signal, be greater than 1kHz.Low frequency and high frequency are two opposite concepts, and the frequency of low frequency is lower than high frequency Frequency, and some frequency in low-frequency range corresponds to the peak value of vibrating diaphragm displacement.In this case, the predeterminated frequency range Interior audio signal includes at least two subband signals.So-called subband signal refers to the corresponding signal of some frequency separation.It is described It is not overlapped between the corresponding frequency range of at least two subband signals, and at least two subband signal covering is total Frequency range be equal to the predeterminated frequency range.
For example, it is assumed that the predeterminated frequency range be (0,1kHz] (section is considered as low frequency section), and described the One audio signal bags enclosed tool band signal A and subband signal B, then the corresponding frequency range of the subband signal A can for (0, 0.5kHz], the corresponding frequency range of the subband signal B can for (0.5kHz, 1kHz].
For another example assume the predeterminated frequency range be (0,1kHz], and the first audio signal bags enclosed tool band signal C, subband signal D and subband signal E, then the corresponding frequency range of the subband signal C can for (0,0.4kHz], it is described The corresponding frequency range of subband signal D can for (0.4kHz, 0.7kHz], the corresponding frequency range of the subband signal E can be with For (0.7kHz, 1kHz].
If the predeterminated frequency range is the corresponding frequency range of the original audio signal, then the predeterminated frequency model Audio signal in enclosing includes at least three subband signals.At least two subband signals at least three subband signal In low-frequency range, the meaning of the low-frequency range is same as above.The corresponding frequency range of at least three subband signal it Between be not overlapped, and at least two subband signal covering total frequency range be equal to the predeterminated frequency range.
For example, it is assumed that the predeterminated frequency range be (0,10kHz] (it is corresponding that the section is considered as original audio signal Frequency range), and the first audio signal bags enclosed tool band signal F, subband signal G and subband signal H, then the subband The corresponding frequency range of signal F can for (0,0.5kHz], the corresponding frequency range of the subband signal G can for (0.5kHz, 1kHz], the corresponding frequency range of the subband signal H can for (1kHz, 10kHz].Wherein, (0,1kHz] it is low-frequency range.
That is, in the present embodiment, at least there is the not cross one another son of two frequency ranges in low-frequency range Band signal meets the differential declines need of different sub-band signal if guaranteeing that the decaying of at least two subband signal is not identical It asks, so that it may overcome the prior art that low frequency signal is decayed as a whole, it is biggish to the sound quality damage of low frequency signal Technical problem.
It is described below and how to determine the respective attenuation degree of at least two subband signals within the scope of predeterminated frequency.
S102: the corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively.
By described previously, the corresponding diaphragm of loudspeaker displacement of the subband signal of different frequency is different.This reality It applies example and a kind of calculation method of the corresponding diaphragm of loudspeaker displacement of each subband signal is provided.
Firstly, obtaining the corresponding vibrating diaphragm displacement of audio signal within the scope of predeterminated frequency, vibrating diaphragm displacement is one total Vibrating diaphragm displacement.
The corresponding vibrating diaphragm displacement of audio signal within the scope of the predeterminated frequency can be obtained by measurement, such as pass through position Displacement sensor etc. can also be obtained by calculation.If being obtained by calculation, calculation is as follows:
In the circuit of connection loudspeaker, the series resistance before loudspeaker, so that it may get the current value of loudspeaker And voltage value.Then diaphragm of loudspeaker displacement can be obtained according to the current value and voltage value of loudspeaker and the resistance value of resistance. Specifically, can be calculated by the following formula:
Wherein, ulsFor the voltage value of loudspeaker, REFor the resistance value of resistance, ilsFor the current value of loudspeaker, LeFor loudspeaker Voice coil inductance,For loudspeaker current value to time derivation, Bl is the stress-electric coupling factor of loudspeaker,For loudspeaker Vibrating diaphragm displacement.
By the available diaphragm of loudspeaker displacement corresponding with audio signal of the formula (1), each height is calculated below The corresponding diaphragm of loudspeaker displacement of band signal:
Wherein,
Wherein, n is the serial number of subband signal, and N is the number of signals of subband signal, xlsIt (n) is displacement signal,For in Between parameter, j is imaginary unit, XfftIt (k) is the frequency spectrum of displacement signal.
k0For one of endpoint frequency in k-th of subband signal respective frequencies section, k1It is corresponding for k-th of subband signal Another endpoint frequency of frequency separation.For example, it is assumed that be the discrete Fourier transform of N=256 point, subband signal Corresponding frequency separation is [0,50], then the corresponding k of the subband signal0It is 0, k1It is 50.
S103: it is displaced according to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker, obtains described at least two A corresponding target gain of subband signal.
After obtaining the corresponding diaphragm of loudspeaker displacement of at least two subband signal, according to default vibrating diaphragm position It moves and corresponding diaphragm of loudspeaker is displaced, obtain the corresponding target of at least two subband signal and increase Benefit.The target gain indicates that the attenuation degree of subband signal, the bigger expression attenuation degree of target gain are smaller;Target gain It is smaller, indicate that attenuation degree is bigger.
The default vibrating diaphragm displacement can be the maximum vibrating diaphragm displacement of speaker diaphragm, can also be according to the maximum vibrating diaphragm Displacement obtains, such as the maximum vibrating diaphragm displacement is obtained multiplied by a coefficient less than 1.Those skilled in the art can root According to concrete condition designed, designed, the application is not specifically limited.
After obtaining target gain, subband signal after being handled according to next step, i.e., according to described at least two Subband is believed after a subband signal and the corresponding target gain of at least two subband signals obtain at least two processing Number, the sum of respective vibrating diaphragm displacement of described at least two treated subband signals is less than or equal to the default vibrating diaphragm position It moves.
It is one of possible to be achieved in that about S103: in described at least two treated subband signals at least The value of the diaphragm of loudspeaker displacement of one subband signal is that the default vibrating diaphragm is displaced divided by least two subband signal The obtained value of number of signals.
For example, it is assumed that the default vibrating diaphragm displacement is d, each subband signal corresponding diaphragm of loudspeaker position Moving is ai(i indicates the serial number of subband signal, and 0 < i≤n, n are the number of signals of subband signal), then can for example just like Lower formula calculates the corresponding target gain x of i-th of subband signali:
That is, the corresponding x of i-th of subband signaliIt is a multiplied by the displacement of corresponding diaphragm of loudspeakeriEqual to d/n, i.e., The corresponding vibrating diaphragm displacement of subband signal is equal after each processing, is all d/n.In order to realize the target, i pairs of subband signal The target gain x answerediCorresponding diaphragm of loudspeaker is displaced aiIn inverse ratio, diaphragm of loudspeaker is displaced aiIt is bigger, it is corresponding Target gain xiSmaller, the degree of decaying is bigger;Diaphragm of loudspeaker is displaced aiIt is smaller, corresponding target gain xiMore Greatly, the degree of decaying is also smaller.Since the maximum vibrating diaphragm that the default vibrating diaphragm displacement is no more than diaphragm is displaced, so effectively protecting The diaphragm of loudspeaker is protected.That is, the present embodiment realizes on the basis of protecting speaker diaphragm meets different sub-band The purpose of the differential declines demand of signal, improves the sound quality of audio signal.
About S103, another possibility is achieved in that: being believed according to the displacement of default vibrating diaphragm, at least two subband Number corresponding weight and the displacement of corresponding diaphragm of loudspeaker, it is respectively right to obtain at least two subband signal The target gain answered, the corresponding weight of at least two subband signals are not all identical.
Specifically, the formula (5) can have following deformation:
Wherein, wiFor the weight of subband signal i.That is, the corresponding x of i-th of subband signaliMultiplied by corresponding loudspeaking The displacement of device vibrating diaphragm is aiEqual to d/win.By by the weight w of subband signal iiIt is set as the power different from other subband signals Weight, so that it may so that the diaphragm of loudspeaker of subband signal is displaced after the corresponding processing of subband signal i, with son after other processing The diaphragm of loudspeaker of band signal is displaced difference, so that loudness is also different.
Of course, it should be understood that above-mentioned formula (5) and formula (6) do not constitute the restriction to the application, this field skill Art personnel can also designed, designed as the case may be.
S104: increased according at least two subband signal and the corresponding target of at least two subband signal Benefit obtains subband signal after at least two processing.
Obtaining at least two subband signal and the corresponding target gain of at least two subband signals Afterwards, at least two subband signal can be multiplied with the corresponding target gain of at least two subband signals, is obtained Subband signal after at least two processing, described at least two treated that respective vibrating diaphragm of subband signal is displaced it It is displaced with the default vibrating diaphragm is less than or equal to.
S105: subband signal after at least two processing is merged to audio signal after forming processing.
Since total frequency range that subband signal covers after at least two processing is equal to the predeterminated frequency range, So being capable of forming after merging with frequency range is audio signal after the processing of the predeterminated frequency range.
Since corresponding vibrating diaphragm of subband signal is displaced after at least two processing that are obtained according to formula (5) and formula (6) It is all the same, audio signal after the processing obtained after subband signal after at least two processing is merged, corresponding vibrating diaphragm displacement D is displaced equal to default vibrating diaphragm.Certainly, in practical applications, there are also default vibrating diaphragm displacement is less than, which will be under Text detailed description.
The present embodiment is displaced according to the displacement of default vibrating diaphragm and the corresponding diaphragm of loudspeaker, obtain it is described at least Two corresponding target gains of subband signal, and according at least two subband signal and at least two son The corresponding target gain of band signal obtains subband signal after at least two processing, by subband after at least two processing Signal merges to form processing after audio signal, the displacement of the audio signal corresponding diaphragm of loudspeaker is less than or equal to after the processing The default vibrating diaphragm displacement, the present embodiment realizes on the basis of protecting speaker diaphragm meets different sub-band signal not With the purpose of attenuation requirement, the sound quality of audio signal is improved.
In addition, if it is described at least two processing after subband signal according at least two subband signal and it is described at least Two corresponding target gains of subband signal are multiplied to obtain, it would be possible that can occur miscellaneous because of the mutation of subband signal Sound.In order to reduce noise, the corresponding target gain of at least two subband signal can be carried out smoothly, it is common Such as 3 linear smoothings, 5 linear smoothings or 7 linear smoothing methods, obtain at least two subband signal respectively Then corresponding smooth rear target gain increases according at least two subband signal and corresponding smooth rear target Benefit obtains subband signal after at least two processing.Wherein, by taking 3 linear smoothing process as an example, 3 linear smoothing process are as follows: current The smoothed out value of the target gain of subband signal is previous subband signal, current sub-band signal and next subband signal Target gain distinguishes the mean value of smoothed out value.
Audio signal after the processing obtained according to above-mentioned formula (5) and formula (6), corresponding vibrating diaphragm displacement are equal to default Vibrating diaphragm is displaced d, and the case where corresponding vibrating diaphragm displacement of audio signal after being less than processing is less than default vibrating diaphragm displacement d is described below.
According to above it will be appreciated that, the corresponding diaphragm of loudspeaker displacement of the target gain of subband signal is in inverse ratio, and root According to Fig. 1 it is known that when audio signal frequency is higher, diaphragm of loudspeaker displacement sharply declines, so diaphragm of loudspeaker position Shifting may be the value of a very little, then the value that will lead to the target gain being calculated is very big, or even level off to infinite Greatly, subband signal does not meet actual requirement after the processing caused, it is therefore desirable to guarantee that target gain is no more than some value.
Specifically, the present embodiment can be displaced according to default vibrating diaphragm and corresponding diaphragm of loudspeaker is displaced, obtain To the corresponding initial gain of at least two subband signals, the initial gain be can be according to formula (5) and formula (6) x obtainedi.If the initial gain xiLess than or equal to the preset gain Ath, then by the initial gain xiAs this The corresponding target gain of subband signal;If the initial gain xiGreater than preset gain Ath, then by the preset gain AthAs The corresponding target gain of the subband signal.
For example, it is assumed that the initial gain for certain subband signal being calculated is 2.5, preset gain 2, then the subband is believed Number target gain be 2.Assuming that the initial gain for certain subband signal being calculated is 1.8, preset gain 2, then should The target gain of subband signal is 1.8.
If the initial gain x of all subband signalsiRespectively less than or equal to preset gain Ath, then audio signal pair after processing The diaphragm of loudspeaker displacement answered is equal to the default vibrating diaphragm displacement d.The initial gain x of part or all of subband signal if it existsi Greater than preset gain Ath, then the corresponding diaphragm of loudspeaker displacement of audio signal is less than the default vibrating diaphragm displacement after processing d。
If the corresponding diaphragm of loudspeaker displacement of audio signal is less than the default vibrating diaphragm displacement d after processing, mean There is vibrating diaphragm displacement in part to be " wasted ", loudspeaker does not play its maximum loudness ability.In order to overcome the technical problem, Optionally, the present embodiment is in xi> AthWhen, according to vibrating diaphragm displacement and the corresponding loudspeaking of remaining subband signal after the modification The displacement of device vibrating diaphragm, obtains the corresponding target gain of remaining described subband signal, and vibrating diaphragm displacement is preset after the modification and is d-aiAth, remaining described subband signal is i+1 subband signal at least two subband signals to n-th of subband signal.
That is, successively obtaining the corresponding initial increasing of at least two subband signal according to the sequence from 1 to n Benefit, wherein for i-th of subband signal, if xi≤Ath, then by the initial gain xiBelieve as i-th of subband Number corresponding target gain;If the xi> Ath, by the preset gain AthAs the corresponding target gain of the subband signal, And the default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm is displaced to be displaced for the replacement default vibrating diaphragm, For i+1 subband signal obtaining to the corresponding target gain of n-th of subband signal at least two subband signal , wherein d is the default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
The audio letter that loudspeaker can be made to play its maximum loudness ability is introduced by taking a concrete application scene as an example below Number processing method.
Acoustic signal processing method provided in this embodiment includes the following steps:
S201: obtaining the audio signal within the scope of predeterminated frequency, and the audio signal includes at least two subband signals, institute It states and is not overlapped between the corresponding frequency range of at least two subband signals.
Enable the serial number i of at least two subband signals.If the number of signals of subband signal is n, then there may be set I=[1, n].
S202: the corresponding diaphragm of loudspeaker displacement a of at least two subband signal is obtained respectivelyi
S203: i=1 is enabled.
S204: d and subband signal i is displaced according to default vibrating diaphragm and corresponds to the displacement of vibrating diaphragm, it is corresponding just to obtain subband signal i Beginning gain xi
That is,
S205: judge the corresponding initial gain x of subband signal iiWhether preset gain A is less than or equal toth, if so, will The initial gain xiAs the corresponding target gain of the subband signal, and enable d=d-aixi, then execute S207;If it is not, Then execute S206.
S206: by preset gain AthAs the corresponding target gain of the subband signal, and enable d=w-aiAth, n=n-1, and Subband signal i will be subtracted in set I.Then S207 is executed.
S207: enabling i=i+1, and judges whether i is greater than n, executes S204 if it is not, then returning;If it is, executing S208。
S208: increased according at least two subband signal and the corresponding target of at least two subband signal Benefit obtains subband signal after at least two processing.
The sum of respective vibrating diaphragm displacement of at least two treated subband signals is less than or equal to the default vibrating diaphragm position It moves.
S209: subband signal after at least two processing is merged to audio signal after forming processing.
The present embodiment is in xi> AthWhen, enable d=d-aiAth, and remove subband signal i in set I, and enable n=n-1, it is real Even if having showed, there are the corresponding initial gain x of subband signal iiGreater than preset gain AthThe case where, audio signal is corresponding after processing Diaphragm of loudspeaker displacement be also equal to default vibrating diaphragm displacement d, i.e., default vibrating diaphragm displacement d is fully assigned, not by " wave Take ".
Embodiment two
Referring to Fig. 3, which is a kind of structural block diagram for audio signal processor that the embodiment of the present application two provides.
Audio signal processor provided in this embodiment includes:
Audio signal acquiring unit 101, vibrating diaphragm displacement acquiring unit 102, target gain acquiring unit 103, processing are single Member 104 and combining unit 105;
Wherein, the audio signal acquiring unit 101, for obtaining the audio signal within the scope of predeterminated frequency, the sound Frequency signal includes at least two subband signals, is not overlapped between the corresponding frequency range of at least two subband signal;
Vibrating diaphragm is displaced acquiring unit 102, corresponding for obtaining at least two subband signal respectively The displacement of diaphragm of loudspeaker;
The target gain acquiring unit 103, for according to default vibrating diaphragm displacement and corresponding loudspeaker vibration Mold displacement, obtains the corresponding target gain of at least two subband signals;
The processing unit 104, for according at least two subband signal and at least two subband signal Corresponding target gain obtains subband signal after at least two processing, and described at least two treated that subband signal is each From the sum of vibrating diaphragm displacement be less than or equal to the default vibrating diaphragm displacement;
The combining unit 105 merges audio after forming processing for subband signal after handling described at least two and believes Number.
The present embodiment realizes the differential declines demand for meeting different sub-band signal on the basis of protecting speaker diaphragm Purpose, improve the sound quality of audio signal.
Optionally, in described at least two treated subband signals at least one subband signal diaphragm of loudspeaker position The value of shifting is number of signals obtained value of the default vibrating diaphragm displacement divided by least two subband signal.
Optionally, the target gain acquiring unit is used for:
The corresponding initial gain of at least two subband signals is obtained according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband The number of signals of signal, d are the default vibrating diaphragm displacement, aiFor i-th of subband signal corresponding diaphragm of loudspeaker position It moves, i is integer;
If xi≤Ath, then by the initial gain xiAs the corresponding target gain of the subband signal, the AthIt is default Gain.
Optionally, if the xi> Ath, then the target gain acquiring unit is used for:
By the preset gain AthAs the corresponding target gain of i-th of subband signal.
Optionally, the target gain acquiring unit is used for: successively obtaining described at least two according to the sequence from 1 to n The corresponding initial gain of subband signal;
For i-th of subband signal, if xi≤Ath, then by the initial gain xiBelieve as i-th of subband Number corresponding target gain;
If the xi> Ath, by the preset gain AthAs the corresponding target gain of the subband signal, and will be described Default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm displacement is for replacing the default vibrating diaphragm displacement, for described I+1 subband signal to the acquisition of the corresponding target gain of n-th of subband signal, wherein d be at least two subband signals The default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
Optionally, the target gain acquiring unit, is used for:
According to the displacement of default vibrating diaphragm, the corresponding weight of at least two subband signal and corresponding loudspeaking The displacement of device vibrating diaphragm, obtains the corresponding target gain of at least two subband signals, at least two subband signal is each Self-corresponding weight is not all identical.
Optionally, the processing unit is used for:
The corresponding target gain of at least two subband signal is carried out smoothly, to obtain at least two subband The corresponding smooth rear target gain of signal;
At least two processing are obtained according at least two subband signal and corresponding smooth rear target gain Subband signal afterwards.
Embodiment three
Referring to fig. 4, which is a kind of structural block diagram for terminal that the embodiment of the present application three provides.
Mobile terminal include: radio frequency (Radio Frequency, RF) circuit 810, memory 820, input unit 830, The components such as display unit 840, sensor 850, voicefrequency circuit 860, WiFi module 870, processor 880 and power supply 890.This Field technical staff is appreciated that mobile terminal structure shown in Fig. 4 does not constitute the restriction to mobile terminal, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 4 to mobile terminal:
RF circuit 810 can be used for emitting or receiving data;
Memory 820 can be used for storing software program and module, and processor 880 is stored in memory 820 by operation Software program and module, thereby executing the various function application and data processing of mobile terminal.Memory 820 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored according to mobile terminal Use created data (such as audio data, phone directory etc.) etc..In addition, memory 820 may include high random access Memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other are volatile Property solid-state memory.
Input unit 830 can be used for receiving the operational order of user, and generate with the user setting of mobile terminal 80 with And the related key signals input of function control.Specifically, input unit 830 may include that touch panel 831 and other inputs are set Standby 832.Touch panel 831, also referred to as touch screen, collect user on it or nearby touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 831 or near touch panel 831), and Corresponding connection mobile terminal is driven according to preset formula.Optionally, touch panel 831 may include that touch detection moves Dynamic two parts of terminal and touch controller.Wherein, the touch orientation of touch detection mobile terminal detection user, and detect touching Operation bring signal is touched, touch controller is transmitted a signal to;Touch controller receives touching from touch detection mobile terminal Information is touched, and is converted into contact coordinate, then gives processor 880, and order that processor 880 is sent can be received and added To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves 831.In addition to touch panel 831, input unit 830 can also include other input equipments 832.Specifically, other input equipments 832 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, One of operating stick etc. is a variety of.
Display unit 840 can be used for display interface.Display unit 840 may include indicator light 841, optionally, can use Liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) etc. forms carry out configuration instruction lamp 841.Further, touch panel 831 can cover indicator light 841, work as touch-control After panel 831 detects touch operation on it or nearby, processor 880 is sent to determine the type of touch event, with Preprocessor 880 provides corresponding visual output according to the type of touch event on indicator light 841.Although in Fig. 4, touching It controls panel 831 and indicator light 841 is the input and input function for realizing mobile terminal as two independent components, still In some embodiments it is possible to touch panel 831 and indicator light 841 is integrated and that realizes mobile terminal output and input function Energy.
Mobile terminal 80 may also include at least one sensor 850.
Voicefrequency circuit 860, loudspeaker 861, microphone 862 can provide the audio interface between user and mobile terminal.Sound Electric signal after the audio data received conversion can be transferred to loudspeaker 861, be converted by loudspeaker 861 by frequency circuit 860 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 862, by voicefrequency circuit 860 Audio data is converted to after reception, then by after the processing of audio data output processor 880, through camera 810 to be sent to such as Another mobile terminal, or audio data is exported to memory 820 to be further processed.
WiFi module 870 can be used for communicating.
Processor 880 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 820, and calls and is stored in storage Data in device 820 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.It can Choosing, processor 880 may include one or more processing units;Preferably, processor 880 can integrate application processor and tune Demodulation processor processed, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate is mediated Reason device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 880 In.
Mobile terminal 80 further includes the power supply 890 (such as battery) powered to all parts, it is preferred that power supply can pass through Power-supply management system and processor 880 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
Although being not shown, mobile terminal 80 can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, when the processor 880 executes described program, following operation is executed:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, it is described extremely It is not overlapped between few corresponding frequency range of two subband signals;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband is obtained The corresponding target gain of signal;
It is obtained according at least two subband signal and the corresponding target gain of at least two subband signals Subband signal after at least two processing;
Subband signal after at least two processing is merged to audio signal after forming processing, audio signal after the processing Corresponding diaphragm of loudspeaker displacement is less than or equal to the default vibrating diaphragm displacement.
The present embodiment realizes the differential declines demand for meeting different sub-band signal on the basis of protecting speaker diaphragm Purpose, improve the sound quality of audio signal.
Optionally, in described at least two treated subband signals at least one subband signal diaphragm of loudspeaker position The value of shifting is number of signals obtained value of the default vibrating diaphragm displacement divided by least two subband signal.
Optionally, the processor 880 executes the basis and presets vibrating diaphragm displacement and corresponding loudspeaker vibration Mold displacement, obtaining the corresponding target gain of at least two subband signals includes:
The processor 880 obtains the corresponding initial gain of at least two subband signals according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband The number of signals of signal, d are the default vibrating diaphragm displacement, aiFor i-th of subband signal pair at least two subband signal The diaphragm of loudspeaker displacement answered;
If xi≤Ath, then the processor is by the initial gain xiAs the corresponding target gain of the subband signal, institute State AthFor preset gain.
Optionally, if the xi> Ath, then the processor is also by the preset gain AthIt is corresponding as the subband signal Target gain.
Optionally, the processor is displaced according to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker, is obtained Include: to the corresponding target gain of at least two subband signals
The processor 880 according to the sequence from 1 to n successively obtain at least two subband signal it is corresponding just Beginning gain, wherein for i-th of subband signal, if xi≤Ath, then by the initial gain xiAs described i-th The corresponding target gain of subband signal;If the xi> Ath, by the preset gain AthAs the corresponding target of the subband signal Gain, and the default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm displacement is for replacing the default vibrating diaphragm Displacement, to increase for i+1 subband signal at least two subband signal to the corresponding target of n-th of subband signal The acquisition of benefit, wherein d is the default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
Optionally, the processor 880 is displaced according to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker, is obtained Include: to the corresponding target gain of at least two subband signals
The processor 880 according to default vibrating diaphragm be displaced, the corresponding weight of at least two subband signal and The displacement of the corresponding diaphragm of loudspeaker, obtains the corresponding target gain of at least two subband signals, it is described at least Two corresponding weights of subband signal are not all identical.
Optionally, the processor 880 is according at least two subband signal and at least two subband signal Subband signal includes: after corresponding target gain obtains at least two processing
The processor 880 carries out the corresponding target gain of at least two subband signal smoothly, to obtain institute State the corresponding smooth rear target gain of at least two subband signals;
The processor 880 is obtained according at least two subband signal and corresponding smooth rear target gain Subband signal after at least two processing.
Example IV
The present embodiment provides a kind of storage mediums for storing program, described program execute terminal with Lower operation:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, it is described extremely It is not overlapped between few corresponding frequency range of two subband signals;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband is obtained The corresponding target gain of signal;
It is obtained according at least two subband signal and the corresponding target gain of at least two subband signals Subband signal after at least two processing;
Subband signal after at least two processing is merged to audio signal after forming processing, audio signal after the processing Corresponding diaphragm of loudspeaker displacement is less than or equal to the default vibrating diaphragm displacement.
The present embodiment realizes the differential declines demand for meeting different sub-band signal on the basis of protecting speaker diaphragm Purpose, improve the sound quality of audio signal.
Embodiment five
The present embodiment provides a kind of computer program, the computer program is being done so that the following behaviour of terminal execution Make:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, it is described extremely It is not overlapped between few corresponding frequency range of two subband signals;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband is obtained The corresponding target gain of signal;
It is obtained according at least two subband signal and the corresponding target gain of at least two subband signals Subband signal after at least two processing;
Subband signal after at least two processing is merged to audio signal after forming processing, audio signal after the processing Corresponding diaphragm of loudspeaker displacement is less than or equal to the default vibrating diaphragm displacement.
The present embodiment realizes the differential declines demand for meeting different sub-band signal on the basis of protecting speaker diaphragm Purpose, improve the sound quality of audio signal.
The computer program product includes one or more computer instructions.Load and execute on computers the meter When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present application.The computer can To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer-readable storage medium Matter transmission, for example, the computer instruction can be from a web-site, computer, server or data center by wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another Web-site, computer, server or data center are transmitted.The computer readable storage medium can be computer Any usable medium that can be stored either includes the numbers such as one or more usable mediums integrated server, data center According to storage equipment.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, ) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc. DVD.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, between device or unit Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize this embodiment scheme according to the actual needs Purpose.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution essence of the application On all or part of the part that contributes to existing technology or the technical solution can be with the shape of software product in other words Formula embodies, which is stored in a storage medium, including some instructions are used so that a calculating Machine equipment (can be personal computer, server or the network equipment etc.) executes each embodiment the method for the application All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store The medium of program code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (21)

1. a kind of acoustic signal processing method, which is characterized in that the described method includes:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, described at least two It is not overlapped between the corresponding frequency range of a subband signal;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband signal is obtained Corresponding target gain;
According at least two subband signal and the corresponding target gain of at least two subband signals obtain to Subband signal after few two processing, described at least two treated that the sum of respective vibrating diaphragm displacement of subband signal is less than or waits It is displaced in the default vibrating diaphragm;
Subband signal after at least two processing is merged to audio signal after forming processing.
2. the method according to claim 1, wherein at least one in described at least two treated subband signals The value of the diaphragm of loudspeaker displacement of a subband signal is that the default vibrating diaphragm is displaced divided by least two subband signal The obtained value of number of signals.
3. method according to claim 1 or 2, which is characterized in that the basis preset vibrating diaphragm displacement and it is described respectively it is right The diaphragm of loudspeaker displacement answered, obtaining the corresponding target gain of at least two subband signals includes:
The corresponding initial gain of at least two subband signals is obtained according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband signal Number of signals, d are the default vibrating diaphragm displacement, aiFor the corresponding diaphragm of loudspeaker displacement of i-th of subband signal, i is Integer;
If xi≤Ath, then by the initial gain xiAs the corresponding target gain of the subband signal, the AthFor preset gain.
4. according to the method described in claim 3, it is characterized in that, the if xi> Ath, then the method also includes:
By the preset gain AthAs the corresponding target gain of the subband signal.
5. the method according to claim 3 or 4, which is characterized in that be displaced according to default vibrating diaphragm and described corresponding The displacement of diaphragm of loudspeaker, obtaining the corresponding target gain of at least two subband signals includes:
The corresponding initial gain of at least two subband signals is successively obtained according to the sequence from 1 to n, wherein for I-th of subband signal, if xi≤Ath, then by the initial gain xiAs the corresponding target of i-th of subband signal Gain;If the xi> Ath, by the preset gain AthAs the corresponding target gain of i-th of subband signal, and will The default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm displacement is for replacing the default vibrating diaphragm displacement, to be used for In at least two subband signal i+1 subband signal to the corresponding target gain of n-th of subband signal acquisition, wherein D is the default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
6. the method according to claim 1, wherein the basis preset vibrating diaphragm displacement and it is described corresponding Diaphragm of loudspeaker displacement, obtaining the corresponding target gain of at least two subband signals includes:
According to the displacement of default vibrating diaphragm, the corresponding weight of at least two subband signal and the vibration of corresponding loudspeaker Film displacement, obtains the corresponding target gain of at least two subband signals, at least two subband signal is respectively right The weight answered is not all identical.
7. according to claim 1 to method described in 6 any one, which is characterized in that described according at least two subband Subband signal includes: after signal and the corresponding target gain of at least two subband signals obtain at least two processing
The corresponding target gain of at least two subband signal is carried out smoothly, to obtain at least two subband signal Corresponding smooth rear target gain;
According at least two subband signal and it is corresponding it is smooth after target gain obtain son after at least two processing Band signal.
8. a kind of audio signal processor, which is characterized in that described device includes:
Audio signal acquiring unit, vibrating diaphragm displacement acquiring unit, target gain acquiring unit, processing unit and combining unit;
Wherein, the audio signal acquiring unit, for obtaining the audio signal within the scope of predeterminated frequency, the audio signal bags It includes at least two subband signals, is not overlapped between the corresponding frequency range of at least two subband signal;
Vibrating diaphragm is displaced acquiring unit, for obtaining the corresponding loudspeaker vibration of at least two subband signal respectively Mold displacement;
The target gain acquiring unit, for according to default vibrating diaphragm displacement and corresponding diaphragm of loudspeaker position It moves, obtains the corresponding target gain of at least two subband signals;
The processing unit, for respectively being corresponded to according at least two subband signal and at least two subband signal Target gain obtain subband signal after at least two processing, described at least two treated respective vibrating diaphragm of subband signal The sum of displacement is less than or equal to the default vibrating diaphragm displacement;
The combining unit merges audio signal after forming processing for subband signal after handling described at least two.
9. device according to claim 8, which is characterized in that at least one in described at least two treated subband signals The value of the diaphragm of loudspeaker displacement of a subband signal is that the default vibrating diaphragm is displaced divided by least two subband signal The obtained value of number of signals.
10. device according to claim 8 or claim 9, which is characterized in that the target gain acquiring unit is used for:
The corresponding initial gain of at least two subband signals is obtained according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband signal Number of signals, d are the default vibrating diaphragm displacement, aiFor the corresponding diaphragm of loudspeaker displacement of i-th of subband signal, i is Integer;
If xi≤Ath, then by the initial gain xiAs the corresponding target gain of the subband signal, the AthFor preset gain.
11. device according to claim 10, which is characterized in that if the xi> Ath, then the target gain obtains single Member is used for:
By the preset gain AthAs the corresponding target gain of i-th of subband signal.
12. device described in 0 or 11 according to claim 1, which is characterized in that the target gain acquiring unit is used for: according to Sequence from 1 to n successively obtains the corresponding initial gain of at least two subband signals;
For i-th of subband signal, if xi≤Ath, then by the initial gain xiIt is corresponding as i-th of subband signal Target gain;
If the xi> Ath, by the preset gain AthAs the corresponding target gain of the subband signal, and will be described default Vibrating diaphragm displacement is updated to d-aiAth, the displacement of updated vibrating diaphragm for replacing the default vibrating diaphragm displacement, with for it is described at least I+1 subband signal is to the acquisition of the corresponding target gain of n-th of subband signal in two subband signals, and wherein d is described Default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
13. device according to claim 8, which is characterized in that the target gain acquiring unit is used for:
According to the displacement of default vibrating diaphragm, the corresponding weight of at least two subband signal and the vibration of corresponding loudspeaker Film displacement, obtains the corresponding target gain of at least two subband signals, at least two subband signal is respectively right The weight answered is not all identical.
14. according to device described in claim 8 to 13 any one, which is characterized in that the processing unit is used for:
The corresponding target gain of at least two subband signal is carried out smoothly, to obtain at least two subband signal Corresponding smooth rear target gain;
According at least two subband signal and it is corresponding it is smooth after target gain obtain son after at least two processing Band signal.
15. a kind of terminal, which is characterized in that the terminal includes processor and the memory for being stored with program, wherein described When processor executes described program, following operation is executed:
Obtain predeterminated frequency within the scope of audio signal, the audio signal include at least two subband signals, described at least two It is not overlapped between the corresponding frequency range of a subband signal;
The corresponding diaphragm of loudspeaker displacement of at least two subband signal is obtained respectively;
According to the displacement of default vibrating diaphragm and corresponding diaphragm of loudspeaker displacement, at least two subband signal is obtained Corresponding target gain;
According at least two subband signal and the corresponding target gain of at least two subband signals obtain to Subband signal after few two processing, described at least two treated that the sum of respective vibrating diaphragm displacement of subband signal is less than or waits It is displaced in the default vibrating diaphragm;
Subband signal after at least two processing is merged to audio signal after forming processing.
16. terminal according to claim 15, which is characterized in that in described at least two treated subband signals at least The value of the diaphragm of loudspeaker displacement of one subband signal is that the default vibrating diaphragm is displaced divided by least two subband signal The obtained value of number of signals.
17. according to right to go to 15 or 16 described in terminal, which is characterized in that the processor executes the basis and presets vibrating diaphragm Displacement and corresponding diaphragm of loudspeaker displacement, obtain the corresponding target of at least two subband signal and increase Benefit includes:
The processor obtains the corresponding initial gain of at least two subband signals according to following formula:
Wherein, xiFor the corresponding initial gain of i-th of subband signal, 0 < i≤n, n is at least two subband signal Number of signals, d are the default vibrating diaphragm displacement, aiFor the corresponding diaphragm of loudspeaker displacement of i-th of subband signal, i is Integer;
If xi≤Ath, then the processor is by the initial gain xiAs the corresponding target gain of the subband signal, the Ath For preset gain.
18. terminal according to claim 17, which is characterized in that if the xi> Ath, then the processor will also be described Preset gain AthAs the corresponding target gain of the subband signal.
19. terminal described in 7 or 18 according to claim 1, which is characterized in that the processor is displaced according to default vibrating diaphragm and institute Corresponding diaphragm of loudspeaker displacement is stated, obtaining the corresponding target gain of at least two subband signals includes:
The processor successively obtains the corresponding initial gain of at least two subband signals according to the sequence from 1 to n, Wherein, for i-th of subband signal, if xi≤Ath, then by the initial gain xiAs i-th of subband signal pair The target gain answered;If the xi> Ath, by the preset gain AthIncrease as the corresponding target of i-th of subband signal Benefit, and the default vibrating diaphragm displacement is updated to d-aiAth, updated vibrating diaphragm displacement is for replacing the default vibrating diaphragm position It moves, for i+1 subband signal at least two subband signal to the corresponding target gain of n-th of subband signal It obtains, wherein d is the default vibrating diaphragm displacement, d-aiAthFor the displacement of updated vibrating diaphragm.
20. terminal according to claim 15, which is characterized in that the processor is according to default vibrating diaphragm displacement and described each Self-corresponding diaphragm of loudspeaker displacement, obtaining the corresponding target gain of at least two subband signals includes:
The processor is displaced according to default vibrating diaphragm, the corresponding weight of at least two subband signal and respectively corresponding The diaphragm of loudspeaker displacement, obtain the corresponding target gain of at least two subband signals, at least two subband The corresponding weight of signal is not all identical.
21. terminal described in 5 to 20 any one according to claim 1, which is characterized in that the processor according to it is described at least Two subband signals and the corresponding target gain of at least two subband signals obtain subband after at least two processing Signal includes:
The processor carries out the corresponding target gain of at least two subband signal smoothly, to obtain described at least two The corresponding smooth rear target gain of a subband signal;
The processor obtains at least two according at least two subband signal and corresponding smooth rear target gain Subband signal after a processing.
CN201710640003.5A 2017-07-31 2017-07-31 Audio signal processing method and device and terminal Active CN109327765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710640003.5A CN109327765B (en) 2017-07-31 2017-07-31 Audio signal processing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710640003.5A CN109327765B (en) 2017-07-31 2017-07-31 Audio signal processing method and device and terminal

Publications (2)

Publication Number Publication Date
CN109327765A true CN109327765A (en) 2019-02-12
CN109327765B CN109327765B (en) 2021-02-05

Family

ID=65244936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710640003.5A Active CN109327765B (en) 2017-07-31 2017-07-31 Audio signal processing method and device and terminal

Country Status (1)

Country Link
CN (1) CN109327765B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294711A (en) * 2019-07-18 2020-06-16 展讯通信(上海)有限公司 Signal processing method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1179862A (en) * 1995-03-27 1998-04-22 Bsg实验室股份有限公司 Audio bass speaker driver circuit
WO2006097860A1 (en) * 2005-03-15 2006-09-21 Koninklijke Philips Electronics N.V. A device for processing audio data, a method of processing audio data, a program element and a computer-readable medium
CN101800923A (en) * 2009-06-08 2010-08-11 瑞声声学科技(深圳)有限公司 Device and method for inhibition of second resonance mode of vibrating diaphragm
CN101897118A (en) * 2007-12-11 2010-11-24 Nxp股份有限公司 Prevention of audio signal clipping
US20100316226A1 (en) * 2009-06-12 2010-12-16 Sony Corporation Signal processing apparatus and signal processing method
CN102403970A (en) * 2010-09-13 2012-04-04 无锡中星微电子有限公司 Method and device for adjusting volume of digital graphic equalizer
JP2012134687A (en) * 2010-12-21 2012-07-12 Tetsuo Furumoto Acoustic system
CN105472505A (en) * 2014-09-26 2016-04-06 深圳市三诺数字科技有限公司 Multi-band amplitude limiting control system for audio output
CN105704624A (en) * 2014-12-12 2016-06-22 亚德诺半导体集团 Method of controlling diaphragm excursion of electrodynamic loudspeakers

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1179862A (en) * 1995-03-27 1998-04-22 Bsg实验室股份有限公司 Audio bass speaker driver circuit
WO2006097860A1 (en) * 2005-03-15 2006-09-21 Koninklijke Philips Electronics N.V. A device for processing audio data, a method of processing audio data, a program element and a computer-readable medium
CN101897118A (en) * 2007-12-11 2010-11-24 Nxp股份有限公司 Prevention of audio signal clipping
CN101800923A (en) * 2009-06-08 2010-08-11 瑞声声学科技(深圳)有限公司 Device and method for inhibition of second resonance mode of vibrating diaphragm
US20100316226A1 (en) * 2009-06-12 2010-12-16 Sony Corporation Signal processing apparatus and signal processing method
CN102403970A (en) * 2010-09-13 2012-04-04 无锡中星微电子有限公司 Method and device for adjusting volume of digital graphic equalizer
JP2012134687A (en) * 2010-12-21 2012-07-12 Tetsuo Furumoto Acoustic system
CN105472505A (en) * 2014-09-26 2016-04-06 深圳市三诺数字科技有限公司 Multi-band amplitude limiting control system for audio output
CN105704624A (en) * 2014-12-12 2016-06-22 亚德诺半导体集团 Method of controlling diaphragm excursion of electrodynamic loudspeakers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李贤胜: "基于电流反馈信号的智能扬声器系统", 《扬声器与传声器》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294711A (en) * 2019-07-18 2020-06-16 展讯通信(上海)有限公司 Signal processing method and device

Also Published As

Publication number Publication date
CN109327765B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN110335620A (en) A kind of noise suppressing method, device and mobile terminal
CN106024005A (en) Processing method and apparatus for audio data
CN104393848B (en) Volume adjusting method and device
CN108521521A (en) volume adjusting method, mobile terminal and computer readable storage medium
CN109274833A (en) The method of adjustment and Related product of electromagnetic interference
CN109639367A (en) The method of adjustment and Related product of electromagnetic interference
CN106126172B (en) A kind of sound effect treatment method and mobile terminal
CN109616135B (en) Audio processing method, device and storage medium
CN109495642A (en) Display control method and Related product
CN109361994A (en) Speaker control method, mobile terminal and computer readable storage medium
CN108228029A (en) The method for sorting and mobile terminal of a kind of icon
CN109756818A (en) Dual microphone noise-reduction method, device, storage medium and electronic equipment
CN109788402A (en) A kind of acoustic signal processing method and audio signal processor
CN108983211A (en) Proximity sensor and its control method, electronic device and computer readable storage medium
CN106534514A (en) Incoming call processing method and terminal
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN109754823A (en) A kind of voice activity detection method, mobile terminal
CN110191303A (en) Video call method and Related product based on screen sounding
CN103399657B (en) The control method of mouse pointer, device and terminal unit
CN108769401A (en) Signal detecting method and related product
CN106265019A (en) A kind of vibrations apparatus control method and device
CN110136733A (en) A kind of the solution reverberation method and device of audio signal
CN108196758A (en) Icon amplification method, mobile terminal and computer readable storage medium
CN104767890A (en) Alarm clock control method and device based on handheld device
CN109327765A (en) Acoustic signal processing method, device and terminal

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