CN111741406B - Audio signal adjusting method and device, computer equipment and storage medium - Google Patents

Audio signal adjusting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111741406B
CN111741406B CN202010536819.5A CN202010536819A CN111741406B CN 111741406 B CN111741406 B CN 111741406B CN 202010536819 A CN202010536819 A CN 202010536819A CN 111741406 B CN111741406 B CN 111741406B
Authority
CN
China
Prior art keywords
amplitude
preset
diaphragm
excitation signal
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010536819.5A
Other languages
Chinese (zh)
Other versions
CN111741406A (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.)
AAC Technologies Pte Ltd
Original Assignee
AAC Technologies Pte 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 AAC Technologies Pte Ltd filed Critical AAC Technologies Pte Ltd
Priority to CN202010536819.5A priority Critical patent/CN111741406B/en
Priority to PCT/CN2020/096684 priority patent/WO2021248521A1/en
Publication of CN111741406A publication Critical patent/CN111741406A/en
Application granted granted Critical
Publication of CN111741406B publication Critical patent/CN111741406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2203/00Details of circuits for transducers, loudspeakers or microphones covered by H04R3/00 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses an audio signal adjusting method, which comprises the steps of obtaining an excitation signal to be input into a micro loudspeaker, and predicting the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker; judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value or not; when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain when the amplitude of the vibrating diaphragm of the excitation signal is reduced to be smaller than the preset amplitude threshold value according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value; the excitation signal is adjusted according to the target adjustment gain by utilizing an equalizer algorithm to obtain a target audio signal, so that airflow noise in the target audio signal is avoided, the phenomenon of large and small noise can be avoided to the greatest extent and is subjectively sensed, and the degree of freedom of audio signal adjustment and the audio signal adjustment effect and efficiency are improved. In addition, an audio signal adjusting device, a computer device and a storage medium are also provided.

Description

