Sound source positioning method and device, equipment and storage medium

By performing window processing and Fourier transform on the data to be processed, and combining wide main lobe and super-resolution beamforming algorithm for frequency domain hierarchical positioning, the problem of poor positioning accuracy in sound source positioning technology is solved, and more accurate Sound source positioning.

CN119024270AInactive Publication Date: 2024-11-26ジャン州立達信光電子科技有限公司

Patent Information

Application Number
CN202411030213.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing sound source positioning technology has the problem of poor positioning accuracy.

Method used

By performing windowing processing and Fourier transform on the data to be processed, the frequency domain signal is obtained, and then the frequency domain signal is divided into frequency domain, combined with the wide main lobe beamforming algorithm and super-resolution beamforming algorithm for positioning, and performing first-level and Secondary positioning, and finally the final positioning result is obtained through smooth denoising processing.

Benefits of technology

It significantly improves the accuracy of sound source positioning, reduces spectrum leakage, and ensures that more accurate frequency domain signals are obtained during Fourier transform, thereby positioning the location of the signal source more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024270A_ABST
    Figure CN119024270A_ABST
Patent Text Reader

Abstract

The invention discloses a sound source localization method and device, equipment and a storage medium, and relates to the field of sound source localization, and the method comprises the steps: obtaining to-be-processed data; performing windowing processing and Fourier transform on the to-be-processed data to obtain a frequency domain signal; performing frequency domain grading on the frequency domain signal to obtain a frequency domain grading result; and positioning the frequency domain grading result to obtain a target positioning result, so that the positioning precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of sound source localization, and in particular to a sound source localization method, device, equipment and storage medium. Background Art

[0002] Sound source localization technology is a technology that uses sound wave signals received by a sensor array to determine the location of the sound source.

[0003] Current sound source localization technology has the disadvantage of poor positioning accuracy.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a sound source localization method, device, equipment and storage medium, aiming to solve the technical problem of poor positioning accuracy of current sound source localization technology.

[0006] To achieve the above object, the present application proposes a sound source localization method, the method comprising:

[0007] Get the data to be processed;

[0008] Performing windowing and Fourier transform on the data to be processed to obtain a frequency domain signal;

[0009] Performing frequency domain classification on the frequency domain signal to obtain a frequency domain classification result;

[0010] Positioning is performed on the frequency domain classification result to obtain a target positioning result.

[0011] In one embodiment, the frequency domain classification result includes low frequency data and medium and high frequency data, and the step of positioning the frequency domain classification result to obtain the target positioning result includes:

[0012] Performing primary positioning on the low-frequency data by using a wide main lobe beamforming algorithm to obtain a primary positioning result;

[0013] Performing secondary positioning on the primary positioning result and the medium and high frequency data by using a super-resolution beamforming algorithm to obtain a secondary positioning result;

[0014] The secondary positioning result is used as the target positioning result.

[0015] In one embodiment, the step of positioning the frequency domain classification result to obtain the target positioning result includes:

[0016] The target positioning result is smoothed and denoised to obtain a final positioning result.

[0017] In one embodiment, the step of performing smoothing and denoising on the target positioning result to obtain a final positioning result includes:

[0018] Calculate and obtain an LED sequence mark based on the final positioning result;

[0019] Updating the LED display state based on the LED sequence flag;

[0020] The updated LED display status is displayed through the LED display device.

[0021] In one embodiment, the step of calculating and obtaining the LED sequence mark based on the final positioning result includes:

[0022] Calculate the positioning direction angle based on the final positioning result;

[0023] The LED sequence mark is calculated by combining the LED display array of the LED display device and the positioning direction angle.

[0024] In one embodiment, the step of obtaining the data to be processed includes:

[0025] Collect the data to be processed from the recording device end through the audio collection thread;

[0026] Storing the data to be processed in a message queue;

[0027] In response to the sound source localization request, the to-be-processed data is cyclically read from the message queue through a data processing thread.

[0028] In one embodiment, the step of cyclically reading the to-be-processed data from the message queue through a data processing thread includes:

[0029] The data processing thread reads a preset number of data points from the message queue each time, splices the data points read twice adjacently, and uses the spliced ​​data points as the data to be processed.

[0030] In addition, to achieve the above purpose, the present application also proposes a sound source localization device, the sound source localization device comprising:

[0031] A data acquisition module, used to acquire data to be processed;

