A sound source localization device, method, electronic device and storage medium

Through the combination of distributed microphone units and central processing units, combined with Euclidean distance and affinity propagation algorithms, the problem of inaccurate sound source positioning in complex environments is solved, efficient and accurate sound source positioning is achieved, and system costs and power are reduced. Consumption.

CN118362977BActive Publication Date: 2024-08-23BEIJING YUANJIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410790249.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-23
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Existing microphone array technology is difficult to accurately locate a large number of sound sources in complex and special environments, has high cost and power consumption, and cannot distinguish the specific location of the sound source, resulting in inaccurate sound source location.

Method used

It uses a combination of multiple distributed microphone units and a central processing unit to collect sound information and timestamp information through the distributed microphone units. It uses arrival time difference and coordinate information, combined with Euclidean distance calculation and affinity propagation algorithm, to achieve accurate sound source location. Positioning, and feature decomposition and clustering processing through speech separation algorithm.

Benefits of technology

It improves the accuracy and efficiency of sound source positioning, can accurately locate the position of a large number of sound sources in complex environments, reduces system cost and power consumption, and simplifies hardware design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118362977B
    Figure CN118362977B
Patent Text Reader

Abstract

The present application provides a sound source localization device, method, electronic device and storage medium, including: a distributed microphone unit, which is used to start the recording mode of the target environment, and send the collected sound information of the target environment, the coordinate information of the distributed microphone unit and the timestamp information of the collected sound information to the central processing unit; the central processing unit is used to determine the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each distributed microphone unit and the timestamp information corresponding to the collected sound information, and determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units. The effect of localizing multiple sound sources in complex and special environments is achieved, and the orientation of the sound source in a wide-area complex environment can be located, which improves the accuracy of sound source localization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Microphone array technology is a technology that uses an array of multiple microphones to achieve sound capture, positioning and noise reduction. The direction and position of the sound source can be determined by using the time difference or sound intensity difference between the microphones in the microphone array. By analyzing the sound signals received by multiple microphones, the system can calculate the position of the sound source relative to the array and realize the function of sound positioning. Existing microphone array technology often requires the microphone array to be fixed on a panel in advance, which usually requires complex hardware design and layout, which increases the cost and complexity of the system. Moreover, in special environments, the types of sound sources are complex and the number of sound sources is large, and the sound sources need to be distinguished and processed, which is difficult for a single device to do. And processing these functions on a small device will increase the power consumption and cost of the system. In addition, the commonly used microphone array technology can often only locate the direction of the sound source, but cannot distinguish the specific location of the sound source, which leads to the technical problem of inaccurate sound source positioning. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a sound source localization device, method, electronic device and storage medium. Through multiple distributed microphone units and a central processing unit in the sound source localization device, the effect of localizing multiple sound sources in complex and special environments is achieved, and the direction of the sound source in a wide and complex environment can be located, thereby improving the accuracy of sound source localization.

[0004] The embodiment of the present application provides a sound source localization device, which includes a plurality of distributed microphone units and a central processing unit, wherein the distributed microphone units are communicatively connected with the central processing unit, and each of the distributed microphone units is installed at a different position of the target environment; wherein

[0005] The distributed microphone unit is used to start the recording mode of the target environment, and send the collected sound information of the target environment, the coordinate information of the distributed microphone unit and the timestamp information of collecting the sound information to the central processing unit;

[0006] The central processing unit is used to determine the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each distributed microphone unit and the timestamp information corresponding to the collected sound information, and determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units.

[0007] In a possible implementation manner, when the central processing unit is used to determine the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information, the central processing unit is specifically used to:

[0008] After aligning the sound information sent by each of the distributed microphone units based on the timestamp information corresponding to the collected sound information, the aligned sound information of each of the distributed microphone units is determined;

[0009] Performing a short-time Fourier transform on the aligned sound information of each of the distributed microphone units to determine the sound information collected by each of the distributed microphone units in any frame of any frequency band;

[0010] Performing speech processing on the sound information collected by each of the distributed microphone units in any frame of any frequency band, and determining the sound information after speech processing of each of the distributed microphone units;

[0011] Based on the sound information after speech processing of each of the distributed microphone units and the sound information after speech processing of the first distributed microphone unit, the arrival time difference between each of the distributed microphone units and the first distributed microphone unit is determined.

[0012] In a possible implementation manner, when the central processing unit is used to determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units, the central processing unit is specifically used to:

[0013] Calculating the arrival time difference between any two of the distributed microphone units based on the Euclidean distance calculation formula to determine the similarity of the arrival time difference between any two of the distributed microphone units;