Audio signal adjusting method and device, computer equipment and storage medium
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer technologies, and in particular, to an audio signal adjusting method and apparatus, a computer device, and a storage medium.
[ background of the invention ]
The micro-speaker cavity has a complex internal structure and a narrow space, and airflow turbulence caused by vibration of the diaphragm causes noise of ' sand and ' fizz ' under certain frequencies, which is particularly serious when music is played under a large voltage.
The existing commonly used audio signal adjusting method is partially solved by improving the structure of the cavity body of the loudspeaker or the internal material, but the method has higher process cost, longer period and limited universality. On the other hand, the dynamic range compression technology is adopted to control the excitation voltage, so that the air flow noise is avoided under the condition of an over-high voltage value. However, this method easily causes the sound to be suddenly loud and loud, and the auditory perception is affected. Accordingly, it is desirable to provide a new method for adjusting an audio signal.
[ summary of the invention ]
In view of the above, the present invention provides an audio signal adjusting method, an audio signal adjusting apparatus, a computer device, and a storage medium, which are used to solve the problems of poor audio signal adjusting effect and low degree of freedom in adjustment in the prior art.
The specific technical scheme of the embodiment of the invention is as follows:
in a first aspect, an embodiment of the present invention provides an audio signal adjusting method, where the micro speaker includes:
acquiring an excitation signal to be input into the micro loudspeaker, and predicting the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker;
judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value or not;
when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain when the amplitude of the vibrating diaphragm of the excitation signal is reduced to be smaller than the preset amplitude threshold value according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value;
and adjusting the excitation signal according to the target adjustment gain by utilizing an equalizer algorithm to obtain a target audio signal.
In a second aspect, an embodiment of the present invention further provides an audio signal adjusting apparatus, where the apparatus includes:
the amplitude prediction module is used for acquiring an excitation signal to be input into the micro loudspeaker and predicting the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker;
the judging module is used for judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value or not;
the gain determination module is used for determining a target adjustment gain when the vibration diaphragm amplitude of the excitation signal is reduced to be smaller than a preset amplitude threshold value according to the vibration diaphragm amplitude and the preset amplitude threshold value when the vibration diaphragm amplitude exceeds the preset amplitude threshold value;
and the signal adjusting module is used for adjusting the excitation signal according to the target adjusting gain by utilizing an equalizer algorithm to obtain a target audio signal.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the audio signal adjusting method when executing the computer program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, which includes computer instructions, when the computer instructions are executed on a computer, the computer is caused to execute the steps of the audio signal adjusting method as described above.
The embodiment of the invention has the following beneficial effects:
after the audio signal adjusting method, the device, the computer equipment and the storage medium are adopted, the excitation signal acquires the excitation signal to be input into the micro loudspeaker, and the vibration diaphragm amplitude of the excitation signal is calculated; judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value or not; when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain of an excitation signal according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value by the excitation signal; and adjusting the excitation signal according to the target adjustment gain by utilizing an equalizer algorithm to obtain a target audio signal. The audio signal is adjusted by adopting a dynamic equalizer algorithm, and when the audio signal is adjusted, the influence on the overall volume is limited because the audio signal only aiming at a narrow frequency band which can generate airflow noise is processed, so that the phenomenon of avoiding neglect to a great extent is perceived subjectively, and meanwhile, the degree of freedom of the adjustment of the audio signal is improved because whether the audio signal is adjusted or not is determined according to a preset threshold value.
[ description of the drawings ]
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow chart illustrating an exemplary method for adjusting an audio signal;
FIG. 2 is a schematic flow chart of a method for predicting the amplitude of a diaphragm according to an embodiment;
FIG. 3 is a schematic flow chart of a method for predicting the amplitude of a diaphragm according to another embodiment;
FIG. 4 is a schematic flow chart illustrating a method for determining the target adjustment gain according to an embodiment;
FIG. 5 is a schematic flow chart illustrating a method for determining the target adjustment gain according to another embodiment;
FIG. 6 is a flowchart illustrating an audio signal adjustment method according to another embodiment;
FIG. 7 is a schematic structural diagram of the audio signal adjusting apparatus according to an embodiment;
fig. 8 is a schematic internal structure diagram of a computer device for executing the audio signal adjusting method in one embodiment.
[ detailed description ] embodiments
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The problems that the structure of a loudspeaker cavity or internal materials are improved or the excitation voltage is controlled by a dynamic range compression technology in the traditional technology, airflow noise is avoided under an over-high voltage value, the generated audio signal is not well adjusted, and the vertical and horizontal freedom degree is not high are solved.
In view of the above problem, in the present embodiment, an audio signal adjusting method is particularly proposed. The method may be implemented in dependence on a computer program which is executable on a computer system based on the von neumann architecture.
As shown in fig. 1, the audio signal adjusting method provided in this embodiment is applied to a micro speaker, and the audio signal adjusting method specifically includes the following steps:
step 102: and acquiring an excitation signal to be input into the micro loudspeaker, and predicting the amplitude of the diaphragm generated by inputting the excitation signal into the micro loudspeaker.
The excitation signal refers to a signal excitation source, that is, a music file (such as a song) played during a test, and the played audio signal is an input signal corresponding to an audio signal recorded by a microphone. Specifically, the signal stimulus source may be determined in advance from the server, and the audio signal generated in the micro-speaker is input as the stimulus signal through the analog signal stimulus source. The vibration amplitude of the diaphragm is index data used for reflecting the intensity of the airflow noise generated by the excitation signal, and the larger the vibration amplitude of the diaphragm is, the larger the intensity of the airflow noise generated by the excitation signal is. Specifically, the amplitude of the diaphragm generated by inputting the excitation signal into the micro-speaker may be predicted by a speaker model, or may be predicted by a prediction model based on machine learning.
Step 104: and judging whether the amplitude of the diaphragm exceeds a preset amplitude threshold value.
The preset amplitude threshold refers to a preset critical value of the diaphragm amplitude of the excitation signal for judging whether the airflow noise is generated. Specifically, the preset amplitude threshold may be determined by combining listening tests with experimental measurements, that is, the lowest diaphragm amplitude of the airflow noise sensed by listening is set as the preset amplitude threshold, or by a large-scale test, the probability of the airflow noise occurring under different diaphragm amplitudes and different frequencies is determined by a finger machine learning algorithm, such as a hidden markov model, a neural network, and the like, the amplitude threshold is dynamically changed according to the probability of the airflow noise occurring, the diaphragm amplitude when the probability exceeds a specific value is set as the amplitude threshold, for example, the probability value is 75%, and in the case that the preset amplitude threshold is set according to the probability, the larger the probability is, the larger the risk of the airflow noise occurring is, and the smaller the preset amplitude threshold is, the more the accuracy of the airflow noise prediction can be improved.
It should be noted that, as a preferred feature in the present embodiment, the amplitude threshold may be dynamically changed according to the probability of the occurrence of the airflow noise, so that the subsequent dynamic audio signal adjustment may be dynamically performed, and the accuracy and the degree of freedom of the audio signal adjustment may be improved.
Step 106: and when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain when the amplitude of the vibrating diaphragm of the excitation signal is reduced to be smaller than the preset amplitude threshold value according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value.
The target adjustment gain refers to an amplification factor required by the amplitude of the diaphragm when the amplitude of the diaphragm of the excitation signal is reduced to be smaller than a preset amplitude threshold value, for example, when the amplitude of the diaphragm of the excitation signal is a, and the amplitude of an ideal diaphragm corresponding to the excitation signal is a, the target adjustment gain at this time is a/a. It can be understood that, since the airflow noise occurs when the vibration amplitude of the diaphragm exceeds the preset vibration amplitude threshold and the excitation signal is input to the micro-speaker, in order to avoid the occurrence of the airflow noise, the vibration amplitude of the diaphragm of the excitation signal needs to be reduced to be smaller than the preset vibration amplitude threshold, and therefore, a corresponding target adjustment gain needs to be determined, so that before the micro-speaker plays the excitation signal, the vibration amplitude of the excitation signal is determined to be accurately adjusted, and the occurrence of the airflow noise is avoided.
Step 108: and adjusting the excitation signal according to the target adjustment gain by utilizing an equalizer algorithm to obtain a target audio signal.
The Equalizer (Equalizer) algorithm is an audio signal processing method that performs frequency band division (e.g., division into 5,10,12,15 frequency bands) on a frequency domain and applies corresponding gains to different frequency bands, thereby changing the frequency domain energy distribution of original data and achieving the effect of changing subjective listening sensation. The target audio signal is an audio signal in which the airflow noise is hardly perceived in the sense of hearing. In consideration of the real-time processing characteristic, the FFT (fast fourier transform algorithm) is prevented from being switched to the frequency domain processing, and a time domain filtering manner is adopted, so the equalizer in the embodiment is a parameter equalizer and a time domain equalizer. Specifically, the equalizer is divided into 5,10,15,20 or 30 frequency bands within the frequency range of 20-20K Hz, a gain corresponding to the target adjustment gain is applied to the frequency band, the excitation signal is adjusted, the adjusted excitation signal is input to the micro-speaker, and the target audio signal is played through the micro-speaker.
Further, in this embodiment, only the diaphragm amplitude of the excitation signal with the diaphragm amplitude exceeding the preset amplitude threshold is adjusted, and the diaphragm amplitude of the excitation signal with the diaphragm amplitude exceeding the preset amplitude threshold is not adjusted, that is, only the excitation signal in the narrow frequency band that may generate the airflow noise is processed, so that the influence on the overall volume is limited, and therefore, the phenomenon of being ignored is prevented from being perceived subjectively to the greatest extent. The audio signal adjustment effect and efficiency are improved. In addition, since the preset amplitude of the diaphragm in this embodiment is dynamically determined, the adjustment of the excitation signal is also dynamically adjusted by the dynamic equalizer to obtain the target audio signal, so that the degree of freedom of the adjustment of the audio signal is improved.
The audio signal adjusting method obtains an excitation signal to be input into the micro loudspeaker, and predicts the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker; judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value or not; when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain when the amplitude of the vibrating diaphragm of the excitation signal is reduced to be smaller than the preset amplitude threshold value according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value; the excitation signal is adjusted according to the target adjustment gain by utilizing an equalizer algorithm to obtain a target audio signal, airflow noise in the target audio signal is avoided, the audio signal is adjusted by adopting a dynamic equalizer algorithm, and when the audio signal is adjusted, the influence on the overall volume is limited because only the audio signal of a narrow frequency band which can generate airflow noise is processed, so that the phenomenon of avoiding the phenomenon of being neglected to the greatest extent is subjectively sensed, and meanwhile, because whether the audio signal is adjusted or not is determined according to a preset threshold value, the freedom of the adjustment of the audio signal and the adjustment effect and efficiency of the audio signal are improved.
As shown in fig. 2, in one embodiment, predicting the amplitude of the diaphragm generated by the micro-speaker when the excitation signal is input comprises:
step 102A: extracting audio parameters of the excitation signal;
step 102B: and inputting the audio parameters into a preset loudspeaker model for prediction to obtain the amplitude of the diaphragm.
The audio parameter refers to a signal parameter related to the amplitude of the diaphragm in the excitation signal, such as a frequency, a diaphragm speed, or a diaphragm acceleration, and specifically, the audio parameter of the excitation signal may be extracted through a signal source and a signal analysis system. Then, the audio parameters are input into a preset loudspeaker model, and the audio parameters are directly calculated through the preset loudspeaker model to form the amplitude of the vibrating diaphragm. Understandably, by using a preset loudspeaker model, the diaphragm amplitude of the excitation signal is predicted conveniently and quickly.
As shown in fig. 3, in one embodiment, predicting the amplitude of the diaphragm generated by inputting the excitation signal into the micro-speaker comprises:
step 102C: extracting audio parameters of the excitation signal;
step 102D: and obtaining the vibration amplitude of the vibrating diaphragm through a preset amplitude prediction model obtained by training based on a machine learning algorithm and according to the audio parameters.
In this embodiment, the audio parameters are the same as the audio parameters in step 102A, and are not further described here. The amplitude prediction model is based on a preset machine learning algorithm, such as a hidden markov model, a neural network and the like, the algorithm establishes a relation between an audio parameter and the amplitude of the vibrating diaphragm, the audio parameter is used as the input of the amplitude prediction model, and the output of the amplitude prediction model is the vibrating diaphragm amplitude of the excitation signal.
As shown in fig. 4, in an embodiment, determining the target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold includes:
step 106A: determining a target amplitude according to the vibration amplitude of the vibration diaphragm and a preset amplitude threshold value, wherein the target amplitude is smaller than the preset amplitude threshold value;
step 106B: and determining a target adjustment gain corresponding to the target amplitude through a gain curve built in a preset loudspeaker model.
The target amplitude refers to a diaphragm amplitude of an excitation signal capable of avoiding occurrence of airflow noise, and the target amplitude is smaller than a preset amplitude threshold value. Specifically, a corresponding correction value may be determined in advance according to the diaphragm amplitude of the excitation signal, and then a difference between a preset amplitude threshold and the correction value may be determined as the target amplitude. The gain curve built in the preset loudspeaker model is a curve which is preset and used for describing the change of the relation between the amplitude and the gain of the diaphragm. In the gain curve, the gain corresponding to the target amplitude is searched, namely the target adjustment gain.
As shown in fig. 5, in an embodiment, determining the target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold includes:
step 106C: determining a target amplitude according to the vibration amplitude of the vibration diaphragm and a preset amplitude threshold value, wherein the target amplitude is smaller than the preset amplitude threshold value;
step 106D: and calculating to obtain the target adjustment gain according to the target amplitude through a preset gain calculation model based on machine learning.
The target amplitude in this embodiment is the same as the target amplitude in step 106A, and is not described here again. The gain calculation model is based on a preset machine learning algorithm, such as a hidden Markov model, a neural network and the like, the algorithm establishes the relation between the gain and the amplitude of the vibrating diaphragm, the target amplitude is used as the input of the gain calculation model, and the output of the gain calculation model is the target adjustment gain.
As shown in fig. 6, in one embodiment, adjusting the excitation signal by the equalizer algorithm according to the target adjustment gain to obtain the target audio signal includes:
step 108A: acquiring a plurality of filters and corresponding frequencies and energy contained in an equalizer algorithm;
step 108B: calculating a figure of merit for each filter based on each filter stage frequency and energy, and a target adjustment gain;
step 108C: and filtering the excitation signal according to the quality factor of each filter to obtain the target audio signal.
The figure of merit is a ratio of a mode of gain at a position corresponding to the cut-off frequency to a mode of the pass band gain, and is used for reflecting the shape of the amplitude-frequency characteristic of the low-pass filter at the cut-off frequency. The larger the quality factor, the narrower the filtering band, and the better the filtering effect in the band. Specifically, the figure of merit for each filter is calculated based on each filter stage frequency and energy, and a target adjustment gain, and may be calculated by a built-in algorithm in the form of, for example, Q ═ f (frequency, energy, gain) function, where Q denotes the figure of merit and f is the function name of the built-in algorithm, which is a speaker model-based algorithm or a statistical model-based algorithm for dynamically determining Q. According to the frequency, the energy and the gain, corresponding quality factors can be calculated, the excitation signals are filtered according to the quality factors of all the filters to obtain target audio signals, the narrow-band excitation signals which can generate airflow noise in the excitation signals are filtered, the audio signals are adjusted, the influence on the overall volume is limited, the phenomenon that the audio signals are suddenly changed is prevented from being perceived subjectively to the greatest extent, and the effect and the efficiency of audio signal adjustment are improved. And because the excitation signal is dynamically filtered according to the quality factor of each filter, the degree of freedom of adjusting the audio signal is improved.
In one embodiment, the filter is an IIR filter or an FIR filter.
The IIR filter is an infinite impulse response filter, and the FIR filter is a finite impulse response filter. The filter is an IIR filter or an FIR filter to process the excitation signal, so that the time domain characteristic of the excitation signal can be obtained, and the real-time property of the adjustment of the audio signal is improved.
It should be noted that the filter order in this embodiment does not exceed 6 orders, thereby saving cost while ensuring the adjustment effect.
Based on the same inventive concept, an embodiment of the present invention provides an audio signal adjusting apparatus 700, as shown in fig. 7, including: an amplitude prediction module 702, configured to obtain an excitation signal to be input to the micro speaker, and predict a diaphragm amplitude generated when the excitation signal is input to the micro speaker; a judging module 704, configured to judge whether the amplitude of the diaphragm exceeds a preset amplitude threshold; a gain determining module 706, configured to determine, when the diaphragm amplitude exceeds a preset amplitude threshold, a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold; a signal adjusting module 708, configured to adjust the excitation signal according to the target adjustment gain by using an equalizer algorithm, so as to obtain a target audio signal.
Specifically, the audio signal adjusting apparatus 700 of the present embodiment, as shown in fig. 7, includes: an amplitude prediction module 702, configured to obtain an excitation signal to be input to the micro speaker, and predict a diaphragm amplitude generated when the excitation signal is input to the micro speaker; a judging module 704, configured to judge whether the amplitude of the diaphragm exceeds a preset amplitude threshold; a gain determining module 706, configured to determine, when the diaphragm amplitude exceeds a preset amplitude threshold, a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold; a signal adjusting module 708, configured to adjust the excitation signal according to the target adjustment gain by using an equalizer algorithm, so as to obtain a target audio signal. The audio signal of the narrow frequency band which can generate the airflow noise is only processed, so that the influence on the overall volume is limited, the phenomenon of overlooking is avoided to the maximum extent and is subjectively perceived, and meanwhile, whether the audio signal is adjusted or not is determined according to the preset threshold value, so that the freedom degree of the audio signal adjustment and the audio signal adjustment effect and efficiency are improved.
It should be noted that, the implementation of the apparatus for adjusting an audio signal in this embodiment is consistent with the implementation idea of the method for adjusting an audio signal, and the implementation principle thereof is not described herein again, and specific reference may be made to the corresponding content in the method.
FIG. 8 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server or a terminal. As shown in fig. 8, the computer device 800 includes a processor 810, a memory 820, and a network interface 830 connected by a system bus. The memory 820 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by the processor, causes the processor to implement the method of audio signal adjustment. The internal memory may also have a computer program stored therein, which, when executed by the processor, causes the processor to perform a method of audio signal conditioning. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as a particular computing device may include more or less components than those shown in fig. 8, or may combine certain components, or have a different arrangement of components.
In one embodiment, the method for adjusting an audio signal provided herein may be implemented in the form of a computer program that is executable on a computer device such as the one shown in fig. 8. The memory of the computer device may store therein the individual program modules constituting the means for audio signal conditioning. Such as an amplitude prediction module 702, a decision module 704, a gain determination module 706, and a signal adjustment module 708.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of: acquiring an excitation signal to be input into the micro loudspeaker, and predicting the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker; judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value or not; when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain when the amplitude of the vibrating diaphragm of the excitation signal is reduced to be smaller than the preset amplitude threshold value according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value; and adjusting the excitation signal according to the target adjustment gain by utilizing an equalizer algorithm to obtain a target audio signal.
In one embodiment, predicting the amplitude of the diaphragm generated by inputting the excitation signal into the micro-speaker comprises: extracting audio parameters of the excitation signal; and inputting the audio parameters into a preset loudspeaker model for prediction to obtain the amplitude of the diaphragm.
In one embodiment, predicting the amplitude of the diaphragm generated by inputting the excitation signal into the micro-speaker comprises: extracting audio parameters of the excitation signal; and obtaining the vibration amplitude of the vibration diaphragm through a preset vibration amplitude prediction model obtained by training based on a machine learning algorithm and according to the audio parameters.
In one embodiment, determining a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold includes: determining a target amplitude according to the vibration diaphragm amplitude and the preset amplitude threshold, wherein the target amplitude is smaller than the preset amplitude threshold; and determining the target adjustment gain corresponding to the target amplitude through a gain curve built in a preset loudspeaker model.
In one embodiment, determining a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold includes: determining a target amplitude according to the vibration diaphragm amplitude and the preset amplitude threshold, wherein the target amplitude is smaller than the preset amplitude threshold; and calculating to obtain the target adjustment gain according to the target amplitude through a preset gain calculation model based on machine learning.
In one embodiment, adjusting the excitation signal according to the target adjustment gain by using an equalizer algorithm to obtain a target audio signal comprises: acquiring a plurality of filters and corresponding frequencies and energies contained in the equalizer algorithm; calculating a figure of merit for each filter based on each filter stage frequency and energy, and the target adjustment gain; and according to the quality factor of each filter, filtering the excitation signal to obtain a target audio signal.
In one embodiment, the filter is an IIR filter or an FIR filter.
A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of: acquiring an excitation signal to be input into the micro loudspeaker, and predicting the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker; judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value or not; when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain when the amplitude of the vibrating diaphragm of the excitation signal is reduced to be smaller than the preset amplitude threshold value according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value; and adjusting the excitation signal according to the target adjustment gain by utilizing an equalizer algorithm to obtain a target audio signal.
In one embodiment, predicting the amplitude of the diaphragm generated by inputting the excitation signal into the micro-speaker comprises: extracting audio parameters of the excitation signal; and inputting the audio parameters into a preset loudspeaker model for prediction to obtain the amplitude of the diaphragm.
In one embodiment, predicting the amplitude of the diaphragm generated by inputting the excitation signal into the micro-speaker comprises: extracting audio parameters of the excitation signal; and obtaining the vibration amplitude of the vibration diaphragm through a preset vibration amplitude prediction model obtained by training based on a machine learning algorithm and according to the audio parameters.
In one embodiment, determining a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold includes: determining a target amplitude according to the vibration diaphragm amplitude and the preset amplitude threshold, wherein the target amplitude is smaller than the preset amplitude threshold; and determining the target adjustment gain corresponding to the target amplitude through a gain curve built in a preset loudspeaker model.
In one embodiment, determining a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold includes: determining a target amplitude according to the vibration diaphragm amplitude and the preset amplitude threshold, wherein the target amplitude is smaller than the preset amplitude threshold; and calculating to obtain the target adjustment gain according to the target amplitude through a preset gain calculation model based on machine learning.
In one embodiment, adjusting the excitation signal according to the target adjustment gain by using an equalizer algorithm to obtain a target audio signal comprises: acquiring a plurality of filters and corresponding frequencies and energies contained in the equalizer algorithm; calculating a figure of merit for each filter based on each filter stage frequency and energy, and the target adjustment gain; and according to the quality factor of each filter, filtering the excitation signal to obtain a target audio signal.
In one embodiment, the filter is an IIR filter or an FIR filter.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (9)