[0032] A data processing module, used for performing windowing and Fourier transform on the data to be processed to obtain a frequency domain signal;

[0033] A frequency domain classification module, used to perform frequency domain classification on the frequency domain signal to obtain a frequency domain classification result;

[0034] The positioning module is used to locate the frequency domain classification result to obtain a target positioning result.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a sound source localization device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the sound source localization method as described above.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the sound source localization method described above are implemented.

[0037] One or more technical solutions proposed in this application have at least the following technical effects:

[0038] The present application performs a windowing operation on the processed data to effectively reduce spectrum leakage and ensure that a more accurate frequency domain signal is obtained when performing Fourier transform. Then, the present application performs frequency domain grading on the frequency domain signal to obtain a frequency domain grading result. The frequency domain grading result can indicate the main characteristics of the signal source in the frequency domain. The frequency domain grading result is then positioned to obtain a target positioning result, thereby more accurately locating the position of the signal source. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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.

[0040] 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.

[0041] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the sound source localization method of the present application;

[0042] Figure 2 This is a schematic diagram of the overall process of the sound source localization method of this application;

[0043] Figure 3 This is a schematic diagram of the module structure of the sound source localization device according to an embodiment of the present application;

[0044] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the sound source localization method in the embodiment of the present application.

[0045] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0048] Technical terms involved in the embodiments of the present invention:

[0049] Wide mainlobe beamforming algorithm: Wide mainlobe beamforming algorithms are often used in radar or wireless communication systems to optimize the directional characteristics of received or transmitted signals to enhance target signals or suppress interference and noise. Wide mainlobe beamforming needs to suppress signals (side lobes) in other directions as much as possible while enhancing the response in the direction of the main signal. One of the design goals of the algorithm is to achieve a narrower mainlobe and higher sidelobe suppression.

[0050] Super-resolution beamforming algorithm: Super-resolution beamforming algorithm is a technique used to improve target resolution in radar or wireless communication systems. It improves the spatial resolution of targets at long distances or in complex environments by utilizing multiple signal samples received by array antennas.

[0051] DS algorithm: The DS algorithm (Delay-and-Sum algorithm) is a basic spatial filter technology used to synthesize a beam pointing in a specific direction. Its basic principle is to delay the received antenna signals for a certain period of time, and then simply sum all the delayed signals to enhance the signal from the desired direction and weaken the signals from other directions. This method is simple and easy to implement, and is often used for basic beamforming.

[0052] GCC algorithm: The GCC algorithm (Generalized Cross-Correlation algorithm) is a method for determining the direction of a signal by measuring the delay difference between different receiving antennas. It estimates the angle of incidence of a signal by calculating the cross-correlation function between different antenna pairs based on the cross-correlation property of the signal. GCC beamforming usually requires precise time synchronization and phase calibration, and is suitable for application scenarios that require high-precision direction estimation.

[0053] MVDR algorithm: The MVDR algorithm (Minimum Variance Distortionless Response algorithm) is an algorithm that enhances the target signal in a specified direction by minimizing the variance of the output beamformer. It can provide the best signal acquisition capability under ideal conditions, but requires accurate array data covariance matrix information.

[0054] LCMV algorithm: The LCMV algorithm (Linearly Constrained Minimum Variance algorithm) is a method that optimizes the output of the beamformer through linear constraints to obtain the minimum variance in the target direction. It is more flexible than the MVDR algorithm and can suppress interference signals by adding additional constraints.

[0055] GSC algorithm: The GSC algorithm (Generalized Sidelobe Canceller) is an algorithm that suppresses interference signals by constructing a combined structure with a main beam and a side beam. It is mainly used in complex environments and can effectively reduce the sidelobe level outside the main beam.

[0056] MUSIC algorithm: The MUSIC algorithm (Multiple Signal Classification) is a high-resolution spectrum estimation method that estimates the incident angle of the signal by analyzing the spatial spectrum information of the signal received by the sensor array. It can identify and separate multiple incident signals and is suitable for scenarios that require precise positioning and high-resolution direction estimation.

[0057] The main solution of the embodiment of the present application is: obtain the data to be processed; perform windowing and Fourier transform on the data to be processed to obtain a frequency domain signal; perform frequency domain grading on the frequency domain signal to obtain a frequency domain grading result; locate the frequency domain grading result to obtain a target positioning result.