[0014] Performing clustering processing on the similarity of each arrival time difference based on an affinity propagation algorithm, determining a cluster center of each distributed microphone unit, and completing clustering of the sound information of each distributed microphone unit based on the cluster center;

[0015] For the sound information of multiple distributed microphone units in the same cluster, the sound source position information of the sound information in the cluster is determined based on the arrival time difference of each distributed microphone unit in the cluster and the position information of each distributed microphone unit in the cluster.

[0016] In a possible implementation manner, the sound source position information of the sound information is determined by the following formula:

[0017]

[0018] in, x, y, z is the sound source location information of the sound information, For the i The arrival time difference of the distributed microphone units is , , For the i The location information of the distributed microphone units, c is the speed of sound.

[0019] In a possible implementation manner, the central processing unit is further configured to:

[0020] Based on the speech separation algorithm, feature decomposition is performed on the sound information of the plurality of distributed microphone units under the same cluster, and a feature vector with a smaller feature value corresponding to each piece of the sound information is determined;

[0021] Sound separation is performed based on the eigenvector with the smaller eigenvalue corresponding to each of the sound information.

[0022] In a possible implementation manner, the distributed microphone unit further includes a geographic location positioning subunit and a timing subunit; wherein,

[0023] The geographic location positioning subunit is used to determine the coordinate information of the distributed microphone unit;

[0024] The timing subunit is used to determine the timestamp information of the sound information collected by the distributed microphone unit.

[0025] In a possible implementation manner, after the central processing unit is used to perform clustering processing on the similarity of each arrival time difference based on the affinity propagation algorithm to determine the cluster center of each distributed microphone unit, and completes clustering of the sound information of each distributed microphone unit based on the cluster center, the central processing unit is also used to:

[0026] Detecting whether the number of the distributed microphone units in the cluster is greater than a preset number;

[0027] If not, the cluster is eliminated, and the number of the remaining clusters is determined as the number of sound sources of the sound information.

[0028] The present application also provides a method for localizing a sound source, the method comprising:

[0029] Turning on the recording mode of the target environment will obtain the sound information of the target environment, the coordinate information of the distributed microphone units, and the timestamp information of collecting the sound information;

[0030] Determining the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information;

[0031] Based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units, the sound source position information of the sound information collected by the distributed microphone units is determined.

[0032] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the sound source localization method as described above are performed.

[0033] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the sound source localization method as described above are executed.

[0034] The embodiment of the present application provides a sound source localization device, method, electronic device and storage medium, wherein the sound source localization device includes a plurality of distributed microphone units and a central processing unit, wherein the distributed microphone units are connected to the central processing unit in communication, and each of the distributed microphone units is installed at a different position of the target environment; wherein the distributed microphone units are used to start the recording mode of the target environment, and send the collected sound information of the target environment, the coordinate information of the distributed microphone units and the timestamp information of the collected sound information to the central processing unit; the central processing unit is used to determine the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information, and determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units. The multiple distributed microphone units and the central processing unit in the sound source localization device achieve the effect of localizing multiple sound sources in complex and special environments, and can locate the orientation of the sound source in a wide and complex environment, thereby improving the accuracy of sound source localization.

[0035] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 One of the structural schematic diagrams of a sound source localization device provided in an embodiment of the present application;

[0038] Figure 2 A second structural schematic diagram of a sound source localization device provided in an embodiment of the present application;

[0039] Figure 3 A flow chart of a sound source localization method provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0041] Icon: 100 - sound source localization device; 110 - distributed microphone unit; 111 - geographic location localization subunit; 112 - timing subunit; 120 - central processing unit; 400 - electronic device; 410 - processor; 420 - memory; 430 - bus. DETAILED DESCRIPTION

[0042] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0043] First, the application scenarios to which the present application is applicable are introduced. The present application can be applied to the field of sound source localization technology.

[0044] Research has found that microphone array technology is a technology that uses an array of multiple microphones to achieve sound capture, positioning and noise reduction. The direction and position of the sound source can be determined by using the time difference or sound intensity difference between the microphones in the microphone array. By analyzing the sound signals received by multiple microphones, the system can calculate the position of the sound source relative to the array and realize the function of sound positioning. Existing microphone array technology often requires the microphone array to be fixed on a panel in advance, which usually requires complex hardware design and layout, which increases the cost and complexity of the system. Moreover, in special environments, the types of sound sources are complex and the number of sound sources is large, and the sound sources need to be distinguished and processed, which is difficult for a single device to do. And processing these functions on a small device will increase the power consumption and cost of the system. In addition, the commonly used microphone array technology can often only locate the direction of the sound source, but cannot distinguish the specific location of the sound source, which leads to the technical problem of inaccurate sound source positioning.

