CN114866949A - Digital audio sound field effect processing method and loudspeaker device - Google Patents

Digital audio sound field effect processing method and loudspeaker device Download PDF

Info

Publication number
CN114866949A
CN114866949A CN202210468869.3A CN202210468869A CN114866949A CN 114866949 A CN114866949 A CN 114866949A CN 202210468869 A CN202210468869 A CN 202210468869A CN 114866949 A CN114866949 A CN 114866949A
Authority
CN
China
Prior art keywords
signal
branch
component
compensation
loudspeaker
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210468869.3A
Other languages
Chinese (zh)
Inventor
陈鹏腾
叶群飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Huasheng Zhongke Electronics Co ltd
Original Assignee
Huizhou Huasheng Zhongke Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Huasheng Zhongke Electronics Co ltd filed Critical Huizhou Huasheng Zhongke Electronics Co ltd
Priority to CN202210468869.3A priority Critical patent/CN114866949A/en
Publication of CN114866949A publication Critical patent/CN114866949A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/307Frequency adjustment, e.g. tone control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S2400/00Details of stereophonic systems covered by H04S but not provided for in its groups
    • H04S2400/15Aspects of sound capture and related signal processing for recording or reproduction

Abstract

The application discloses a digital audio sound field effect processing method and a loudspeaker device, wherein the method respectively carries out first frequency compensation operation on a first audio signal and a second audio signal, branches the compensated signals, and respectively executes second frequency compensation, mixing and other operations for adjusting the sound field effect according to different sound propagation paths of loudspeakers on different sides to reach the positions of a left ear or a right ear, so that the complexity of an algorithm is reduced, better sound field effect can be realized through lower operation amount in the digital audio processing process, the adaptability of the processing method on a hardware platform with lower performance can be improved, and further the sound field effect and the reduction degree of the low-performance platform in the using process can be improved.

Description