[0058] In this embodiment, for the convenience of description, the following description is made by taking the sound source localization device as the execution subject.

[0059] The current sound source localization technology has the disadvantage of poor positioning accuracy.

[0060] The present application provides a solution. The present application performs a windowing operation on the data to be processed, which can effectively reduce spectrum leakage and ensure that a more accurate frequency domain signal is obtained when performing Fourier transform. Then, the present application performs frequency domain grading on the frequency domain signal to obtain a frequency domain grading result. The frequency domain grading result can indicate the main characteristics of the signal source in the frequency domain. The frequency domain grading result is then positioned to obtain a target positioning result, thereby more accurately locating the position of the signal source.

[0061] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a sound source localization device, etc. The following takes the sound source localization device as an example to illustrate this embodiment and the following embodiments.

[0062] Sound source localization technology is a technology that uses the sound wave signals received by the sensor array to determine the location of the sound source. Sound source localization methods include positioning methods based on controllable beamforming with maximum output power: this method adjusts the weight of the sensor array to maximize the output power in a specific direction, thereby forming a beam pointing to the sound source. This method is simple and easy to implement, but it is greatly affected by array calibration errors, and its performance may degrade in environments with multiple sound sources. At the same time, it is sensitive to noise and reverberation, which may lead to inaccurate positioning.

[0063] Based on this, the present application embodiment provides a sound source localization method, referring to Figure 1 , Figure 1 A flowchart of the first embodiment of the sound source localization method of the present application is provided.

[0064] In this embodiment, the sound source localization method includes steps S10 to S40:

[0065] Step S10, obtaining data to be processed;

[0066] It should be noted that the embodiments of the present application can be applied to microphone array real-time positioning systems and can be used in scenarios such as robots, security monitoring, and conference systems.

[0067] Taking the microphone array real-time positioning system as an example, the microphone array and other recording devices are turned on for recording, and multi-channel data is collected from the recording device through several audio collection threads and put into the message queue as data to be processed.

[0068] In response to the sound source localization request, the data to be processed is obtained from the message queue through a plurality of data processing threads.

[0069] Step S20, performing windowing processing and Fourier transform on the data to be processed to obtain a frequency domain signal;

[0070] It should be noted that in order to prevent spectrum leakage, the data to be processed needs to be windowed.

[0071] The window function used in the windowing process is not limited to the Hanning window, the Hamming window, and the like.

[0072] Among them, windowing the data to be processed and then performing Fourier transform can obtain more accurate spectrum information, which is conducive to the analysis and interpretation of the frequency domain characteristics of the signal.

[0073] Step S30, performing frequency domain classification on the frequency domain signal to obtain a frequency domain classification result;

[0074] As an implementation manner, the frequency domain classification result may include low-frequency data and medium- and high-frequency data;

[0075] As another implementation, the frequency domain classification result may include medium and low frequency data and high frequency data;

[0076] As another implementation, the frequency domain classification result may include low-frequency data, medium-frequency data, and high-frequency data.

[0077] Step S40, positioning the frequency domain classification result to obtain a target positioning result.

[0078] As an implementation method, when the frequency domain grading result is low-frequency data and medium- and high-frequency data, the frequency domain grading result is positioned, and the target positioning result can be: the low-frequency data is positioned at the first level through a wide main lobe beamforming algorithm to obtain a first-level positioning result; the first-level positioning result and the medium- and high-frequency data are positioned at the second level through a super-resolution beamforming algorithm to obtain a second-level positioning result; and the second-level positioning result is used as the target positioning result.

[0079] When the frequency domain classification result is medium-low frequency data and high frequency data, or when the frequency domain classification result is low frequency data, medium frequency data, and high frequency data, the above method can be used for positioning to obtain the target positioning result.

[0080] This embodiment provides a sound source localization method. The present application performs a windowing operation on the data to be processed, which can effectively reduce spectrum leakage and ensure that a more accurate frequency domain signal is obtained when performing Fourier transform. Then, the present application performs frequency domain grading on the frequency domain signal to obtain a frequency domain grading result. The frequency domain grading result can indicate the main characteristics of the signal source in the frequency domain. The frequency domain grading result is then located to obtain a target positioning result, thereby more accurately locating the position of the signal source.

[0081] The current sound source localization methods also include the following three methods:

[0082] (1) Positioning methods based on high-resolution spectrum estimation: such as the MUSIC algorithm. This method uses the orthogonality of the signal subspace and the noise subspace to determine the direction of the sound source by searching for spectral peaks in the spatial spectrum. This method has high-precision angular resolution, but requires precise array calibration and synchronization, and has strict assumptions on signal and noise models. In the case of low signal-to-noise ratio or coherent signals, the performance may degrade and the computational complexity is high.

[0083] (2) Positioning method based on time delay difference of arrival (TDOA) estimation: This method estimates the location of the sound source by measuring the time difference between the sound waves arriving at different sensors. This method is simple and easy to implement, especially in a dual-sensor system. However, it has high requirements for time synchronization, and a small synchronization error may lead to a large positioning error. In a multipath environment, TDOA estimation may be inaccurate due to reflection and refraction. In addition, it is sensitive to environmental noise and reverberation.

[0084] (3) Machine learning-based methods: such as deep learning, which improves positioning accuracy by learning the complex relationship between the sound source and the environment. These methods usually require a large amount of labeled data to train the model. However, the generalization ability of the model may be affected by the difference in the distribution of training data and test data, and it may be difficult to explain the decision-making process of the machine learning model.

[0085] Based on the shortcomings of the current sound source localization technology, Example 2 of the present application is proposed.

[0086] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can refer to the above description, and will not be repeated later. On this basis, the frequency domain classification result includes low-frequency data and medium-high frequency data, and step S40 locates the frequency domain classification result, and obtaining the target positioning result also includes steps S41 to S43:

[0087] Step S41, performing primary positioning on the low-frequency data by using a wide main lobe beamforming algorithm to obtain a primary positioning result;

[0088] Among them, the wide main lobe beamforming algorithm includes but is not limited to the DS algorithm, the GCC algorithm, etc.

[0089] In the first stage, a wide mainlobe beamforming algorithm is used to process low-frequency data and beam-weight the received low-frequency signal to enhance the mainlobe directionality of the signal. This step is intended to preliminarily determine the approximate location or direction of the target.

[0090] Step S42, performing secondary positioning on the primary positioning result and the medium and high frequency data by using a super-resolution beamforming algorithm to obtain a secondary positioning result;

[0091] Among them, the super-resolution beamforming algorithm includes but is not limited to the MVDR algorithm, the LCMV algorithm, the GSC algorithm, the MUSIC algorithm, etc.

[0092] Among them, super-resolution beamforming technology usually uses the phase and amplitude information of the signal to locate the target with higher spatial resolution. This can help accurately locate the position of the target and provide a more detailed target image even in complex environments.

[0093] Step S43: using the secondary positioning result as the target positioning result.

[0094] Among them, the traditional positioning algorithm divides the positioning space into equal parts, uses the full frequency band for beamforming in each positioning space, and calculates the direction with the highest energy as the positioning direction. This will lead to higher computational complexity, and if super-resolution sound source positioning is used, the computational complexity will be even higher.

[0095] The present application divides the frequency domain into low frequency and medium and high frequency. The low frequency beam has a wider main lobe and can perform large-range positioning, while the medium and high frequency beam has a narrower main lobe width and can perform finer positioning.

[0096] First, use low-frequency signals for primary positioning, and then combine the primary positioning results with medium and high-frequency signals for secondary positioning. In this way, the calculation complexity can be greatly reduced through primary positioning, and the positioning accuracy can be improved through secondary positioning.

[0097] This application divides the frequency domain into low frequency and medium and high frequency. The low frequency beam has a wider main lobe, which can be used for large-scale positioning, and the medium and high frequency has a narrower main lobe width, which can be used for finer positioning. In addition, this application uses low-frequency signals for primary positioning, and then combines the primary positioning results with medium and high frequency signals for secondary positioning. In this way, the calculation complexity can be greatly reduced through primary positioning, and the positioning accuracy can be improved through secondary positioning. This application uses a delayed-sum wide main lobe beamforming algorithm in the primary positioning, and uses super-resolution beamforming algorithms such as MVDR / MUSIC in the secondary positioning, thereby combining multiple sound source localization algorithms to improve the algorithm accuracy.

[0098] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, step S40, positioning the frequency domain classification result, and after obtaining the target positioning result, step S50 is also included:

[0099] Step S50, smoothing and denoising the target positioning result to obtain a final positioning result. The smoothing and denoising process can be performed in a variety of ways, including but not limited to the following five methods:

[0100] (1) Sliding average method: Use a sliding window to average the positioning results to reduce the impact of accidental errors and instantaneous noise.

[0101] (2) Kalman filter: The Kalman filter is suitable for continuous state estimation. It can optimize and smooth the target position based on the model and observation data of the dynamic system, while taking into account past historical information and predicting future states.

[0102] (3) Weighted average method: Based on the confidence level of the positioning results or other weight factors, the positioning results from different sources or time periods are weighted averaged to improve the overall positioning accuracy.

[0103] (4) Wavelet transform denoising: The multi-scale analysis characteristics of wavelet transform are used to remove high-frequency noise components in the positioning results and retain the low-frequency parts, thereby achieving effective signal denoising processing.

[0104] (5) Statistical filtering method: For example, statistical methods such as median filtering and mean filtering select appropriate statistical filters for smoothing according to the distribution characteristics and data type of the positioning results.

[0105] The present application obtains the final positioning result by performing smoothing and denoising processing on the target positioning result, thereby further improving the accuracy and stability of the positioning result.

[0106] Based on the third embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the third embodiment can refer to the above description, and will not be repeated in the following. On this basis, step S50 performs smoothing and denoising on the target positioning result, and after obtaining the final positioning result, steps S60 to S80 are also included:

[0107] Step S60, calculating and obtaining an LED sequence mark based on the final positioning result;

[0108] It should be noted that, in this embodiment, the final positioning result needs to be displayed on the LED display device.

[0109] As an implementation method, when the final positioning result is calculated, the final positioning result can be put into the message queue through the LED display data collection thread.

[0110] Subsequently, in response to the LED display instruction, the positioning direction is obtained from the message queue through the LED display data processing thread, and then the LED sequence mark is calculated based on the final positioning result.

[0111] As an implementation method, the LED sequence mark may be a specific coding method or pattern for displaying specific information or indications on an LED display device.

[0112] Step S70, updating the LED display state based on the LED sequence mark;

[0113] Wherein, the state of each LED on the LED display device is modified according to the calculated LED sequence flag to reflect the change of the target or system state.

[0114] Step S80: displaying the updated LED display status via the LED display device.

[0115] The updated LED display status is converted into actual light signal output, so that people or other systems can intuitively observe the corresponding information or instructions.

[0116] The present application provides real-time visual feedback through an LED display device, allowing users to quickly obtain information related to the positioning direction.

[0117] Based on the fourth embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the fourth embodiment can be referred to the above description, and will not be repeated in the following. On this basis, step S60, based on the final positioning result, calculates the LED sequence mark and further includes steps S61 to S62:

[0118] Step S61, calculating a positioning direction angle based on the final positioning result;

[0119] Among them, the positioning direction angle is the angle of the sound source relative to a reference point or direction, which is used to indicate the position of the sound source relative to a certain direction.

[0120] Step S62, calculating and obtaining the LED sequence mark by combining the LED display array of the LED display device and the positioning direction angle.

[0121] The positioning direction angle of the sound source will be combined with the layout or formation of the LED display device. By calculating the positioning direction angle, it is possible to determine which LEDs need to be lit or displayed in what way, thereby forming a specific LED sequence logo. This LED sequence logo can be used to intuitively represent the direction information of the sound source.

[0122] This application combines sound source localization technology and visual display technology to achieve accurate and intuitive direction indication, and is suitable for various scenarios that require direction perception and display.

[0123] Based on the first embodiment of the present application, in the sixth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, step S10, obtaining the data to be processed also includes steps S11 to S13:

[0124] Step S11, collecting the data to be processed from the recording device end through the audio collection thread;

[0125] Among them, several audio collection threads can be opened to collect sound source data from the recording device in parallel as data to be processed.

[0126] Step S12, storing the data to be processed in a message queue;

[0127] The data to be processed may be stored in a message queue for subsequent sound source localization.

[0128] Step S13, in response to the sound source localization request, cyclically reading the to-be-processed data from the message queue through a data processing thread.

[0129] Among them, several data processing threads can be opened to cyclically read the data to be processed from the message queue.

[0130] Through the use of asynchronous processing and message queues, the system can respond to sound source localization requests more quickly and reduce latency. In addition, the message queue ensures that data is processed in the order in which it is collected, avoiding data loss or out-of-order processing.