[0045] Based on this, an embodiment of the present application provides a sound source localization device, which achieves the effect of localizing multiple sound sources in complex and special environments through multiple distributed microphone units and a central processing unit in the sound source localization device. It can locate the direction of the sound source in a wide and complex environment, thereby improving the accuracy of sound source localization.

[0046] See also Figure 1 , Figure 1FIG. 1 is a schematic diagram of a sound source localization device 100 provided in an embodiment of the present application. Figure 1 As shown in , the sound source localization device 100 provided in an embodiment of the present application includes a plurality of distributed microphone units 110 and a central processing unit 120. The distributed microphone units 110 are communicatively connected to the central processing unit 120, and each of the distributed microphone units 110 is installed at a different position of the target environment.

[0047] Specifically, the distributed microphone unit 110 is used to start the recording mode for the target environment, and send the collected sound information of the target environment, the coordinate information of the distributed microphone unit 110, and the timestamp information of the sound information collected to the central processing unit 120; the central processing unit 120 is used to determine the arrival time difference of the sound information collected between the distributed microphone units 110 based on the sound information collected by each of the distributed microphone units 110 and the timestamp information corresponding to the collected sound information, and determine the sound source position information of the sound information collected by the distributed microphone units 110 based on the arrival time difference of the sound information collected between the distributed microphone units 110 and the coordinate information of the distributed microphone units 110.

[0048] Here, more than three distributed microphone units 110 need to be provided. m The distributed microphone units 110 are distributed at different locations on the battlefield, start recording, and upload the sound information signal, the coordinate information of the distributed microphone units 110, and the timestamp information to the central processing unit via the wireless network. m The position information of each distributed microphone unit 110 may be the three-dimensional coordinates of the location, denoted as .

[0049] Here, the central processing unit 120 receives the sound information obtained by the distributed microphone unit 110 and processes it to obtain other information such as the location information of the sound source. After the central processing unit aligns the sound according to the timestamp, it calculates the time difference of the sound information arriving at different distributed microphone units 110. The commonly used GCCPHAT (Generalized Cross Correlation with Phase Transform) algorithm can be used to calculate the arrival time difference (including but not limited to this algorithm), and the sound source position information of the sound information collected by the distributed microphone unit 110 can be determined based on the arrival time difference of the sound information collected between the distributed microphone units 110 and the coordinate information of the distributed microphone unit 110.

[0050] In a possible implementation manner, when the central processing unit 120 is used to determine the arrival time difference of the sound information collected between the distributed microphone units 110 based on the sound information collected by each of the distributed microphone units 110 and the timestamp information corresponding to the collected sound information, the central processing unit 120 is specifically used to:

[0051] A: After aligning the sound information sent by each of the distributed microphone units 110 based on the timestamp information corresponding to the collection of the sound information, the aligned sound information of each of the distributed microphone units 110 is determined.

[0052] Here, after the sound information sent by each of the distributed microphone units 110 is aligned according to the timestamp information corresponding to the collected sound information, the aligned sound information of each distributed microphone unit 110 is determined.

[0053] B: Performing a short-time Fourier transform on the aligned sound information of each distributed microphone unit 110 to determine the sound information collected by each distributed microphone unit 110 in any frame of any frequency band.

[0054] Here, a short-time Fourier transform is performed on the aligned sound information of each distributed microphone unit 110 to determine the sound information collected by each distributed microphone unit 110 in any frame of any frequency band.

[0055] Among them, the aligned sound information is first subjected to a short-time Fourier transform to convert the time domain sound information s Convert to time domain and frequency domain formats. .in t The timestamp information of the sound signal. L is the frame length, let The 1st, ..., Mth distributed microphone units 110 are Frequency band, Frame recorded sound information.

[0056] C: Performing speech processing on the sound information collected by each of the distributed microphone units 110 in any frame of any frequency band, and determining the sound information after speech processing of each of the distributed microphone units 110 .

[0057] Here, in order to improve the robustness against some noises, the sound information collected by the distributed microphone unit 110 in any frame of any frequency band is processed by the following formula:

[0058]

[0059] in, is the sound information after the speech processing of the distributed microphone unit 110, F is the total number of frames, i The first few frames.