Digital audio sound field effect processing method and loudspeaker device
Technical Field
The present application relates to the field of data processing, and in particular, to a method for processing a sound field effect of digital audio and a speaker device.
Background
The audio-visual electronic product pursues to restore the state of the sound source during on-site recording, but is limited by the horn structure (such as the number and distribution of the horns) of the product, so that the sound field effect of the product is far different from the on-site state of the sound source, and the experience is poor.
The sound playing environment in the market adopts the multi-azimuth loudspeaker placement, can realize better on-site effect, but this kind of product is not extensive in practical application, still takes the dual track loudspeaker as the main. For a dual-channel loudspeaker, a plurality of optimization schemes adopt head-related transfer functions to process sound, and the live feeling of the product sound is improved. However, the head-related transfer function also has more problems, such as: the head model and the ear model used when testing the head-related transfer function have great difference with different people in each region, and the reduction effect is different from person to person. Secondly, when the head-related transfer function is used for sound processing, a digital filter is generally used to approximate the required effect, but when the effect needs to be achieved, the order of the filter is large, so that the calculation amount is large.
For example, a commonly used head-related function scheme needs to find filter parameters of a target horn orientation by an impulse response invariant method, and then process audio information using the found filter. Taking an IIR filter as an example, the order of the filter can approach the target response only when the order reaches about 30, and the excessive calculation amount of the horn channel is larger. Moreover, an environment without sound reflection is required to test the impact response of the target loudspeaker, and requirements on equipment and the environment are high.
Therefore, the existing sound field effect optimization algorithm is difficult to apply to a hardware platform with lower performance, and the reduction degree of the sound field effect in the use process of the platform cannot be improved well.
Disclosure of Invention
The application provides a digital audio sound field effect processing method and a loudspeaker device, which can reduce the arithmetic operation amount and improve the reduction degree of the sound field effect of a low-performance platform in the using process.
In a first aspect, the present application discloses a method for processing sound field effects of digital audio, the method comprising:
respectively obtaining a first audio signal and a second audio signal to be processed by loudspeakers on the left side and the right side;
performing a first frequency compensation operation for adjusting a sound field effect on the first audio signal and the second audio signal, respectively;
respectively carrying out signal shunting on the first audio signal and the second audio signal obtained after the first frequency compensation operation to respectively obtain a corresponding first shunt signal and a corresponding second shunt signal; the first branch signal is sent to the rear end, and the second branch signal respectively executes second frequency compensation operation for adjusting the sound field effect according to different sound propagation paths of the loudspeakers at different sides to the left ear or the right ear;
mixing the second shunt signal obtained after the second frequency compensation operation with a second shunt signal corresponding to the loudspeaker on the other side to obtain a mixed second shunt signal;
and mixing the first branch signal and the mixed second branch signal again to obtain a first output signal and a second output signal which are used for the output of the loudspeakers at the two sides after the sound field effect is adjusted.
In one embodiment, the second split signal comprises a first component signal and a second component signal; the first component signal is a signal from a left loudspeaker to a left ear or a right ear, and the second component signal is a signal from a right loudspeaker to the left ear or the right ear; the second frequency compensation comprises a first component compensation and a second component compensation;
the second branch signal respectively executes a second frequency compensation operation for adjusting the sound field effect according to the difference of sound propagation paths of the loudspeakers on different sides to the left ear or the right ear, and the second frequency compensation operation comprises the following steps:
performing the first component compensation on the first component signal;
performing the second component compensation on the second component signal;
wherein the compensation parameter of the first component compensation is different from the compensation parameter of the second component compensation.
In an embodiment, the mixing at least two second branch signals obtained after the second frequency compensation operation to obtain two second branch signals corresponding to a left ear and a right ear includes:
mixing a first component signal which corresponds to the first audio signal and is subjected to the first component compensation with a second component signal which corresponds to the second audio signal and is subjected to the second component compensation to obtain a mixed second shunt signal which corresponds to the first audio signal;
and mixing the second component signal which corresponds to the first audio signal and is subjected to the second component compensation with the first component signal which corresponds to the second audio signal and is subjected to the first component compensation to obtain a mixed second shunt signal which corresponds to the second audio signal.
In an embodiment, the signal splitting is performed on the first audio signal and the second audio signal obtained after the first frequency compensation operation, so as to obtain a corresponding first split signal and a corresponding second split signal, respectively, where the signal splitting includes:
the signal branches comprise a first branch, a second branch and a third branch;
the first branch is amplified through a first amplification factor K1 of the first channel to obtain a first branch signal;
the second branch is amplified by a second amplification factor K2 of the second channel to obtain a first component signal of the second branch signal;
and the third branch is amplified by a third amplification factor K3 of a third channel to obtain a second component signal of the second branch signal.
In one embodiment, the first channel is used for adjusting the sound intensity output to the left ear or the right ear on the same side as the loudspeaker;
the second channel is used for adjusting the sound intensity output to the ear at the same side as the loudspeaker;
the third channel is used for adjusting the intensity of sound output to ears on different sides of the loudspeaker.
In an embodiment, the mixing at least two second branch signals obtained after the second frequency compensation operation to obtain two second branch signals corresponding to a left ear and a right ear includes:
adjusting a second amplification factor of the second channel and a compensation parameter of the first component compensation;
adjusting a third amplification factor of the third channel and a compensation parameter of a second component compensation;
the target sound field formed by the second branch signal is advanced with respect to the original sound field by the adjustment.
In an embodiment, the remixing the first split signal and the mixed second split signal to obtain a first output signal and a second output signal for output by a speaker further includes:
performing delay processing on the mixed second branch signal;
and mixing the delayed second branch signal with the first branch signal on the corresponding side again.
In an embodiment, the method further comprises:
in an embodiment, the method further comprises:
acquiring a standard response curve of a standard loudspeaker at a target opening angle;
obtaining a product response curve of the product horn measured under a target opening angle according to the standard response curve;
acquiring a current response curve of the product loudspeaker, and acquiring an expected curve difference value based on the current response curve and the product response curve;
and obtaining compensation parameters corresponding to the first frequency compensation operation and the second frequency compensation operation according to the expected curve difference.
In an embodiment, the method further comprises:
acquiring frequency response curves of a product loudspeaker and a standard loudspeaker;
adjusting the frequency response curve corresponding to the product loudspeaker to align the frequency response curves of the product loudspeaker and the standard loudspeaker at a preset frequency;
calculating to obtain an ideal curve difference value between frequency response curves of the product loudspeaker and the standard loudspeaker;
the obtaining of the product response curve of the product horn measured at the target opening angle according to the standard response curve includes:
acquiring a standard response curve of a standard loudspeaker under a target opening angle;
and superposing the standard response curve of the standard horn at the target opening angle with the difference value of the ideal curve to obtain the product response curve of the product horn measured at the target opening angle.
In a second aspect, the present application also discloses a speaker apparatus comprising:
a processor; and
a memory electrically connected to the processor;
the memory stores machine readable instructions executable by the processor to perform the method of sound field effect processing of digital audio as described in any one of the above.
Therefore, in the digital audio sound field effect processing method and the loudspeaker device in the application, the first frequency compensation operation is performed on the first audio signal and the second audio signal respectively, and then the compensated signals are branched and the operations of compensation and mixing are performed, so that the complexity of the algorithm is reduced, a better sound field effect can be realized through a lower operation amount in the digital audio processing process, the adaptability of the processing method on a hardware platform with lower performance is favorably improved, and the sound field effect and the reduction degree of the low-performance platform in the using process are further improved.
Drawings
Fig. 1 is a flowchart illustrating an implementation of a method for processing a sound field effect of digital audio according to an embodiment of the present application.
Fig. 2 is a sound field schematic diagram of a sound field effect processing method of digital audio according to an embodiment of the present application.
Fig. 3 is an application scene diagram of a sound field effect processing method of digital audio according to an embodiment of the present application.
Fig. 4 is a diagram of another application scenario of the sound field effect processing method of digital audio according to the embodiment of the present application.
Fig. 5 is a flowchart of an implementation of obtaining a compensation parameter according to an embodiment of the present application.
Fig. 6 is a schematic diagram of frequency response curves of a standard horn and a product horn according to an embodiment of the present disclosure.
Fig. 7 is a schematic diagram illustrating an ideal curve difference between a standard horn and a product horn according to an embodiment of the present disclosure.
Fig. 8 is a graph illustrating a left-side standard response curve and a left-side product response curve according to an embodiment of the present disclosure.
Fig. 9 is a schematic structural diagram of a speaker device according to an embodiment of the present application.
Detailed Description
The technical solution of the present application is further described below with reference to the accompanying drawings and examples.
The embodiment of the application provides a sound field effect processing method of digital audio, which is applied to loudspeaker equipment.
The speaker device may be a device with a speaker (or called as a speaker or a loudspeaker), and includes an independent speaker, an earphone, a computer integrated/externally connected with a speaker, a television, or other similar devices capable of playing digital audio signals through at least two speakers.
Referring to fig. 1, a flow of implementation of a method for processing a sound field effect of digital audio according to an embodiment of the present application is shown.
As shown in fig. 1, the sound field effect processing method of digital audio, which can be applied to the speaker apparatus as described above, includes:
101. and respectively obtaining a first audio signal and a second audio signal to be processed by the left loudspeaker and the right loudspeaker.
The first audio signal is an input audio signal of the left-side speaker, the second audio signal is an input audio signal of the right-side speaker, and certainly, the positions of the two audio signals may be reversed, or the two audio signals represent input audio signals corresponding to other speakers on two opposite sides.
The horn is a preset parameter standard and a horn setting under a preset opening angle, the preset parameter standard can be based on a parameter standard which is set by a user for obtaining an ideal effect, the specific required effect and the parameter standard thereof can be determined according to actual conditions, and the horn is not limited by the application.
The first audio signal and the second audio signal are both digital audio signals obtained by initial decoding, and may be obtained by a loudspeaker device reading a corresponding audio file in the device, or may be obtained by other means such as the internet, and the obtaining means is not limited.
102. A first frequency compensation operation for adjusting a sound field effect is performed on the first audio signal and the second audio signal, respectively.
The first frequency compensation operation is used for respectively carrying out frequency response compensation on the first audio signal and the second audio signal so as to enable the frequency response characteristics corresponding to the first audio signal and the second audio signal to accord with the expected sound field effect.
Please refer to fig. 2, which illustrates a sound field schematic diagram of a sound field effect processing method of digital audio according to an embodiment of the present application.
As shown in fig. 2, in one embodiment, in order to obtain a wider sound field effect, the preset positions of the standard speaker are the position L and the position R, the compensation positions of the standard speaker desired after the first frequency compensation operation are the position L 'and the position R', and the position of the dummy head model is the position M.
In particular, LL is the frequency response measured at the left ear of the left channel sound without any algorithmic processing. And LL 'is the frequency response tested at the far left by moving the horn from the L position to L'. As long as the difference between LL and LL 'and LR' is obtained, the amplitudes at different frequencies of the first and second audio signals are gained or attenuated by the first frequency compensation operation, so that it obtains the sound field effect of placing the standard speaker at the position L 'and the position R'.
Of course, the compensation parameter used in the first frequency compensation operation may be set according to needs by using a past empirical value or an existing algorithm, and the specific value and the obtaining mode of the compensation parameter are not limited in the present application.
103. Respectively carrying out signal shunting on a first audio signal and a second audio signal obtained after the first frequency compensation operation to respectively obtain a corresponding first shunting signal and a corresponding second shunting signal; and the second branch signal respectively executes second frequency compensation operation for adjusting the sound field effect according to different sound propagation paths of the loudspeakers at different sides reaching the left ear or the right ear.
The audio signal is branched to obtain a first branched signal and a second branched signal, and different signals can be compensated according to different sound propagation paths heard by an actual listener at the left ear and the right ear, so that a more real and more close-to-required sound field effect is obtained.
Specifically, referring to fig. 2, the listening effect of the left ear is LL + RL, the listening effect of the right ear is RR + LR, and the signals corresponding to the different sound sources can be compensated, so that the listening effect of the left ear is LL '+ RL', and the listening effect of the right ear is RR '+ LR'.
With reference to fig. 3, an application scenario of the sound field effect processing method of digital audio according to the present application is shown.
As shown in fig. 3, in one implementation, the second split signal includes a first component signal and a second component signal. The first component signal is a signal from the left horn to the left ear or the right ear, and the second component signal is a signal from the right horn to the left ear or the right ear. The second frequency compensation includes a first component compensation and a second component compensation.
In the step of performing the second frequency compensation operation for adjusting the sound field effect according to the difference of the sound propagation paths of the second branch signal from the loudspeakers on different sides to the left ear or the right ear, respectively, the method includes:
performing a first component compensation on the first component signal; performing a second component compensation on the second component signal; wherein the compensation parameter of the first component compensation is different from the compensation parameter of the second component compensation.
For example, the first component signal in the second split signal is the listening effect LL of the left speaker received by the left ear, and the second component signal in the second split signal is the listening effect RL of the right speaker received by the left ear, and the listening effect is affected because the paths through which the audio of the speakers on different sides travels are different, for example, the right speaker needs to bypass the human face to the left ear. Compensation in the corresponding frequency response can then be made based on the impact characteristics tested on the product horn or standard horn.
In practical applications, the second frequency compensation aims to compensate the listening effect of the different side speakers conducting the ears from LL, LR, RL and RR to the approximate effect of LL ', LR ', RL ' and RR. In the audio spectrum amplitude diagram output from the head transfer correlation transfer function, the frequency gain of the audio portion of LR' should be reduced from that of LR, so that the audio portion needs to be compensated by the second frequency compensation operation to obtain a better sound field effect.
104. And mixing the second shunt signal obtained after the second frequency compensation operation with the second shunt signal corresponding to the loudspeaker on the other side to obtain a mixed second shunt signal.
Referring to fig. 3, in one implementation, the second split signal includes a first component signal and a second component signal. The first component signal is a signal from the left horn to the left ear or the right ear, and the second component signal is a signal from the right horn to the left ear or the right ear. The second frequency compensation includes a first component compensation and a second component compensation.
Mixing at least two second shunt signals obtained after the second frequency compensation operation to obtain two second shunt signals corresponding to the left ear and the right ear, including:
mixing a first component signal which corresponds to the first audio signal and is subjected to first component compensation with a second component signal which corresponds to the second audio signal and is subjected to second component compensation to obtain a mixed second shunt signal which corresponds to the first audio signal; and mixing the second component signal which corresponds to the first audio signal and is subjected to the second component compensation with the first component signal which corresponds to the second audio signal and is subjected to the first component compensation to obtain a mixed second shunt signal which corresponds to the second audio signal.
The first component signal of the first audio signal is a sound component generated by the left loudspeaker at the left ear, and the second component signal of the first audio signal is a sound component generated by the left loudspeaker at the right ear. The first component signal of the second audio signal is a sound component generated by the right speaker at the left ear, and the second component signal of the second audio signal is a sound component generated by the right speaker at the right ear.
In fact, the second shunt signal after the frequency compensation of the horn on one side is mixed with the second shunt signal corresponding to the horn on the other side, that is, the second shunt signal of the left horn corresponding to the left ear may be mixed with the second shunt signal of the right horn corresponding to the left ear, and the second shunt signal of the left horn corresponding to the right ear may be mixed with the second shunt signal of the right horn corresponding to the right ear.
Therefore, the influence of the sound of the loudspeaker on the current sound field of the ear on one side can be adjusted by utilizing the audio signal corresponding to the loudspeaker on the other side, so that the purpose of approaching the listening effect after the sound field is expanded is achieved.
It will be appreciated that the above-described differences in the listening effect of the different side speakers and the different side ears represented by the different component signals are merely exemplary, and the definition thereof may be adjusted in practical applications.
Through mixing the above, the listening effects of the loudspeakers at different sides on the ears at different sides can be unified, and then the sound field effect can be improved through a simple compensation mode.
In one embodiment, the second frequency compensation operation may set the compensation parameters according to an actually required sound field effect, for example, if it is desired to hear a human voice ahead, the compensation parameters of the first branch compensation and the second branch compensation may be adjusted to gain or reduce the intermediate frequency and the high frequency, thereby realizing a listening sensation of the human voice ahead. Of course, in addition to the above scheme, the compensation parameters required by sound field effects such as recording studio and concert scene can be set, so as to obtain corresponding listening experience.
It is understood that the listening experience may be implemented by using a compensation method commonly used in the art according to actual situations, and the present application is not limited thereto.
105. And mixing the first branch signal and the mixed second branch signal again to obtain a first output signal and a second output signal which are used for the output of the loudspeakers at the two sides after the sound field effect is adjusted.
The first output signal and the second output signal can be output through the left side loudspeaker and the right side loudspeaker respectively, so that a listener can obtain a listening effect with higher sound field reduction degree through the loudspeakers at the two sides.
After the mixing processing of the second branch signals, the first branch signals and the mixed second branch signals are mixed again, so that the output audio signals can be subjected to targeted adjustment on the listening effects of different side loudspeakers on ears, and the sound field effect of the obtained digital audio signals after being played by the loudspeakers is better.
Therefore, in the digital audio sound field effect processing method and the loudspeaker device in the application, the first frequency compensation operation is performed on the first audio signal and the second audio signal respectively, and then the compensated signals are branched and the operations of compensation and mixing are performed, so that the complexity of the algorithm is reduced, a better sound field effect can be realized through a lower operation amount in the digital audio processing process, the adaptability of the processing method on a hardware platform with lower performance is favorably improved, and the sound field effect and the reduction degree of the low-performance platform in the using process are further improved.
Referring to fig. 4, another application scenario of the method for processing a sound field effect of digital audio according to the embodiment of the present application is shown.
As shown in fig. 4, in another implementation manner, signal splitting is performed on a first audio signal and a second audio signal obtained after a first frequency compensation operation, so as to obtain a corresponding first split signal and a corresponding second split signal, respectively, including:
the signal branches comprise a first branch, a second branch and a third branch; the first branch is amplified by a first amplification factor K1 of the first channel to obtain a first branch signal; the second branch is amplified through a second amplification factor K2 of the second channel to obtain a first component signal of the second branch signal; the third branch is amplified by a third amplification factor K3 of the third channel to obtain a second component signal of the second branch signal.
Further, the first channel is used for adjusting the sound intensity output to the left ear or the right ear on the same side with the loudspeaker; the second channel is used for adjusting the sound intensity output to the ear at the same side as the loudspeaker; the third channel is used to adjust the intensity of the sound output to the ear on a different side from the horn.
By distinguishing different adjustment purposes of the different channels, sound effect adjustment can be performed on different component parts in a more targeted manner, so that the restoring degree of a sound field is improved.
Through the amplification of the three amplification coefficients K1-K3, the sound field effect corresponding to each audio signal can be further adjusted. For example, for the left ear, the listening intensity of the left speaker is greater than the listening intensity of the right speaker, and the sound field effect corresponding to the audio signal can be more reduced to the actual sound field effect through the amplification adjustment of the second branch and the third branch.
Specifically, after testing the frequency response curves of a standard horn at a particular opening angle, the coefficients of K1, K2, and K3 can be initially determined from the average amplitude contrast of the LL and LR curves. For example, if the average amplitude value of LL is a and the average amplitude value of LR is b, the amplification factor K1 is K1-a/(a + b). And the amplification factors K2-K3 can be adjusted with reference to the ratio of the average amplitude value of LR.
In some implementations, mixing at least two second branch signals obtained after the second frequency compensation operation to obtain two second branch signals corresponding to the left ear and the right ear includes:
adjusting a second amplification factor of the second channel and a compensation parameter of the first component compensation; adjusting a third amplification factor of a third channel and a compensation parameter of the second component compensation; the target sound field formed by the second branch signal is advanced with respect to the original sound field by the adjustment.
The setting of the amplification factors K1-K3 may also be adjusted in consideration of the desired listening effect, e.g. to improve the clarity of the sound and to reduce the appearance of holes in the sound, and the parameters of the second channel and the first component compensation may be adjusted and the parameters of the third channel and the second component compensation may be adaptively adjusted based on the adjustment to further advance the sound imaging.
For another example, in order to enhance the effect of human voice in sound, the amplification factor K2 may be increased appropriately so that the sound image is centered. It can be understood that the coefficient values of the amplification coefficients K1-K3 can be set according to different desired tuning effects, which is not specifically limited in the present application.
Referring to fig. 4, in order to improve the restoring degree of the sound field effect, the mixed second branch signal may be delayed after the second branch signal is compensated, and the delayed second branch signal may be mixed with the first branch signal on the corresponding side again.
Specifically, delay processing can be realized through a delayer and is used for compensating the time difference of sound transmitted to the left ear and the right ear from a loudspeaker on one side, and the delay time is 0-128 sampling synchronization according to requirements. Likewise, the above-mentioned method can improve the reduction degree of the sound field effect.
Based on fig. 4, the frequency compensation Q1 is the first frequency compensation operation, the frequency compensation Q2 is the first component compensation, and the frequency compensation Q3 is the second component compensation; the first audio signal is L-IN and the second audio signal is R-IN; the first output signal is L-OUT and the second output signal is R-OUT.
In one embodiment, the frequency response of the amplification factor K3 of the third channel is either negative or positive according to the final output effect requirement. When the sound field needs to be widened, the sound field is negative, and the opposite side is positive. For example, the effect of LR' is equivalent to DL (H) Q1 (H Q2 (L-IN*K2)+H Q3 (R-IN K3)) or DL (H) Q1 (H Q2 (L-IN*K2)-H Q3 (R-IN*K3))。
The formulas of the finally obtained first output signal and the second output signal are as follows:
L-OUT=H Q1 (L-IN*K1)+DL(H Q1 (HQ2(L-IN*K2)+H Q3 (R-IN*K3)))
R-OUT=H Q1 (R-IN*K1)+DL(H Q1 (HQ2(R-IN*K2)+H Q3 (L-IN*K3)))
wherein DL is a delayer.
Therefore, the sound field effect under the double-loudspeaker scene can be further improved through simpler calculated amount by the implementation mode, and higher sound field effect reduction degree is obtained. In addition, the first channel, the second channel and the third channel are adopted in the mode and combined with the plurality of compensation modules, so that the flexibility of sound field effect adjustment can be improved.
Referring to fig. 5, a flowchart for implementing obtaining a compensation parameter according to an embodiment of the present application is shown.
In one implementation, the method for processing the sound field effect of the digital audio further comprises the following steps.
201. And acquiring a standard response curve of the standard horn at the target opening angle.
The target opening angle may be a desired value, for example, 50 ° as the original opening angle, and 70 ° as the target opening angle to be achieved for widening the sound field is larger than the original opening angle. The target opening angle can be determined according to the actual situation, and the application is not limited.
In one embodiment, the left and right speakers may default to the same effect on the left and right ears of the listener. The frequency response of the left horn output on the left ear and the frequency response curve of the left horn output on the right ear under different opening angles can be tested by using a standard horn and a dummy head model in advance, and a database is formed for later use. The preset opening angle can be related to the arrangement form of the loudspeakers of the loudspeaker equipment, for example, if equipment with a longer distance is used and the relative distance between the loudspeakers is smaller, a smaller opening angle, for example, 10 degrees, can be set; whereas with closer devices or with a larger relative distance between the horns, a larger opening angle, for example 50 °, can be provided. The preset opening angle in the application can be set according to actual needs.
The frequency response curve H of the standard loudspeaker under the target opening angle can be obtained by searching a database 0 . Here, the standard response curve includes a standard response curve corresponding to the left speaker and a standard response curve corresponding to the right speaker, both of which may beThe frequency response curve of the standard loudspeaker under a plurality of opening angles is obtained from a database prestored, and the database can be stored in local equipment or network equipment.
202. And obtaining a product response curve of the product horn measured under the target opening angle according to the standard response curve.
Combine fig. 2 and fig. 6-8; the frequency response curves of the standard horn and the product horn of the present application are shown in fig. 6; FIG. 7 is a schematic diagram illustrating the difference between the ideal curves of a standard horn and a product horn provided in the embodiments of the present application; fig. 8 is a graph illustrating a left-side standard response curve and a left-side product response curve according to an embodiment of the present disclosure.
Before the horn product is introduced into the method, the method further comprises:
acquiring frequency response curves of a product loudspeaker and a standard loudspeaker; adjusting the frequency response curve corresponding to the product loudspeaker to align the frequency response curves of the product loudspeaker and the standard loudspeaker at a preset frequency; and calculating to obtain an ideal curve difference value between the frequency response curves of the product loudspeaker and the standard loudspeaker.
First, it is necessary to first test the frequency response curve Hf of the left and right horns in the original state of the horn product and obtain the frequency response curve Hr of the standard horn, which is shown in fig. 6.
The frequency response curve of the product horn is then gained or attenuated, based on the frequency response of the standard horn at 1KHz, so that the two curves are aligned at 1 KHz. For this, the ideal curve difference of the two frequency response curves of the standard horn and the product horn at 1KHz, i.e., as shown in fig. 7, can be obtained by calculation.
The 1KHz datum point is only used for reference in this embodiment, and other frequency response points may be used as datum points of two curves for alignment, which is not limited in this application.
After obtaining the difference value of the ideal curve, the frequency response curve H of the standard loudspeaker under the target opening angle, which is obtained in advance through testing, can be called 0 I.e. the ideal response curve of the standard horn at the target opening angle.The frequency response curve H of the standard horn at the target opening angle 0 And the difference value of the ideal curve is superposed to obtain a frequency response curve LL' (taking the audio response curve of the left horn at the left ear as an example) of the product horn at the target opening angle, namely the product response curve of the product horn at the target opening angle.
203. And acquiring a current response curve of the product loudspeaker, and acquiring an expected curve difference value based on the current response curve and the product response curve.
Taking the left horn as an example, the frequency response of the left horn output on the left ear under the dummy head model, i.e. the frequency response curve LL, is called.
At this time, a frequency response curve LL of the product horn at the original opening angle is obtained, and a difference between the frequency response curve LL of the product horn at the original opening angle and the frequency response curve LL' of the product horn at the target opening angle is calculated, so that an expected curve difference value can be obtained, that is, as shown in fig. 8.
204. And obtaining compensation parameters corresponding to the first frequency compensation operation and the second frequency compensation operation according to the expected curve difference.
The first frequency compensation operation and the second frequency compensation operation are both for adjusting the sound field effect of the audio signal, so that the sound field effect can be expanded as shown in fig. 2, and the signals corresponding to the different sound sources are respectively compensated, so that the listening effect of the left ear is processed into LL '+ RL' and the listening effect of the right ear is processed into RR '+ LR' as much as possible, so as to enhance the sound field effect of the speaker device, and make the sound field effect have a higher reproduction degree.
After the expected curve difference is obtained, the corresponding compensation parameters can be further generated according to the response characteristics of the expected curve difference at different frequencies, so as to provide the digital audio sound field processing method with the corresponding first frequency compensation and second frequency compensation operations of any one of the above embodiments. It can be understood that the specific parameter value of the compensation parameter needs to be determined according to the actual calculation situation, and the application does not limit this.
Referring to fig. 9, a structure of a speaker device according to an embodiment of the present application is shown.
The speaker device may be a device with a speaker (or called as a speaker or a loudspeaker), and includes an independent speaker, an earphone, a computer integrated/externally connected with a speaker, a television, or other similar devices capable of playing digital audio signals through at least two speakers.
As shown in fig. 9, the speaker device 3 may include: a processor 31 and a memory 32. These components communicate via one or more buses, and those skilled in the art will appreciate that the configuration of the loudspeaker device 3 shown in the figures is not intended to limit the present application, and may be a bus configuration, a star configuration, a combination of more or fewer components than those shown, or a different arrangement of components.
The processor 31 is a control center of the speaker apparatus 3, connects various parts of the whole speaker apparatus 3 by various interfaces and lines, and executes various functions of the speaker apparatus 3 and/or processes data by executing or executing software programs and/or modules stored in the memory 32 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 31 may only include a Central Processing Unit (CPU). In the construction completion mode of the present application, the CPU may be a single operation core or may include multiple operation cores.
The memory 32 may be used for storing instructions executed by the processor 31, and the memory 32 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
The execution instructions in the memory 32, when executed by the processor 31, enable the speaker apparatus 3 to perform some or all of the steps in the above-described sound-field-effect processing method embodiment of digital audio, for example:
respectively obtaining a first audio signal output at a left ear and a second audio signal output at a right ear based on a standard loudspeaker and a dummy head model which comprise the left side and the right side under a preset opening angle; performing a first frequency compensation operation for adjusting a sound field effect on the first audio signal and the second audio signal, respectively; respectively carrying out signal shunting on the first audio signal and the second audio signal obtained after the first frequency compensation operation to respectively obtain a corresponding first shunt signal and a corresponding second shunt signal; the first branch signal is sent to the rear end, and the second branch signal respectively executes second frequency compensation operation for adjusting the sound field effect according to different sound propagation paths of the loudspeakers at different sides to the left ear or the right ear; mixing the second shunt signal obtained after the second frequency compensation operation with a second shunt signal corresponding to the ear on the other side to obtain a mixed second shunt signal; and mixing the first branch signal and the mixed second branch signal again to obtain a first output signal and a second output signal which are used for the output of the loudspeaker after the sound field effect is adjusted.
In an embodiment, the processor 31 may be configured to perform:
performing the first component compensation on the first component signal; performing the second component compensation on the second component signal; wherein the compensation parameter of the first component compensation is different from the compensation parameter of the second component compensation.
In an embodiment, the processor 31 may be configured to perform:
mixing a first component signal which corresponds to the first audio signal and is subjected to the first component compensation with a second component signal which corresponds to the second audio signal and is subjected to the second component compensation to obtain a mixed second shunt signal which corresponds to the first audio signal; and mixing the second component signal which corresponds to the first audio signal and is subjected to the second component compensation with the first component signal which corresponds to the second audio signal and is subjected to the first component compensation to obtain a mixed second shunt signal which corresponds to the second audio signal.
In an embodiment, the processor 31 may be configured to perform:
the signal branches comprise a first branch, a second branch and a third branch; the first branch is amplified through a first amplification factor K1 of the first channel to obtain a first branch signal; the second branch is amplified by a second amplification factor K2 of the second channel to obtain a first component signal of the second branch signal; and the third branch is amplified by a third amplification factor K3 of the third channel to obtain a second component signal of the second branch signal.
In an embodiment, the processor 31 may be configured to perform:
adjusting a second amplification factor of the second channel and a compensation parameter of the first component compensation; adjusting a third amplification factor of the third channel and a compensation parameter of a second component compensation; the target sound field formed by the second branch signal is advanced with respect to the original sound field by the adjustment.
In an embodiment, the processor 31 may be configured to perform:
performing delay processing on the mixed second branch signal; and mixing the delayed second branch signal with the first branch signal on the corresponding side again.
In an embodiment, the processor 31 may be configured to perform:
acquiring a standard response curve of a standard loudspeaker at a target opening angle; obtaining a product response curve of the product horn measured under a target opening angle according to the standard response curve; acquiring a current response curve of the product loudspeaker, and acquiring an expected curve difference value based on the current response curve and the product response curve; and obtaining compensation parameters corresponding to the first frequency compensation operation and the second frequency compensation operation according to the expected curve difference.
In an embodiment, the processor 31 may be configured to perform:
acquiring frequency response curves of a product loudspeaker and a standard loudspeaker; adjusting the frequency response curve corresponding to the product loudspeaker to align the frequency response curves of the product loudspeaker and the standard loudspeaker at a preset frequency; calculating to obtain an ideal curve difference value between frequency response curves of the product loudspeaker and the standard loudspeaker; acquiring a frequency response curve of a left ear at a target opening angle of the standard loudspeaker and a frequency response curve of a right ear at the target opening angle of the standard loudspeaker; and respectively superposing the frequency response curve of the left ear at the target opening angle of the standard loudspeaker and the frequency response curve of the right ear at the target opening angle of the standard loudspeaker with the difference value of the ideal curve to obtain the left standard response curve and the right standard response curve.
Therefore, in the digital audio sound field effect processing method and the loudspeaker device in the application, the first frequency compensation operation is performed on the first audio signal and the second audio signal respectively, and then the compensated signals are branched and the operations of compensation and mixing are performed, so that the complexity of the algorithm is reduced, a better sound field effect can be realized through a lower operation amount in the digital audio processing process, the adaptability of the processing method on a hardware platform with lower performance is favorably improved, and the sound field effect and the reduction degree of the low-performance platform in the using process are further improved.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium may store a program, and when the program is executed by a processor, the program may perform some or all of the steps in the embodiments provided in the present application, for example:
respectively obtaining a first audio signal output at a left ear and a second audio signal output at a right ear based on a standard loudspeaker and a dummy head model which comprise the left side and the right side under a preset opening angle; performing a first frequency compensation operation for adjusting a sound field effect on the first audio signal and the second audio signal, respectively; respectively carrying out signal shunting on the first audio signal and the second audio signal obtained after the first frequency compensation operation to respectively obtain a corresponding first shunt signal and a corresponding second shunt signal; the first branch signal is sent to the rear end, and the second branch signal respectively executes second frequency compensation operation for adjusting the sound field effect according to different sound propagation paths of the loudspeakers at different sides to the left ear or the right ear; mixing the second shunt signal obtained after the second frequency compensation operation with a second shunt signal corresponding to the ear on the other side to obtain a mixed second shunt signal; and mixing the first branch signal and the mixed second branch signal again to obtain a first output signal and a second output signal which are used for the output of the loudspeaker after the sound field effect is adjusted.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
In this embodiment of the present application, the loudspeaker device and the sound field effect processing method for digital audio in the foregoing embodiments belong to the same concept, and any method step provided in the sound field effect processing method for digital audio in the loudspeaker device may be executed.
It should be understood that the above-described embodiments of the present application are only examples for clearly illustrating the present application, and are not intended to limit the manner in which the present application is constructed. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. This need not be exhaustive of all the ways in which construction can be accomplished. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the claims of the present application.