[0131] Based on the sixth embodiment of the present application, in the seventh embodiment of the present application, the same or similar contents as those in the sixth embodiment can be referred to the above description, and will not be described in detail later. On this basis, step S13, in response to the sound source localization request, cyclically reading the data to be processed from the message queue through the data processing thread also includes step S131:

[0132] Step S131 , reading a preset number of data points from the message queue each time through the data processing thread, splicing the data points read twice adjacently, and using the spliced ​​data points as the data to be processed.

[0133] As an implementation method, the data processing thread can read 256 data points from the message queue each time, splice the data points read twice adjacently to obtain 512 data points, and use the spliced ​​512 data points as the data to be processed.

[0134] Subsequently, the data processing thread periodically reads data from the message queue, and generates a continuous data segment of 512 data points in each cycle to facilitate subsequent windowing processing.

[0135] It should be noted that based on signal processing requirements, hardware capabilities, real-time performance and other factors, the number of data points read each time can be adjusted from 256 to other values, such as 128 or 512. This will affect the length of each data segment and the time domain range of the processing.

[0136] The length of the spliced ​​data can also be adjusted from 512 points to other lengths, such as 1024 points or 2048 points. This will affect the resolution and performance of subsequent windowing processing and spectrum analysis.

[0137] The present application uses the data processing thread to read a preset number of data points from the message queue each time, splices the data points read twice adjacently, and uses the spliced ​​data points as the data to be processed, which can reduce frequent read and write operations in the processing, thereby improving the efficiency and response speed of the system. This is particularly beneficial for applications that need to process a large amount of audio data in real time.

[0138] For example, to help understand the implementation process of the sound source localization method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 2 , Figure 2 The overall process diagram of the sound source localization method of the present application is as follows. Specifically, the process includes the following steps:

[0139] Step S100, start the recording device to collect multi-channel data.

[0140] Step S101, determine whether it is necessary to stop collecting multi-channel data, if so, close the recording data, if not, continue to execute step S100.

[0141] Step S102: putting the collected multi-channel data into a message queue through the audio collection thread.

[0142] Step S103, obtaining the data to be processed from the message queue through the data processing thread.

[0143] Step S104, performing windowing and framing operations on the data to be processed.

[0144] Step S105, performing Fourier transform (FFT) on the windowed and framed data to obtain low-frequency data and medium- and high-frequency data.

[0145] Step S106, positioning the low-frequency data using a primary positioning algorithm to obtain a primary positioning result.

[0146] Step S107, positioning the medium and high frequency data and the primary positioning result by using a secondary positioning algorithm to obtain a secondary positioning result.

[0147] Step S108, smoothing and denoising the secondary positioning result to obtain the positioning direction.

[0148] Step S109, determine whether the data processing is completed. If not, execute step S103; if completed, end the algorithm processing flow.

[0149] Step S110, putting the positioning direction into the message queue through the LED display data collection thread.

[0150] Step S111, in response to the LED display instruction, obtaining the positioning direction from the message queue through the LED display data processing thread.

[0151] Step S112, calculating the LED sequence mark based on the positioning direction.

[0152] Step S113: updating the LED display status based on the LED sequence flag.

[0153] Step S114, determining whether the LED display process is completed, if not completed, executing step S111; if completed, ending the LED display process.

[0154] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the sound source localization method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0155] This application also provides a sound source localization device, please refer to Figure 3 , the sound source localization device comprises:

[0156] A data acquisition module 10 is used to acquire data to be processed;

[0157] The data processing module 20 is used to perform windowing and Fourier transform on the data to be processed to obtain a frequency domain signal;

[0158] A frequency domain classification module 30 is used to perform frequency domain classification on the frequency domain signal to obtain a frequency domain classification result;

[0159] The positioning module 40 is used to position the frequency domain classification result to obtain a target positioning result.

[0160] The sound source localization device provided by the present application adopts the sound source localization method in the above embodiment, which can solve the technical problem of poor positioning accuracy of the current sound source localization technology. Compared with the prior art, the beneficial effects of the sound source localization device provided by the present application are the same as the beneficial effects of the sound source localization method provided by the above embodiment, and other technical features in the sound source localization device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0161] The present application provides a sound source localization device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the sound source localization method in the above-mentioned embodiment 1.