[0060] D: Based on the sound information after speech processing of each distributed microphone unit 110 and the sound information after speech processing of the first distributed microphone unit 110 , determine the arrival time difference between each distributed microphone unit 110 and the first distributed microphone unit 110 .

[0061] Here, the arrival time difference between each distributed microphone unit 110 and the first distributed microphone unit 110 is determined based on the sound information after speech processing of the distributed microphone unit 110 and the sound information after speech processing of the first distributed microphone unit 110 .

[0062] Here, since there are multiple frames of sound information after speech processing of the distributed microphone unit 110, when the position information of the sound source does not change, the arrival time difference between each distributed microphone unit 110 and the first distributed microphone unit 110 can be determined only based on the sound information after speech processing of the same frame in the same frequency band.

[0063] The arrival time difference between each distributed microphone unit 110 and the first distributed microphone unit 110 is determined by the following formula:

[0064]

[0065] in, is the first distributed microphone unit 110 after speech processing Frequency band, The sound information under the frame, is the complex conjugate transpose operator. This formula can be used to calculate the arrival time difference from the 1st, 2nd, ..., Mth distributed microphone units 110 to the first distributed microphone unit 110 in sequence. For the m The arrival time difference between the first distributed microphone unit 110 and the first distributed microphone unit 110.

[0066] Here, the signals received by the two distributed microphone units 110 are cross-correlated, and the cross-correlation function measures the similarity between the two signals, that is, the sliding matching process of one signal on another signal. The cross-correlation function can be used to find the time delay between the signals. The cross-correlation function is divided by its amplitude to extract the phase information of the signal. Then, the GCC-PHAT function is obtained by performing Fourier transform and inverse Fourier transform on the cross-correlation function after phase transformation. The GCC-PHAT function reflects the correlation of the signal under different delays, and its peak corresponds to the maximum correlation. The largest peak is found in the GCC-PHAT function, which corresponds to the optimal time delay between the two signals. Finally, according to the delay corresponding to the maximum peak, it is divided by the sampling rate of the signal to determine the estimated value of the arrival time difference. This estimated value reflects the propagation time difference of the signal source between the two distributed microphone units 110.

[0067] In a possible implementation manner, when the central processing unit 120 is used to determine the sound source position information of the sound information collected by the distributed microphone unit 110 based on the arrival time difference of the sound information collected between the distributed microphone units 110 and the coordinate information of the distributed microphone unit 110, the central processing unit 120 is specifically used to:

[0068] a: Calculate the arrival time difference between any two of the distributed microphone units 110 based on the Euclidean distance calculation formula to determine the similarity of the arrival time difference between any two of the distributed microphone units 110 .

[0069] Here, the arrival time difference between any two distributed microphone units 110 is calculated according to the Euclidean distance calculation formula to determine the similarity of the arrival time difference between any two distributed microphone units 110 .

[0070] The similarity of the arrival time difference between any two distributed microphone units 110 is determined by the following formula:

[0071]

[0072] in, S ( i , j ) is the i The distributed microphone unit 110 and the j The similarity of the arrival time differences between the distributed microphone units 110, ( i ) is the i The arrival time difference of each distributed microphone unit 110.

[0073] b: Clustering the similarity of each arrival time difference based on the affinity propagation algorithm, determining the cluster center of each distributed microphone unit 110, and completing the clustering of the sound information of each distributed microphone unit 110 based on the cluster center.

[0074] Here, the similarity of each arrival time difference is clustered according to the affinity propagation algorithm, the cluster center of each distributed microphone unit 110 is determined, and the clustering of the sound information of each distributed microphone unit 110 is completed according to the cluster center.

[0075] Among them, the affinity propagation algorithm will transmit messages, including two types of messages: responsibility and reachability. express Be prepared to accept The degree of being a cluster center is calculated by the following formula:

[0076]

[0077] in, S(i, k) For the i The distributed microphone units 110 are connected to the j The similarity of the arrival time difference between other distributed microphone units 110 other than Indicates i The arrival time difference of each distributed microphone unit 110 is prepared to receive the j The arrival time difference between the other distributed microphone units 110 outside the cluster is used as the degree of cluster center, and the reachability express Be prepared to accept The degree of cluster center can be calculated by the following formula:

[0078]

[0079] in, express The degree to which one hopes to become the cluster center, these two transmission processes converge through iterations, and finally through and The clustering relationship of each microphone can be determined.

[0080] c: For the sound information of multiple distributed microphone units 110 in the same cluster, the sound source position information of the sound information in the cluster is determined based on the arrival time difference of each distributed microphone unit 110 in the cluster and the position information of each distributed microphone unit 110 in the cluster.