1. An audio signal adjusting method applied to a micro speaker, the method comprising:
acquiring an excitation signal to be input into the micro loudspeaker, and predicting the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker;
judging whether the vibration diaphragm amplitude exceeds a preset amplitude threshold value, wherein the preset amplitude threshold value is a preset critical value of vibration diaphragm amplitude of an excitation signal for judging whether airflow noise is generated, and the preset amplitude threshold value is dynamically adjusted according to the probability of airflow noise, so that subsequent dynamic audio signals are dynamically adjusted;
when the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, determining a target adjustment gain when the amplitude of the vibrating diaphragm of the excitation signal is reduced to be smaller than the preset amplitude threshold value according to the amplitude of the vibrating diaphragm and the preset amplitude threshold value;
adjusting the excitation signal according to the target adjustment gain by using an equalizer algorithm to obtain a target audio signal, comprising: acquiring a plurality of filters and corresponding frequencies and energies contained in the equalizer algorithm; calculating a figure of merit for each filter based on the frequency and energy of each filter and the target adjustment gain; according to the quality factor of each filter, filtering the excitation signal to obtain a target audio signal;
wherein, the equalizer is divided into 5,10,15,20 or 30 frequency bands within the frequency range of 20-20 k Hz.
2. The method for adjusting an audio signal according to claim 1, wherein the predicting the amplitude of the diaphragm generated by the micro-speaker from the excitation signal comprises:
extracting audio parameters of the excitation signal;
and inputting the audio parameters into a preset loudspeaker model for prediction to obtain the amplitude of the diaphragm.
3. The method for adjusting an audio signal according to claim 1, wherein the predicting the amplitude of the diaphragm generated by the micro-speaker from the excitation signal comprises:
extracting audio parameters of the excitation signal;
and obtaining the vibration amplitude of the vibration diaphragm through a preset vibration amplitude prediction model obtained by training based on a machine learning algorithm and according to the audio parameters.
4. The method for adjusting an audio signal according to claim 1, wherein the determining a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold comprises:
determining a target amplitude according to the vibration diaphragm amplitude and the preset amplitude threshold, wherein the target amplitude is smaller than the preset amplitude threshold;
and determining the target adjustment gain corresponding to the target amplitude through a gain curve built in a preset loudspeaker model.
5. The method for adjusting an audio signal according to claim 1, wherein the determining a target adjustment gain when the diaphragm amplitude of the excitation signal is reduced to be smaller than the preset amplitude threshold according to the diaphragm amplitude and the preset amplitude threshold comprises:
determining a target amplitude according to the vibration diaphragm amplitude and the preset amplitude threshold, wherein the target amplitude is smaller than the preset amplitude threshold;
and calculating to obtain the target adjustment gain according to the target amplitude through a preset gain calculation model based on machine learning.
6. The audio signal adjusting method according to claim 1, wherein the filter is an IIR filter or an FIR filter.
7. An audio signal conditioning apparatus, characterized in that the apparatus comprises:
the amplitude prediction module is used for acquiring an excitation signal to be input into the micro loudspeaker and predicting the amplitude of a diaphragm generated by inputting the excitation signal into the micro loudspeaker;
the judging module is used for judging whether the amplitude of the vibrating diaphragm exceeds a preset amplitude threshold value, wherein the preset amplitude threshold value is a preset critical value of the amplitude of the vibrating diaphragm of an excitation signal for judging whether the airflow noise is generated, and the preset amplitude threshold value is dynamically adjusted according to the probability of the airflow noise, so that the subsequent dynamic audio signal is dynamically adjusted;
the gain determination module is used for determining a target adjustment gain when the vibration diaphragm amplitude of the excitation signal is reduced to be smaller than a preset amplitude threshold value according to the vibration diaphragm amplitude and the preset amplitude threshold value when the vibration diaphragm amplitude exceeds the preset amplitude threshold value;
a signal adjusting module, configured to adjust the excitation signal according to the target adjustment gain by using an equalizer algorithm, so as to obtain a target audio signal, where the signal adjusting module includes: acquiring a plurality of filters and corresponding frequencies and energies contained in the equalizer algorithm; calculating a figure of merit for each filter based on each filter stage frequency and energy, and the target adjustment gain; according to the quality factor of each filter, filtering the excitation signal to obtain a target audio signal; wherein, the equalizer is divided into 5,10,15,20 or 30 frequency bands within the frequency range of 20-20 k Hz.
8. Computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor realizes the steps of the audio signal adjustment method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, comprising computer instructions which, when run on a computer, cause the computer to perform the steps of the audio signal adjustment method according to any one of claims 1 to 6.
CN202010536819.5A 2020-06-12 2020-06-12 Audio signal adjusting method and device, computer equipment and storage medium Active CN111741406B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010536819.5A CN111741406B (en) 2020-06-12 2020-06-12 Audio signal adjusting method and device, computer equipment and storage medium
PCT/CN2020/096684 WO2021248521A1 (en) 2020-06-12 2020-06-18 Audio signal adjustment method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010536819.5A CN111741406B (en) 2020-06-12 2020-06-12 Audio signal adjusting method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111741406A CN111741406A (en) 2020-10-02
CN111741406B true CN111741406B (en) 2022-03-01