[0162] Reference below Figure 4 , which shows a schematic diagram of the structure of a sound source localization device suitable for implementing the embodiment of the present application. The sound source localization device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The sound source localization device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0163] like Figure 4 As shown, the sound source localization device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the sound source localization device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the sound source localization device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a sound source localization device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0164] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0165] The sound source localization device provided by the present application adopts the sound source localization method in the above embodiment, which can solve the technical problem of poor positioning accuracy of the current sound source localization technology. Compared with the prior art, the beneficial effects of the sound source localization device provided by the present application are the same as the beneficial effects of the sound source localization method provided by the above embodiment, and other technical features in the sound source localization device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0166] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0167] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0168] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the sound source localization method in the above-mentioned embodiment.

[0169] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0170] The computer-readable storage medium may be included in the sound source localization device; or may exist independently without being assembled into the sound source localization device.

[0171] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the sound source localization device, the sound source localization device: obtains data to be processed; performs windowing processing and Fourier transform on the data to be processed to obtain a frequency domain signal; performs frequency domain classification on the frequency domain signal to obtain a frequency domain classification result; and locates the frequency domain classification result to obtain a target positioning result.

[0172] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0173] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0174] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0175] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned sound source localization method, and can solve the technical problem of poor positioning accuracy of the current sound source localization technology. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the sound source localization method provided in the above-mentioned embodiment, and will not be repeated here.

[0176] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A sound source localization method, characterized in that: The method comprises: Get the data to be processed; Performing windowing and Fourier transform on the data to be processed to obtain a frequency domain signal; Performing frequency domain classification on the frequency domain signal to obtain a frequency domain classification result; Positioning is performed on the frequency domain classification result to obtain a target positioning result.

2. The method according to claim 1, characterized in that The frequency domain classification result includes low-frequency data and medium-high frequency data, and the step of positioning the frequency domain classification result to obtain the target positioning result includes: Performing primary positioning on the low-frequency data by using a wide main lobe beamforming algorithm to obtain a primary positioning result; Performing secondary positioning on the primary positioning result and the medium and high frequency data by using a super-resolution beamforming algorithm to obtain a secondary positioning result; The secondary positioning result is used as the target positioning result.

3. The method according to claim 1, characterized in that The step of positioning the frequency domain classification result to obtain the target positioning result comprises: The target positioning result is smoothed and denoised to obtain a final positioning result.

4. The method according to claim 3, characterized in that The step of performing smoothing and denoising on the target positioning result to obtain the final positioning result comprises: Calculate and obtain an LED sequence mark based on the final positioning result; Updating the LED display state based on the LED sequence flag; The updated LED display status is displayed through the LED display device.

5. The method according to claim 4, characterized in that The step of calculating and obtaining the LED sequence mark based on the final positioning result comprises: Calculate the positioning direction angle based on the final positioning result; The LED sequence mark is calculated by combining the LED display array of the LED display device and the positioning direction angle.

6. The method according to claim 1, characterized in that The step of obtaining the data to be processed comprises: Collect the data to be processed from the recording device end through the audio collection thread; Storing the data to be processed in a message queue; In response to the sound source localization request, the to-be-processed data is cyclically read from the message queue through a data processing thread.

7. The method according to claim 6, characterized in that The step of cyclically reading the data to be processed from the message queue through the data processing thread comprises: The data processing thread reads a preset number of data points from the message queue each time, splices the data points read twice adjacently, and uses the spliced ​​data points as the data to be processed.

8. A sound source localization device, characterized in that: The device comprises: A data acquisition module, used to acquire data to be processed; A data processing module, used for performing windowing and Fourier transform on the data to be processed to obtain a frequency domain signal; A frequency domain classification module, used to perform frequency domain classification on the frequency domain signal to obtain a frequency domain classification result; The positioning module is used to locate the frequency domain classification result to obtain a target positioning result.

9. A sound source localization device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the sound source localization method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the sound source localization method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Sound source positioning method and device based on microphone array and storage medium

    CN113466793A

  • Sound source orientation positioning method, device and equipment , and computer readable storage medium

    CN113687305A

  • Low-frequency and high-frequency combined secondary beam forming positioning method

    CN114166339A

  • Systems, methods, and apparatus for enhanced creation of an acoustic image space

    EP2599330A1

  • Sound source identification apparatus and sound source identifying program

    JP2010266399A

Cited By

  • Sound source localization optimization method based on distributed multi-microphone array

    CN120428167A