[0081] Here, for the sound information of multiple distributed microphone units 110 in the same cluster, the sound source position information of the sound information in the cluster is determined according to the arrival time difference of each distributed microphone unit 110 in the cluster and the position information of each distributed microphone unit 110 in the cluster.

[0082] In a possible implementation manner, the sound source position information of the sound information is determined by the following formula:

[0083]

[0084] in, x, y, z is the sound source location information of the sound information, For the i The arrival time difference of each distributed microphone unit 110, , , For the i The position information of the distributed microphone units 110, c is the speed of sound.

[0085] Here, in this scheme, the sound is classified according to the arrival time difference to count the number of sound sources. The affinity propagation clustering algorithm is used for classification. The sound information of the same category can be determined as the sound emitted by the same sound source, and the number of categories is the number of sound sources. This clustering algorithm can be used to divide the samples in the data set into different clusters. It is an iterative algorithm based on a graph model. It determines the cluster center by calculating the similarity (affinity) between samples and assigns each sample to the most suitable cluster center. The affinity propagation algorithm does not need to specify the number of clusters in advance, but automatically finds the optimal number of clusters from the data. Therefore, it is suitable for complex environments where there are unknown numbers of sound sources.

[0086] In a possible implementation manner, the central processing unit 120 is further configured to:

[0087] (1): Based on the speech separation algorithm, the sound information of the multiple distributed microphone units 110 in the same cluster is feature decomposed to determine the feature vector with the smaller feature value corresponding to each piece of the sound information.

[0088] Here, the sound information of multiple distributed microphone units 110 in the same cluster is feature decomposed according to the speech separation algorithm to determine the feature vector with a smaller feature value corresponding to each piece of sound information.

[0089] (2): Sound separation is performed based on the eigenvector with the smaller eigenvalue corresponding to each of the sound information.

[0090] Here, sound separation is performed based on the eigenvector with the smaller eigenvalue corresponding to each sound information.

[0091] Among them, the commonly used MUSIC speech separation technology (including but not limited to this method when separating sound information) can be used to separate the sound information under the same cluster, so that the sounds in different positions can be separated, such as music and other sounds such as the sound of people moving, which can be used for subsequent processing. The algorithm is described as follows: The MUSIC (Multiple SIgnal Classification) algorithm is a spectrum estimation method used for speech separation and sound source localization. By analyzing the spatial correlation matrix of the mixed signal received by multiple microphones, the MUSIC algorithm uses eigendecomposition to find eigenvectors with smaller eigenvalues. These vectors correspond to the directions of weak signals, that is, the directions of different sound sources. By identifying these directions, the sound source can be separated and located.

[0092] In a possible implementation manner, the central processing unit 120 is used to perform clustering processing on the similarity of each arrival time difference based on the affinity propagation algorithm to determine the cluster center of each distributed microphone unit 110, and after completing the clustering of the sound information of each distributed microphone unit 110 based on the cluster center, the central processing unit 120 is also used to:

[0093] I: Detect whether the number of the distributed microphone units 110 in the cluster is greater than a preset number.

[0094] Here, it is detected whether the number of distributed microphone units 110 in the cluster is greater than a preset number.

[0095] II: If not, the cluster is eliminated, and the number of the remaining clusters is determined as the number of sound sources of the sound information.

[0096] Here, after classification, some clusters can be determined. However, due to interference factors such as noise reverberation, some invalid clusters may exist in practical applications. Some clusters with smaller numbers can be filtered out by setting a threshold, and the number of clusters remaining is the number of sound sources. For example, if the number of distributed microphone units 110 in a cluster is less than or equal to a preset number, the cluster is eliminated, and the number of remaining clusters is determined as the number of sound sources of the sound information.

[0097] For further information, see Figure 2 , Figure 2 FIG2 is a second structural diagram of a sound source localization device 100 provided in an embodiment of the present application. Figure 2As shown, the distributed microphone unit 110 also includes a geographic location positioning subunit 111 and a timing subunit 112 .

[0098] Specifically, the geographic location positioning subunit 111 is used to determine the coordinate information of the distributed microphone unit 110 ; the timing subunit 112 is used to determine the timestamp information of the sound information collected by the distributed microphone unit 110 .

[0099] In this solution, when using the device, the user can spread the microphones on the target scene, and then analyze and process the information returned by the microphone units to obtain information such as the coordinates of different sounds, the number of sound sources, and the sound of a single sound source. At the same time, this solution uses multiple single microphones to form an array, replacing a single complex microphone array, and has no special requirements for the layout of the microphones. It has the advantages of simple structure, low cost, and easy deployment.

