Method, apparatus and device for obtaining optimal delay of sound field partition control and medium
By establishing an audio signal library and using the golden section search algorithm, the optimal delay for in-vehicle sound field zoning control was determined, solving the problem of difficult-to-determine system delay and improving the applicability and noise reduction effect of in-vehicle sound field zoning control.
Patent Information
- Application Number
- CN202510093534.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2045-01-21
AI Technical Summary
In existing technologies, it is difficult to determine the optimal system delay for in-vehicle sound field zoning control, resulting in a poor listening experience and inapplicability to various audio signals.
An audio signal library is established, the desired signal of each audio signal is obtained, the optimal control filter is calculated through a secondary path filter, and the delay corresponding to the minimum cost function is found within a preset initial delay range using the golden ratio search.
The optimal delay for various audio signals is effectively selected, improving the robustness and noise reduction performance of in-vehicle sound field zoning control.
Smart Images

Figure CN119946508B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of sound field control, in particular to a sound field partition control optimal delay acquisition method, device, equipment and medium. BACKGROUND
[0002] The in-vehicle sound field partition control is designed to meet the individual sound field needs of in-vehicle personnel and is an important part of the intelligent cockpit scene. At present, the sound field partition control mainly includes two methods. The first method is to reconstruct the target sound field in a certain area while reducing the interference of the area on the sound field of other areas, such as the sound energy contrast method (ACC) and the sound pressure matching method (PM). The second method is to use the active noise control (ANC) scheme to realize the in-vehicle sound field partition control. For the sound field of the bright area, no control is performed, and for the sound source of the dark area, a filter is designed to make the bright area audio signal at the microphone of the dark area be canceled. Compared with the first method, the sound field partition control based on ANC does not reduce the sound quality of the bright area, but is limited by the characteristics of ANC and is only effective for low-frequency signals.
[0003] In related technologies, for the sound field partition control scheme based on ANC, a feedforward control mode is usually adopted to calculate the optimal filter of different areas from the reference signal and the error signal, and the output signals of each area are filtered and emitted by the loudspeakers of each area. At this time, the reference signal is no longer the noise signal in the traditional ANC, but the media music, navigation prompt sound, and conversation voice from other partitions, which are filtered out by the ANC controller of the current area to retain the unrelated signals. For the feedforward ANC system, when the causality of the system does not meet the requirements, that is, the reference signal is processed by the filter, the secondary source is output, and it arrives at the error microphone later than the expected signal, the noise reduction performance of the system will be greatly reduced. In common ANC applications, the causality is ensured by placing the reference sensor as close to the noise source as possible or reducing the delay of the secondary path. For the in-vehicle sound field partition control, since the audio played at different positions can be obtained in advance, the delay between the reference signal acquisition and the expected signal acquisition can be artificially controlled, that is, the causality of the system can be fully guaranteed.
[0004] However, too long a delay is not conducive to the listening experience of in-vehicle passengers, and the types of audio signals played in the vehicle are diverse and different. The optimal delay for one type of audio signal may not be applicable to other types of audio signals, making it difficult to determine the optimal system delay. SUMMARY
[0005] The present application provides a sound field partition control optimal delay acquisition method, device, equipment and medium, which can solve the technical problem of difficulty in determining the optimal system delay in the prior art.
[0006] In a first aspect, the present application provides a method for obtaining optimal delay of sound field partition control, which comprises:
[0007] establishing an audio signal library and obtaining expected signals corresponding to each audio signal in the audio signal library;
[0008] obtaining each filtered signal of each audio signal filtered by a secondary path filter, and obtaining an optimal control filter corresponding to each filtered signal according to each filtered signal and the corresponding expected signal, and then obtaining a theoretical noise reduction amount of each audio signal;
[0009] taking an average value of each theoretical noise reduction amount as a cost function, and finding a delay corresponding to a minimum cost function in a preset initial delay range by golden section search, as an optimal delay.
[0010] In combination with the first aspect, in an embodiment, the finding of the delay corresponding to the minimum cost function in the preset initial delay range by golden section search specifically comprises:
[0011] obtaining two golden section points in the initial delay range and obtaining average values corresponding to the two golden section points; when the two average values are different, taking the golden section point with the larger average value as a first point and the other golden section point as a second point; when the two average values are the same, taking any golden section point as a first point and the other golden section point as a second point;
[0012] discarding an interval on a side away from the second point of the first point in the initial delay range to obtain a new delay range, taking the second point as a new golden section point of the new delay range, and calculating another new golden section point until the cost function is minimum and obtaining a delay corresponding thereto.
[0013] In combination with the first aspect, in an embodiment, when the delay value of the first point is less than the delay value of the second point, taking the first point as a lower limit of a new delay range, obtaining a product of a difference between an upper limit and a lower limit of the new delay range and 0.618, and taking a sum of the product and the lower limit of the new delay range as another new golden section point;
[0014] when the delay value of the first point is greater than the delay value of the second point, taking the first point as an upper limit of a new delay range, obtaining a product of a difference between an upper limit and a lower limit of the new delay range and 0.382, and taking a sum of the product and the lower limit of the new delay range as another new golden section point.
[0015] In combination with the first aspect, in an embodiment, the two golden section points in the initial delay range are and respectively:
[0016]
[0017]
[0018] wherein, is a lower limit of an initial delay range, is an upper limit of the initial delay range.
[0019] With reference to the first aspect, in an implementation, the expected signal corresponding to each audio signal in the audio signal library is obtained, and specifically includes:
[0020] According to the application scenario, the bright zone and the dark zone are determined;
[0021] Each audio signal is taken as a reference signal, and when the reference signal is played back with a delay in the bright zone, the sound microphone signal collected in the dark zone is taken as the expected signal corresponding to the reference signal.
[0022] With reference to the first aspect, in an implementation, before the each filter signal obtained by filtering each audio signal through the secondary path filter is obtained, the method further includes:
[0023] The white noise is played in the dark zone in sequence, and the sound microphone signal collected in the dark zone is preprocessed, and the system identification is performed by using the normalized least mean square algorithm, to obtain the secondary path filter of the dark zone.
[0024] With reference to the first aspect, in an implementation, the optimal control filter corresponding to any filter signal is obtained according to the filter signal and the corresponding expected signal, and specifically includes:
[0025] The autocorrelation matrix of the filter signal and the cross-correlation vector of the filter signal and the expected signal after the delay are obtained;
[0026] The optimal control filter corresponding to the filter signal is obtained according to the autocorrelation matrix and the cross-correlation vector.
[0027] The second aspect provides an optimal delay acquisition device for sound field partition control, and the device includes:
[0028] A first acquisition module is configured to establish an audio signal library and obtain an expected signal corresponding to each audio signal in the audio signal library;
[0029] A second acquisition module is configured to obtain each filter signal obtained by filtering each audio signal through a secondary path filter, and obtain an optimal control filter corresponding to each filter signal according to each filter signal and the corresponding expected signal, to further obtain a theoretical noise reduction amount of each audio signal;
[0030] The golden section search module is configured to take an average of the theoretical noise reduction amounts as a cost function, and find a delay corresponding to a minimum of the cost function in a preset initial delay range by using a golden section search, as an optimal delay.
[0031] In a third aspect, the present application provides an optimal delay acquisition device for sound field partition control, which comprises a processor, a memory, and an optimal delay acquisition program stored in the memory and executable by the processor, wherein the optimal delay acquisition program, when executed by the processor, implements the steps of the optimal delay acquisition method.
[0032] In a fourth aspect, the present application provides a computer readable storage medium, which stores an optimal delay acquisition program, wherein the optimal delay acquisition program, when executed by a processor, implements the steps of the optimal delay acquisition method.
[0033] The technical scheme provided by the present application has the beneficial effects that:
[0034] By establishing an audio signal library, obtaining the expected signals corresponding to each audio signal in the audio signal library, and obtaining each filter signal obtained by filtering each audio signal through a secondary path filter, the optimal control filter corresponding to each filter signal can be obtained according to each filter signal and the corresponding expected signal, and the theoretical noise reduction amount of each audio signal can be obtained. Since different optimal delays are required for different audio files, in order to obtain an optimal delay with high robustness and applicable to most audio files, the theoretical noise reduction amounts of all audio signals are averaged to obtain a cost function of a final search algorithm, and a golden section search is used to find a delay corresponding to a minimum of the cost function in a preset initial delay range, as an optimal delay. Therefore, the optimal delay can be effectively selected for sound field partition control in a vehicle, and is applicable to different audio signals, which has important practical value and research significance for sound field partition control in a vehicle based on an active noise control algorithm. BRIEF DESCRIPTION OF DRAWINGS
[0035] Figure 1 FIG. 1 is a flowchart of an embodiment of the optimal delay acquisition method of the present application;
[0036] Figure 2 FIG. 2 is a flowchart of another embodiment of the optimal delay acquisition method of the present application;
[0037] Figure 3 FIG. 3 is a schematic diagram of sound field partition control for the driver and the front passenger based on active noise control in an embodiment of the present application;
[0038] Figure 4Fig. 1 is a schematic diagram of a golden section search (GSS) algorithm in an embodiment of the present application;
[0039] Figure 5 Fig. 4 is a comparison between the noise reduction amount of no delay and the optimal delay in a dark area in an embodiment of the present application;
[0040] Figure 6 Fig. 5 is a schematic diagram of functional modules of an embodiment of the optimal delay acquisition device in the present application;
[0041] Figure 7 Fig. 6 is a schematic diagram of the hardware structure of the optimal delay acquisition device in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative labor fall within the scope of the present application.
[0043] In a first aspect, the embodiments of the present application provide an optimal delay acquisition method for sound field partition control.
[0044] Reference Figure 1 , Figure 1 Fig. 1 is a schematic diagram of a golden section search (GSS) algorithm in an embodiment of the present application;
[0045] S1. An audio signal library is established, and the expected signals corresponding to each audio signal in the audio signal library are obtained.
[0046] S2. Each filtered signal of each audio signal obtained by a secondary path filter is obtained, and the optimal control filter corresponding to each filtered signal is obtained according to each filtered signal and the corresponding expected signal, and then the theoretical noise reduction amount of each audio signal is obtained.
[0047] S3. The average value of each theoretical noise reduction amount is taken as a cost function, and the delay corresponding to the minimum cost function is found by golden section search in the preset initial delay range, as the optimal delay.
[0048] In the embodiment, by establishing an audio signal library, obtaining the expected signals corresponding to each audio signal in the audio signal library, and obtaining each filter signal obtained by filtering each audio signal through a secondary path filter, the optimal control filter corresponding to each filter signal can be obtained according to each filter signal and the corresponding expected signal, and then the theoretical noise reduction amount of each audio signal can be obtained. Since different optimal delays are required for different audio files, in order to obtain an optimal delay with high robustness and applicable to most audio files, the theoretical noise reduction amounts of all audio signals are averaged as the cost function of the final search algorithm, and the delay corresponding to the minimum cost function is found in the preset initial delay range by using the golden section search as the optimal delay. Therefore, the optimal delay can be effectively selected for in-vehicle sound field partition control, and is applicable to different sound source signals, which has important practical value and research significance for in-vehicle sound field partition control based on an active noise control algorithm.
[0049] Further, in an embodiment, the step S3 of finding the delay corresponding to the minimum cost function in the preset initial delay range by using the golden section search specifically includes:
[0050] Firstly, two golden section points in the initial delay range are obtained, and the average value corresponding to the two golden section points is obtained. When the average values corresponding to the two golden section points are different, the golden section point with the larger average value is taken as the first point, and the other golden section point is taken as the second point. When the average values corresponding to the two golden section points are the same, any golden section point is taken as the first point, and the other golden section point is taken as the second point.
[0051] Then, the interval on the side away from the second point of the first point in the initial delay range is discarded to obtain a new delay range. The second point is taken as a new golden section point of the new delay range, and another new golden section point is calculated to further reduce the new delay range until the cost function is minimum, and the corresponding delay is obtained.
[0052] It can be understood that the golden section search algorithm is similar to the binary search algorithm, and is a heuristic iterative optimization algorithm, which needs to determine the search criterion, the search range and the search stop condition. The search criterion is used to determine whether the current search result is better.
[0053] In the embodiment, the cost function is selected as the theoretical noise reduction amount of the dark area. When the current parameter searched makes the theoretical noise reduction amount of the dark area increase, the boundary value of the search is updated. When the parameter newly searched makes the theoretical noise reduction amount tend to be stable and no longer change, the search is stopped. At this time, the parameter is the optimal delay of the current audio signal.
[0054] Further, in the embodiment, when calculating another new golden section point, first determine the size of the first point and the second point.
[0055] When the delay value of the first point is less than the delay value of the second point, take the first point as the lower limit of the new delay range, and obtain the product of the difference between the upper limit and the lower limit of the new delay range and 0.618, and take the sum of the product and the lower limit of the new delay range as another new golden section point.
[0056] When the delay value of the first point is greater than the delay value of the second point, take the first point as the upper limit of the new delay range, and obtain the product of the difference between the upper limit and the lower limit of the new delay range and 0.382, and take the sum of the product and the lower limit of the new delay range as another new golden section point.
[0057] In the embodiment, in the application of the active noise control-based in-vehicle sound field partition, the reference signal is usually obtained in advance. For the scenario of the main driver bright zone and the co-driver dark zone, the reference signal of the co-driver dark zone is the audio signal input to the main driver loudspeaker, and the expected signal of the co-driver dark zone is the audio signal played by the main driver loudspeaker and received by the co-driver microphone. When the acquisition of the reference signal can be in advance of the acquisition of the expected signal, it is often more conducive to the causality of the active noise control algorithm, and better noise reduction performance can be obtained. Therefore, a certain delay can be added to the expected signal of the main driver, so that the reference signal is collected in advance of the expected signal, to obtain better causality. However, such delay does not always have the effect of improvement, on the contrary, when the added delay is too large, the audio heard by the passenger will have obvious lag, which will have adverse effects. Therefore, the algorithm based on golden section search in the embodiment can realize the search for optimal delay, thereby obtaining optimal bright-dark contrast performance improvement.
[0058] Further, in an embodiment, the two golden section points in the initial delay range and are respectively:
[0059]
[0060]
[0061] wherein, is the lower limit of the initial delay range, is the upper limit of the initial delay range.
[0062] Further, in an embodiment, in step S1, the expected signal corresponding to each audio signal in the audio signal library is obtained, specifically including:
[0063] First, according to the application scenario, determine the bright zone and the dark zone.
[0064] Then, each audio signal is taken as a reference signal, and the microphone signal collected when the reference signal is played back with a delay in the bright zone is taken as the expected signal corresponding to the reference signal, i.e., the expected signal corresponding to the audio signal.
[0065] Further, before obtaining each filtered signal of each audio signal through the secondary path filter, the embodiment further includes:
[0066] The white noise is played in the secondary sound field of the dark zone in sequence, and the microphone signal of the dark zone is collected for preprocessing, and the normalized least mean square algorithm is used for system identification to obtain the secondary path filter of the dark zone.
[0067] In the embodiment, the secondary path filter of the dark zone is obtained by playing the white noise in the secondary sound field of the dark zone in sequence and collecting the microphone signal of the dark zone for system identification, and good estimation accuracy can be achieved.
[0068] Further, in an embodiment, in the step S2, the optimal control filter corresponding to any filtered signal is obtained according to the filtered signal and the corresponding expected signal, and specifically includes:
[0069] First, the autocorrelation matrix of the filtered signal and the cross-correlation vector of the filtered signal and the expected signal after time delay are obtained;
[0070] Then, the optimal control filter corresponding to the filtered signal is obtained according to the autocorrelation matrix and the cross-correlation vector.
[0071] In the embodiment, the autocorrelation matrix of the filtered signal and the cross-correlation vector of the filtered signal and the expected signal can be calculated through offline secondary path identification, so as to calculate the Wiener filter result, and then the theoretical calculation formula is used to obtain the theoretical noise reduction result as the cost function of the golden section search.
[0072] The method of the embodiment collects a large number of audio signals to establish an audio signal database, calculates the optimal control filter of different sound sources by using the Wiener filtering algorithm, calculates the theoretical noise reduction amount of different sound sources, averages the theoretical noise reduction amount, and then uses the golden section search method to obtain the best delay for noise reduction of the audio signal database as the optimal delay, so as to obtain the optimal delay in the scene of multiple audio signals as sound sources.
[0073] As shown in Figure 2 The optimal delay obtaining method specifically includes:
[0074] A1. According to the application scene, the bright zone and the dark zone are determined, and the secondary path transfer function is measured to obtain the secondary path filter;
[0075] A2. Obtain the desired signal corresponding to each audio signal, and then obtain each filter signal and the corresponding optimal control filter, and calculate the theoretical noise reduction amount of each audio signal;
[0076] A3. Set the initial delay range;
[0077] A4. Calculate the average of the theoretical noise reduction amount at the golden section point, and update the boundary of the delay range;
[0078] A5. Determine whether the cost function is minimized, if so, go to A6, otherwise, go to A4.
[0079] A6. Output the delay corresponding to the minimum cost function as the optimal delay.
[0080] In this embodiment, stop when the difference between the cost function value of the current iteration and the cost function value of the last iteration is less than a preset minimum value, or when the search delay range is less than a preset minimum range. At this time, it is determined that the cost function is minimized.
[0081] In an embodiment, the audio signal delay parameter selection when using an active noise control scheme for in-vehicle sound field partition control is taken as an example, and the specific implementation steps of the above method are as follows:
[0082] 1) Obtain the audio signal and the corresponding desired signal, and perform secondary path identification
[0083] As shown in Figure 3 , based on the actual application scenario, the corresponding light area position and dark area position are determined (taking the main driver light area and the copilot dark area as an example), the main driver light area plays the audio signal in the audio signal library with delay, and the microphone signal in the dark area is collected as the desired signal for solving the Wiener filter later. The audio signal without delay is used as the reference signal; Then, the secondary sound in the dark area is played with white noise in turn and the microphone signal in the dark area position is collected for preprocessing, and the normalized least mean square algorithm (NLMS) is used for system identification to obtain the secondary path filter of the dark area position.
[0084] 2) Multi-channel Wiener filter modeling is performed on the input delayed audio signal to obtain the optimal control filter under the current delay, and the derivation process is as follows:
[0085] The error signal of the copilot dark area is represented as
[0086]
[0087] Where represents the secondary source label, represents the error microphone label, represents the dummy variable of the convolution of the secondary path and the output signal, represents the current a sampling point, a delay added to the primary driver zone audio signal, a desired signal representing the delay caused by the delayed audio signal,
[0088] a secondary path of length the output of a FIR filter of order applied to the primary driver audio signal, denoted as:
[0089]
[0090] where, denotes the control filter coefficients and the input signal, i.e. the reference signal the dummy variable of the vector convolution;
[0091]
[0092]
[0093] The cost function defining the filter design is the mean square error:
[0094]
[0095] where, denotes the time average over the argument. The gradient of the cost function with respect to the two filter coefficient vectors is taken and denoted as The optimal control filter coefficients are calculated using the Wiener filter algorithm as:
[0096]
[0097] where,
[0098]
[0099]
[0100]
[0101]
[0102] the estimated secondary path from the th secondary source to the th error point.
[0103] 3) Calculate the theoretical noise reduction for different audio signals
[0104] The theoretical noise reduction of the current audio signal is calculated using the optimal control filter coefficients obtained above. The calculation formula is as follows:
[0105]
[0106] in, Represents the first in the audio signal library Given an audio signal, iterate through all audio signals in the audio signal library, calculate their theoretical noise reduction, and finally take the average as the cost function of the golden section search method:
[0107]
[0108] 4) Use the golden section search method to find the optimal delay.
[0109] The Golden Section Search is an iterative optimization algorithm that finds the minimum value of a unimodal continuous function by simply narrowing the search range through iteration, without the need for derivative operations.
[0110] First, initialize the parameters to determine the optimization range of the delay, i.e., the initial delay range. ,in, The option is 0. This can be determined based on actual circumstances or experience; then, two golden ratio points within this range are selected as follows:
[0111]
[0112]
[0113] Then, calculate separately. and corresponding and And compare their sizes.
[0114] like Figure 4 As shown in Iteration 1, when At that time, the new optimization range will be limited to the new delay range. Based on the new delay range, the new golden ratio point is obtained as follows:
[0115]
[0116] Get new and After that, only the newer ones need to be compared. and Then, the next optimization can be performed. As can be seen from the above formula, the current iteration... It's the one from the last iteration. This indicates the current iteration. The value of the last iteration is equal to the value of the current iteration . In the current iteration, only the value of
[0117] As shown in the iteration Iteration 2 shown in Figure 4 , when optimized again, is less than , therefore, the new optimization range will be locked in . According to the new delay range, the new golden section point is obtained as:
[0118]
[0119] Correspondingly, only the value of is needed to complete the current iteration and enter the next optimization.
[0120] As shown in Figure 5 , after obtaining the optimal delay, the noise reduction amount of the dark area without delay and the optimal delay is compared, and it is found that the noise reduction effect of the optimal delay is better.
[0121] In this embodiment, by continuously iterating and narrowing the optimization range, the optimal value of the function is found, that is, the optimal system delay applicable to the audio signal library is obtained.
[0122] The embodiment relates to sound field control technology of an intelligent cockpit, uses a golden section search algorithm to calculate an optimal delay, simultaneously considers the robustness of the delay under different audio signals, and proposes an effective optimal delay design scheme, which can be used for optimal delay acquisition of in-vehicle sound field partition control. When performing partition control in a vehicle by using an active noise control algorithm, the delay between a reference signal and an expected signal is regulated, so that the energy contrast of the sound field partition is effectively improved.
[0123] In a second aspect, the embodiment of the application further provides an optimal delay acquisition device for sound field partition control. In an embodiment, referring to Figure 6 , Figure 6 is a functional module schematic diagram of the optimal delay acquisition device for sound field partition control in the application. The optimal delay acquisition device comprises a first acquisition module, a second acquisition module, and a golden section search module.
[0124] The first acquisition module is used to establish an audio signal library and acquire expected signals corresponding to each audio signal in the audio signal library.
[0125] The second acquisition module is used to acquire each filter signal obtained by filtering each audio signal through a secondary path filter, and acquire optimal control filters corresponding to each filter signal according to each filter signal and the corresponding expected signal, and further acquire theoretical noise reduction amounts of each audio signal.
[0126] The golden section search module is configured to take the average of each theoretical noise reduction amount as a cost function, and find a delay corresponding to a minimum cost function in a preset initial delay range by golden section search, as an optimal delay.
[0127] Further, in an embodiment, the golden section search module is further configured to:
[0128] obtain two golden section points in the initial delay range, and obtain the average values corresponding to the two golden section points; when the two average values are different, take the golden section point with a larger average value as a first point, and take the other golden section point as a second point; when the two average values are the same, take any golden section point as a first point, and take the other golden section point as a second point;
[0129] discard an interval on a side away from the second point of the first point in the initial delay range to obtain a new delay range, take the second point as a new golden section point of the new delay range, and calculate another new golden section point until a minimum cost function is obtained, and obtain a delay corresponding thereto.
[0130] Further, in an embodiment, the golden section search module is further configured to:
[0131] when the delay value of the first point is less than the delay value of the second point, take the first point as a lower limit of a new delay range, and obtain a product of a difference between an upper limit and the lower limit of the new delay range and 0.618, and take a sum of the product and the lower limit of the new delay range as another new golden section point;
[0132] when the delay value of the first point is greater than the delay value of the second point, take the first point as an upper limit of a new delay range, and obtain a product of a difference between the upper limit and the lower limit of the new delay range and 0.382, and take a sum of the product and the lower limit of the new delay range as another new golden section point.
[0133] Further, in an embodiment, the two golden section points in the initial delay range are and respectively.
[0134]
[0135]
[0136] wherein, is a lower limit of the initial delay range, is an upper limit of the initial delay range.
[0137] Further, in an embodiment, the first obtaining module is further configured to:
[0138] determine a bright area and a dark area according to an application scenario.
[0139] respectively take each audio signal as a reference signal, and take the microphone signal collected when playing the reference signal with a delay in the bright zone as the expected signal corresponding to the reference signal.
[0140] Further, in an embodiment, the first obtaining module is further configured to:
[0141] Further, in an embodiment, the first obtaining module is further configured to:
[0142] Further, in an embodiment, the second obtaining module is further configured to:
[0143] Further, in an embodiment, the second obtaining module is further configured to:
[0144] Further, in an embodiment, the second obtaining module is further configured to:
[0145] Further, in an embodiment, the second obtaining module is further configured to:
[0146] In the optimal delay obtaining apparatus, each module corresponds to each step in the optimal delay obtaining apparatus, and the functions and implementation processes of the modules are not repeated here.
[0147] In a third aspect, an optimal delay obtaining apparatus for sound field partition control is provided in the embodiments of the present application. The optimal delay obtaining apparatus can be a personal computer (PC), a notebook computer, a server, or any other device with data processing function. Figure 7 Figure 7 FIG. 1 is a schematic diagram of a hardware structure of an optimal delay obtaining apparatus according to an embodiment of the present application.
[0148] The communication bus can be of any type, and is used to interconnect the processor, the memory, and the communication interface.
[0149] The communication interface includes an input / output (I / O) interface, a physical interface, and a logical interface, and is used to interconnect devices inside the optimal delay obtaining apparatus, and is also used to interconnect the optimal delay obtaining apparatus with other devices (for example, other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber interface, an ATM interface, or the like; and the user device can be a display screen (Display), a keyboard (Keyboard), or the like.
[0150] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0151] The processor can be a general-purpose processor, which can invoke an optimal delay acquisition program stored in the memory and execute the optimal delay acquisition method provided by the embodiments of the present application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the optimal delay acquisition program is invoked can refer to various embodiments of the optimal delay acquisition method of the present application, which will not be described here.
[0152] Those skilled in the art can understand that the hardware structure shown in the above-mentioned embodiments is not a limitation of the present application, and can include more or less components than the illustrated components, or combine certain components, or different component arrangements. Figure 7
[0153] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium.
[0154] The computer readable storage medium of the present application stores an optimal delay acquisition program, wherein the optimal delay acquisition program is executed by the processor to implement the steps of the optimal delay acquisition method as described above.
[0155] The method implemented when the optimal delay acquisition program is executed can refer to various embodiments of the optimal delay acquisition method of the present application, which will not be described here.
[0156] It should be noted that the above-mentioned sequence number of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments.
[0157] The terms “include,” “comprise,” “have,” and any variations thereof, in the specification and in the claims of the present application, and the above-described drawings, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a list of steps or units is not limited to the listed steps or units, but can optionally further include steps or units not listed, or can optionally further include other steps or units inherent to such processes, methods, products, or devices. The terms “first”, “second”, and “third” and the like descriptions are used to distinguish different objects, and do not represent the order or limit the types of “first”, “second”, and “third”.
[0158] In the description of the embodiments of the present application, “exemplary”, “for example”, or “for instance” is used to represent an example, illustration, or description. Any embodiment or design scheme described as “exemplary”, “for example”, or “for instance” in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words “exemplary”, “for example”, or “for instance” are intended to present the relevant concept in a specific manner.
[0159] In the description of the embodiments of the present application, unless otherwise specified, “ / ” represents the meaning of or, for example, A / B can represent A or B; “and / or” in the text only represents a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, “multiple” means two or more than two.
[0160] In some of the processes described in the embodiments of the present application, a plurality of operations or steps are included in a specific order, but it should be understood that these operations or steps can be executed or performed in parallel or in an order different from that in which they appear in the embodiments of the present application. The serial number of the operation is only used to distinguish different operations, and the serial number itself does not represent any execution order. In addition, these processes can include more or fewer operations, and these operations or steps can be executed in sequence or in parallel, and these operations or steps can be combined.
[0161] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and a general hardware platform as required, of course, it can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, an optical disk) as described above, and includes a plurality of instructions for causing a terminal device to execute the methods described in the embodiments of the present application.
[0162] The preferred embodiments of the present application have been described above with the illustrated embodiments, and are not intended to limit the scope of patent protection for the present application. Any equivalent structure or equivalent process variations, which directly or indirectly incorporate the contents of the specification and drawings of the present application, are also intended to be included within the scope of patent protection for the present application.
Claims
1. A method for optimal delay acquisition for sound field partition control, characterized in that, The method comprises: establishing an audio signal library and obtaining expected signals corresponding to each audio signal in the audio signal library; obtaining each filtered signal of each audio signal obtained through a secondary path filter, and obtaining an optimal control filter corresponding to each filtered signal according to each filtered signal and the corresponding expected signal, and then obtaining a theoretical noise reduction amount of each audio signal; taking an average value of each theoretical noise reduction amount as a cost function, and finding a delay corresponding to a minimum cost function in a preset initial delay range by using golden section search as an optimal delay; obtaining expected signals corresponding to each audio signal in the audio signal library, specifically comprising: determining a bright area and a dark area according to an application scenario; respectively taking each audio signal as a reference signal, and taking a microphone signal collected in the dark area when the reference signal is played back with a delay in the bright area as an expected signal corresponding to the reference signal.
2. The optimal delay acquisition method for sound field zone control of claim 1, wherein, The method comprises: obtaining two golden section points in the initial delay range, and obtaining average values corresponding to the two golden section points; when the two average values are different, taking the golden section point with a larger average value as a first point, and taking the other golden section point as a second point; when the two average values are the same, taking any golden section point as a first point, and taking the other golden section point as a second point; discarding an interval on a side away from the second point of the first point in the initial delay range to obtain a new delay range, taking the second point as a new golden section point of the new delay range, and calculating another new golden section point until the cost function is minimum, and obtaining a delay corresponding thereto.
3. The optimal delay acquisition method for sound field partition control according to claim 2, wherein: when the delay value of the first point is less than the delay value of the second point, taking the first point as a lower limit of a new delay range, obtaining a product of a difference between an upper limit and the lower limit of the new delay range and 0.618, and taking a sum of the product and the lower limit of the new delay range as another new golden section point; when the delay value of the first point is greater than the delay value of the second point, taking the first point as an upper limit of a new delay range, obtaining a product of a difference between the upper limit and the lower limit of the new delay range and 0.382, and taking a sum of the product and the lower limit of the new delay range as another new golden section point.
4. The method for optimal delay acquisition for sound field zone control of claim 2, wherein, two golden section points within the initial delay range and are respectively: wherein is a lower limit of the initial delay range, is an upper limit of the initial delay range.
5. The method of optimal delay acquisition for sound field zone control of claim 1, wherein, Before obtaining each filtered signal of each audio signal obtained through a secondary path filter, the method further comprises: playing white noise in the secondary sound of the dark area in turn and collecting dark area microphone signals for preprocessing, and performing system identification by using a normalized least mean square algorithm to obtain a secondary path filter of the dark area.
6. The method for optimal delay acquisition for sound field zone control of claim 1, wherein, According to any filtered signal and the corresponding expected signal, the optimal control filter corresponding to the filtered signal is obtained, specifically comprising: obtaining an autocorrelation matrix of the filtered signal, and a cross-correlation vector of the filtered signal and the expected signal after a delay; obtaining the optimal control filter corresponding to the filtered signal according to the autocorrelation matrix and the cross-correlation vector.
7. An apparatus for optimal delay acquisition for sound field partition control, characterized by The device comprises: a first obtaining module configured to establish an audio signal library and obtain expected signals corresponding to each audio signal in the audio signal library; The second obtaining module is configured to obtain each filtered signal of each audio signal filtered by the secondary path filter, and obtain an optimal control filter corresponding to each filtered signal according to each filtered signal and a corresponding expected signal, and further obtain a theoretical noise reduction amount of each audio signal; The golden section search module is configured to take an average value of the theoretical noise reduction amounts as a cost function, and find a delay corresponding to a minimum of the cost function in a preset initial delay range by using the golden section search, as the optimal delay; The first obtaining module is further configured to: determine the bright area and the dark area according to an application scenario; respectively take each audio signal as a reference signal, and take a microphone signal of the dark area collected when the reference signal is played back with a delay in the bright area as an expected signal corresponding to the reference signal.
8. An apparatus for optimal delay acquisition for sound field partition control, characterized by The optimal delay acquisition device of the sound field partition control includes a processor, a memory, and an optimal delay acquisition program stored in the memory and executable by the processor. When the optimal delay acquisition program is executed by the processor, the steps of the optimal delay acquisition method in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium has the optimal delay acquisition program stored therein. When the optimal delay acquisition program is executed by the processor, the steps of the optimal delay acquisition method in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Active control method for zoning of sound field in vehicle
CN115052225A
Processing method, device and system of sound field control filter, medium and product
CN118692439A