Family

ID=72648977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010536819.5A Active CN111741406B (en) 2020-06-12 2020-06-12 Audio signal adjusting method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111741406B (en)
WO (1) WO2021248521A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866877B (en) * 2021-04-01 2022-06-17 维沃移动通信有限公司 Speaker control method, speaker control device, electronic apparatus, and storage medium
CN116069078A (en) * 2023-01-16 2023-05-05 歌尔股份有限公司 Control method and device of VR/AR audio vibration damper and electronic equipment thereof
CN117153192B (en) * 2023-10-30 2024-02-20 科大讯飞(苏州)科技有限公司 Audio enhancement method, device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105745943A (en) * 2013-09-20 2016-07-06 美国思睿逻辑有限公司 Systems and methods for protecting a speaker from overexcursion
CN106031030A (en) * 2014-02-27 2016-10-12 索尼公司 Gain optimized equalizer
CN106658289A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Adaptive adjusting device and method for loudspeaker
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107820165A (en) * 2017-09-29 2018-03-20 努比亚技术有限公司 A kind of method, equipment and computer-readable recording medium for realizing audio frequency process
CN108495237A (en) * 2018-05-14 2018-09-04 福建工程学院 A kind of amplitude gain control method of loudspeaker tonequality equilibrium
CN109495820A (en) * 2018-12-07 2019-03-19 武汉市聚芯微电子有限责任公司 The amplitude adjusting method and system of the diaphragm of loudspeaker
CN109788402A (en) * 2019-01-31 2019-05-21 维沃移动通信有限公司 A kind of acoustic signal processing method and audio signal processor
CN110197668A (en) * 2019-04-28 2019-09-03 厦门快商通信息咨询有限公司 A kind of construction method and computer readable storage medium of audio prediction model

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9813812B2 (en) * 2014-12-12 2017-11-07 Analog Devices Global Method of controlling diaphragm excursion of electrodynamic loudspeakers
CN105263086A (en) * 2015-10-27 2016-01-20 小米科技有限责任公司 Adjustment method of equalizer, device and intelligent speaker
JP7188082B2 (en) * 2016-12-22 2022-12-13 ソニーグループ株式会社 SOUND PROCESSING APPARATUS AND METHOD, AND PROGRAM
DE112017007239B4 (en) * 2017-03-14 2021-06-10 Mitsubishi Electric Corporation AUDIO SIGNAL PROCESSING DEVICE
CN107071626A (en) * 2017-06-19 2017-08-18 深圳市泰衡诺科技有限公司上海分公司 Equalizer adaptation regulating system, method and earphone
CN109245739B (en) * 2018-08-28 2022-05-27 南京中感微电子有限公司 Digital audio frequency equalizer
US11153684B2 (en) * 2018-11-15 2021-10-19 Maxim Integrated Products, Inc. Dynamic debuzzer for speakers
CN110740403B (en) * 2019-10-24 2021-02-09 上海易和声学科技有限公司 Signal processing device for line array loudspeaker system and line array loudspeaker system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105745943A (en) * 2013-09-20 2016-07-06 美国思睿逻辑有限公司 Systems and methods for protecting a speaker from overexcursion
CN106031030A (en) * 2014-02-27 2016-10-12 索尼公司 Gain optimized equalizer
CN106658289A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Adaptive adjusting device and method for loudspeaker
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107820165A (en) * 2017-09-29 2018-03-20 努比亚技术有限公司 A kind of method, equipment and computer-readable recording medium for realizing audio frequency process
CN108495237A (en) * 2018-05-14 2018-09-04 福建工程学院 A kind of amplitude gain control method of loudspeaker tonequality equilibrium
CN109495820A (en) * 2018-12-07 2019-03-19 武汉市聚芯微电子有限责任公司 The amplitude adjusting method and system of the diaphragm of loudspeaker
CN109788402A (en) * 2019-01-31 2019-05-21 维沃移动通信有限公司 A kind of acoustic signal processing method and audio signal processor
CN110197668A (en) * 2019-04-28 2019-09-03 厦门快商通信息咨询有限公司 A kind of construction method and computer readable storage medium of audio prediction model