Claims (10)

1. A method for sound field effect processing of digital audio, the method comprising:
respectively obtaining a first audio signal and a second audio signal to be processed by loudspeakers on the left side and the right side;
performing a first frequency compensation operation for adjusting a sound field effect on the first audio signal and the second audio signal, respectively;
respectively carrying out signal shunting on the first audio signal and the second audio signal obtained after the first frequency compensation operation to respectively obtain a corresponding first shunt signal and a corresponding second shunt signal; the first branch signal is sent to the rear end, and the second branch signal respectively executes second frequency compensation operation for adjusting the sound field effect according to different sound propagation paths of the loudspeakers at different sides to the left ear or the right ear;
mixing the second shunt signal obtained after the second frequency compensation operation with a second shunt signal corresponding to the loudspeaker on the other side to obtain a mixed second shunt signal;
and mixing the first branch signal and the mixed second branch signal again to obtain a first output signal and a second output signal which are used for the output of the loudspeakers at the two sides after the sound field effect is adjusted.
2. The sound-field-effect processing method of digital audio according to claim 1, wherein the second branch signal includes a first component signal and a second component signal; the first component signal is a signal from a left loudspeaker to a left ear or a right ear, and the second component signal is a signal from a right loudspeaker to the left ear or the right ear; the second frequency compensation comprises a first component compensation and a second component compensation;
the second branch signal respectively executes a second frequency compensation operation for adjusting the sound field effect according to the difference of sound propagation paths of the loudspeakers on different sides to the left ear or the right ear, and the second frequency compensation operation comprises the following steps:
performing the first component compensation on the first component signal;
performing the second component compensation on the second component signal;
wherein the compensation parameter of the first component compensation is different from the compensation parameter of the second component compensation.
3. The method for sound-field-effect processing of digital audio according to claim 2, wherein the step of mixing at least two second branch signals obtained after the second frequency compensation operation to obtain two second branch signals corresponding to a left ear and a right ear comprises:
mixing a first component signal which corresponds to the first audio signal and is subjected to the first component compensation with a second component signal which corresponds to the second audio signal and is subjected to the second component compensation to obtain a mixed second shunt signal which corresponds to the first audio signal;
and mixing the second component signal which corresponds to the first audio signal and is subjected to the second component compensation with the first component signal which corresponds to the second audio signal and is subjected to the first component compensation to obtain a mixed second shunt signal which corresponds to the second audio signal.
4. The method of claim 2, wherein the signal splitting the first audio signal and the second audio signal obtained after the first frequency compensation operation to obtain a corresponding first split signal and a corresponding second split signal respectively comprises:
the signal branches comprise a first branch, a second branch and a third branch;
the first branch is amplified through a first amplification factor K1 of the first channel to obtain a first branch signal;
the second branch is amplified by a second amplification factor K2 of the second channel to obtain a first component signal of the second branch signal;
and the third branch is amplified by a third amplification factor K3 of a third channel to obtain a second component signal of the second branch signal.
5. The sound-field-effect processing method of digital audio according to claim 4, wherein:
the first channel is used for adjusting the sound intensity output to the left ear or the right ear on the same side with the loudspeaker;
the second channel is used for adjusting the sound intensity output to the ear at the same side as the loudspeaker;
the third channel is used for adjusting the intensity of sound output to ears on different sides of the loudspeaker.
6. The sound-field-effect processing method of digital audio according to claim 4 or 5, wherein the step of mixing at least two second branch signals obtained after the second frequency compensation operation to obtain two second branch signals corresponding to a left ear and a right ear comprises:
adjusting a second amplification factor of the second channel and a compensation parameter of the first component compensation;
adjusting a third amplification factor of the third channel and a compensation parameter of a second component compensation;
the target sound field formed by the second branch signal is advanced with respect to the original sound field by the adjustment.
7. The method of claim 2, wherein the remixing the first split signal and the mixed second split signal to obtain a first output signal and a second output signal for output by a speaker, further comprises:
performing delay processing on the mixed second branch signal;
and mixing the delayed second branch signal with the first branch signal on the corresponding side again.
8. The method of sound field effect processing of digital audio according to claim 1, further comprising:
acquiring a standard response curve of a standard loudspeaker at a target opening angle;
obtaining a product response curve of the product horn measured under a target opening angle according to the standard response curve;
acquiring a current response curve of the product loudspeaker, and acquiring an expected curve difference value based on the current response curve and the product response curve;
and obtaining compensation parameters corresponding to the first frequency compensation operation and the second frequency compensation operation according to the expected curve difference.
9. The method for sound-field-effect processing of digital audio according to claim 8, wherein said method further comprises:
acquiring frequency response curves of a product loudspeaker and a standard loudspeaker;
adjusting the frequency response curve corresponding to the product loudspeaker to align the frequency response curves of the product loudspeaker and the standard loudspeaker at a preset frequency;
calculating to obtain an ideal curve difference value between frequency response curves of the product loudspeaker and the standard loudspeaker;
the obtaining of the product response curve of the product horn measured at the target opening angle according to the standard response curve includes:
acquiring a standard response curve of a standard loudspeaker under a target opening angle;
and superposing the standard response curve of the standard horn at the target opening angle with the difference value of the ideal curve to obtain the product response curve of the product horn measured at the target opening angle.
10. An acoustic speaker apparatus, characterized in that the acoustic speaker apparatus comprises:
a processor; and
a memory electrically connected to the processor;
the memory stores machine-readable instructions executable by the processor to perform the method of sound-field-effect processing of digital audio according to any one of claims 1 to 10.
CN202210468869.3A 2022-04-29 2022-04-29 Digital audio sound field effect processing method and loudspeaker device Pending CN114866949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210468869.3A CN114866949A (en) 2022-04-29 2022-04-29 Digital audio sound field effect processing method and loudspeaker device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210468869.3A CN114866949A (en) 2022-04-29 2022-04-29 Digital audio sound field effect processing method and loudspeaker device

