WO2023274180A1 - 一种提升扬声器的音质的方法及装置 - Google Patents
一种提升扬声器的音质的方法及装置 Download PDFInfo
- Publication number
- WO2023274180A1 WO2023274180A1 PCT/CN2022/101678 CN2022101678W WO2023274180A1 WO 2023274180 A1 WO2023274180 A1 WO 2023274180A1 CN 2022101678 W CN2022101678 W CN 2022101678W WO 2023274180 A1 WO2023274180 A1 WO 2023274180A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- frequency
- input signal
- low
- frequency input
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 159
- 230000001052 transient effect Effects 0.000 claims abstract description 143
- 238000001514 detection method Methods 0.000 claims abstract description 43
- 238000006073 displacement reaction Methods 0.000 claims description 217
- 238000012545 processing Methods 0.000 claims description 90
- 238000012937 correction Methods 0.000 claims description 50
- 230000008569 process Effects 0.000 claims description 36
- 230000008859 change Effects 0.000 claims description 24
- 238000001914 filtration Methods 0.000 claims description 21
- 238000003860 storage Methods 0.000 claims description 16
- 238000004422 calculation algorithm Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 7
- 230000001360 synchronised effect Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 18
- 230000005236 sound signal Effects 0.000 description 51
- 238000004891 communication Methods 0.000 description 41
- 230000006854 communication Effects 0.000 description 41
- 230000006870 function Effects 0.000 description 38
- 238000010586 diagram Methods 0.000 description 31
- 238000007726 management method Methods 0.000 description 15
- 238000010295 mobile communication Methods 0.000 description 12
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000000873 masking effect Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 238000005259 measurement Methods 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013016 damping Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000009499 grossing Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 210000004027 cell Anatomy 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000010985 leather Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000010355 oscillation Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 241000282412 Homo Species 0.000 description 1
- HBBOZFUQJDYASD-LPHOMBEVSA-N alpha-L-Fucp-(1->3)-[beta-D-Galp-(1->4)]-beta-D-GlcpNAc Chemical compound O[C@H]1[C@H](O)[C@H](O)[C@H](C)O[C@H]1O[C@H]1[C@H](O[C@H]2[C@@H]([C@@H](O)[C@@H](O)[C@@H](CO)O2)O)[C@@H](CO)O[C@@H](O)[C@@H]1NC(C)=O HBBOZFUQJDYASD-LPHOMBEVSA-N 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010348 incorporation Methods 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6016—Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
- H04R1/22—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/04—Circuits for transducers, loudspeakers or microphones for correcting frequency response
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R9/00—Transducers of moving-coil, moving-strip, or moving-wire type
- H04R9/06—Loudspeakers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
- H04R2430/01—Aspects of volume control, not necessarily automatic, in sound systems
Definitions
- the embodiments of the present application relate to the field of media technology, and in particular, to a method and device for improving sound quality of a speaker.
- the mid-low frequency loudness of audio signals played by most speakers is insufficient, so that the sound quality of the audio signals played by the speakers is poor.
- the middle and low frequency signals in the audio signal play an important role in the sense of hearing and directly affect the user's hearing experience. Therefore, how to improve the low frequency sound effect of the small speaker is an urgent problem to be solved.
- Embodiments of the present application provide a method and device for improving the sound quality of a speaker, which can improve the low-frequency sound effect of the speaker and improve the sound quality of the speaker.
- the embodiment of the present application provides a method for improving the sound quality of the speaker, which can be applied to an electronic device with an audio playback function, and the method includes: the electronic device divides the frequency of the input signal of the speaker to obtain the first low-frequency input signal and the first high-frequency input signal, the input signal of the speaker is a time-domain signal, the first low-frequency input signal includes signals lower than the first preset frequency point in the input signal, and the first high-frequency input signal includes signals higher than the first preset frequency point in the input signal The signal at the first preset frequency point; and the electronic device performs transient detection on the first low-frequency input signal to determine whether the first low-frequency input signal is a transient signal; if the first low-frequency input signal is a transient signal, then the second A low-frequency input signal is subjected to signal envelope modulation to obtain a second low-frequency input signal; and then the electronic device determines the output signal of the speaker according to the second low-frequency input signal and the first high-frequency input signal.
- the transient detection is performed on the low-frequency signal in the input signal. If the input signal is a transient signal, envelope modulation is used to enhance the transient signal. Since the speaker plays a When the audio signal is played by the speaker, the sound quality of the low-frequency signal in the audio signal is related to the performance of the speaker, and the transient signal in the low-frequency signal usually reflects important information of the audio signal, so the transient signal in the low-frequency signal is modulated to improve The loudness of the low-frequency transient signal, and adjust the dynamic range of the low-frequency transient signal, so that when the speaker plays the processed audio signal, the low-frequency sound effect of the audio signal is better, that is, the sound quality of the speaker can be improved through the technical solution of the embodiment of the present application .
- the method for improving the sound quality of the speaker further includes: the electronic device divides the frequency of the first high-frequency input signal of the speaker to obtain the first intermediate-frequency input signal and the second high-frequency input signal.
- the first intermediate frequency input signal includes a signal lower than the second preset frequency point in the first high frequency input signal
- the second high frequency input signal includes a signal higher than the second preset frequency point in the first high frequency input signal signal, the second preset frequency point is higher than the first preset frequency point
- the electronic device performs transient detection on the first intermediate frequency input signal to determine whether the first intermediate frequency input signal is a transient signal; if the first intermediate frequency input signal is a transient signal, the signal envelope modulation is performed on the first intermediate frequency input signal to obtain a second intermediate frequency input signal, the starting voltage of the second intermediate frequency input signal is greater than the starting voltage of the first intermediate frequency input signal, and the second The loudness of the intermediate frequency input signal is greater than the loudness of the first intermediate frequency input signal.
- the method for determining the output signal of the speaker according to the second low-frequency input signal and the first high-frequency input signal specifically includes: the electronic device obtains the output signal of the speaker according to the second low-frequency input signal, the second intermediate-frequency input signal, and the second high-frequency input signal. output signal.
- transient detection is also performed on the intermediate frequency signal in the input signal
- envelope modulation is performed on the transient signal to enhance the intermediate frequency signal, so as to generally improve the sound quality of the speaker.
- the first low-frequency input signal is a transient signal
- the method for improving the sound quality of the speaker further includes: generating a low-frequency auxiliary signal; and adding the low-frequency auxiliary signal to the first low-frequency input signal to obtain a first auxiliary enhanced signal.
- the method for performing signal envelope modulation on the first low-frequency input signal to obtain the second low-frequency input signal specifically includes: performing signal envelope modulation on the first auxiliary enhanced signal to obtain the second low-frequency input signal.
- the above-mentioned first low-frequency input signal is a transient signal
- the speaker of the electronic device is a relatively small speaker with weak low-frequency playback capability
- low-frequency auxiliary can be added to the first low-frequency input signal.
- the function of the low-frequency auxiliary signal is to help enhance the loudness of the first low-frequency input signal, and optimize the dynamic range of the first low-frequency input signal.
- the above method for generating a low-frequency auxiliary signal includes: generating a first auxiliary signal, and performing high-pass filtering on the first auxiliary signal to obtain a low-frequency auxiliary signal.
- the value range of A can be 10-50, and the specific value can be estimated by the system or set by the user, for example, it can be 10, 25, or 50, etc.; the value range of f can be within the range of 50-150Hz
- the specific value of the frequency can be estimated by the system or set by the user, for example, the value of f can be 50 Hz, 100 Hz, or 150 Hz and so on.
- the first low-frequency input signal is a transient signal
- the method for improving the sound quality of the speaker provided in the embodiment of the present application further includes: Phase compensation is performed on the first low-frequency input signal to obtain a first phase compensation signal.
- the method for performing signal envelope modulation on the first low-frequency input signal to obtain the second low-frequency input signal includes: the electronic device performs signal envelope modulation on the first phase compensation signal to obtain the second low-frequency input signal.
- the phase of the first low-frequency input signal may be affected, resulting in a deviation of the phase of the low-frequency input signal, which is no longer a linear phase. Therefore , performing necessary linear phase compensation on the first low-frequency input signal, and correcting the phase of the first low-frequency input signal to a linear phase, thereby ensuring low-frequency sound quality.
- the above-mentioned method for performing transient detection on the first low-frequency input signal and determining whether the first low-frequency input signal is a transient signal specifically includes: the electronic device determines the transient power and steady state of the first low-frequency input signal power; and determine the instantaneous rate of the first low-frequency input signal according to the transient power and steady-state power of the first low-frequency input signal; if the transient rate of the input signal is greater than the preset transient rate threshold, then determine the first low-frequency input signal for transient signals.
- T r represents the instantaneous rate of the first low-frequency input signal
- R r represents the transient state of the first low-frequency input signal
- W represents a weighting factor
- the value of W is the same as the current power of the first low-frequency input signal.
- the power of the first low-frequency input signal is the sum of the squares of the voltage values of all data points contained in the first low-frequency input signal and then averaged; the instantaneous power of the first low-frequency input signal can be the current
- the average power of n1 consecutive signal frames before the frame, the steady-state power of the first low-frequency input signal may be the average power of n2 consecutive signal frames before the current frame.
- some small signals can be masked.
- the electronic device may perform low-pass filtering on the first low-frequency input signal, and then calculate the instantaneous power and steady state of the filtered first low-frequency input signal. state power to further determine whether the first low-frequency input signal is a transient signal or a steady-state signal.
- low-pass filtering is performed on the first low-frequency input signal to obtain a low-frequency input signal in a lower frequency range, and the high-frequency signal that may exist in the first low-frequency input signal can be further reduced through low-pass filtering, here Basically, performing transient detection on the filtered first low-frequency input signal can reduce the false detection rate of transient detection.
- the method for improving the sound quality of the speaker further includes: the electronic device performs equalization processing on the first signal to obtain a second signal; the first signal is the initial signal to be input to the speaker. playing the signal; and processing the second signal with a bass enhancement algorithm to obtain the input signal of the speaker.
- the above-mentioned specific method for equalizing the first signal may be: using a biquard filter to equalize the first signal, which can improve the low-frequency frequency response of the loudspeaker.
- the second signal is processed by using a bass enhancement algorithm, which can enhance the low-frequency loudness of the second signal.
- the above-mentioned method of processing the second signal by using the bass enhancement algorithm to obtain the input signal of the loudspeaker specifically includes: the electronic device determines the power of the low-frequency shelving filter according to the energy of the low-frequency signal in the second signal. Gain, the low-frequency shelving filter is used to control the loudness of the low-frequency signal in the second signal; and the low-frequency shelving filter is used to filter the second signal to obtain the input signal of the loudspeaker.
- the above-mentioned bass enhancement algorithm is adopted, and the electronic device differentiates the loudness of low-frequency signals with different energies according to the energy of the low-frequency signal in the second signal, that is, sets different gains for the low-frequency signal according to the energy of the low-frequency signal, that is, According to the characteristics of the energy of the low-frequency signal of the second signal, the loudness of the low-frequency signal in the second signal is dynamically and adaptively increased, so that the clarity of the low-frequency signal can be improved.
- the method for improving the sound quality of the speaker further includes: the electronic device acquires a first displacement prediction model including one or more correction coefficients, and the first displacement prediction model is used to simulate the loudspeaker To predict the displacement of the diaphragm of the loudspeaker, the one or more correction coefficients are used to control the output of the first displacement prediction model; and adjust at least one correction coefficient in the first displacement prediction model to obtain a second displacement prediction model;
- the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm of the loudspeaker is less than the absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement of the diaphragm of the loudspeaker;
- the actual displacement of the loudspeaker is the actual measurement value of the moving distance of the diaphragm relative to the initial position; and the electronic device controls the gain of the output signal of the loudspeaker according to the displacement protection threshold of the loudspeaker and
- the above-mentioned second displacement prediction model more truly reflects the characteristics of the loudspeaker, ensures that the predicted displacement of the output is more accurate, and then can carry out more accurate displacement protection, which also realizes the protection of the displacement of the speaker diaphragm. , to maximize the hardware potential of the speaker and increase the loudness of the speaker.
- the method for improving the sound quality of the speaker provided in the embodiment of the present application further includes: the electronic device performs virtual bass processing on the output signal to obtain a virtual bass output signal, and the psychologically perceived low-frequency loudness of the virtual bass output signal is The psychologically perceived loudness of low frequencies greater than the loudspeaker's output signal.
- virtual bass processing is a method based on psychoacoustics to improve bass sound effects. Measured from the perspective of psychoacoustics, the psychological The perceived low frequency loudness is greater than the psychologically perceived low frequency loudness of the original output signal. In one embodiment, the psycho-perceived low-frequency loudness may be determined according to a psycho-acoustic model.
- the method for performing virtual bass processing on the output signal of the loudspeaker to obtain the virtual bass output signal specifically includes: the electronic device performs frequency division processing on the output signal to obtain the first low-frequency output signal and the first low-frequency output signal.
- a high-frequency output signal the first low-frequency output signal includes a signal of the output signal lower than the third preset frequency point, and the first high-frequency output signal includes a signal of the output signal higher than the third preset frequency point; and electronically
- the device generates a harmonic signal of the first low-frequency output signal according to the first low-frequency output signal; then, the electronic device mixes the harmonic signal and the first low-frequency output signal to obtain a first mixed signal; and the first mixed signal and the second A high-frequency output signal is subjected to phase synchronization processing to obtain a second mixed signal and a second high-frequency output signal, and the amount of change in the phase of the second mixed signal is equal to the amount of change in the phase of the second high-frequency output signal; and then the electronic device According to the second mixed signal and the second high-frequency output signal, a virtual bass output signal is obtained.
- the method for improving the sound quality of the speaker further includes: the electronic device adjusts the nonlinear parameters of the first nonlinear compensation model pre-configured in the speaker according to the coil temperature of the speaker, so as to obtain A second nonlinear compensation model; then the electronic device uses the second nonlinear compensation model to perform signal compensation on the output signal of the loudspeaker.
- the determined second nonlinear parameter of the loudspeaker is a nonlinear parameter corresponding to the current working state of the loudspeaker, that is, a real-time nonlinear parameter, its accuracy is relatively high, so, according to the second nonlinear parameter to The output signal of the loudspeaker is used for signal compensation, and the signal compensation effect is better, which can effectively reduce signal distortion and improve the sound quality of the loudspeaker.
- the embodiment of the present application provides an electronic device, which includes: a first acquisition module, a first determination module, an envelope modulation module, and a second determination module.
- the first obtaining module is used for dividing the frequency of the input signal of the loudspeaker to obtain the first low-frequency input signal and the first high-frequency input signal
- the input signal of the loudspeaker is a time-domain signal
- the first low-frequency input signal includes the input signal A signal lower than the first preset frequency point in the input signal
- the first high-frequency input signal includes a signal higher than the first preset frequency point in the input signal
- the first determination module is used to perform transient detection on the first low-frequency input signal, To determine whether the first low-frequency input signal is a transient signal
- the envelope modulation module is used to perform signal envelope modulation on the first low-frequency input signal when the first low-frequency input signal is a transient signal, to obtain a second low-frequency input signal, the starting voltage of the second low-frequency input signal is greater than the
- the above-mentioned first acquisition module is further configured to divide the frequency of the first high-frequency input signal of the speaker to obtain the first intermediate-frequency input signal and the second high-frequency input signal, and the first intermediate-frequency input signal
- the first high-frequency input signal includes a signal lower than the second preset frequency point
- the second high-frequency input signal includes a signal higher than the second preset frequency point in the first high-frequency input signal
- the second preset frequency point is higher than At the first preset frequency point
- the first determination module is also used for transient detection of the first intermediate frequency input signal to determine whether the first intermediate frequency input signal is a transient signal
- the envelope modulation module is also used for the first intermediate frequency When the input signal is a transient signal, signal envelope modulation is performed on the first intermediate frequency input signal to obtain a second intermediate frequency input signal, the starting voltage of the second intermediate frequency input signal is greater than the starting voltage of the first intermediate frequency input signal , and the loudness of the second intermediate frequency input signal is greater than the loudness of the first intermediate frequency
- the electronic device provided in the embodiment of the present application further includes a generation module and a second acquisition module.
- the generation module is used to generate the low-frequency auxiliary signal;
- the second acquisition module is used to add the low-frequency auxiliary signal to the first low-frequency input signal to obtain the first auxiliary enhanced signal;
- the envelope modulation module is specifically used to perform the first auxiliary enhanced signal The signal envelope is modulated to obtain a second low frequency input signal.
- the generating module is specifically configured to generate a first auxiliary signal, and perform high-pass filtering on the first auxiliary signal to obtain a low-frequency auxiliary signal.
- the first auxiliary signal satisfies: Among them, signal_h represents the low-frequency auxiliary signal, A represents the signal amplitude influence factor, and f is the center frequency of the speaker.
- the electronic device provided in the embodiment of the present application further includes a phase compensation module; the phase compensation module is used to perform phase compensation on the first low-frequency input signal to obtain a first phase compensation signal; the above envelope modulation The module is specifically used to perform signal envelope modulation on the first phase compensation signal to obtain a second low-frequency input signal.
- the above-mentioned first determination module is specifically configured to determine the transient power and steady-state power of the first low-frequency input signal; and determine the first low-frequency input signal according to the transient power and steady-state power of the first low-frequency input signal the instantaneous rate of the input signal; and determining that the first low-frequency input signal is a transient signal when the transient rate of the input signal is greater than a preset transient rate threshold.
- T r represents the instantaneous rate of the first low-frequency input signal
- R r represents the instantaneous power of the first low-frequency input signal
- W represents a weighting factor
- the value of W is the same as the current power of the first low-frequency input signal.
- the electronic device provided in the embodiment of the present application further includes an equalization processing module and a bass enhancement module; wherein, the equalization processing module is configured to perform equalization processing on the first signal to obtain a second signal, and the first signal The initial signal to be played is input to the speaker; the bass enhancement module is used to process the second signal with a bass enhancement algorithm to obtain the input signal of the speaker.
- the above-mentioned bass enhancement module is specifically configured to determine the gain of the low-frequency shelving filter according to the energy of the low-frequency signal in the second signal, and the low-frequency shelving filter is used to control the low-frequency signal in the second signal. loudness; and use a low-frequency shelving filter to filter the second signal to obtain the input signal of the loudspeaker.
- the electronic device provided in the embodiment of the present application further includes a third acquisition module, a first adjustment module, and a control module.
- the third acquisition module is used to acquire the first displacement prediction model including one or more correction coefficients
- the first displacement prediction model is used to simulate the performance of the loudspeaker to predict the displacement of the diaphragm of the loudspeaker, and the one or more correction coefficients
- the coefficient is used to control the output of the first displacement prediction model
- the first adjustment module is used to adjust at least one correction coefficient in the first displacement prediction model to obtain a second displacement prediction model, and the predicted displacement output by the second displacement prediction model is consistent with the loudspeaker
- the absolute value of the difference between the actual displacement of the diaphragm diaphragm is less than the absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement of the speaker's diaphragm
- the actual displacement of the speaker is the diaphragm relative to The actual measurement value of the moving distance of the initial position
- the electronic device provided in the embodiment of the present application further includes a virtual bass processing module: the virtual bass processing module is configured to perform virtual bass processing on the above output signal to obtain a virtual bass output signal; the virtual bass output The psychologically perceived low frequency loudness of the signal is greater than the psychologically perceived low frequency loudness of the output signal.
- the above-mentioned virtual bass processing module is specifically configured to perform frequency division processing on the above-mentioned output signal to obtain a first low-frequency output signal and a first high-frequency output signal, and the first low-frequency output signal includes the output signal In the signal lower than the third preset frequency point, the first high-frequency output signal includes a signal higher than the third preset frequency point in the output signal; and a harmonic signal of the first low-frequency output signal is generated according to the first low-frequency output signal ; and mixing the harmonic signal and the first low-frequency output signal to obtain a first mixed signal; and performing phase synchronization processing on the first mixed signal and the first high-frequency output signal to obtain a second mixed signal and a second high-frequency output signal frequency output signal, the change in phase of the second mixed signal is equal to the change in phase of the second high frequency output signal; furthermore, according to the second mixed signal and the second high frequency output signal, a virtual bass output signal is obtained.
- the electronic device provided by the embodiment of the present application further includes a second adjustment module and a signal compensation module: the second adjustment module is used to adjust the first nonlinear compensation pre-configured in the speaker according to the coil temperature of the speaker.
- the nonlinear parameters of the model are used to obtain a second nonlinear compensation model; the signal compensation module is used to perform signal compensation on the output signal of the loudspeaker by using the second nonlinear compensation model.
- an embodiment of the present application provides an electronic device, the electronic device includes a memory and at least one processor connected to the memory, the memory is used to store instructions, and after the instructions stored in the memory are read by at least one processor, the above-mentioned The method described in any one of the first aspect and its possible implementations.
- the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of the above-mentioned first aspect and its possible implementations .
- the embodiments of the present application provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method described in any one of the first aspect and its possible implementations.
- the embodiment of the present application provides a chip, including a memory and a processor.
- Memory is used to store computer instructions.
- the processor is used to call and execute the computer instructions from the memory, so as to execute the method described in any one of the first aspect and possible implementations thereof.
- FIG. 1 is a schematic diagram of a transient signal and a steady state signal provided by an embodiment of the present application
- FIG. 2 is a block diagram of an audio processing system provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a method for improving the sound quality of a speaker provided in an embodiment of the present application
- FIG. 5 is a schematic diagram of another method for improving the sound quality of a speaker provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of the principle of an envelope modulation provided by an embodiment of the present application.
- FIG. 7 is a schematic framework diagram of a loudspeaker system provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of another method for improving the sound quality of a speaker provided by an embodiment of the present application.
- FIG. 9 is a schematic framework diagram of another speaker system provided by the embodiment of the present application.
- FIG. 10 is a schematic diagram of another method for improving the sound quality of a speaker according to an embodiment of the present application.
- Fig. 11 is a schematic framework diagram of another speaker system provided by the embodiment of the present application.
- FIG. 12 is a schematic diagram of another method for improving the sound quality of a speaker provided by an embodiment of the present application.
- Fig. 13 is a schematic framework diagram of another speaker system provided by the embodiment of the present application.
- Fig. 14 is a schematic frame diagram of another speaker system provided by the embodiment of the present application.
- FIG. 15 is a schematic flow chart of a low-frequency enhancement algorithm provided by an embodiment of the present application.
- Fig. 16 is a schematic framework diagram of another speaker system provided by the embodiment of the present application.
- FIG. 17 is a schematic diagram of another method for improving the sound quality of a speaker provided by an embodiment of the present application.
- Fig. 18 is a schematic frame diagram of another speaker system provided by the embodiment of the present application.
- FIG. 19 is a schematic diagram of another method for improving the sound quality of a speaker according to an embodiment of the present application.
- FIG. 20 is a schematic framework diagram of another speaker system provided by the embodiment of the present application.
- FIG. 21 is a schematic diagram of another method for improving the sound quality of a speaker according to an embodiment of the present application.
- Fig. 22 is a schematic framework diagram of another speaker system provided by the embodiment of the present application.
- FIG. 23 is a first structural schematic diagram of an electronic device provided by an embodiment of the present application.
- FIG. 24 is a second structural schematic diagram of an electronic device provided by an embodiment of the present application.
- first and second in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects.
- the first low-frequency input signal and the second low-frequency input signal are used to distinguish different input signals, rather than to describe the specific sequence of low-frequency input signals; for example, the first high-frequency input signal and the second high-frequency input signal
- the signal is used to distinguish different high-frequency input signals, not to describe a specific sequence of high-frequency input signals; for another example, the first intermediate-frequency input signal and the second intermediate-frequency input signal are used to distinguish different intermediate-frequency input signals, and Not a specific order for describing IF input signals.
- words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
- plural means two or more.
- a plurality of correction coefficients refers to two or more correction coefficients.
- Loudness is a measure of how strong or weak a sound is perceived by humans. Generally speaking, when the frequency of a sound is constant, the stronger the sound intensity, the louder it will be. However, the loudness is related to the frequency, the sound intensity is the same, but the frequency is different, the loudness may also be different. The loudness can be the sound pressure level of the audio signal, and simply, the loudness can also be understood as the volume of the audio signal.
- the purpose of the technical solution provided by the embodiments of the present application is to increase the loudness of the low-frequency signal in the audio signal to be played by the speaker, so as to improve the sound quality of the speaker.
- Low-frequency dynamic change refers to the change process of the signal from small to large and then to small.
- the subtle dynamic changes of the low-frequency signal in the audio signal affect the user's sense of hearing.
- Better bass dynamics refers to: fast low-frequency vibration, high peak loudness, fast decay, and better low-frequency dynamics.
- the low-frequency details in the audio signals can be displayed, so that users have a lot of experience. Good subjective sense of hearing.
- the input signal of the loudspeaker can also be called the input voltage signal.
- the audio signal is processed frame by frame. Therefore, in the process of processing the signal frame, the input signal corresponding to the loudspeaker is a signal frame.
- the input signal of the loudspeaker includes M (M is an integer greater than or equal to 1) digital signals, corresponding to n voltage values (also referred to as n points).
- the input signal U in [U in (1) , U in (2), ..., U in (n), ..., U in (M)].
- processing the input signal refers to sequentially processing each digital signal in the input signal.
- t n the time when the nth digital signal is input is marked as t n
- the input signal corresponding to the time t n is marked as U in (n) or U in (t n ).
- the above-mentioned loudness and dynamic changes can be used to measure the sound quality of audio signals played by speakers, especially for small speakers, low-frequency loudness and dynamic changes are the main goals of audio signal processing.
- Transient signal and steady-state signal The signal with short maintenance time and obvious start and end is called transient signal; the signal that changes within a small range for a long period of time is called steady-state signal.
- Fig. 1 shows a transient signal and a steady state signal of an audio signal.
- the displacement of the speaker refers to the moving distance of the diaphragm during the working process of the speaker.
- the displacement of the speaker has an impact on the sound quality of the speaker.
- the displacement of the diaphragm of the speaker may cause the diaphragm of the speaker to top or rub against the ring, resulting in noise and even mechanical damage to the speaker.
- the displacement of the speaker may be controlled to improve the sound quality of the speaker.
- Nonlinear parameters of speakers may include but not limited to the following parameters:
- Force factor BL(x) refers to the force factor of the magnetic circuit system of the loudspeaker.
- Kms(x) refers to the stiffness of the suspension system of the loudspeaker.
- Kms(x) can include different coefficients such as first order, second order, and third order.
- Inductance Le(x) refers to the inductance of the coil of the speaker.
- Damping Rm(v) It is the damping coefficient of the loudspeaker, and Rm(v) can include different coefficients such as first order, second order and third order.
- x refers to the displacement of the diaphragm of the loudspeaker
- v refers to the moving speed of the diaphragm of the loudspeaker
- nonlinear parameters of the speaker may change due to different working conditions of the speaker. For example, when the coil of the speaker is at different temperatures, the above Kms(x) will change, and Rm(v) may also change, that is Kms(x) is different at different temperatures, and Rm(v) is different at different temperatures.
- Nonlinearity of the speaker is a phenomenon in which the output sound quality of the speaker is distorted due to the hardware structure of the speaker (such as the small size of the speaker, large displacement and other structural characteristics), which can be called nonlinear distortion, especially the speaker When there is a large signal input, the nonlinearity of the speaker is more obvious, and the output signal may produce excessive distortion, which affects the hearing experience.
- the nonlinear distortion caused by hardware of the speaker may be compensated by using the nonlinear parameters of the speaker, so as to improve the sound quality of the speaker.
- the loudness of the audio signal played by most speakers is insufficient, and the dynamic change performance is not good, so that the sound quality of the audio signal played by the speaker is poor.
- the middle and low frequency signals in the audio signal play an important role in the sense of hearing and directly affect the user's hearing experience. Therefore, how to improve the low frequency sound effect of the small speaker is an urgent problem to be solved.
- Some existing methods for improving the sound quality of speakers involve processing audio signals from the perspective of speaker displacement protection and nonlinear compensation, maximizing the hardware potential of the speaker, and improving the loudness of the speaker. The effect of improving the sound quality of the speaker still needs to be improved.
- Embodiments of the present application provide a method and device for improving the sound quality of speakers, which can be applied to electronic equipment with speakers.
- the electronic equipment processes the audio signal to be reproduced (the following embodiments are referred to as the input signal of the speaker) to improve The sound quality of the speakers.
- the electronic device divides the frequency of the input signal of the speaker to obtain the first low-frequency input signal and the first high-frequency input signal; then the electronic device performs transient detection on the first low-frequency input signal of the speaker to determine the first low-frequency Whether the input signal is a transient signal; if the first low-frequency input signal is a transient signal, the signal envelope modulation is performed on the first low-frequency input signal to obtain a second low-frequency input signal, and the starting voltage of the second low-frequency input signal is greater than The starting voltage of the first low-frequency input signal, and the loudness of the second low-frequency input signal is greater than the loudness of the first low-frequency input signal; finally, the electronic device determines the output signal of the speaker according to the second low-frequency input signal and the above-mentioned first high-frequency input signal .
- the method for improving the sound quality of speakers provided in the embodiments of the present application can be applied to electronic devices with audio playback function (that is, with speakers), such as mobile phones, tablet computers, notebook computers, smart speakers, TVs and other electronic devices equipped with speakers.
- the method provided by the embodiment of the present application can be used in the scene where the speaker of the electronic device is used to produce sound.
- the method for improving the sound quality of the speaker provided by the embodiment of the present application can be applied in the following scene: playing music and movies ( Including monophonic, dual-channel and quadruple-channel playback), hands-free calls (including operator calls, Internet calls, etc.), mobile phone ringtones (including external playback mode, earphone plug-in mode) and external playback of games, etc., to maximize the play
- the hardware potential of the speaker can improve the low-frequency sound effect of the speaker and the sound quality of the speaker, thereby improving the user's subjective experience.
- the audio processing system mainly includes a digital signal processing (digital signal processing, DSP) device and a power amplifier ( power amplifier, PA), wherein, DSP is used to process the input audio signal, and the processed signal is amplified by PA, and finally output to the speaker for playback.
- DSP digital signal processing
- PA power amplifier
- FIG. 3 shows a schematic structural diagram of a mobile phone 300 .
- the mobile phone 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (universal serial bus, USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, and an antenna 2 , mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver 370B, microphone 370C, earphone jack 370D, sensor module 380, button 390, motor 391, indicator 392, camera 393, display screen 394, and A subscriber identification module (subscriber identification module, SIM) card interface 395 and the like.
- SIM subscriber identification module
- the sensor module 380 may include a pressure sensor 380A, a gyroscope sensor 380B, an air pressure sensor 380C, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity light sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, and an ambient light sensor.
- the structure shown in the embodiment of the present application does not constitute a specific limitation on the mobile phone 300 .
- the mobile phone 300 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 310 may include one or more processing units, for example: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- graphics processing unit graphics processing unit
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit, NPU
- the controller may be the nerve center and command center of the mobile phone 300 .
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 310 for storing instructions and data.
- the memory in processor 310 is a cache memory.
- the memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 310 is reduced, thereby improving the efficiency of the system.
- processor 310 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
- processor 310 may include multiple sets of I2C buses.
- the processor 310 can be respectively coupled to the touch sensor 380K, the charger, the flashlight, the camera 393 and so on through different I2C bus interfaces.
- the processor 310 may be coupled to the touch sensor 380K through an I2C interface, so that the processor 310 and the touch sensor 380K communicate through the I2C bus interface to realize the touch function of the mobile phone 300 .
- the I2S interface can be used for audio communication.
- processor 310 may include multiple sets of I2S buses.
- the processor 310 may be coupled to the audio module 370 through an I2S bus to implement communication between the processor 310 and the audio module 370 .
- the audio module 370 can transmit audio signals to the wireless communication module 360 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
- the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
- the audio module 370 and the wireless communication module 360 may be coupled through a PCM bus interface.
- the audio module 370 can also transmit audio signals to the wireless communication module 360 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- a UART interface is generally used to connect the processor 310 and the wireless communication module 360 .
- the processor 310 communicates with the Bluetooth module in the wireless communication module 360 through the UART interface to realize the Bluetooth function.
- the audio module 370 can transmit audio signals to the wireless communication module 360 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
- the MIPI interface can be used to connect the processor 310 with peripheral devices such as the display screen 394 and the camera 393 .
- MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
- the processor 310 communicates with the camera 393 through the CSI interface to realize the shooting function of the mobile phone 300 .
- the processor 310 communicates with the display screen 394 through the DSI interface to realize the display function of the mobile phone 300 .
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 310 with the camera 393 , the display screen 394 , the wireless communication module 360 , the audio module 370 , the sensor module 380 and so on.
- the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 330 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 330 can be used to connect a charger to charge the mobile phone 300, and can also be used to transmit data between the mobile phone 300 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the mobile phone 300 .
- the mobile phone 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 340 is configured to receive charging input from the charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 340 can receive charging input from a wired charger through the USB interface 330 .
- the charging management module 340 can receive wireless charging input through the wireless charging coil of the mobile phone 300 . While the charging management module 340 is charging the battery 342 , it can also supply power to the electronic device through the power management module 341 .
- the power management module 341 is used for connecting the battery 342 , the charging management module 340 and the processor 310 .
- the power management module 341 receives the input of the battery 342 and/or the charging management module 340, and supplies power for the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, and the wireless communication module 360, etc.
- the power management module 341 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 341 may also be disposed in the processor 310 .
- the power management module 341 and the charging management module 340 may also be set in the same device.
- the wireless communication function of the mobile phone 300 can be realized by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor and the baseband processor.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in handset 300 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 350 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 300 .
- the mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 350 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 350 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 .
- at least part of the functional modules of the mobile communication module 350 may be set in the processor 310 .
- at least part of the functional modules of the mobile communication module 350 and at least part of the modules of the processor 310 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs sound signals through audio equipment (not limited to speaker 370A, receiver 370B, etc.), or displays images or videos through display screen 394 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent from the processor 310, and be set in the same device as the mobile communication module 350 or other functional modules.
- the wireless communication module 360 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. applied on the mobile phone 300. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 360 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 360 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310 .
- the wireless communication module 360 can also receive the signal to be sent from the processor 310 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the mobile phone 300 is coupled to the mobile communication module 350, and the antenna 2 is coupled to the wireless communication module 360, so that the mobile phone 300 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- time division code division multiple access time-division code division multiple access
- LTE long term evolution
- BT GNSS
- WLAN NFC
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the mobile phone 300 realizes the display function through the GPU, the display screen 394, and the application processor.
- the GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 310 may include one or more GPUs that execute program instructions to generate or alter display information.
- the display screen 394 is used to display images, videos and the like.
- Display 394 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the mobile phone 300 may include 1 or N display screens 394, where N is a positive integer greater than 1.
- the mobile phone 300 can realize the shooting function through ISP, camera 393 , video codec, GPU, display screen 394 and application processor.
- the ISP is used for processing the data fed back by the camera 393 .
- the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin color.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be located in the camera 393 .
- Camera 393 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the mobile phone 300 may include 1 or N cameras 393, where N is a positive integer greater than 1.
- a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals (such as audio signals, etc.). For example, when the mobile phone 300 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the handset 300 may support one or more video codecs.
- the mobile phone 300 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
- MPEG moving picture experts group
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the mobile phone 300 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 300.
- the external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 321 may be used to store computer-executable program code, which includes instructions.
- the processor 310 executes various functional applications and data processing of the mobile phone 300 by executing instructions stored in the internal memory 321 .
- the internal memory 321 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 300 .
- the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the mobile phone 300 can realize the audio function through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, the earphone interface 370D, and the application processor. Such as music playback, recording, etc.
- the audio module 370 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 370 may also be used to encode and decode audio signals.
- the audio module 370 can be set in the processor 310 , or some functional modules of the audio module 370 can be set in the processor 310 .
- Speaker 370A also called “horn” is used to convert audio electrical signals into sound signals.
- Cell phone 300 can listen to music through speaker 370A, or listen to hands-free calls.
- Receiver 370B also called “earpiece” is used to convert audio electrical signals into audio signals.
- the receiver 370B can be placed close to the human ear to receive the voice.
- the microphone 370C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
- the user can put his mouth close to the microphone 370C to make a sound, and input the sound signal to the microphone 370C.
- the mobile phone 300 can be provided with at least one microphone 370C.
- the mobile phone 300 can be provided with two microphones 370C, which can also implement a noise reduction function in addition to collecting sound signals.
- the mobile phone 300 can also be provided with three, four or more microphones 370C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording functions, etc.
- the earphone interface 370D is used to connect wired earphones.
- the earphone interface 370D may be a USB interface 330, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the pressure sensor 380A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- pressure sensor 380A may be located on display screen 394.
- pressure sensors 380A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
- a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
- the mobile phone 300 may also calculate the touched position according to the detection signal of the pressure sensor 380A.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
- the gyroscope sensor 380B can be used to determine the motion posture of the mobile phone 300 .
- the angular velocity of the mobile phone 300 about three axes ie, x, y and z axes
- the gyro sensor 380B can be used for image stabilization.
- the gyro sensor 380B detects the shaking angle of the mobile phone 300, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens can counteract the shaking of the mobile phone 300 through reverse motion to achieve anti-shake.
- the gyroscope sensor 380B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 380C is used to measure air pressure. In some embodiments, the mobile phone 300 calculates the altitude based on the air pressure value measured by the air pressure sensor 380C to assist positioning and navigation.
- the magnetic sensor 380D includes a Hall sensor.
- the mobile phone 300 can use the magnetic sensor 380D to detect the opening and closing of the flip holster.
- the mobile phone 300 can detect the opening and closing of the flip according to the magnetic sensor 380D.
- features such as automatic unlocking of the flip cover are set.
- the acceleration sensor 380E can detect the acceleration of the mobile phone 300 in various directions (generally three axes). When the mobile phone 300 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the distance sensor 380F is used to measure the distance.
- the mobile phone 300 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 300 can use the distance sensor 380F for distance measurement to achieve fast focusing.
- Proximity light sensor 380G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the mobile phone 300 emits infrared light through the light emitting diode.
- Cell phone 300 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 300 . When insufficient reflected light is detected, the mobile phone 300 can determine that there is no object near the mobile phone 300 .
- the mobile phone 300 can use the proximity light sensor 380G to detect that the user is holding the mobile phone 300 close to the ear to talk, so that the screen can be automatically turned off to save power.
- the proximity light sensor 380G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
- the ambient light sensor 380L is used for sensing ambient light brightness.
- the mobile phone 300 can adaptively adjust the brightness of the display screen 394 according to the perceived ambient light brightness.
- the ambient light sensor 380L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 380L can also cooperate with the proximity light sensor 380G to detect whether the mobile phone 300 is in the pocket, so as to prevent accidental touch.
- the fingerprint sensor 380H is used to collect fingerprints.
- the mobile phone 300 can utilize the collected fingerprint features to realize fingerprint unlocking, access to application locks, fingerprint taking pictures, fingerprint answering incoming calls, etc.
- the temperature sensor 380J is used to detect temperature.
- the mobile phone 300 uses the temperature detected by the temperature sensor 380J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 380J exceeds the threshold, the mobile phone 300 may reduce the performance of the processor located near the temperature sensor 380J, so as to reduce power consumption and implement thermal protection.
- the mobile phone 300 when the temperature is lower than another threshold, the mobile phone 300 heats the battery 342 to avoid abnormal shutdown of the mobile phone 300 due to low temperature.
- the mobile phone 300 boosts the output voltage of the battery 342 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 380K also known as "touch panel”.
- the touch sensor 380K can be arranged on the display screen 394, and the touch sensor 380K and the display screen 394 form a touch screen, also called “touch screen”.
- the touch sensor 380K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations can be provided through the display screen 394 .
- the touch sensor 380K may also be disposed on the surface of the mobile phone 300 , which is different from the position of the display screen 394 .
- the bone conduction sensor 380M can acquire vibration signals. In some embodiments, the bone conduction sensor 380M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 380M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 380M can also be disposed in the earphone, combined into a bone conduction earphone.
- the audio module 370 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 380M, so as to realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 380M, so as to realize the heart rate detection function.
- the keys 390 include a power key, a volume key and the like.
- the key 390 may be a mechanical key. It can also be a touch button.
- the mobile phone 300 can receive key input and generate key signal input related to user settings and function control of the mobile phone 300 .
- the motor 391 can generate a vibrating reminder.
- the motor 391 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- touch operations applied to different applications may correspond to different vibration feedback effects.
- the motor 391 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 394 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 392 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and can also be used to indicate messages, missed calls, notifications and the like.
- the SIM card interface 395 is used for connecting a SIM card.
- the SIM card can be connected and separated from the mobile phone 300 by inserting it into the SIM card interface 395 or pulling it out from the SIM card interface 395 .
- the mobile phone 300 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- SIM card interface 395 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 395 at the same time. The types of the multiple cards may be the same or different.
- the SIM card interface 395 is also compatible with different types of SIM cards.
- the SIM card interface 395 is also compatible with external memory cards.
- the mobile phone 300 interacts with the network through the SIM card to implement functions such as calling and data communication.
- the mobile phone 300 adopts eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the mobile phone 300 and cannot be separated from the mobile phone 300 .
- FIG. 3 only uses a mobile phone as an example for illustration, and does not specifically limit the structure of the electronic device.
- the electronic device may include more components in FIG. 3 , or may include fewer components than those shown in FIG. 3 , which is not limited in this embodiment of the present application.
- the processor of the electronic device can perform some or all of the steps in the embodiment of the present application. These steps or operations are only examples, and the embodiment of the present application can also Perform other operations or variations of various operations. In addition, each step may be performed in a different order presented in the embodiment of the present application, and it may not be necessary to perform all operations in the embodiment of the present application.
- Each embodiment of the present application may be implemented independently or in any combination, which is not limited in the present application.
- an embodiment of the present application provides a method for improving sound quality of a speaker, and the method includes steps 401 to 404 .
- Step 401 the electronic device divides the frequency of the input signal of the speaker to obtain a first low-frequency input signal and a first high-frequency input signal.
- the input signal of the loudspeaker processed by the electronic device is a time-domain signal.
- the first low-frequency input signal includes a signal of the input signal lower than a first preset frequency point
- the first high-frequency input signal includes a signal of the input signal higher than a second preset frequency point.
- the first preset frequency point may be a frequency point in the range of 100-400 Hz, for example, the first preset frequency point may be 100, 200, 250, 300 or 400 Hz and so on.
- the signal at the first preset frequency point may be included in the first low-frequency input signal, or may be included in the first high-frequency input signal, or may be included in both the first low-frequency input signal and the first high-frequency input signal.
- the frequency input signal is not limited in this embodiment of the present application.
- the electronic device may divide the input data by a frequency divider.
- the frequency divider is essentially a filter for filtering the input signal to obtain a low-frequency signal in the input signal (referred to as the first low-frequency input signal) and A high-frequency signal (referred to as a first high-frequency input signal).
- Step 402 the electronic device performs transient detection on the first low-frequency input signal of the speaker, so as to determine whether the first low-frequency input signal is a transient signal.
- transient signals are some signals with large signal amplitude changes.
- transient signals usually transient signals contain important information of a piece of audio. Therefore, the transient signals in audio signals can be signal, to process the transient signal and improve the sound quality.
- the method for an electronic device to perform transient detection on a first low-frequency input signal specifically includes steps 4021 to 4023 .
- Step 4021 the electronic device determines the transient power and steady-state power of the first low-frequency input signal.
- the process for the electronic device to determine the transient power and steady-state power of the first low-frequency input signal (corresponding to one signal frame) includes:
- the electronic device calculates the power of the first low-frequency input signal. It should be understood that the power of the first low-frequency input signal is the sum of the squares of the voltage values of all data points included in the first low-frequency input signal and then averaged.
- the transient power of the first low-frequency input signal may be the average power of n1 consecutive signal frames before the current frame
- the steady-state power of the first low-frequency input signal may be the average power of n2 consecutive signal frames before the current frame
- n1 is much smaller than n2, for example, the value of n1 is 5, and the value of n2 is 50.
- Step 4022 the electronic device determines the instantaneous rate of the first low-frequency input signal according to the instantaneous power and steady-state power of the first low-frequency input signal.
- the instantaneous rate of the above-mentioned first low-frequency input signal satisfies:
- T r represents the instantaneous rate of the first low-frequency input signal
- R r represents the ratio of the transient power of the first low-frequency input signal to the steady-state power of the first low-frequency input signal
- W represents the weighting factor
- P s represents the transient power of the current frame
- P w is the steady-state power of the current frame.
- the value of the weighting factor may be the same as the current power of the first low-frequency input signal.
- some small signals can be masked.
- Step 4023 If the transient rate of the input signal is greater than the preset transient rate threshold, the electronic device determines that the input signal is a transient signal; otherwise, the input signal is a steady state signal.
- the first low-frequency input signal is a transient signal, mark the first low-frequency input signal, and perform the following step 403 to process the first low-frequency input signal; if the first low-frequency input signal is a steady-state signal, the first low-frequency input signal is not processed.
- the electronic device may perform low-pass filtering on the first low-frequency input signal, and then calculate the instantaneous power and steady state of the filtered first low-frequency input signal. state power to further determine whether the first low-frequency input signal is a transient signal or a steady-state signal.
- low-pass filtering is performed on the first low-frequency input signal to obtain a low-frequency input signal in a lower frequency range, and the high-frequency signal that may exist in the first low-frequency input signal can be further reduced through low-pass filtering, here Basically, performing transient detection on the filtered first low-frequency input signal can reduce the false detection rate of transient detection.
- Step 403 If the first low-frequency input signal is a transient signal, the electronic device performs signal envelope modulation on the first low-frequency input signal to obtain a second low-frequency input signal.
- the envelope modulation of the audio signal is to adjust the oscillation voltage, loudness and decay speed of the signal, so that the sound quality of the audio signal after envelope modulation is better than that of the audio signal before envelope modulation.
- the start-up voltage refers to the voltage that can make the speaker diaphragm start to vibrate quickly, that is, the start-up voltage determines the start-up speed of the diaphragm.
- the start-up voltage of the second low-frequency input signal obtained by performing envelope modulation on the first low-frequency input signal is greater than the start-up voltage of the first low-frequency input signal, and the loudness of the second low-frequency input signal is greater than that of the first low-frequency input signal.
- the transient signal waveform change usually includes four stages, namely: the attack phase (attack, denoted as A), the decay phase (decay, denoted as D), and the continuous phase ( sustain, denoted as S) and the release phase (release, denoted as R).
- each stage has a certain duration, and each stage corresponds to adjustment parameters, for example, the adjustment parameters in the start-up phase are start-up time and start-up voltage (target Ratio A), and the adjustment parameters in the decay phase are decay time and decay Speed (target Radio DR), the adjustment parameters of the sustain stage are duration and volume (ie amplitude, sustain level), and the adjustment parameters of the release stage are release time and release speed.
- the decay rate and the release rate can be equal.
- performing envelope modulation on the first low-frequency input signal includes: adjusting the parameters of the four stages of the first low-frequency input signal, such as adjusting the duration of the above four stages, adjusting the oscillation voltage, volume, and release speed. At least one item of , so that the start-up voltage of the second low-frequency input signal is greater than the start-up voltage of the first low-frequency input signal, and the loudness of the second low-frequency input signal is greater than the loudness of the first low-frequency input signal.
- Step 404 the electronic device determines the output signal of the speaker according to the second low-frequency input signal and the first high-frequency input signal.
- the electronic device begins to divide the input signal into the first low-frequency input signal and the first high-frequency input signal, and then processes the first low-frequency input signal, and the first high-frequency input signal No processing, finally, sum the processed low-frequency input data (that is, the second low-frequency input data) and the first high-frequency input data (it is the inverse process of frequency division), so as to complete the processing of the input signal and obtain the output signal , and then send the output signal to the speaker for playback.
- Fig. 7 shows a framework of a loudspeaker system provided by an embodiment of the present application.
- the speaker system includes a frequency division unit, a transient detection unit, an envelope modulation unit, and an output unit, wherein the frequency division unit is used to divide the input signal to obtain a low-frequency input signal and a high-frequency input signal ;
- the transient detection unit is used for transient detection of the low-frequency input signal
- the envelope modulation unit is used for performing envelope modulation on the low-frequency input signal when the low-frequency input signal is a transient signal
- the output unit is used for converting the high-frequency
- the input signal and the low-frequency input signal after envelope modulation are mixed to obtain the input and output signals, and then input to the speaker for playback.
- the transient detection is performed on the low-frequency signal in the input signal. If the input signal is a transient signal, envelope modulation is used to enhance the transient signal. Since the speaker plays a When the audio signal is played by the speaker, the sound quality of the low-frequency signal in the audio signal is related to the performance of the speaker, and the transient signal in the low-frequency signal usually reflects important information of the audio signal, so the transient signal in the low-frequency signal is modulated to improve The loudness of the low-frequency transient signal, and adjust the dynamic range of the low-frequency transient signal, so that when the speaker plays the processed audio signal, the low-frequency sound effect of the audio signal is better, that is, the sound quality of the speaker can be improved through the technical solution of the embodiment of the present application .
- the method for improving the sound quality of a speaker provided in the embodiment of the present application further includes steps 405 to 407 .
- Step 405 the electronic device divides the frequency of the first high-frequency input signal of the speaker to obtain the first intermediate-frequency input signal and the second high-frequency input signal.
- the above-mentioned first intermediate frequency input signal includes a signal lower than a second preset frequency point in the first high frequency input signal
- the second high frequency input signal includes a signal higher than a second preset frequency point in the first high frequency input signal
- the second preset frequency point is higher than the first preset frequency point
- the second preset frequency point may be a frequency point in the range of 1500-2500 Hz, for example, the second preset frequency point may be 1500, 1750, 2000, 2250, or 2500 Hz and so on.
- the signal at the second preset frequency point may be included in the first intermediate frequency input signal, or may be included in the second high frequency input signal, or may be included in both the first intermediate frequency input signal and the second high frequency input signal.
- the frequency input signal is not limited in this embodiment of the present application.
- the electronic device can divide the input signal into signals of two frequency bands, that is, the above-mentioned low-frequency input signal and high-frequency input signal, and further divide the high-frequency input signal into an intermediate-frequency input signal and new high-frequency input signals.
- the electronic device may also directly divide the frequency of the input signal into signals of three frequency bands, that is, a low-frequency signal, an intermediate-frequency signal, and a high-frequency signal. That is to say, when the electronic device starts to process the input signal, the electronic device directly divides the frequency of the input signal, and divides the input signal into the above-mentioned first low-frequency input signal, first intermediate-frequency input signal and second high-frequency input signal.
- Step 406 the electronic device performs transient detection on the first intermediate frequency input signal, so as to determine whether the first intermediate frequency input signal is a transient signal.
- Step 407 If the first intermediate frequency input signal is a transient signal, perform signal envelope modulation on the first intermediate frequency input signal to obtain a second intermediate frequency input signal.
- the starting voltage of the second intermediate frequency input signal is greater than the starting voltage of the first intermediate frequency input signal
- the loudness of the second intermediate frequency input signal is greater than the loudness of the first intermediate frequency input signal
- step 406 and step 407 The method of performing transient detection and envelope modulation on the first intermediate frequency input signal in the above step 406 and step 407 is similar to the method of performing transient detection and envelope modulation on the first low frequency input signal in the above embodiment, therefore, for the step For related descriptions of step 406 and step 407, reference may be made to the detailed description of step 402 and step 403 in the foregoing embodiments, and details are not repeated here. It should be noted that the difference between the two is that some parameters set during transient detection and envelope modulation may be different.
- the method for the electronic device to determine the output signal of the speaker specifically includes step 408, that is, the above step 404 is replaced with step 408.
- Step 408 the pair of electronic devices determines the output signal of the speaker according to the second low-frequency input signal, the second intermediate-frequency input signal, and the second high-frequency input signal.
- the electronic device may sum the second low-frequency input signal, the second intermediate-frequency input signal, and the second high-frequency input signal to obtain the output signal of the speaker.
- Fig. 9 shows a framework of another loudspeaker system provided by an embodiment of the present application.
- the speaker system includes a frequency division unit, a first transient detection unit, a first envelope modulation unit, a second transient detection unit, a second envelope modulation unit and an output unit, wherein the frequency division unit It is used to divide the frequency of the input signal to obtain the low frequency input signal, the intermediate frequency input signal and the high frequency input signal; the first transient detection unit is used for transient detection of the low frequency input signal, and the first envelope modulation unit is used for When the low-frequency input signal is a transient signal, envelope modulation is carried out to the low-frequency input signal; the second transient detection unit is used to perform transient detection (such as step 406) to the intermediate frequency input signal, and the second envelope modulation unit uses In the case that the intermediate frequency input signal is a transient signal, envelope modulation is performed on the intermediate frequency input signal (for example, step 407); the output unit is used to convert the high frequency input signal, the
- transient detection is also performed on the intermediate frequency signal in the input signal
- envelope modulation is performed on the transient signal to enhance the intermediate frequency signal, so as to generally improve the sound quality of the speaker.
- the above-mentioned first low-frequency input signal is a transient signal
- the speaker of the electronic device is a smaller speaker whose low-frequency replay capability is weak.
- the method for improving the sound quality of the loudspeaker provided by the embodiment of the present application further includes steps 409 and 410 .
- Step 409 the electronic device generates a low-frequency auxiliary signal.
- the function of the low-frequency auxiliary signal is to help enhance the loudness of the first low-frequency input signal and optimize the dynamic range of the first low-frequency input signal.
- the specific method for generating the low-frequency auxiliary signal includes:
- the first auxiliary signal is generated. There are multiple methods for generating the first auxiliary signal.
- the first auxiliary signal satisfies:
- signal_h represents the first auxiliary signal
- A represents the signal amplitude influence factor
- f is the center frequency of the loudspeaker.
- the value range of A can be 10 ⁇ 50, and the specific value of A can be estimated by the system or set by the user, for example, it can be 10, 25, or 50, etc.; the value range of f can be 50 ⁇ 150Hz, the specific value
- the value of can be estimated by the system or set by the user, for example, it can be 50Hz, 100Hz, or 150Hz and so on.
- high-pass filtering is performed on the first auxiliary signal to obtain a low-frequency auxiliary signal.
- the electronic device performs high-pass filtering on the first auxiliary signal to filter out some signals with too low frequencies in the first auxiliary signal to obtain a low-frequency auxiliary signal.
- the high-pass filter The filtering frequency may be about 1.5 times the above-mentioned central frequency f.
- Step 410 the electronic device adds a low-frequency auxiliary signal to the first low-frequency input signal, so as to obtain a first auxiliary enhanced signal.
- adding the low-frequency auxiliary signal to the first low-frequency input signal refers to summing the first low-frequency input signal and the low-frequency auxiliary signal.
- the electronic device may add a certain proportion of low-frequency auxiliary signals to the first low-frequency input signal according to the energy of the first low-frequency input signal. For example, if the energy of the first low-frequency input signal is low, the first low-frequency Add a times the low-frequency auxiliary signal to the input signal, 0 ⁇ a ⁇ 1.
- step 403 the above-mentioned signal envelope adjustment is performed on the first low-frequency input signal to obtain the second low-frequency input signal (that is, step 403) is specifically implemented through step 4031:
- Step 4031 Perform signal envelope modulation on the first auxiliary enhanced signal to obtain a second low-frequency input signal.
- FIG. 11 is a schematic diagram of another loudspeaker system frame provided by an embodiment of the present application.
- the loudspeaker system further includes an auxiliary enhancement unit on the basis of the loudspeaker system shown in FIG. 9 .
- the auxiliary enhancement unit executes the process from step 409 to step 410 to perform auxiliary enhancement on the first low-frequency input signal.
- the above-mentioned first low-frequency input signal is a transient signal.
- the method may also include step 411 .
- Step 411 the electronic device performs phase compensation on the first low-frequency input signal to obtain a first phase compensation signal.
- the first phase compensation signal is the first low-frequency input signal after phase compensation.
- the phase of the first low-frequency input signal may be affected, resulting in low-frequency
- the phase of the input signal deviates and is no longer a linear phase. Therefore, necessary linear phase compensation is performed on the first low-frequency input signal to correct the phase of the first low-frequency input signal to a linear phase, thereby ensuring low-frequency sound quality.
- the electronic device calculates the signal (which may be an electrical signal or an acoustic signal) after the test signal is processed by the speaker system, and then generates a phase compensation filter according to the calculation result of the test signal and the preset standard signal (specifically, generates the phase compensation filter coefficient), and then use the phase compensation filter to process the first low-frequency input signal to realize phase compensation for the first low-frequency input signal.
- the signal which may be an electrical signal or an acoustic signal
- the preset standard signal specifically, generates the phase compensation filter coefficient
- step 403 the above-mentioned signal envelope adjustment is performed on the first low-frequency input signal to obtain the second low-frequency input signal (that is, step 403) is specifically implemented through step 4032:
- Step 4032 Perform signal envelope modulation on the first phase compensation signal to obtain a second low-frequency input signal.
- FIG. 13 is a schematic diagram of another loudspeaker system frame provided by an embodiment of the present application.
- the loudspeaker system further includes a phase compensation unit on the basis of the loudspeaker system shown in FIG. 11 .
- the phase compensation unit executes the process of step 411 to perform linear phase compensation on the first low-frequency input signal.
- the electronic device may perform the above-mentioned step 411 before performing envelope modulation on the first low-frequency input signal (step 403), that is, the electronic device performs auxiliary enhanced first low-frequency input signal phase compensation.
- the electronic device may execute Step 410 is specifically determined according to the actual situation, which is not limited in this embodiment of the present application.
- the electronic device has completed the transient enhancement processing of the input signal of the speaker, which can improve the low-frequency loudness of the speaker, adjust the dynamic change of the speaker, and improve the sound quality of the speaker.
- the electronic device may also process the initial signal to be played by the speaker to obtain an input signal for transient enhancement processing.
- the method for improving the sound quality of a speaker provided by the embodiment of the present application further includes steps 1401 to 1402 .
- Step 1401. The electronic device equalizes the first signal to obtain a second signal.
- the first signal is an initial signal to be played input to the speaker.
- the initial signal to be played by the speaker may be an audio signal collected by the electronic device, or may be an audio signal received by the electronic device from other devices, which is not specifically limited in this embodiment of the present application.
- the above specific method of equalizing the first signal may be: using a biquard filter to equalize the first signal, which can improve the low-frequency frequency response of the speaker.
- a biquard filter to equalize the first signal, which can improve the low-frequency frequency response of the speaker.
- Step 1402 the electronic device processes the second signal by using a bass enhancement algorithm to obtain an input signal of the loudspeaker.
- using the bass enhancement algorithm to process the second signal specifically uses a low-frequency shelving filter to filter the second signal to enhance the low-frequency loudness of the second signal (also called low-frequency sense of volume).
- the above step 1402 includes step 1402a to step 1402b.
- Step 1402a the electronic device determines the gain of the low-frequency shelving filter according to the energy of the low-frequency signal in the second signal.
- the low frequency shelving filter is used to control the loudness of low frequency signals in the second signal.
- the electronic device performs low-pass filtering on the second signal to obtain the low-frequency signal in the second signal; then, the electronic device calculates the The ratio of the energy of each point (value) to the total energy of the second signal is to calculate the energy ratio of the low-frequency signal.
- the gain of the low-frequency shelf filter is determined according to the energy proportion of the low-frequency signal. Specifically, the basic gain of the low-frequency shelving filter is determined first, and then the basic gain is smoothed to obtain the gain of the low-frequency shelving filter.
- the smoothing formula for the gain of the low frequency shelving filter is:
- G_current G s *a+(1-a)*G_before
- G_current represents the gain of the low-frequency shelf filter corresponding to the current frame
- a is the smoothing coefficient of the filter gain
- G_before is the filter gain of the previous frame of the current frame
- G s represents the basic gain of the low-frequency shelf filter.
- the method for determining the basic gain of the above-mentioned low-frequency shelf filter includes:
- G s target
- targetG is a preset gain
- G s targetG-S*(ratio-rth1), where S is the gain smoothing coefficient, ratio is the energy proportion of the low-frequency signal, and rth1 is first threshold.
- G s gth*targetG, where gth is a gain coefficient.
- Step 1402b the electronic device uses a low-frequency shelving filter to filter the second signal to obtain an input signal of the speaker.
- FIG. 16 is a schematic framework diagram of another speaker system provided by an embodiment of the present application.
- the speaker system includes a determination unit, a gain update unit, and a filter unit, and the determination unit is used to determine the energy of the low-frequency signal in the second signal.
- the gain update unit is used to determine the gain of the low-frequency shelf filter according to the energy ratio of the low-frequency signal in the second signal
- the filter unit is used to filter the second signal
- the filtered signal is used as a transient enhancement process
- the input signal of that is, the input signal of the loudspeaker in step 401 above).
- the loudness of the low-frequency signal with different energies is differentiated to different degrees, that is, different gains are set for the low-frequency signal according to the energy of the low-frequency signal.
- step 1402 according to the characteristics of the energy of the low-frequency signal of the second signal, dynamically and adaptively increase the loudness of the low-frequency signal in the second signal, so that the clarity of the low-frequency signal can be improved.
- the electronic device may further process the output signal to further improve the bass sound quality of the small speaker.
- the output signal obtained after the processing in step 404 is collectively referred to as the first output signal.
- the method for improving the sound quality of the speaker may further include: performing virtual bass processing on the first output signal to obtain a virtual bass output signal.
- virtual bass processing is a method based on psychoacoustics to improve bass sound effects. Measured from the perspective of psychoacoustics, the psychologically perceived low-frequency loudness of the output signal (ie, the virtual bass output signal) processed by the virtual bass is Greater than the psychologically perceived low frequency loudness of the first output signal.
- the psycho-perceived low-frequency loudness may be determined according to a psycho-acoustic model.
- the method for performing virtual bass processing on the first output signal to obtain virtual bass output may include steps 1701 to 1705 .
- Step 1701. The electronic device performs frequency division processing on the first output signal to obtain a first low-frequency output signal and a first high-frequency output signal.
- the first low-frequency output signal includes a signal of the first output signal lower than the third preset frequency point
- the first high-frequency output signal includes a signal of the first output signal higher than the third preset frequency point
- the third preset frequency point may be a frequency point in the range of 100-400 Hz, for example, the third preset frequency point may be 100, 150, 250, 300 or 400 Hz and so on.
- the signal at the third preset frequency point can be included in the first low-frequency output signal, can also be included in the first high-frequency output signal, or can also be included in both the first low-frequency output signal and the first
- the high-frequency output signal is not limited in this embodiment of the present application.
- Step 1702 the electronic device generates a harmonic signal of the first low-frequency output signal according to the first low-frequency output signal.
- Signal_out cos(Coeff d ⁇ Signal_in)-b f ⁇ Signal_in
- Coeff d a f ⁇ (0.5 ⁇ -0.8)+0.8
- a f and b f are input coefficients, 0 ⁇ a f ⁇ 1, 0 ⁇ b f ⁇ 1, and Signal_in is the first low-frequency output signal.
- a f is used to adjust the ratio of the amplitude of the harmonic signal of different frequencies
- b f is used to adjust the total energy of the harmonic signal and the first low-frequency output signal (the first low-frequency output signal can also be called the fundamental wave signal) The ratio between the total energy.
- the number of harmonic signals generating the first low-frequency output signal and the frequency of the harmonics can be determined according to actual needs, for example, three harmonics of the first low-frequency output signal can be generated, and the frequencies of the harmonics are 3f, 5f, 7f, f are the original frequencies of the first low-frequency output signal.
- Step 1703. The electronic device mixes the harmonic signal of the first low-frequency output signal with the first low-frequency output signal to obtain a first mixed signal.
- the harmonic signal of the first low-frequency output signal and the first low-frequency output signal may be mixed according to a certain ratio.
- the electronic device can generate a harmonic signal according to the normalized first low-frequency output signal, and then combine the generated harmonic signal with the normalized first The low frequency output signal is mixed.
- Step 1704 the electronic device performs phase synchronization processing on the first mixed signal and the first high-frequency output signal to obtain the second mixed signal and the second high-frequency output signal, and the phase change of the second mixed signal is the same as the second highest The amount of change in the phase of the frequency output signal is equal.
- Step 1705 the electronic device obtains a virtual bass output signal according to the second mixed signal and the second high frequency output signal.
- the electronic device may perform band-pass filtering on the first mixed signal to filter out possible high-frequency signals and low-frequency signals in the first mixed signal. clutter components, and detect the maximum amplitude of the filtered first mixed signal, and then restore the first mixed signal according to the maximum amplitude (that is, the inverse process of the above-mentioned normalization), and obtain the restored first mixed signal. Further, the electronic device performs low-pass filtering on the restored first mixed signal to filter high-frequency noise to obtain the denoised first mixed signal, and finally uses an all-pass filter to filter the denoised first mixed signal and the first mixed signal.
- the high-frequency output signal is phase-synchronized to obtain a virtual bass output signal.
- Fig. 18 shows a frame of a loudspeaker system provided by an embodiment of the present application.
- the speaker system includes a frequency division unit, a harmonic generation unit, a signal mixing unit, and a phase synchronization unit.
- the frequency division unit divides the frequency of the first output signal
- the harmonic generation unit generates the frequency-divided first
- the signal mixing unit mixes the harmonic signal with the first low-frequency output signal to obtain a first mixed signal
- the phase synchronization unit performs phase synchronization on the first mixed signal and the first high-frequency signal to obtain A second mixed signal and a second high frequency output signal are obtained, and a virtual bass output signal is obtained according to the second mixed signal and the second high frequency output signal.
- the electronic device may continue to process the virtual bass output signal (displacement control), so as to protect the diaphragm displacement of the speaker from exceeding The displacement protection threshold of the speaker.
- the virtual bass output signal is collectively referred to as the second output signal.
- the method for improving the sound quality of the speaker provided by the embodiment of the present application may further include steps 1901 to 1903 .
- Step 1901 the electronic device acquires a first displacement prediction model including one or more correction coefficients, where the correction coefficients are used to control the output of the first displacement prediction model.
- the first displacement prediction model is used to simulate the performance of the speaker to predict the displacement of the diaphragm of the speaker, and the one or more correction coefficients are used to control the output of the first displacement prediction model.
- the first displacement prediction model may satisfy the following expression:
- f s is the sampling rate
- ⁇ , ⁇ , ⁇ , and ⁇ are correction coefficients
- ⁇ can be used to adjust the low-frequency output of the displacement prediction model
- ⁇ is used to adjust the output of the frequency range of the displacement prediction model including the resonance frequency of the loudspeaker
- ⁇ It is used to adjust the intermediate frequency output of the displacement prediction model
- ⁇ is used to adjust the full frequency band output of the displacement prediction model.
- spk.Bl is the magnetic force coefficient of the speaker in the initial parameters
- spk.Kms is the stiffness coefficient of the speaker in the initial parameters
- spk.Rms is the power of the speaker in the initial parameters.
- ax, bx are the coefficients of the generated IIR filter.
- the expression of the first displacement prediction model, the number of correction coefficients included in the first displacement prediction model, and the content controlled by each correction coefficient can be configured according to actual needs. be specifically limited.
- the content of the first displacement prediction model is different, which may include but not limited to the following situations:
- the correction factor in the initial model can be 1.
- the displacement prediction model may also include initial parameters, which are parameters related to loudspeaker hardware characteristics in the displacement prediction model.
- initial parameters are parameters related to loudspeaker hardware characteristics in the displacement prediction model.
- it may further include: acquiring an impedance curve of the loudspeaker, and determining initial parameters of the shift prediction model according to the impedance curve.
- the initial parameters are parameters related to the speaker hardware characteristics in the displacement prediction model.
- the initial parameters may be the magnetic coefficient spk.Bl of the loudspeaker, the stiffness coefficient spk.Kms of the loudspeaker, and the power spk.Rms of the loudspeaker.
- the impedance curve of the loudspeaker is obtained, and the initial parameters of the shift prediction model are determined according to the impedance curve, including: inputting a preset input signal into the loudspeaker, and collecting the voltage and current of the loudspeaker; determining the impedance curve of the loudspeaker according to the voltage and current; The impedance curve is determined by curve fitting or parameter identification to determine the initial parameters of the shift prediction model.
- the preset input signal may be a specific noise signal or other signals, which is not limited.
- the voltage and the corresponding current signal of the loudspeaker within a period of time may be collected, Fourier transform is performed, and the impedance curve is obtained by dividing the voltage spectrum by the current spectrum.
- the first displacement prediction model may be the displacement prediction model stored in the electronic device for predicting the displacement of the speaker diaphragm when step 1901 is performed.
- the first displacement prediction model configured in the electronic device may be a displacement prediction model obtained after correction in case 1 or case 2.
- Step 1902 the electronic device adjusts at least one correction coefficient in the first displacement prediction model to obtain a second displacement prediction model, the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm of the loudspeaker, less than the absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement of the diaphragm of the loudspeaker.
- the actual displacement of the diaphragm of the speaker is an actual measured value of the moving distance of the diaphragm of the speaker relative to the initial position.
- the second displacement prediction model is obtained by adjusting the correction coefficient of the first displacement prediction model, and the expression of the second displacement prediction model is the same as the expression of the first displacement prediction model.
- the actual displacement of the loudspeaker can be obtained through measurement, and then the correction coefficient in the first displacement prediction model is repeatedly adjusted according to the correction coefficient adjustment rule to obtain the second displacement prediction model.
- a laser may be used to measure the actual displacement of the diaphragm of the speaker, or other methods may be used to measure the actual displacement of the diaphragm of the speaker, which is not limited in this embodiment of the present application.
- correction coefficient adjustment rule may be configured according to actual requirements, which is not specifically limited in this embodiment of the present application.
- the correction coefficient adjustment rule may be: configure an adjustment step for each correction coefficient, adjust each correction coefficient according to the adjustment step in turn according to the preset correction coefficient adjustment order, until the second displacement prediction model is obtained.
- the correction coefficient adjustment rule may be: compare the predicted displacement output by the first displacement prediction model with the actual displacement of the diaphragm when the speaker plays the input signal input to the first displacement prediction model, and find the predicted displacement according to the size relationship between the two. A corresponding relationship is established, and the content of the adjusted correction coefficient and the adjusted value are obtained.
- the predicted corresponding relationship stores different size relationships between predicted displacements and actual displacements, and correction coefficients and adjustment values that need to be adjusted corresponding to different size relationships.
- Step 1903 the electronic device controls the gain of the second output signal according to the protection threshold of the speaker's displacement and the predicted displacement output by the second displacement prediction model, so that the displacement of the diaphragm when the speaker plays the second output signal is less than or equal to the protection threshold of displacement.
- the displacement protection threshold of the speaker is the maximum displacement of the diaphragm of the speaker.
- the electronic device when the predicted displacement is greater than or equal to the displacement protection threshold, the electronic device attenuates the second output signal as a whole, so that the diaphragm displacement of the speaker playing the second output signal is less than or equal to the displacement protection threshold of the speaker. threshold.
- the displacement of the loudspeaker when the predicted displacement is greater than or equal to the displacement protection threshold, the low-frequency signal in the second output signal can be suppressed by means of a high-pass filter.
- the middle and high frequency signals are used to control the gain of the second output signal of the loudspeaker to reduce the displacement of the loudspeaker while ensuring the loudness of the loudspeaker.
- the electronic device determines the frequency parameter of the high-pass filter according to the predicted displacement output by the second displacement prediction model, and then uses the high-pass filter to filter the above-mentioned second output signal, so that the displacement of the diaphragm of the speaker playing the second output signal is less than or Equal to the displacement protection threshold of the loudspeaker.
- the specific method for the electronic device to determine the frequency parameter of the high-pass filter according to the predicted displacement output by the second displacement prediction model is: the electronic device uses n sets of frequency parameters to filter the predicted displacement output by the second displacement prediction model; Select two groups of frequency parameters whose filter output value is located on both sides of the displacement protection threshold and whose absolute value of the difference with the displacement protection threshold is the smallest; in the frequency parameter interval including the two groups of frequency parameters, select the first frequency parameter as the high-pass filter The frequency parameter of the device.
- the pass bands of n groups of frequency parameters are different; n is greater than 2.
- the specific values of the n groups of frequency parameters may be configured according to actual application experience, which will not be repeated in this embodiment of the present application.
- the first frequency parameter is selected, which may be the passband of the high-pass filter indicated by the first frequency parameter, and the high-pass filter indicated by the frequency parameters of the two groups of frequency parameters. between the channels of the device.
- selecting the first frequency parameter in the frequency parameter interval including the two groups of frequency parameters may be implemented as: selecting the two groups of frequency parameters in the frequency parameter interval including the two groups of frequency parameters The intermediate value of is used as the first frequency parameter.
- the middle value of the two groups of frequency parameters is selected as the first frequency parameter, which can be specifically implemented as: selecting the average value of the center frequencies of the two groups of frequency parameters , as the center frequency of the first frequency parameter, the first frequency parameter is obtained.
- the average value of the starting frequencies of the two groups of frequency parameters is selected as the starting frequency of the first frequency parameter to obtain the first frequency parameter.
- the average value of the cutoff frequency of the two groups of frequency parameters is selected as the cutoff frequency of the first frequency parameter to obtain the first frequency parameter.
- selecting the first frequency parameter within the frequency parameter interval including the two groups of frequency parameters can be implemented as: performing interpolation between the two groups of frequency parameters to obtain multiple groups of frequency parameters to be selected ; Select the candidate frequency parameter with the smallest absolute value of the difference between the filter output value of the predicted displacement output by the second displacement prediction model and the displacement protection threshold among multiple groups of frequency parameters to be selected as the first frequency parameter.
- the interpolation between the two groups of frequency parameters may be implemented as: interpolating the center frequencies of the two groups of frequency parameters, or, interpolating the starting frequencies of the two groups of frequency parameters, or, interpolating the two groups of frequency parameters The cutoff frequency for parameter interpolation.
- a preset number of values may be interpolated, or interpolated according to a preset frequency interval, or may be interpolated in other ways. This is not specifically limited.
- the interpolation when performing interpolation between the two groups of frequency parameters, can be repeated until the difference between the filtered output value of the predicted displacement output by the second displacement prediction model and the displacement protection threshold is equal to The candidate frequency parameter of is used as the first frequency parameter.
- the above-mentioned second displacement prediction model more truly reflects the characteristics of the loudspeaker, ensures that the predicted displacement of the output is more accurate, and then can carry out more accurate displacement protection, which also realizes the protection of the displacement of the speaker diaphragm. , to maximize the hardware potential of the speaker and increase the loudness of the speaker.
- the electronic device can also correct the above-mentioned high-pass filter for filtering the second output signal according to the temperature.
- the frequency parameter ensures that the control of the second output signal conforms to the current characteristics of the speaker, thereby ensuring the improvement of the loudness of the speaker.
- the electronic device determines the real-time temperature of the speaker according to the impedance of the speaker.
- the real-time temperature T of the speaker can satisfy the following expression: ⁇ is the temperature rise coefficient, Re is the impedance of the speaker, Re 0 is the impedance of the speaker at room temperature, and T 0 is the preset room temperature. ⁇ and Re are the inherent parameters of the speaker.
- the electronic device determines the frequency correction coefficient according to the real-time temperature of the speaker.
- the frequency correction coefficient Coeff satisfies the following expression:
- the frequency correction coefficient Coeff satisfies the following expression.
- the parameters in the expression are preset values.
- T hot is the temperature threshold of the hot state
- T cold is the temperature threshold of the cold state
- Coeff 0 is the initial frequency correction coefficient.
- the embodiment of the present application does not limit the specific value of the preset value.
- the frequency correction coefficient Coeff is a frequency offset, or a passband offset.
- the electronic device corrects the filtered frequency parameter according to the frequency correction coefficient, and filters the second output signal with the corrected frequency parameter.
- Correcting the filtered frequency parameter according to the frequency correction coefficient refers to shifting the value of the frequency correction coefficient to the channel of the high-pass filter indicated by the filtered frequency parameter to obtain the corrected frequency parameter.
- Fig. 20 shows a framework of a loudspeaker system provided by an embodiment of the present application.
- the loudspeaker system includes a displacement prediction model (the second displacement prediction model after adjusting the correction parameters), a gain control unit, a determination unit, a power amplifier unit (amplifier), a temperature calculation unit and a temperature correction unit.
- the second output signal is input to the displacement prediction model, and the predicted displacement is output.
- the determination unit determines the frequency parameter of the high-pass filter, and the gain control unit controls the gain of the second output signal and then inputs it into the power amplifier unit; after the power amplifier unit converts the digital signal into an analog signal, input The speaker plays.
- the temperature calculation unit calculates the real-time temperature of the loudspeaker, the temperature correction unit determines the frequency correction coefficient and inputs it into the gain control unit, and the gain control unit corrects the filtered frequency parameters, and the corrected frequency parameters are used to control the gain of the second output signal.
- the electronic device performs gain control on the second output signal of the speaker by performing the above steps 1901 to 1903 to protect the displacement of the speaker.
- the signal continues to be processed to reduce signal distortion, thereby further improving the sound quality of the speaker.
- the output signal obtained after the processing in step 1903 is collectively referred to as the third output signal.
- the method for improving the sound quality of a speaker may further include steps 2101 to 2102 .
- Step 2101 the electronic device adjusts the nonlinear parameters of the first nonlinear compensation model pre-configured in the speaker according to the coil temperature of the speaker, so as to obtain the second nonlinear compensation model.
- the nonlinear compensation model of the loudspeaker corresponds to multiple nonlinear parameters, and determining the nonlinear compensation model of the loudspeaker means obtaining the nonlinear parameters of the loudspeaker.
- the speaker's nonlinear parameter includes at least one of the speaker's force factor BL, mechanical stiffness Kms, inductance Le, and damping Rm.
- the nonlinear parameters of the nonlinear compensation model preconfigured in the loudspeaker are called first nonlinear parameters, and the obtained nonlinear parameters of the second nonlinear compensation model of the loudspeaker are called second nonlinear parameters.
- the coil temperature of the speaker can be determined according to the DC resistance of the speaker, and the relationship between the coil temperature of the speaker (also referred to as the voice coil temperature) and the DC resistance of the coil of the speaker is as follows:
- T is the coil temperature of the speaker (same as the real-time temperature of the above-mentioned speaker)
- R is the DC resistance of the speaker coil
- ⁇ is the temperature rise coefficient
- R0 is the DC resistance of the coil corresponding to the calibration temperature, usually at 25 degrees Celsius Calibrate for voice coil temperature.
- the method for the electronic device to adjust the nonlinear parameters of the pre-configured nonlinear compensation model in the speaker according to the coil temperature of the speaker specifically includes: adjusting the pre-configured nonlinear parameters (that is, the first nonlinear parameter) according to the coil temperature of the speaker. parameter) to interpolate to obtain the second nonlinear parameter of the loudspeaker.
- the characteristic curve of the Kms is a curve reflecting the relationship between the stiffness coefficient of the loudspeaker and the displacement of the loudspeaker, for example, at 5 degrees Celsius
- 10 characteristic curves of the Kms from 10 degrees Celsius to 55 degrees Celsius are obtained, and the data of the 10 characteristic curves are stored.
- the characteristic curve of the nonlinear parameter Kms(x) is linearly interpolated to obtain the target characteristic curve (the target characteristic curve can be understood as the third nonlinear parameter Estimated result of the characteristic curve).
- the temperature threshold 2 is greater than the temperature threshold 1, and the third nonlinear parameter can be understood as a nonlinear parameter corresponding to the current coil temperature of the loudspeaker.
- the temperature of the coil of the loudspeaker is marked as T
- the temperature threshold 1 is marked as T min
- the temperature threshold 2 is marked as T max , then:
- T ⁇ T min take the characteristic curve corresponding to T min as the target characteristic curve.
- T min ⁇ T ⁇ T max perform linear interpolation on the characteristic curve corresponding to T min and the characteristic curve corresponding to T max according to the coil temperature of the loudspeaker to generate the target characteristic curve.
- the coefficient a 1 corresponds to the first-order coefficient of the nonlinear parameter Kms
- the coefficient a 2 corresponds to the second-order coefficient of the nonlinear parameter Kms
- the coefficient a 2 corresponds to the third-order coefficient of the nonlinear parameter Kms
- the coefficient a 4 corresponds to the nonlinear parameter Kms fourth-order coefficients.
- the characteristic curve of the nonlinear parameter may be data in tabular form, or data or files in other forms, which is not limited in this embodiment of the present application.
- the nonlinear parameters of the speaker may change in real time.
- the nonlinear parameters change with the change of the voice coil temperature of the speaker.
- the first nonlinear parameter of the speaker according to the current temperature of the speaker, the first nonlinear parameter of the speaker By interpolating the parameters, the nonlinear parameters of the loudspeaker can be adjusted in real time to obtain the second nonlinear parameters, and the accuracy of the second nonlinear parameters is relatively high.
- nonlinear parameters of the speaker may also change with the change of the displacement of the speaker.
- a similar linear interpolation method can be used to determine the displacement of the speaker according to the DC resistance of the speaker, and then according to the displacement of the speaker Displacement, the first nonlinear parameter of the speaker is interpolated to obtain the second nonlinear parameter of the speaker, so as to obtain the nonlinear model of the speaker.
- Step 2102 the electronic device uses the second nonlinear model to perform signal compensation on the output signal.
- the method for improving the sound quality of the speaker provided in the embodiment of the present application further includes: filtering the compensated third output signal.
- the notch filter can be used to filter the compensated third output signal, and the velocity of the speaker diaphragm near the resonance frequency can be adjusted, thereby reducing the distortion of the output signal and effectively improving the sound quality of the speaker.
- a series of processing can be performed on the audio signal to be played by the speaker, such as equalization processing, bass enhancement, transient enhancement, virtual bass processing, displacement control, and nonlinear compensation in sequence.
- equalization processing bass enhancement, transient enhancement, virtual bass processing, displacement control, and nonlinear compensation in sequence.
- bass enhancement transient enhancement
- virtual bass processing displacement control
- nonlinear compensation nonlinear compensation
- FIG. 22 shows a schematic framework diagram of a speaker system provided by an embodiment of the present application.
- the speaker system may include an equalization processing module, a bass enhancement module, a transient enhancement module, a virtual bass module, The displacement control module and the nonlinear compensation module, the equalization processing module is used to perform the above step 1401, the bass enhancement module is used to perform the above step 1402, the transient enhancement module is used to perform the above steps 401 to 404, and the virtual bass module is used to perform the above steps From step 1701 to step 1705, the displacement control module is used to execute steps 1901 to 1903, and the nonlinear compensation module is used to execute steps 2101 to 2102 above.
- the embodiment of the present application provides an electronic device, which can divide the electronic device into functional modules according to the above method example, for example, each functional module can be divided corresponding to each function, or two or more functions can be integrated in a processing module.
- the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
- FIG. 23 shows a possible structural schematic diagram of the electronic device involved in the above embodiment.
- the electronic device includes a first acquisition module 2301 , a first determination module 2302 , an envelope modulation module 2303 and a second determination module 2304 .
- the first acquisition module 2301 is configured to divide the frequency of the input signal of the speaker to obtain the first low-frequency input signal and the first high-frequency input signal, the input signal of the speaker is a time-domain signal, and the first low-frequency input signal includes the input signal For signals lower than the first preset frequency point, the first high-frequency input signal includes a signal higher than the first preset frequency point in the input signal, for example, perform step 401 in the above method embodiment.
- the first determining module 2032 is configured to perform transient detection on the first low-frequency input signal to determine whether the first low-frequency input signal is a transient signal, for example, perform step 402 (including step 4021 to step 4023) in the above method embodiment .
- the envelope modulation module 2303 is used to perform signal envelope modulation on the first low-frequency input signal when the first low-frequency input signal is a transient signal, so as to obtain a second low-frequency input signal; start-up of the second low-frequency input signal
- the voltage is greater than the start-up voltage of the first low-frequency input signal, and the loudness of the second low-frequency input signal is greater than the loudness of the first low-frequency input signal.
- step 403 in the above method embodiment is performed.
- the second determining module 2304 is configured to determine the output signal of the loudspeaker according to the second low-frequency input signal and the first high-frequency input signal, for example, execute step 404 in the above method embodiment.
- the above-mentioned first obtaining module 2301 is further configured to divide the frequency of the first high-frequency input signal of the speaker to obtain the first intermediate-frequency input signal and the second high-frequency input signal, where the first intermediate-frequency input signal includes the first Signals in the high-frequency input signal that are lower than the second preset frequency point, the second high-frequency input signal includes signals that are higher than the second preset frequency point in the first high-frequency input signal, and the second preset frequency point is higher than the second preset frequency point A preset frequency point, for example, execute step 405 in the above method embodiment.
- the first determining module 2302 is further configured to perform transient detection on the first intermediate frequency input signal to determine whether the first intermediate frequency input signal is a transient signal, for example, execute step 406 in the above method embodiment.
- the envelope modulation module 2303 is also used to perform signal envelope modulation on the first intermediate frequency input signal when the first intermediate frequency input signal is a transient signal, so as to obtain the second intermediate frequency input signal; the start-up of the second intermediate frequency input signal
- the voltage is greater than the start-up voltage of the first IF input signal, and the loudness of the second IF input signal is greater than the loudness of the first IF input signal.
- step 407 in the above method embodiment is performed.
- the second determining module 2304 is specifically configured to obtain the output signal of the speaker according to the second low-frequency input signal, the second intermediate-frequency input signal and the second high-frequency input signal, for example, perform step 408 in the above method embodiment.
- the electronic device provided in this embodiment of the present application further includes a generation module 2305 and a second acquisition module 2306 .
- the generating module 2305 is configured to generate a low-frequency auxiliary signal, for example, execute step 409 in the above method embodiment.
- the second obtaining module 2306 is configured to add a low-frequency auxiliary signal to the first low-frequency input signal to obtain a first auxiliary enhanced signal, for example, perform step 410 in the above method embodiment.
- the envelope modulation module 2303 is specifically configured to perform signal envelope modulation on the first auxiliary enhanced signal to obtain the second low-frequency input signal, for example, perform step 4031 in the above method embodiment.
- the electronic device provided in this embodiment of the present application further includes a phase compensation module 2307, which is configured to perform phase compensation on the first low-frequency input signal to obtain a first phase compensation signal, for example, to execute the above method embodiment Step 411 in .
- the envelope modulation module 2303 is specifically configured to perform signal envelope modulation on the first phase compensation signal to obtain a second low-frequency input signal, for example, perform step 4032 in the above method embodiment.
- the electronic device provided in this embodiment of the present application further includes an equalization processing module 2308 and a bass enhancement module 2309 .
- the equalization processing module 2308 is configured to perform equalization processing on the first signal to obtain a second signal.
- the first signal is an initial signal to be played input to the speaker, for example, performing step 1401 in the above method embodiment.
- the bass enhancement module 2309 is configured to process the second signal with a bass enhancement algorithm to obtain the input signal of the speaker, for example, execute step 1402 (including step 1402a to step 1402b) in the above method embodiment.
- the electronic device provided in the embodiment of the present application further includes a third acquisition module 2310 , a first adjustment module 2311 and a control module 2312 .
- the third acquisition module 2310 is used to acquire a first displacement prediction model including one or more correction coefficients
- the first displacement prediction model is used to simulate the performance of the speaker to predict the displacement of the diaphragm of the speaker
- the one or more correction coefficients are used for Control the output of the first displacement prediction model, for example, execute step 1901 in the above method embodiment.
- the first adjustment module 2311 is used to adjust at least one correction coefficient in the first displacement prediction model to obtain a second displacement prediction model; the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm is less than The absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement of the diaphragm of the loudspeaker; the actual displacement of the diaphragm of the loudspeaker is the actual measured value of the moving distance of the diaphragm of the loudspeaker relative to the initial position, such as performing the above method Step 1902 in an embodiment.
- the control module 2312 is used to control the gain of the output signal according to the displacement protection threshold of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the diaphragm displacement when the loudspeaker plays the output signal is less than or equal to the displacement protection threshold;
- the displacement protection threshold is For the maximum displacement of the diaphragm of the loudspeaker, for example, perform step 1903 in the above method embodiment.
- the electronic device provided in the embodiment of the present application further includes a virtual bass processing module 2313, and the virtual bass processing module 2313 is configured to perform virtual bass processing on the output signal of the speaker to obtain a virtual bass output signal, and the virtual bass output signal
- the psychologically perceived low-frequency loudness of the loudspeaker is greater than the psychologically perceived low-frequency loudness of the output signal of the speaker, for example, performing steps 1701 to 1705 in the above method embodiment.
- the electronic device provided in this embodiment of the present application further includes a second adjustment module 2314 and a signal compensation module 2315 .
- the second adjustment module 2314 is used to adjust the nonlinear parameters of the first nonlinear compensation model pre-configured in the speaker according to the coil temperature of the speaker to obtain the second nonlinear compensation model, for example, perform step 2101 in the above method embodiment.
- the signal compensation module 2315 is configured to use the second nonlinear compensation model to perform signal compensation on the output signal, for example, perform step 2102 in the above method embodiment.
- Each module of the above-mentioned electronic device can also be used to perform other actions in the above-mentioned method embodiment, and all relevant content of each step involved in the above-mentioned method embodiment can be referred to the function description of the corresponding functional module, and will not be repeated here.
- FIG. 24 shows another possible structural diagram of the electronic device involved in the above embodiment.
- the electronic device provided in this embodiment of the present application may include: a processing module 2401 and a communication module 2402 .
- the processing module 2401 can be used to control and manage the actions of the electronic device.
- the processing module 2401 can be used to support the electronic device to execute steps 401 to 411, steps 1701 to 1705, and steps 1901 to 1901 in the above method embodiments. Step 1903, Step 2101 - Step 2102, and/or other processes for the techniques described herein.
- the communication module 2402 may be used to support communication between the electronic device and other network entities.
- the electronic device may further include a storage module 2403, configured to store program codes and data of the device.
- the processing module 2001 may be a processor or a controller (such as the above-mentioned processor 310 shown in FIG. 3 ), such as a central processing unit (central processing unit, CPU), a general purpose processor, a digital signal processor (digital signal processor, DSP), application-specific integrated circuit (ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any of them combination. It can implement or execute various exemplary logical blocks, modules and circuits described in conjunction with the disclosure of the embodiments of the present invention.
- the above-mentioned processors may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and so on.
- the communication module 2402 may be a transceiver, a transceiver circuit, or a communication interface (for example, it may be the mobile communication module 350 or the wireless communication module 360 shown in FIG. 3 ).
- the storage module 2403 may be a memory (for example, it may be the aforementioned internal memory 321 shown in FIG. 1 ).
- the processing module 2401 is a processor
- the communication module 2402 is a transceiver
- the storage module 2403 is a memory
- the processor, the transceiver, and the memory may be connected through a bus.
- the bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended Industry standard architecture, EISA) bus or the like.
- PCI peripheral component interconnect
- EISA Extended Industry standard architecture
- all or part of them may be implemented by software, hardware, firmware or any combination thereof.
- a software program it may be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present application will be generated.
- the computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transferred from a website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or may be a data storage device such as a server, a data center, etc. integrated with one or more available media.
- the available medium may be a magnetic medium (for example, a floppy disk, a magnetic disk, a magnetic tape), an optical medium (for example, a digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state drive (solid state drives, SSD)), etc. .
- a magnetic medium for example, a floppy disk, a magnetic disk, a magnetic tape
- an optical medium for example, a digital video disc (digital video disc, DVD)
- a semiconductor medium for example, a solid state drive (solid state drives, SSD)
- the disclosed system, device and method can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor execute all or part of the steps of the method described in each embodiment of the present application.
- the aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, and other various media capable of storing program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
Claims (26)
- 一种提升扬声器的音质的方法,其特征在于,包括:对所述扬声器的输入信号进行分频,以获取第一低频输入信号和第一高频输入信号,所述扬声器的输入信号为时域信号,所述第一低频输入信号包括所述输入信号中低于第一预设频点的信号,所述第一高频输入信号包括所述输入信号中高于所述第一预设频点的信号;对所述第一低频输入信号进行瞬态检测,以确定所述第一低频输入信号是否为瞬态信号;若所述第一低频输入信号为瞬态信号,则对所述第一低频输入信号进行信号包络调制,以得到第二低频输入信号;所述第二低频输入信号的起振电压大于所述第一低频输入信号的起振电压,且所述第二低频输入信号的响度大于所述第一低频输入信号的响度;根据所述第二低频输入信号和所述第一高频输入信号,确定所述扬声器的输出信号。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:对所述扬声器的第一高频输入信号进行分频,以获取第一中频输入信号和第二高频输入信号,所述第一中频输入信号包括所述第一高频输入信号中低于第二预设频点的信号,所述第二高频输入信号包括所述第一高频输入信号中高于所述第二预设频点的信号,所述第二预设频点高于所述第一预设频点;对所述第一中频输入信号进行瞬态检测,以确定所述第一中频输入信号是否为瞬态信号;若所述第一中频输入信号为瞬态信号,则对所述第一中频输入信号进行信号包络调制,以得到第二中频输入信号;所述第二中频输入信号的起振电压大于所述第一中频输入信号的起振电压,且所述第二中频输入信号的响度大于所述第一中频输入信号的响度;所述根据所述第二低频输入信号和所述第一高频输入信号,确定所述扬声器的输出信号,包括:根据所述第二低频输入信号、所述第二中频输入信号以及所述第二高频输入信号,得到所述扬声器的输出信号。
- 根据权利要求1或2所述的方法,其特征在于,所述第一低频输入信号为瞬态信号,在对所述第一低频输入信号进行信号包络调制之前,所述方法还包括:生成低频辅助信号;在所述第一低频输入信号中添加所述低频辅助信号,以获得第一辅助增强信号;所述对所述第一低频输入信号进行信号包络调制,以得到第二低频输入信号包括:对所述第一辅助增强信号进行信号包络调制,以得到所述第二低频输入信号。
- 根据权利要求3所述的方法,其特征在于,所述生成低频辅助信号,包括:生成第一辅助信号,所述第一辅助信号满足:signal_h=e -A×sin(2πf)其中,signal_h表示所述低频辅助信号,A表示信号幅度影响因子,f为所述扬声器的中心频率;对所述第一辅助信号进行高通滤波,以得到所述低频辅助信号。
- 根据权利要求1-4中任一项所述的方法,其特征在于,所述第一低频输入信号为瞬态信号,在对所述第一低频输入信号进行信号包络调制之前,所述方法还包括:对所述第一低频输入信号进行相位补偿,以获得第一相位补偿信号;所述对所述第一低频输入信号进行信号包络调制,以得到第二低频输入信号包括:对所述第一相位补偿信号进行信号包络调制,以得到所述第二低频输入信号。
- 根据权利要求1-5中任一项所述的方法,其特征在于,对所述第一低频输入信号进行瞬态检测,确定所述第一低频输入信号是否瞬态信号,包括:确定所述第一低频输入信号的瞬态功率和稳态功率;根据所述第一低频输入信号的瞬态功率和稳态功率确定所述第一低频输入信号的瞬时率;所述第一低频输入信号的瞬时率满足:T r=(R r-1) 2×W,其中,T r表示所述第一低频输入信号的瞬时率,R r表示所述第一低频输入信号的瞬态功率与所述第一低频输入信号的稳态功率的比值,W表示计权因子,W的取值与所述第一低频输入信号的当前功率相同;若所述输入信号的瞬态率大于预设的瞬态率阈值,则确定所述第一低频输入信号为瞬态信号。
- 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:对第一信号进行均衡处理,得到第二信号;所述第一信号为输入至所述扬声器的初始的待播放信号;采用低音增强算法对所述第二信号进行处理,以得到所述扬声器的输入信号。
- 根据权利要求7述的方法,其特征在于,所述采用低音增强算法对所述第二信号进行处理,得到所述扬声器的输入信号,包括:根据所述第二信号中的低频信号的能量,确定低频搁架滤波器的增益,所述低频搁架滤波器用于控制所述第二信号中的低频信号的响度;使用低频搁架滤波器对所述第二信号进行滤波,得到所述扬声器的输入信号。
- 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:获取包括一个或多个校正系数的第一位移预测模型,所述第一位移预测模型用于模拟所述扬声器的性能以预测所述扬声器的振膜的位移,所述一个或多个校正系数用于控制所述第一位移预测模型的输出;调整所述第一位移预测模型中的至少一个校正系数,得到第二位移预测模型;所述第二位移预测模型输出的预测位移与所述振膜的实际位移的差值的绝对值,小于所 述第一位移预测模型输出的预测位移与所述实际位移的差值的绝对值;所述实际位移为所述振膜相对于初始位置的移动距离实际测量值;根据所述扬声器的位移保护阈值及所述第二位移预测模型输出的预测位移,控制所述输出信号的增益,使得所述扬声器播放所述输出信号时的振膜位移小于或等于所述位移保护阈值;所述位移保护阈值为所述振膜的最大位移。
- 根据权利要求1-9中任一项所述的方法,其特征在于,所述方法还包括:对所述输出信号进行虚拟低音处理,以得到虚拟低音输出信号;所述虚拟低音输出信号的心理感知低频响度大于所述输出信号的心理感知低频响度。
- 根据权利要求10所述的方法,其特征在于,所述对所述输出信号进行虚拟低音处理,以得到虚拟低音输出信号包括:对所述输出信号进行分频处理,以获取第一低频输出信号和第一高频输出信号,所述第一低频输出信号包括所述输出信号中低于第三预设频点的信号,所述第一高频输出信号包括所述输出信号中高于所述第三预设频点的信号;根据所述第一低频输出信号生成所述第一低频输出信号的谐波信号;将所述谐波信号和所述第一低频输出信号进行混合,以得到第一混合信号;对所述第一混合信号和所述第一高频输出信号进行相位同步处理,以得到第二混合信号和第二高频输出信号,所述第二混合信号的相位的变化量与所述第二高频输出信号的相位的变化量相等;根据所述第二混合信号和所述第二高频输出信号,获得所述虚拟低音输出信号。
- 根据权利要求1-11中任一项所述的方法,其特征在于,所述方法还包括:根据所述扬声器的线圈温度,调整所述扬声器中预先配置的第一非线性补偿模型的非线性参数,以得到第二非线性补偿模型;采用所述第二非线性补偿模型对所述输出信号进行信号补偿。
- 一种电子设备,其特征在于,包括:第一获取模块、第一确定模块、包络调制模块以及第二确定模块;所述第一获取模块,用于对所述扬声器的输入信号进行分频,以获取第一低频输入信号和第一高频输入信号,所述扬声器的输入信号为时域信号,所述第一低频输入信号包括所述输入信号中低于第一预设频点的信号,所述第一高频输入信号包括所述输入信号中高于所述第一预设频点的信号;所述第一确定模块,用于对所述第一低频输入信号进行瞬态检测,以确定所述第一低频输入信号是否为瞬态信号;所述包络调制模块,用于在所述第一低频输入信号为瞬态信号的情况下,对所述第一低频输入信号进行信号包络调制,以得到第二低频输入信号;所述第二低频输入信号的起振电压大于所述第一低频输入信号的起振电压,且所述第二低频输入信号的响度大于所述第一低频输入信号的响度;所述第二确定模块,用于根据所述第二低频输入信号和所述第一高频输入信号,确定所述扬声器的输出信号。
- 根据权利要求13所述的电子设备,其特征在于,所述第一获取模块,还用于对所述扬声器的第一高频输入信号进行分频,以获取 第一中频输入信号和第二高频输入信号;所述第一中频输入信号包括所述第一高频输入信号中低于第二预设频点的信号,所述第二高频输入信号包括所述第一高频输入信号中高于所述第二预设频点的信号,所述第二预设频点高于所述第一预设频点;所述第一确定模块,还用于对所述第一中频输入信号进行瞬态检测,以确定所述第一中频输入信号是否为瞬态信号;所述包络调制模块,还用于在所述第一中频输入信号为瞬态信号的情况下,对所述第一中频输入信号进行信号包络调制,以得到第二中频输入信号;所述第二中频输入信号的起振电压大于所述第一中频输入信号的起振电压,且所述第二中频输入信号的响度大于所述第一中频输入信号的响度;所述第二确定模块,具体用于根据所述第二低频输入信号、所述第二中频输入信号以及所述第二高频输入信号,得到所述扬声器的输出信号。
- 根据权利要求13或14所述的电子设备,其特征在于,所述电子设备还包括生成模块和第二获取模块;所述生成模块,用于生成低频辅助信号;所述第二获取模块,用于在所述第一低频输入信号中添加所述低频辅助信号,以获得第一辅助增强信号;所述包络调制模块,具体用于对所述第一辅助增强信号进行信号包络调制,以得到所述第二低频输入信号。
- 根据权利要求15所述的电子设备,其特征在于,所述生成模块,具体用于生成第一辅助信号,对所述第一辅助信号进行高通滤波,以得到所述低频辅助信号;所述第一辅助信号满足:signal_h=e -A×sin(2πf)其中,signal_h表示所述低频辅助信号,A表示信号幅度影响因子,f为所述扬声器的中心频率。
- 根据权利要求13-16中任一项所述的电子设备,其特征在于,所述电子设备还包括相位补偿模块;所述相位补偿模块,用于对所述第一低频输入信号进行相位补偿,以获得第一相位补偿信号;所述包络调制模块,具体用于对所述第一相位补偿信号进行信号包络调制,以得到所述第二低频输入信号。
- 根据权利要求13-17中任一项所述的电子设备,其特征在于,所述第一确定模块,具体用于确定所述第一低频输入信号的瞬态功率和稳态功率;并且根据所述第一低频输入信号的瞬态功率和稳态功率确定所述第一低频输入信号的 瞬时率;以及在所述输入信号的瞬态率大于预设的瞬态率阈值的情况下,确定所述第一低频输入信号为瞬态信号;所述第一低频输入信号的瞬时率满足:T r=(R r-1) 2×W,其中,T r表示所述第一低频输入信号的瞬时率,R r表示所述第一低频输入信号的瞬态功率与所述第一低频输入信号的稳态功率的比值,W表示计权因子,W的取值与所述第一低频输入信号的当前功率相同。
- 根据权利要求13-18中任一项所述的电子设备,其特征在于,所述电子设备还包括均衡处理模块和低音增强模块;所述均衡处理模块,用于对第一信号进行均衡处理,得到第二信号;所述第一信号为输入至所述扬声器的初始的待播放信号;所述低音增强模块,用于采用低音增强算法对所述第二信号进行处理,以得到所述扬声器的输入信号。
- 根据权利要求19所述的电子设备,其特征在于,所述低音增强模块,具体用于根据所述第二信号中的低频信号的能量,确定低频搁架滤波器的增益,所述低频搁架滤波器用于控制所述第二信号中的低频信号的响度;并且使用低频搁架滤波器对所述第二信号进行滤波,得到所述扬声器的输入信号。
- 根据权利要求13-20中任一项所述的电子设备,其特征在于,所述电子设备还包括第三获取模块、第一调整模块以及控制模块;所述第三获取模块,用于获取包括一个或多个校正系数的第一位移预测模型,所述第一位移预测模型用于模拟所述扬声器的性能以预测所述扬声器的振膜的位移,所述一个或多个校正系数用于控制所述第一位移预测模型的输出;所述第一调整模块,用于调整所述第一位移预测模型中的至少一个校正系数,得到第二位移预测模型;所述第二位移预测模型输出的预测位移与所述振膜的实际位移的差值的绝对值,小于所述第一位移预测模型输出的预测位移与所述实际位移的差值的绝对值;所述实际位移为所述振膜相对于初始位置的移动距离实际测量值;所述控制模块,用于根据所述扬声器的位移保护阈值及所述第二位移预测模型输出的预测位移,控制所述输出信号的增益,使得所述扬声器播放所述输出信号时的振膜位移小于或等于所述位移保护阈值;所述位移保护阈值为所述振膜的最大位移。
- 根据权利要求13-21中任一项所述的电子设备,其特征在于,所述电子设备还包括虚拟低音处理模块:虚拟低音处理模块,用于对所述输出信号进行虚拟低音处理,以得到虚拟低音输出信号;所述虚拟低音输出信号的心理感知低频响度大于所述输出信号的心理感知低频响度。
- 根据权利要求22所述的电子设备,其特征在于,所述虚拟低音处理模块,具体用于对所述输出信号进行分频处理,以获取第一低频输出信号和第一高频输出信号,所述第一低频输出信号包括所述输出信号中低于第三设频点的信号,所述第一高频输出信号包括所述输出信号中高于所述第三预设频点的信号;并根据所述第一低频输出信号生成所述第一低频输出信号的谐波信号;且将所述谐波信号和所述第一低频输出信号进行混合,以得到第一混合信号;以及对所述 第一混合信号和所述第一高频输出信号进行相位同步处理,以得到第二混合信号和第二高频输出信号,所述第二混合信号的相位的变化量与所述第二高频输出信号的相位的变化量相等;进而根据所述第二混合信号和所述第二高频输出信号,获得所述虚拟低音输出信号。
- 根据权利要求13-23中任一项所述的电子设备,其特征在于,所述电子设备还包括第二调整模块和信号补偿模块:所述第二调整模块,用于根据所述扬声器的线圈温度,调整所述扬声器中预先配置的第一非线性补偿模型的非线性参数,以得到第二非线性补偿模型;所述信号补偿模块,用于采用所述第二非线性补偿模型对所述输出信号进行信号补偿。
- 一种电子设备,其特征在于,包括存储器和与所述存储器连接的至少一个处理器,所述存储器用于存储指令,所述指令被至少一个处理器读取后,执行如权利要求1至12任一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至12任一项所述的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22831994.3A EP4344246A1 (en) | 2021-06-30 | 2022-06-27 | Method and apparatus for improving sound quality of speaker |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110745517.3A CN115567831A (zh) | 2021-06-30 | 2021-06-30 | 一种提升扬声器的音质的方法及装置 |
CN202110745517.3 | 2021-06-30 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/390,769 Continuation US20240135946A1 (en) | 2021-06-30 | 2023-12-20 | Method and apparatus for improving sound quality of speaker |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023274180A1 true WO2023274180A1 (zh) | 2023-01-05 |
Family
ID=84690092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/101678 WO2023274180A1 (zh) | 2021-06-30 | 2022-06-27 | 一种提升扬声器的音质的方法及装置 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4344246A1 (zh) |
CN (1) | CN115567831A (zh) |
WO (1) | WO2023274180A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117135538A (zh) * | 2023-02-21 | 2023-11-28 | 荣耀终端有限公司 | 扬声器驱动电路及电子设备 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964190A (zh) * | 2009-07-24 | 2011-02-02 | 敦泰科技(深圳)有限公司 | 扬声器截止频率以下信号还原原声的方法和装置 |
CN104936088A (zh) * | 2015-04-21 | 2015-09-23 | 上海大学 | 一种混合虚拟低音增强处理方法 |
US20160180858A1 (en) * | 2013-07-29 | 2016-06-23 | Dolby Laboratories Licensing Corporation | System and method for reducing temporal artifacts for transient signals in a decorrelator circuit |
CN106953608A (zh) * | 2016-01-06 | 2017-07-14 | 昱盛电子股份有限公司 | 功率放大装置 |
CN109151667A (zh) * | 2018-09-21 | 2019-01-04 | 上海艾为电子技术股份有限公司 | 一种信号处理方法、装置及扬声器 |
CN111796791A (zh) * | 2020-06-12 | 2020-10-20 | 瑞声科技(新加坡)有限公司 | 一种低音增强方法、系统、电子设备和存储介质 |
-
2021
- 2021-06-30 CN CN202110745517.3A patent/CN115567831A/zh active Pending
-
2022
- 2022-06-27 WO PCT/CN2022/101678 patent/WO2023274180A1/zh active Application Filing
- 2022-06-27 EP EP22831994.3A patent/EP4344246A1/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101964190A (zh) * | 2009-07-24 | 2011-02-02 | 敦泰科技(深圳)有限公司 | 扬声器截止频率以下信号还原原声的方法和装置 |
US20160180858A1 (en) * | 2013-07-29 | 2016-06-23 | Dolby Laboratories Licensing Corporation | System and method for reducing temporal artifacts for transient signals in a decorrelator circuit |
CN104936088A (zh) * | 2015-04-21 | 2015-09-23 | 上海大学 | 一种混合虚拟低音增强处理方法 |
CN106953608A (zh) * | 2016-01-06 | 2017-07-14 | 昱盛电子股份有限公司 | 功率放大装置 |
CN109151667A (zh) * | 2018-09-21 | 2019-01-04 | 上海艾为电子技术股份有限公司 | 一种信号处理方法、装置及扬声器 |
CN111796791A (zh) * | 2020-06-12 | 2020-10-20 | 瑞声科技(新加坡)有限公司 | 一种低音增强方法、系统、电子设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
EP4344246A1 (en) | 2024-03-27 |
CN115567831A (zh) | 2023-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110138937B (zh) | 一种通话方法、设备及系统 | |
WO2020249062A1 (zh) | 一种语音通信方法及相关装置 | |
WO2022100610A1 (zh) | 投屏方法、装置、电子设备及计算机可读存储介质 | |
US11956607B2 (en) | Method and apparatus for improving sound quality of speaker | |
WO2021083128A1 (zh) | 一种声音处理方法及其装置 | |
CN114466097A (zh) | 防漏音的移动终端及移动终端的声音输出方法 | |
CN114422340A (zh) | 日志上报方法、电子设备及存储介质 | |
CN113225661A (zh) | 扬声器识别方法、装置和电子设备 | |
CN114339429A (zh) | 音视频播放控制方法、电子设备和存储介质 | |
WO2023274180A1 (zh) | 一种提升扬声器的音质的方法及装置 | |
CN115714890A (zh) | 供电电路和电子设备 | |
CN115145527A (zh) | 一种调节音量的方法、系统及电子设备 | |
CN115412678B (zh) | 曝光处理方法、装置及电子设备 | |
CN114390406B (zh) | 一种控制扬声器振膜位移的方法及装置 | |
CN113467747B (zh) | 音量调节方法、电子设备及存储介质 | |
CN114449393B (zh) | 一种声音增强方法、耳机控制方法、装置及耳机 | |
US20240135946A1 (en) | Method and apparatus for improving sound quality of speaker | |
CN114844542A (zh) | 天线选择方法、装置、电子设备及可读存储介质 | |
CN115459643A (zh) | 线性马达的振动波形调整方法及装置 | |
CN114915359A (zh) | 选择信道的方法、装置、电子设备和可读存储介质 | |
CN111885768A (zh) | 调节光源的方法、电子设备和系统 | |
US20240178771A1 (en) | Method and apparatus for adjusting vibration waveform of linear motor | |
CN114050962B (zh) | 一种通信故障检测方法、装置及计算机可读存储介质 | |
CN116744187B (zh) | 扬声器控制方法及设备 | |
WO2023020420A1 (zh) | 音量显示方法、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22831994 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022831994 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2023580702 Country of ref document: JP Kind code of ref document: A |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112023027599 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 2022831994 Country of ref document: EP Effective date: 20231221 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 112023027599 Country of ref document: BR Kind code of ref document: A2 Effective date: 20231227 |