Sound field simulation method and device and storage medium
By using pulse generation algorithms and target feedback delay networks, the problem of limited sound field simulation accuracy and reality in the prior art is solved, and higher sound field simulation accuracy and better user experience are achieved.
Patent Information
- Application Number
- CN202311177268.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2025-03-14
AI Technical Summary
In the prior art, Schroeder reverb based on one-dimensional structure has limited accuracy and reality when simulating the sound field, resulting in a gap between the simulation results and the real spatial sound, and poor user experience.
By obtaining audio input data, user parameters of preset space and system parameters, using pulse generation algorithm to integrate processing, generate an initial impulse response, and generate a target feedback delay network based on the initial impulse response, input the audio input data into the network after the preset delay time, obtaining the audio output data.
The process of convolutionizing the audio input data with the initial impulse response is avoided, computing resources are saved, and the accuracy of sound field simulation is improved, the gap with real sound is reduced, and the user experience is improved.
Smart Images

Figure CN119626200A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio simulation technology, and in particular to a sound field simulation method, device and storage medium. Background Art
[0002] Sound field simulation can help audio producers adjust the sound effects more accurately during recording and mixing. By simulating different closed space characteristics such as size, shape, reflection and sound absorption, the reverberation, echo and spatial sense of the sound can be changed, making the audio content more realistic and immersive.
[0003] At present, the method of simulating sound fields is usually based on Schroeder reverberator. In Schroeder reverberator, a one-dimensional serial feedback structure is usually used. It uses the delay and mixing of reflected signals to simulate multiple reflections of sound, thereby producing a reverberation effect. Among them, the delay time and amplitude attenuation coefficient of each reflection are usually fixed and remain unchanged throughout the reverberation process. Therefore, due to the limitations of the one-dimensional structure, this method of simulating sound fields is usually limited in accuracy and authenticity, resulting in a certain gap between the simulation results and the real space sound, and a poor user experience. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a sound field simulation method, device and storage medium, which can improve the accuracy of sound field simulation.
[0005] In a first aspect, the present application provides a sound field simulation method, including: obtaining audio input data, user parameters corresponding to a preset space, and system parameters corresponding to the preset space; using an impulse generation algorithm to integrate and process the user parameters and the system parameters to generate an initial impulse response; after the audio input data has been delayed for a preset time, it is input into a target feedback delay network to obtain audio output data; the target feedback delay network is generated by analyzing and processing the initial impulse response; the audio output data is the simulated sound field corresponding to the preset space.
[0006] In the second aspect, the present application provides a sound field simulation device, including: an acquisition module, used to acquire audio input data, user parameters corresponding to a preset space, and system parameters corresponding to the preset space; a generation module, used to integrate and process the user parameters and system parameters using an impulse generation algorithm to generate an initial impulse response; a processing module, used to input the audio input data into a target feedback delay network after a preset delay time to obtain audio output data; the target feedback delay network is generated by analyzing and processing the initial impulse response; the audio output data is the simulated sound field corresponding to the preset space.
[0007] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the sound field simulation method of the first aspect is implemented.
[0008] In a fourth aspect, the present application provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the sound field simulation method of the first aspect is implemented.
[0009] In a fifth aspect, the present application provides a computer program product, comprising: when the computer program product is run on a computer, the computer implements the sound field simulation method as in the first aspect.
[0010] The technical solution provided by the present application has the following advantages compared with the prior art: first, audio input data, user parameters corresponding to the preset space, and system parameters corresponding to the preset space are obtained. Afterwards, the user parameters and system parameters are integrated and processed using an impulse generation algorithm to generate an initial impulse response. Finally, the audio input data is input into a target feedback delay network after a preset delay time to obtain audio output data. In this way, a target feedback delay network can be generated according to the initial impulse response, and the audio input data is input into a target feedback delay network after a preset delay time to obtain audio output data. It avoids the process of convolving the audio input data with the initial impulse response when simulating the sound field, saving a large amount of computing power resources. In addition, the audio input data is input into a target feedback delay network after a preset delay time to obtain audio output data, avoiding the problem that there is a certain gap between the sound field simulated by the Schroeder reverberator and the real sound, improving the accuracy of the sound field simulation, and further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0013] Figure 1 One of the flow charts of the sound field simulation method provided in the embodiment of the present application;
[0014] Figure 2 A pulse response schematic diagram provided in an embodiment of the present application;
[0015] Figure 3 A second flow chart of the sound field simulation method provided in an embodiment of the present application;
[0016] Figure 4 A third flow chart of the sound field simulation method provided in an embodiment of the present application;
[0017] Figure 5 A fourth flowchart of the sound field simulation method provided in an embodiment of the present application;
[0018] Figure 6 A fifth flow chart of the sound field simulation method provided in an embodiment of the present application;
[0019] Figure 7 One of the network structure diagrams of the feedback delay network provided in the embodiment of the present application;
[0020] Figure 8 A second schematic diagram of the network structure of the feedback delay network provided in an embodiment of the present application;
[0021] Fig. 9 A schematic diagram of the structure of a sound field simulation device provided in an embodiment of the present application;
[0022] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.
[0025] Existing sound field simulation technologies can be mainly divided into simulation methods based on physical models and simulation methods based on digital signal processing. Simulation methods based on physical models usually use methods such as wave equations, sound rays, and statistical models to establish a preset space model to solve the sound field distribution of the preset space. However, these simulation methods based on physical models require high computational complexity and high storage capacity, and are difficult to calculate in real time, so they are rarely used in practical applications. Simulation methods based on digital signal processing are usually based on reverberation theory, using the time delay and reflection coefficient between reflections to simulate the preset space audio. However, due to the limitations of the one-dimensional structure, simulation methods based on digital signal processing are usually limited in accuracy and authenticity, resulting in a certain gap between the simulation results and the real space sound, and a poor user experience.
[0026] In view of the above problems, an embodiment of the present application provides a sound field simulation method, first obtaining audio input data, user parameters corresponding to a preset space, and system parameters corresponding to the preset space. Afterwards, the user parameters and system parameters are integrated and processed using an impulse generation algorithm to generate an initial impulse response. Finally, after the audio input data is passed through a preset delay time, it is input into a target feedback delay network to obtain audio output data. A target feedback delay network can be generated according to the initial impulse response, and after the audio input data is passed through a preset delay time, it is input into a target feedback delay network to obtain audio output data. It avoids the process of convolving the audio input data with the initial impulse response when simulating the sound field, saving a large amount of computing power resources. At the same time, it also avoids the problem that there is a certain gap between the sound field simulated by the Schroeder reverberator and the real sound, improves the accuracy of the sound field simulation, and further improves the user experience.
[0027] The sound field simulation method provided in the embodiment of the present application can be implemented by a sound field simulation device, and the sound field simulation device provided in the embodiment of the present application can be hardware or software. When the sound field simulation device is hardware, it can be various electronic devices with the function of running sound field simulation, including but not limited to vehicle-mounted equipment, smart vehicles, mobile phones, computers, etc. When the sound field simulation device is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules, or it can be implemented as a single software or software module, which is not specifically limited here.
[0028] Figure 1 A schematic diagram of the flow of the sound field simulation method provided in the embodiment of the present application, such as Figure 1 As shown, the sound field simulation method may include the following steps.
[0029] S11. Acquire audio input data, user parameters corresponding to the preset space, and system parameters corresponding to the preset space.
[0030] Among them, the preset space is equipment, facilities, or other objects with a closed space. For example, the preset space can be a vehicle with a closed compartment, or a room, etc., and this application does not limit this.
[0031] The user parameter may include at least one of the size, position, material, humidity, and temperature of the preset space. The size may include parameters such as the length, width, and height of the preset space, and the position may include a sound receiving position and a sound source position; the sound receiving position may be a position where the user wants the sound to reach, or a position selected by the user.
[0032] System parameters may include at least one of the sampling rate, reflection order, impulse length, window function length, filter bank center frequency, and feedback delay network delay line length. The sampling rate refers to the number of times a signal is sampled per second in digital signal processing. The sampling rate in this application refers to the sampling rate of the feedback delay network for audio input data. The reflection order refers to the number of reflections experienced by a sound wave in a feedback delay network (each reflection causes the path of the sound wave to change and the energy to decay). The impulse length refers to the length of the initial impulse signal used in the feedback delay network. The impulse length determines the time domain characteristics of the reflected signal. A shorter impulse length can produce a clear reflection effect, while a longer impulse length can produce a lasting reverberation effect. The window function length refers to the length of the window function for processing an impulse signal. Exemplarily, the window function can be a Hanning window, a rectangular window, a Hamming window, etc. The center frequency of the filter bank refers to the center frequency of each filter in a group of filters used for frequency division and signal processing. In the feedback delay network, a filter bank is usually used to perform frequency domain analysis and processing on the input signal. The center frequency of each filter determines its position in the spectrum and also determines the response of the filter to the signal within a specific frequency range. The length of the delay line of the feedback delay network refers to the number of sampling points of each delay line. The length of the delay line determines the delay time of the reflected signal. A longer delay line can produce a longer delay time and reverberation effect.
[0033] First, audio input data is obtained. In some embodiments, the audio input data can be real-time audio from any audio source, or pre-recorded audio, such as music, voice, ambient sound, etc.
[0034] Afterwards, the user parameters corresponding to the preset space and the system parameters corresponding to the preset space are obtained. In some embodiments, the user parameters are parameters input by the user according to the requirements. The system parameters are parameters related to the feedback delay network (FDN), and the system parameters are preset, for example, they can be default parameter values, or they can be parameter values set by relevant personnel according to actual conditions.
[0035] S12. Use a pulse generation algorithm to integrate the user parameters and the system parameters to generate an initial pulse response.
[0036] Among them, the impulse response (RIR) is usually used to describe the corresponding relationship between the reverberation time and reverberation intensity of the sound propagating in a preset space and reaching the receiving point after various reflections, attenuation and interference. Figure 2 is an impulse response, such as Figure 2 As shown in the figure, the horizontal axis is used to represent the reverberation time in seconds (s), and the vertical axis is used to represent the reverberation intensity. Figure 2 In the impulse response shown, the reverberation intensity gradually decreases as the reverberation time increases.
[0037] In some embodiments, Figure 3 As shown, the method of integrating the user parameters and the system parameters using the pulse generation algorithm to generate the initial pulse response may include the following steps:
[0038] S121. Generate a primary impulse response according to user parameters and system parameters using an image source algorithm.
[0039] In some embodiments, the user parameters include the sound receiving position and the sound source position, and the system parameters include the pulse length and the sampling rate. Thus, the method of using the image source algorithm to generate the primary impulse response according to the user parameters and the system parameters can be to use the image source model (ISM) to generate the primary impulse response according to the following formula.
[0040]
[0041] Among them, r is used to represent the sound receiving position, r s Used to indicate the location of the sound source, h(r, r s , n) is used to represent the primary impulse response at (r, r s ) at the position. q, j, k are the set in p, and q is used to represent the mirror image on the x-axis, j is used to represent the mirror image on the y-axis, and k is used to represent the mirror image on the z-axis. x , m y, m z is a set in m, and m x Used to indicate the number of reflections on the x-axis, m y Used to indicate the number of reflections on the y-axis, m z is used to represent the number of reflections on the z-axis. δ is the Dirac function, T is used to represent the time of sound propagation, and τ is the continuous time, f s It is used to indicate the sampling rate, and d is used to indicate the distance the sound travels. and Used to represent the sound absorption coefficient of two surfaces on the x-axis; and Used to represent the sound absorption coefficient of two surfaces on the y-axis; and It is used to indicate the sound absorption coefficient of two surfaces on the z-axis. LPF is a low-pass filter (LPF).
[0042] The sound propagation time τ can be the pulse length in the system parameters, and the sound propagation distance d can be the distance between the sound receiving position r and the sound source position r in the user parameters. s The Euclidean distance between the sound receiving position r and the sound source position r s The Euclidean distance between r and r s For example, when the coordinates of r are (x r ,y r , z r ), r s The coordinates of (x s ,y s , z s ), then r and r s The Euclidean distance between
[0043] S122: Generate initial reverberation time and event occurrence rate according to user parameters and system parameters using a reverberation time algorithm.
[0044] Among them, the event rate is the probability of the primary impulse response event occurring.
[0045] In some embodiments, the user parameters include the size of the preset space, and the system parameters include the pulse length and the sampling rate.
[0046] First, the reverberation time algorithm can be used to calculate the event rate of the primary impulse response based on the size of the preset space, the pulse length, the sampling rate, and the following formula.
[0047]
[0048] Among them, μ is used to represent the event rate, V is used to represent the volume of the preset space, c is used to represent the speed of sound, t is used to represent the time of sound propagation, and t is a discrete time. V can be calculated according to the size of the preset space. For example, when the shape of the preset space is a rectangular parallelepiped, V = U × O × P, U is the length of the preset space, O is the width of the preset space, and P is the height of the preset space; t can be obtained by sampling the pulse length according to the sampling rate in the system parameters.
[0049] After that, the initial reverberation time is calculated according to the following formula.
[0050]
[0051] Among them, Δt A (z) is used to represent the initial reverberation time, μ is used to represent the event occurrence rate, and z is a random number between 0 and 1.
[0052] S123, performing integration processing based on the primary impulse response, the initial reverberation time, and the event occurrence rate to obtain an initial impulse response.
[0053] In some embodiments, Figure 4 As shown, the method of obtaining the initial impulse response by integrating the primary impulse response, the initial reverberation time, and the event occurrence rate may include the following steps:
[0054] S1231. Generate a target sequence based on the event occurrence rate and the initial reverberation time using the Poisson process.
[0055] In some embodiments, according to the event occurrence rate of the primary impulse response events, the primary impulse response events are distributed at time points corresponding to the initial reverberation time to obtain a target sequence.
[0056] S1232. Perform discrete transformation on the target sequence to obtain at least one subsequence.
[0057] In some embodiments, the target sequence may be discretely transformed to obtain at least one subsequence by applying a filter group (the center frequency of the filter group is the center frequency of the filter group defined in the system parameters) to the target sequence to divide the target sequence into at least one subsequence; or the target sequence may be discretely transformed (DFT) to divide the target sequence into at least one subsequence.
[0058] Exemplarily, the filter bank may be a quadrature mirror filter (QMF) filter bank, a finite impulse response (FIR) filter bank, an infinite impulse response (IIR) filter bank, or the like.
[0059] For example, when the target sequence is h d (n), for h d (n) Applying a filter bank (such as QMF, FIR, IIR, etc.) or performing DFT transformation to obtain at least one subsequence.
[0060] S1233. Use the primary impulse response to perform weighted summation on at least one subsequence to obtain an initial impulse response.
[0061] The primary impulse response is used to perform weighted summation on at least one subsequence to obtain an initial impulse response, that is, weighted summation is performed on at least one subsequence, the weight being the energy envelope corresponding to the primary impulse response, to obtain the initial impulse response.
[0062] In the above scheme, the image source algorithm is first used to generate a primary impulse response according to the user parameters and system parameters, and the reverberation time algorithm is used to generate the initial reverberation time and event rate according to the user parameters and system parameters. Then, the primary impulse response, the initial reverberation time, and the event rate are integrated and processed to obtain the initial impulse response. The initial impulse response can be generated according to the user parameters and the system parameters, that is, from the user's perspective, the user can define the physical conditions corresponding to the preset space through the interface, thereby simulating the audio data output data that the user wants, thereby improving the user experience.
[0063] In addition, the Poisson process is used to generate a target sequence based on the event rate and the initial reverberation time, and the target sequence is discretely transformed to obtain at least one subsequence. Finally, the primary impulse response is used to perform weighted summation on at least one subsequence to obtain the initial impulse response. The Poisson process can be used to generate the target sequence and finally obtain the initial impulse response, which avoids the influence of ray tracing on the sound field simulation and improves the accuracy of the sound field simulation.
[0064] In addition, the number of generated subsequences can be adjusted by controlling the number of filters in the filter group, thereby achieving a balance between computing power and realism. When computing power permits, the accuracy of the sound field simulation can be further improved by increasing the number of subsequences.
[0065] S13, after the audio input data has been delayed for a preset time, it is input into a target feedback delay network to obtain audio output data.
[0066] The target feedback delay network is generated by analyzing and processing the initial impulse response; the audio output data is the sound field corresponding to the simulated preset space.
[0067] In some embodiments, after the audio input data has been delayed for a preset time, it is input into the target feedback delay network, and before the audio output data is obtained, it also includes: using a time estimation algorithm to estimate the initial impulse response to obtain a pre-delay time and a mixing time. The mixing time is the time it takes for the sound to be evenly distributed in a preset space after being emitted from the sound source and reflected and scattered.
[0068] In some embodiments, a pre-delay time estimation algorithm and a mixing time estimation algorithm may be used to estimate the initial impulse response to obtain a pre-delay time and a mixing time.
[0069] In some embodiments, Figure 5 As shown, the acquisition process of the target feedback delay network may include the following steps:
[0070] S81. Analyze and process the initial impulse response to obtain a first coefficient and a second coefficient.
[0071] In some embodiments, Figure 6 As shown, the method of analyzing and processing the initial impulse response to obtain the first coefficient and the second coefficient may include the following steps:
[0072] S811. Use a data processing algorithm to perform energy decay analysis on the initial impulse response to determine the secondary reverberation time and the secondary reverberation intensity.
[0073] In some embodiments, the sound field simulation method also includes using a data processing algorithm to perform energy attenuation analysis on the initial pulse response to determine the noise floor, which can be used to guide the selection of appropriate sound-absorbing materials, sound insulation measures, etc. to ensure that the desired acoustic environment is obtained within a preset space; it can also be used to guide the layout of speakers, microphones and other audio equipment to ensure that the impact of noise on sound signals is minimized and the sound quality is improved.
[0074] In some embodiments, the data processing algorithm is an algorithm that can perform energy decay function (EDF) analysis on the initial impulse response. For example, the data processing algorithm can be a Karjalainen algorithm or a Bayesian algorithm.
[0075] The energy decay function satisfies the following formula:
[0076]
[0077] Among them, d K (t, θ) is used to represent the energy attenuation, N0 is used to represent the noise floor, Ti is used to represent the i-th moment in the secondary reverberation time, A i It is used to indicate the i-th reverberation intensity in the secondary reverberation intensity, L is used to indicate the length of the initial impulse response, t is used to indicate the time of sound propagation, and t is a discrete time, f s Used to indicate the sampling rate.
[0078] S812: Use an initial level analysis algorithm to perform level analysis on the secondary reverberation time, the secondary reverberation intensity, and the system parameters to obtain a first coefficient.
[0079] In some embodiments, the first coefficient may be calculated according to the following formula: Wherein, l(ω) is used to represent the first coefficient, L is used to represent the length of the initial impulse response, b(ω) is used to represent the center frequency of the filter bank, and A(ω) is used to represent the secondary reverberation intensity; f s Used to indicate the sampling rate, T 60 (ω) is used to represent the secondary reverberation time.
[0080] T 60 (ω) is RT 60 2. Parameters in the Absorption function, RT60 (Reverberation Time 60) is a parameter that measures the reverberation time in an audio environment. It refers to the time interval from the beginning of the sound to the decay to a certain intensity. The Absorption function describes the material's ability to absorb sound. It usually takes frequency as the independent variable and returns the sound absorption coefficient as the function value.
[0081] S813: Use a preset function to perform attenuation analysis on the secondary reverberation time and system parameters to obtain a second coefficient.
[0082] In some embodiments, the preset function may be RT 60 2Absorption function, the second coefficient can be calculated according to the following formula: A(ω) = Lγ dB (ω), where A(ω) is used to represent the second coefficient, L is used to represent the length of the initial impulse response, f s Used to indicate sampling rate, T 60 (ω) is used to represent the secondary reverberation time.
[0083] S82: Using the first coefficient as a level coefficient of a preset feedback delay network and the second coefficient as an attenuation coefficient of the preset feedback delay network to obtain a target feedback delay network.
[0084] Among them, the level coefficient is used to control the level of the delay line output data, and the attenuation coefficient is used to control the attenuation speed of the sound on the delay line. The delay line is a component of the feedback delay network.
[0085] The feedback delay network is usually composed of at least one delay line, a feedback matrix, at least one mixer, and a filter group. Among them, the delay line is a linear buffer with a fixed delay time, which is usually used to store samples of audio input data and mix it with copies with different delay times. The feedback matrix is used to feed the output of the delay line to the input end of the delay line again. By adjusting the corresponding attenuation coefficient of the feedback matrix, the strength of the feedback signal and the complexity of the delay path can be controlled. The mixer is used to multiply the output signal of the delay line by the level coefficient to obtain the network output of the feedback delay network. The filter group is used to further process the output signal of the delay line. Exemplarily, the filter group can be used to adjust the frequency response and reverberation characteristics.
[0086] For example, Figure 7 is a network structure of a feedback delay network, such as Figure 7 As shown, the feedback delay network includes a delay line, a filter bank, a feedback matrix, a first mixer Sum1, and a second mixer Sum2. In this way, after the audio input data x(n) is input into the feedback delay network, it first passes through the delay line and the filter bank to obtain a first result; the first mixer Sum1 adds a level coefficient to the first result to obtain a network output y(n) of the feedback delay network; the second mixer Sum2 adds an attenuation coefficient to the first result, inputs the feedback matrix, obtains a second result, and uses the sum of the second result and the audio input data x(n) as the input of the next delay line.
[0087] For example, Figure 8 The network structure is a feedback delay network, which includes four delay lines and eight mixers. Figure 8As shown, the feedback delay network includes delay line Z1, delay line Z2, delay line Z3, delay line Z4, filter FB1, filter FB2, filter FB3, filter FB4, feedback matrix, mixer Sum11, mixer Sum12, mixer Sum13, mixer Sum14, mixer Sum21, mixer Sum22, mixer Sum23, and mixer Sum24. In this way, after the audio input data x(n) enters the feedback delay network, it is first distributed to the delay lines Z1-Z4 (for the sake of convenience of distinction, the x(n) distributed to Z1-Z4 is called x1(n)-x4(n)), and then passes through the filter group FB1-FB4 to obtain the first result (including 4 first results, one filter corresponds to one first result), and then the level coefficient is added to the first result through the mixer Sum11-Sum14 to obtain the network output y1(n)-y4(n) of the feedback delay network; in addition, the mixer Sum21-Sum24 adds the attenuation coefficient to the first result, inputs the feedback matrix, and obtains the second result (including 4 second results, each mixer in the mixer Sum21-Sum24 corresponds to a second result), and the sum of the second result and the audio input data x1(n)-x4(n) is used as the input of the next delay line.
[0088] In the above scheme, the initial impulse response is analyzed and processed to obtain the first coefficient and the second coefficient, and the first coefficient is used as the level coefficient of the preset feedback delay network, and the second coefficient is used as the attenuation coefficient of the preset feedback delay network to obtain the target feedback delay network. The target feedback delay network can be generated according to the late initial impulse response, so that the audio input data can be input into the target feedback delay network after the preset delay time to obtain the audio output data, avoiding the process of convolving the audio input data with the initial impulse response, and saving a lot of computing resources.
[0089] In addition, a data processing algorithm is used to perform energy decay analysis on the initial impulse response to determine the secondary reverberation time and secondary reverberation intensity. Then, an initial level analysis algorithm is used to perform level analysis on the secondary reverberation time, secondary reverberation intensity, and system parameters to obtain a first coefficient, and a preset function is used to perform decay analysis on the secondary reverberation time and system parameters to obtain a second coefficient. In this way, the use of energy decay analysis can more accurately simulate the reverberation characteristics.
[0090] In some embodiments, the audio input data is input into a target feedback delay network after it has passed through a pre-delay time and a mixing time to obtain the audio output data. This can be done by inputting the audio input data into a target feedback delay network after it has passed through the sum of the pre-delay time and the mixing time to obtain the audio output data; or by inputting the audio input data into a target feedback delay network after it has passed through the pre-delay time and the mixing time in sequence to obtain the audio output data.
[0091] In the above scheme, the audio input data is input into the target feedback delay network after the pre-delay time and the mixing time to obtain the audio output data, which can simulate the reverberation characteristics more accurately.
[0092] In the above scheme, firstly, the audio input data, the user parameters corresponding to the preset space and the system parameters corresponding to the preset space are obtained. Afterwards, the user parameters and the system parameters are integrated and processed using an impulse generation algorithm to generate an initial impulse response. Finally, the audio input data is input into a target feedback delay network after a preset delay time to obtain audio output data. In this way, a target feedback delay network can be generated according to the initial impulse response, and the audio input data is input into a target feedback delay network after a preset delay time to obtain audio output data. It avoids the need to convolve the audio input data with the initial impulse response when simulating the sound field, saving a large amount of computing power resources. In addition, the audio input data is input into a target feedback delay network after a preset delay time to obtain audio output data, avoiding the problem that there is a certain gap between the sound field simulated by the Schroeder reverberator and the real sound, improving the accuracy of the sound field simulation, and further improving the user experience.
[0093] The embodiment of the present application can divide the functional modules of the sound field simulation device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0094] like Fig. 9 As shown, an embodiment of the present application provides a structural schematic diagram of a sound field simulation device 200 , and the sound field simulation device 200 includes an acquisition module 201 , a generation module 202 , and a processing module 203 .
[0095] The acquisition module 201 is used to acquire audio input data, user parameters corresponding to the preset space, and system parameters corresponding to the preset space; the generation module 202 is used to integrate the user parameters and the system parameters using an impulse generation algorithm to generate an initial impulse response; the processing module 203 is used to input the audio input data into a target feedback delay network after a preset delay time to obtain audio output data; the target feedback delay network is generated by analyzing and processing the initial impulse response; the audio output data is the simulated sound field corresponding to the preset space.
[0096] In some embodiments, the generation module 202 is specifically used to generate a primary impulse response according to user parameters and system parameters using an image source algorithm; generate an initial reverberation time and an event occurrence rate according to user parameters and system parameters using a reverberation time algorithm; wherein the event occurrence rate is the probability of occurrence of a primary impulse response event; and perform integration processing based on the primary impulse response, the initial reverberation time, and the event occurrence rate to obtain an initial impulse response.
[0097] In some embodiments, the generation module 202 is specifically used to generate a target sequence based on an event occurrence rate and an initial reverberation time using a Poisson process; perform a discrete transformation on the target sequence to obtain at least one subsequence; and perform a weighted summation of at least one subsequence using a primary impulse response to obtain an initial impulse response.
[0098] In some embodiments, the processing module 203 is further configured to use a time estimation algorithm to estimate the initial impulse response to obtain a pre-delay time and a mixing time.
[0099] In some embodiments, the processing module 203 is specifically used to input the audio input data into a target feedback delay network after the pre-delay time and the mixing time to obtain the audio output data.
[0100] In some embodiments, the processing module 203 is also used to analyze and process the initial impulse response to obtain a first coefficient and a second coefficient; the first coefficient is used as the level coefficient of the preset feedback delay network, and the second coefficient is used as the attenuation coefficient of the preset feedback delay network to obtain a target feedback delay network.
[0101] In some embodiments, the processing module 203 is specifically used to use a data processing algorithm to perform energy decay analysis on the initial impulse response to determine the secondary reverberation time and the secondary reverberation intensity; use an initial level analysis algorithm to perform level analysis on the secondary reverberation time, the secondary reverberation intensity, and the system parameters to obtain a first coefficient; use a preset function to perform decay analysis on the secondary reverberation time and the system parameters to obtain a second coefficient.
[0102] The sound field simulation device provided in this embodiment can execute the sound field simulation method provided in the above method embodiment. Its implementation principle and technical effect are similar to those of the above method and will not be described in detail here.
[0103] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0104] like Fig.10As shown, an embodiment of the present application provides an electronic device, which includes: a processor 1201, a memory 1202, and a computer program stored in the memory 1202 and executable on the processor 1201, and when the computer program is executed by the processor 1201, each process of the sound field simulation method in the above method embodiment is implemented. And the same technical effect can be achieved, and it will not be repeated here to avoid repetition.
[0105] An embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the sound field simulation method in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0106] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0107] An embodiment of the present application provides a computer program product, which stores a computer program. When the computer program is executed by a processor, each process of the sound field simulation method in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0108] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.
[0109] In the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0110] In this application, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0111] In this application, computer-readable media includes permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data and carrier waves.
[0112] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0113] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A sound field simulation method, characterized in that: include: Acquire audio input data, user parameters corresponding to a preset space, and system parameters corresponding to the preset space; Using an impulse generation algorithm to integrate the user parameters and system parameters to generate an initial impulse response; After the audio input data has been delayed for a preset time, it is input into a target feedback delay network to obtain audio output data; The target feedback delay network is generated by analyzing and processing the initial impulse response; the audio output data is a simulated sound field corresponding to the preset space.
2. The sound field simulation method according to claim 1, characterized in that: The user parameters and the system parameters are integrated and processed using an impulse generation algorithm to generate an initial impulse response, including: generating a primary impulse response based on the user parameters and the system parameters using an image source algorithm; Generate an initial reverberation time and an event occurrence rate according to the user parameters and the system parameters using a reverberation time algorithm; wherein the event occurrence rate and the probability of occurrence of a primary impulse response event; An initial impulse response is obtained by performing integration processing based on the primary impulse response, the initial reverberation time, and the event occurrence rate.
3. The sound field simulation method according to claim 2, characterized in that: The integrating process based on the primary impulse response, the initial reverberation time, and the average number of occurrences of the event to obtain the initial impulse response includes: Using a Poisson process, a target sequence is generated according to the event occurrence rate and the initial reverberation time; Performing a discrete transformation on the target sequence to obtain at least one subsequence; The at least one subsequence is weightedly summed using the primary impulse response to obtain an initial impulse response.
4. The sound field simulation method according to claim 1, characterized in that: The acquisition process of the target feedback delay network includes: Analyzing and processing the initial impulse response to obtain a first coefficient and a second coefficient; The first coefficient is used as a level coefficient of a preset feedback delay network, and the second coefficient is used as an attenuation coefficient of the preset feedback delay network to obtain a target feedback delay network.
5. The sound field simulation method according to claim 4, characterized in that: The analyzing and processing the initial impulse response to obtain the first coefficient and the second coefficient includes: performing an energy decay analysis on the initial impulse response using a data processing algorithm to determine a secondary reverberation time and a secondary reverberation intensity; Using an initial level analysis algorithm, performing level analysis on the secondary reverberation time, the secondary reverberation intensity, and the system parameters to obtain a first coefficient; A preset function is used to perform attenuation analysis on the secondary reverberation time and the system parameter to obtain a second coefficient.
6. The sound field simulation method according to claim 1, characterized in that: After the audio input data has been delayed for a preset time, it is input into a target feedback delay network, and before the audio output data is obtained, the method further includes: The initial impulse response is estimated using a time estimation algorithm to obtain the pre-delay time and the mixing time.
7. The sound field simulation method according to claim 6, characterized in that: The step of inputting the audio input data into a target feedback delay network after a preset delay time to obtain audio output data comprises: After the audio input data has passed through the pre-delay time and the mixing time, it is input into a target feedback delay network to obtain audio output data.
8. A sound field simulation device, characterized in that: include: An acquisition module, used to acquire audio input data, user parameters corresponding to a preset space, and system parameters corresponding to the preset space; A generating module, used for integrating the user parameters and the system parameters using an impulse generating algorithm to generate an initial impulse response; A processing module, used for inputting the audio input data into a target feedback delay network after a preset delay time, to obtain audio output data; The target feedback delay network is generated by analyzing and processing the initial impulse response; the audio output data is a simulated sound field corresponding to the preset space.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the sound field simulation method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the sound field simulation method according to any one of claims 1 to 7 is implemented.