Publications (1)

Publication Number Publication Date
CN114866949A true CN114866949A (en) 2022-08-05

Family

ID=82636374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210468869.3A Pending CN114866949A (en) 2022-04-29 2022-04-29 Digital audio sound field effect processing method and loudspeaker device

Country Status (1)

Country Link
CN (1) CN114866949A (en)

Similar Documents

Publication Publication Date Title
US10057703B2 (en) Apparatus and method for sound stage enhancement
KR100717066B1 (en) Front surround system and method for reproducing sound using psychoacoustic models
US5841879A (en) Virtually positioned head mounted surround sound system
US5661812A (en) Head mounted surround sound system
KR102346935B1 (en) Enhanced virtual stereo reproduction for unmatched transaural loudspeaker systems
KR101533347B1 (en) Enhancing the reproduction of multiple audio channels
CN108632714B (en) Sound processing method and device of loudspeaker and mobile terminal
AU2015383608B2 (en) An audio signal processing apparatus and method for filtering an audio signal
KR20050075029A (en) Equalisation of the output in a stereo widening network
US20110268299A1 (en) Sound field control apparatus and sound field control method
WO2006067893A1 (en) Acoustic image locating device
JP4480335B2 (en) Multi-channel audio signal processing circuit, processing program, and playback apparatus
US8666081B2 (en) Apparatus for processing a media signal and method thereof
JPH11150799A (en) Device and method for processing sound image localization
US20130243200A1 (en) Parametric Binaural Headphone Rendering
TW420930B (en) Active digital audio/video signal modification to correct for playback system deficiencies
US6990210B2 (en) System for headphone-like rear channel speaker and the method of the same
US10440495B2 (en) Virtual localization of sound
JPH0965500A (en) Sound field controller
JP4497161B2 (en) SOUND IMAGE GENERATION DEVICE AND SOUND IMAGE GENERATION PROGRAM
WO2023221607A1 (en) Sound field equalization adjustment method and apparatus, device and computer readable storage medium
CN114866949A (en) Digital audio sound field effect processing method and loudspeaker device
JP2002095098A (en) Acoustic reproducer
US8340322B2 (en) Acoustic processing device
JP2000228800A (en) Method and device for reproducing multi-channel audio signal

Legal Events

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