Also Published As

Publication number Publication date
WO2021248521A1 (en) 2021-12-16
CN111741406A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN111741406B (en) Audio signal adjusting method and device, computer equipment and storage medium
JP7008701B2 (en) Coherence-based dynamic stability control system
KR101469339B1 (en) Apparatus and method for modifying an input audio signal
EP2632044A1 (en) Hierarchical generation of control parameters for audio dynamics processing
JP6258061B2 (en) Acoustic processing apparatus, acoustic processing method, and acoustic processing program
US20190198005A1 (en) Dynamic sound adjustment based on noise floor estimate
US10840870B2 (en) Noise estimation using coherence
CN113170260B (en) Audio processing method and device, storage medium and electronic equipment
CN111741407B (en) Loudspeaker compensation method, device, storage medium and equipment
US20110235815A1 (en) Method and arrangement for audio signal processing
US9978393B1 (en) System and method for automatically removing noise defects from sound recordings
CN116107537A (en) Audio quality adjustment method and device, electronic equipment and storage medium
CN114067817A (en) Bass enhancement method, bass enhancement device, electronic equipment and storage medium
EP3840404A1 (en) A method for audio rendering by an apparatus
JP5998357B2 (en) In-vehicle sound playback device
CN112703749B (en) Method for operating an audio output device on a motor vehicle
US10743126B2 (en) Method and apparatus for controlling acoustic signals to be recorded and/or reproduced by an electro-acoustical sound system
CN114143667A (en) Volume adjusting method, storage medium and electronic device
CN111768801A (en) Airflow noise eliminating method and device, computer equipment and storage medium
CN116095561A (en) Audio data processing method, audio data processing device, and storage medium
CN118072719A (en) Audio processing method, readable medium, electronic device, and program product
JP2023509719A (en) Method and related apparatus for transforming characteristics of audio signal
CN117528336A (en) Method and device for optimizing power consumption of loudspeaker, electronic equipment and storage medium
CN117012219A (en) User personalized control noise elimination method, system, equipment and storage medium
CN116741161A (en) Voice processing method, device, terminal equipment and storage medium

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