[0100] The embodiment of the present application provides a sound source localization device, which includes a plurality of distributed microphone units and a central processing unit, wherein the distributed microphone units are connected to the central processing unit in communication, and each of the distributed microphone units is installed at a different position of the target environment; wherein the distributed microphone units are used to start the recording mode of the target environment, and send the collected sound information of the target environment, the coordinate information of the distributed microphone units, and the timestamp information of the collected sound information to the central processing unit; the central processing unit is used to determine the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information, and determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units. The multiple distributed microphone units and the central processing unit in the sound source localization device achieve the effect of localizing multiple sound sources in complex and special environments, and can locate the orientation of the sound source in a wide and complex environment, thereby improving the accuracy of sound source localization.

[0101] See also Figure 3 , Figure 3 Flow chart of a sound source localization method provided in an embodiment of the present application. Figure 3 As shown in , the sound source localization method provided by the embodiment of the present application includes:

[0102] S301: Start the recording mode of the target environment, and obtain the sound information of the target environment, the coordinate information of the distributed microphone units, and the timestamp information of collecting the sound information.

[0103] In this step, the recording mode of the target environment is turned on to obtain the sound information of the target environment, the coordinate information of the distributed microphone units and the timestamp information of collecting the sound information.

[0104] S302: Based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information, determine the arrival time difference of the sound information collected between the distributed microphone units.

[0105] In this step, the arrival time difference of the sound information collected between the distributed microphone units is determined based on the sound information collected by each distributed microphone unit and the timestamp information corresponding to the collected sound information.

[0106] S303: Determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units.

[0107] In this step, the sound source position information of the sound information collected by the distributed microphone units is determined based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units.

[0108] Here, in this solution, multiple distributed microphones are used to achieve the effect of localizing multiple sound sources in complex and special environments. Distributed microphones are composed of multiple microphones. There is no requirement for the location of a single microphone. A single microphone has a simple structure. Multiple microphones are connected through the network. Processing in the cloud can locate the direction of the sound source in a wide and complex environment, the number of sound sources, and separate each sound source.

[0109] Further, the determining of the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information includes:

[0110] After aligning the sound information sent by each of the distributed microphone units based on the timestamp information corresponding to the collected sound information, the aligned sound information of each of the distributed microphone units is determined;

[0111] Performing a short-time Fourier transform on each of the aligned sound information to determine the sound information collected by each of the distributed microphone units in any frame of any frequency band;

[0112] Performing speech processing on the sound information collected by each of the distributed microphone units in any frame of any frequency band, and determining the sound information after speech processing of each of the distributed microphone units;

[0113] Based on the sound information after speech processing of each of the distributed microphone units and the sound information after speech processing of the first distributed microphone unit, the arrival time difference between each of the distributed microphone units and the first distributed microphone unit is determined.

[0114] Further, the determining of the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units includes:

[0115] Calculating the arrival time difference between any two of the distributed microphone units based on the Euclidean distance calculation formula to determine the similarity of the arrival time difference between any two of the distributed microphone units;

[0116] Performing clustering processing on the similarity of each arrival time difference based on an affinity propagation algorithm, determining a cluster center of each distributed microphone unit, and completing clustering of the sound information of each distributed microphone unit based on the cluster center;

[0117] For the sound information of multiple distributed microphone units in the same cluster, the sound source position information of the sound information in the cluster is determined based on the arrival time difference of each distributed microphone unit in the cluster and the position information of each distributed microphone unit in the cluster.

[0118] Furthermore, the sound source position information of the sound information is determined by the following formula:

[0119]

[0120] in, x, y, z is the sound source location information of the sound information, For the i The arrival time difference of the distributed microphone units is , , For the i The location information of the distributed microphone units, c is the speed of sound.

[0121] Further, after determining the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units, the sound source localization method further includes:

[0122] Based on the speech separation algorithm, feature decomposition is performed on the sound information of the plurality of distributed microphone units under the same cluster, and a feature vector with a smaller feature value corresponding to each piece of the sound information is determined;

[0123] Sound separation is performed based on the eigenvector with the smaller eigenvalue corresponding to each of the sound information.

[0124] Furthermore, after clustering the similarity of each arrival time difference based on the affinity propagation algorithm to determine the cluster center of each distributed microphone unit, and clustering the sound information of each distributed microphone unit based on the cluster center, the sound source localization method further includes:

[0125] Detecting whether the number of the distributed microphone units in the cluster is greater than a preset number;

[0126] If not, the cluster is eliminated, and the number of the remaining clusters is determined as the number of sound sources of the sound information.

[0127] The embodiment of the present application provides a method for localizing a sound source, which includes: starting a recording mode for a target environment, acquiring the sound information of the target environment, the coordinate information of the distributed microphone units, and the timestamp information of the sound information; determining the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the sound information collected; determining the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units. The multiple distributed microphone units and the central processing unit in the sound source localization device achieve the effect of localizing multiple sound sources in complex and special environments, and can locate the orientation of the sound source in a wide and complex environment, thereby improving the accuracy of sound source localization.

[0128] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0129] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 3 The steps of the sound source localization method in the method embodiment shown and the specific implementation methods can be found in the method embodiment, which will not be described in detail here.

[0130] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 3 The steps of the sound source localization method in the method embodiment shown and the specific implementation methods can be found in the method embodiment, which will not be described in detail here.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0135] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0136] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A sound source localization device, characterized in that: The sound source localization device comprises a plurality of distributed microphone units and a central processing unit, wherein the distributed microphone units are in communication connection with the central processing unit, and each of the distributed microphone units is installed at a different position of the target environment; wherein, The distributed microphone unit is used to start the recording mode of the target environment, and send the collected sound information of the target environment, the coordinate information of the distributed microphone unit and the timestamp information of collecting the sound information to the central processing unit; The central processing unit is used to determine the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information, and determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units; When the central processing unit is used to determine the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information, the central processing unit is specifically used to: After aligning the sound information sent by each of the distributed microphone units based on the timestamp information corresponding to the collected sound information, the aligned sound information of each of the distributed microphone units is determined; Performing a short-time Fourier transform on each of the aligned sound information to determine the sound information collected by each of the distributed microphone units in any frame of any frequency band; Performing speech processing on the sound information collected by each of the distributed microphone units in any frame of any frequency band, and determining the sound information after speech processing of each of the distributed microphone units; Determine the arrival time difference between each of the distributed microphone units and the first distributed microphone unit based on the sound information after speech processing of each of the distributed microphone units and the sound information after speech processing of the first distributed microphone unit; The arrival time difference between each distributed microphone unit and the first distributed microphone unit is determined by the following formula: in, is the first distributed microphone unit after speech processing Frequency band, The sound information under the frame, is the complex conjugate transpose operator. This formula can be used to calculate the arrival time difference from the 1st, 2nd, ..., Mth distributed microphone unit to the first distributed microphone unit. is the arrival time difference between the mth distributed microphone unit and the first distributed microphone unit; When the central processing unit is used to determine the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units, the central processing unit is specifically used to: Calculating the arrival time difference between any two of the distributed microphone units based on the Euclidean distance calculation formula to determine the similarity of the arrival time difference between any two of the distributed microphone units; The similarity of the arrival time difference between any two distributed microphone units is determined by the following formula: Where S(i, j) is the similarity of the arrival time difference between the i-th distributed microphone unit and the j-th distributed microphone unit, (i) is the arrival time difference of the i-th distributed microphone unit; Performing clustering processing on the similarity of each arrival time difference based on an affinity propagation algorithm, determining a cluster center of each distributed microphone unit, and completing clustering of the sound information of each distributed microphone unit based on the cluster center; Among them, the affinity propagation algorithm will transmit messages, including two types of messages: responsibility and reachability. express Be prepared to accept The degree of being a cluster center is calculated by the following formula: in, S(i, k) For the i The distributed microphone units are j The similarity of the arrival time difference between other distributed microphone units other than Indicates i The arrival time difference of each distributed microphone unit is prepared to accept j The arrival time difference between other distributed microphone units outside is used as the degree of cluster center, and the reachability express Be prepared to accept The degree of cluster center can be calculated by the following formula: in, express The degree to which one hopes to become the cluster center, these two transmission processes converge through iterations, and finally through and The clustering relationship of each microphone can be determined; For the sound information of multiple distributed microphone units in the same cluster, the sound source position information of the sound information in the cluster is determined based on the arrival time difference of each distributed microphone unit in the cluster and the position information of each distributed microphone unit in the cluster.

2. The sound source localization device according to claim 1, characterized in that: The sound source position information of the sound information is determined by the following formula: in, x, y, z is the sound source location information of the sound information, For the i The arrival time difference of the distributed microphone units is , , For the i The location information of the distributed microphone units, c is the speed of sound.

3. The sound source localization device according to claim 1, characterized in that: The central processing unit is also used for: Based on the speech separation algorithm, feature decomposition is performed on the sound information of the plurality of distributed microphone units under the same cluster, and a feature vector with a smaller feature value corresponding to each piece of the sound information is determined; Sound separation is performed based on the eigenvector with the smaller eigenvalue corresponding to each of the sound information.

4. The sound source localization device according to claim 1, characterized in that: The distributed microphone unit also includes a geographic location positioning subunit and a timing subunit; wherein, The geographic location positioning subunit is used to determine the coordinate information of the distributed microphone unit; The timing subunit is used to determine the timestamp information of the sound information collected by the distributed microphone unit.

5. The sound source localization device according to claim 1, characterized in that: The central processing unit is used to perform clustering processing on the similarity of each arrival time difference based on the affinity propagation algorithm to determine the cluster center of each distributed microphone unit, and after completing the clustering of the sound information of each distributed microphone unit based on the cluster center, the central processing unit is also used to: Detecting whether the number of the distributed microphone units in the cluster is greater than a preset number; If not, the cluster is eliminated, and the number of the remaining clusters is determined as the number of sound sources of the sound information.

6. A sound source localization method, characterized in that: The sound source localization method comprises: Turning on the recording mode of the target environment will obtain the sound information of the target environment, the coordinate information of the distributed microphone units, and the timestamp information of collecting the sound information; Determining the arrival time difference of the sound information collected between the distributed microphone units based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information; Determining the sound source position information of the sound information collected by the distributed microphone units based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units; The determining, based on the sound information collected by each of the distributed microphone units and the timestamp information corresponding to the collected sound information, the arrival time difference of the sound information collected between the distributed microphone units comprises: After aligning the sound information sent by each of the distributed microphone units based on the timestamp information corresponding to the collected sound information, the aligned sound information of each of the distributed microphone units is determined; Performing a short-time Fourier transform on each of the aligned sound information to determine the sound information collected by each of the distributed microphone units in any frame of any frequency band; Performing speech processing on the sound information collected by each of the distributed microphone units in any frame of any frequency band, and determining the sound information after speech processing of each of the distributed microphone units; Determine the arrival time difference between each of the distributed microphone units and the first distributed microphone unit based on the sound information after speech processing of each of the distributed microphone units and the sound information after speech processing of the first distributed microphone unit; The arrival time difference between each distributed microphone unit and the first distributed microphone unit is determined by the following formula: in, is the first distributed microphone unit after speech processing Frequency band, The sound information under the frame, is the complex conjugate transpose operator. This formula can be used to calculate the arrival time difference from the 1st, 2nd, ..., Mth distributed microphone unit to the first distributed microphone unit. is the arrival time difference between the mth distributed microphone unit and the first distributed microphone unit; The determining, based on the arrival time difference of the sound information collected between the distributed microphone units and the coordinate information of the distributed microphone units, the sound source position information of the sound information collected by the distributed microphone units comprises: Calculating the arrival time difference between any two of the distributed microphone units based on the Euclidean distance calculation formula to determine the similarity of the arrival time difference between any two of the distributed microphone units; The similarity of the arrival time difference between any two distributed microphone units is determined by the following formula: Where S(i, j) is the similarity of the arrival time difference between the i-th distributed microphone unit and the j-th distributed microphone unit, (i) is the arrival time difference of the i-th distributed microphone unit; Performing clustering processing on the similarity of each arrival time difference based on an affinity propagation algorithm, determining a cluster center of each distributed microphone unit, and completing clustering of the sound information of each distributed microphone unit based on the cluster center; Among them, the affinity propagation algorithm will transmit messages, including two types of messages: responsibility and reachability. express Be prepared to accept The degree of being a cluster center is calculated by the following formula: in, S(i, k) For the i The distributed microphone units are j The similarity of the arrival time difference between other distributed microphone units other than Indicates i The arrival time difference of each distributed microphone unit is prepared to accept j The arrival time difference between other distributed microphone units outside is used as the degree of cluster center, and the reachability express Be prepared to accept The degree of cluster center can be calculated by the following formula: in, express The degree to which one hopes to become the cluster center, these two transmission processes converge through iterations, and finally through and The clustering relationship of each microphone can be determined; For the sound information of multiple distributed microphone units in the same cluster, the sound source position information of the sound information in the cluster is determined based on the arrival time difference of each distributed microphone unit in the cluster and the position information of each distributed microphone unit in the cluster.

7. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the sound source localization method as claimed in claim 6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the sound source localization method according to claim 6 are executed.