Sound source localization method and device
By performing noise spatial spectrum de-interference processing on the target audio signal, the problem of inaccurate sound source location caused by environmental noise interference is solved, achieving higher signal spatial spectrum accuracy and sound source direction judgment accuracy, and improving the quality of voice communication. .
Patent Information
- Application Number
- CN202110295354.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-03-19
AI Technical Summary
Existing sound source localization methods in noisy environments cause signal spatial spectrum instability due to environmental noise interference, which in turn affects the accuracy of the sound source direction.
By receiving the target audio signal, determining its corresponding first signal spatial spectrum, and using the noise spatial spectrum corresponding to the noise audio signal to perform interference processing, the second signal spatial spectrum is obtained, and then based on the target spectrum peak in the second signal spatial spectrum direction to locate the sound source.
It improves the accuracy of signal spatial spectrum and sound source direction judgment, and improves the quality of voice communication in noisy backgrounds.
Smart Images

Figure CN113064118B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a sound source localization method, device, electronic device and storage medium. Background Art
[0002] In various communication devices and voice interaction systems, sound source localization enables the sound pickup system to track the sound source of the signal it receives. Accurate sound source localization can effectively improve the quality of voice communication in noisy backgrounds.
[0003] At present, sound source localization usually obtains the spatial spectrum based on the signal received by the microphone array, and searches for the peak of the spatial spectrum. In this way, the direction corresponding to the peak is the direction of the sound source. However, in the case of some interference factors such as high ambient noise, the obtained spatial spectrum is unstable, resulting in inaccurate determination of the sound source direction. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a sound source localization method, device, electronic device and storage medium, which can solve the current problem of inaccurate sound source localization.
[0005] In a first aspect, an embodiment of the present application provides a method for localizing a sound source, which may include:
[0006] receiving a target audio signal, wherein the target audio signal includes a noise audio signal;
[0007] Determine, according to the target audio signal, a first signal spatial spectrum corresponding to the target audio signal, wherein the first signal spatial spectrum is used to characterize a distribution state of audio signal spatial energy of the target audio signal;
[0008] The first signal spatial spectrum is subjected to interference removal processing by using the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum;
[0009] The target audio signal is located according to the direction of the target spectrum peak in the second signal spatial spectrum.
[0010] In a second aspect, an embodiment of the present application provides a sound source localization device, which may include:
[0011] A receiving module, used for receiving a target audio signal, wherein the target audio signal includes a noise audio signal;
[0012] A first determination module, configured to determine, according to the target audio signal, a first signal spatial spectrum corresponding to the target audio signal, wherein the first signal spatial spectrum is used to characterize a distribution state of audio signal spatial energy of the target audio signal;
[0013] A processing module, configured to perform interference removal processing on the first signal spatial spectrum through a noise spatial spectrum corresponding to the noise audio signal, so as to obtain a second signal spatial spectrum;
[0014] The positioning module is used to locate the target audio signal according to the direction of the target spectrum peak in the second signal spatial spectrum.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the sound source localization method shown in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the sound source localization method shown in the first aspect are implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a program or instruction to implement the steps of the sound source localization method shown in the first aspect.
[0018] In an embodiment of the present application, the first signal spatial spectrum corresponding to the acquired target audio signal is subjected to interference removal processing to obtain the second signal spatial spectrum, and then the target audio signal is located according to the direction of the target spectrum peak in the second signal spatial spectrum. In this way, while the first signal spatial spectrum is preliminarily obtained, the noise spatial spectrum corresponding to the noise audio signal in the target audio signal is determined, and the first signal spatial spectrum is subjected to interference removal processing by the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum. Then, the second signal spatial spectrum is searched for spectrum peaks, and the direction corresponding to the target spectrum peak in the second signal spatial spectrum is determined as the direction of outputting the target audio signal, thereby improving the accuracy of the signal spatial spectrum and the accuracy of the sound source direction judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of a sound source localization architecture provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of the structure of another sound pickup device provided in an embodiment of the present application;
[0021] Figure 3 A flow chart of a sound source localization method provided in an embodiment of the present application;
[0022] Figure 4 A flowchart for determining a noise audio signal provided in an embodiment of the present application;
[0023] Figure 5A schematic diagram of a signal space diagram that has not been processed for past interference provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of a signal space diagram after interference removal provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of the structure of a sound source localization device provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0030] Based on this, the following Figure 1-Figure 2 , the sound source localization method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0031] The present application embodiment proposes a sound source localization architecture, such as Figure 1 As shown, the sound source localization architecture may include a sound pickup device and an audio output object. Among them, the sound pickup device may include an electronic device, a monitor, a video recorder, a locator, etc., which includes a sound pickup system and performs sound source localization according to the sound pickup system; the audio output object may include any object that can output audio (voice) such as a person or a player. Based on the sound source localization architecture, the application scenario of the sound source localization method provided in the embodiment of the present application is described.
[0032] The sound source localization method in the embodiment of the present application is described by taking an electronic device as the sound pickup device and a person, i.e., a user, as an example of an audio output object. Figure 2 As shown, when a user makes a video call or a voice call with other users through an electronic device, accurate sound source positioning can effectively improve the quality of voice communication in a noisy background. Therefore, sound source positioning is particularly important. The sound source positioning method provided in the embodiment of the present application can receive a target audio signal through a receiver such as a microphone in an electronic device, and the target audio signal includes a noise audio signal. Then, the processor in the electronic device can determine a first signal spatial spectrum corresponding to the target audio signal based on the target audio signal, and the first signal spatial spectrum is used to characterize the distribution state of the audio signal spatial energy of the target audio signal; and, through the noise spatial spectrum corresponding to the noise audio signal, the first signal spatial spectrum is de-interference processed to obtain a second signal spatial spectrum. Then, the processor in the electronic device can locate the target audio signal according to the direction of the target spectrum peak in the second signal spatial spectrum.
[0033] In this way, while the first signal spatial spectrum is preliminarily obtained, the noise spatial spectrum corresponding to the noise audio signal in the target audio signal is determined, and the first signal spatial spectrum is de-interferenceed by the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum. Then, the second signal spatial spectrum is searched for a spectral peak, and the direction corresponding to the target spectral peak in the second signal spatial spectrum is determined as the direction of outputting the target audio signal, thereby improving the accuracy of the signal spatial spectrum and the accuracy of the sound source direction judgment, so as to further improve the voice communication quality in a noisy background.
[0034] It should be noted that the sound source localization method provided in the embodiment of the present application can be applied not only to the above-mentioned scenario in which the user makes a video call or voice call with other users through an electronic device, but can also be applied to the scenario in which the user is identified based on sound source localization to perform user identity identification. Here, the sound source localization method provided in the embodiment of the present application can be applied to any scenario in which sound source localization can be performed.
[0035] According to the above application scenarios, the following Figure 2 The sound source localization method provided in the embodiment of the present application is described in detail.
[0036] Figure 2 A flowchart of a sound source localization method provided in an embodiment of the present application.
[0037] like Figure 2 As shown, the sound source localization method can be applied to electronic devices, based on which, it can specifically include the following steps:
[0038] Step 210, receiving a target audio signal, the target audio signal including a noise audio signal. Step 220, determining a first signal spatial spectrum corresponding to the target audio signal according to the target audio signal, the first signal spatial spectrum being used to characterize the distribution state of the audio signal spatial energy of the target audio signal. Step 230, performing interference removal processing on the first signal spatial spectrum according to the noise spatial spectrum corresponding to the noise audio signal, to obtain a second signal spatial spectrum. Step 240, locating the target audio signal according to the direction of the target spectrum peak in the second signal spatial spectrum.
[0039] In this way, while the first signal spatial spectrum is preliminarily obtained, the noise spatial spectrum corresponding to the noise audio signal in the target audio signal is determined, and the first signal spatial spectrum is de-interferenced by the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum. Then, the second signal spatial spectrum is searched for a spectral peak, and the direction corresponding to the target spectral peak in the second signal spatial spectrum is determined as the direction of outputting the target audio signal, thereby improving the accuracy of the signal spatial spectrum and the accuracy of the sound source direction judgment.
[0040] The above steps are described in detail below:
[0041] First, step 220 is involved. In one or more optional embodiments, step 220 may specifically include:
[0042] Calculate the distribution state of the audio signal spatial energy of the target audio signal through a sound source orientation estimation algorithm;
[0043] Obtaining a first signal spatial spectrum corresponding to the target audio signal according to a distribution state of audio signal spatial energy of the target audio signal;
[0044] The sound source direction estimation algorithm includes at least one of the following: an arrival time difference algorithm, a maximum output power algorithm, and a multi-signal classification algorithm.
[0045] For example, different types of sound source direction estimation algorithms can be used in the embodiments of the present application, such as those based on the time difference of arrival (TDOA) algorithm, the maximum output power algorithm (SRP-PHAT) algorithm, the multiple signal classification algorithm (MUSIC) algorithm, etc. The corresponding signal spatial spectrum can be obtained through the above-mentioned sound source direction estimation algorithms.
[0046] Next, referring to step 230, in one or more optional embodiments, before obtaining the second signal spatial spectrum, the method further includes:
[0047] According to the target audio signal, frequency point information of each frequency point in the target audio signal is determined, where the frequency point information is used to characterize the probability of speech existing at the frequency point;
[0048] According to the frequency point information, the noise audio signal in the target audio signal is determined.
[0049] It should be noted that in the embodiment of the present application, while determining the first signal spatial spectrum, the target audio signal received by the microphone in the electronic device can be input into the audio recognition deep learning model to obtain a frequency point information mask, that is, the probability of the presence of speech at the frequency point, and the frequency point information range is 0-1. If the frequency point information is closer to 1, the probability of the presence of speech at the frequency point is greater; conversely, if the frequency point information is closer to 0, the probability of the presence of noise at the frequency point is greater. Therefore, the frequency point information can be used to judge the speech and noise probability in the target audio signal to determine the interference removal coefficient of the signal spatial spectrum obtained by the target audio signal, so as to facilitate the interference removal processing of the first signal spatial spectrum according to the interference removal coefficient of the signal spatial spectrum obtained by the target audio signal, thereby improving the signal spatial spectrum quality and the accuracy of the sound source direction judgment.
[0050] Based on this, the target audio signal can be input into the target audio signal recognition deep learning model to obtain the noise audio signal and speech audio in the target audio signal. It should be noted that the target audio signal recognition deep learning model in the embodiment of the present application can be trained in the following way.
[0051] The noisy audio is input into the audio recognition deep learning model, and the audio recognition deep learning model is trained until the training conditions are met, such as the model outputs speech audio and noise audio signals, to obtain a trained audio recognition deep learning model. Then, the trained audio recognition deep learning model is determined as the target audio signal recognition deep learning model.
[0052] Furthermore, the target audio signal includes a plurality of audio frames, each of the plurality of audio frames includes a plurality of frequency points; and determining the noise audio signal in the target audio signal according to the frequency point information includes:
[0053] According to multiple frequency points in the audio frame, average frequency point information of the audio frame is calculated, and the average frequency point information is used to represent the average probability that speech exists in the audio frame;
[0054] When the average frequency point information of the audio frame meets the preset frequency point information, it is determined that the audio frame is a noise audio frame corresponding to the noise audio signal.
[0055] Based on this, the embodiments of the present application are combined Figure 4 The steps involved above are described with examples.
[0056] like Figure 4 As shown, the received target audio signal is input into the target audio signal recognition deep learning model to obtain the frequency information of multiple frequency points in each audio frame of the target audio signal. Here, the target audio signal is divided into multiple audio frames according to the time dimension, and then the time domain signals corresponding to the multiple audio frames are converted into frequency domain signals, and the frequency domain signals are divided to obtain multiple frequency points in the audio frame. Then, according to the frequency information mask of the multiple frequency points in each audio frame, the average frequency information mask_L of each audio frame is calculated. For example, the multiple audio frames include audio frame A, and the multiple frequency points a1, a2, a3...aN (N is an integer greater than 1) in audio frame A are averaged (or weighted summed) for the frequency information of each frequency point in the multiple frequency points of audio frame A to obtain the average frequency information mask_L of audio A. Here, the multiple audio frames of the target audio signal can refer to the method of determining the average frequency information mask_L of audio frame A to calculate the corresponding average frequency information mask_L.
[0057] Then, determine whether the value of the average frequency information mask_L is less than the value of the preset frequency information. If the value of the average frequency information mask_L is less than or equal to the value thr of the preset frequency information, determine that the audio frame is a noise audio frame; if the value of the average frequency information mask_L is greater than the value thr of the preset frequency information, determine that the audio frame is a speech audio frame. In this way, the noise spectrum and filter coefficient based on the spatial spectrum of the first signal can be updated through the attributes of the audio frame, thereby controlling the interference reduction optimization process of the first spatial spectrum.
[0058] In one or more optional embodiments, step 230 may specifically include:
[0059] The first signal spatial spectrum is subjected to interference removal processing by using a noise reduction algorithm and a noise spatial spectrum corresponding to the noise audio signal to obtain a second signal spatial spectrum that does not include the noise audio signal; wherein,
[0060] The noise reduction algorithm includes at least one of the following: Wiener filtering algorithm, spectral subtraction algorithm.
[0061] Here, the embodiment of the present application performs interference removal filtering on the spatial spectrum of the first signal by using the spatial spectrum corresponding to the audio frame determined by the mask, so as to perform interference removal processing on the initially obtained spatial spectrum, so as to improve the quality of the spatial spectrum and the accuracy of sound source direction judgment.
[0062] It should be noted that, in the embodiment of the present application, based on step 210 and step 220, according to the first signal spatial spectrum of the target audio signal preliminarily obtained and the noise spatial spectrum obtained by the noise audio frame output by the coupling mask, the first signal spatial spectrum is subjected to noise reduction and interference removal processing through a noise reduction algorithm, including but not limited to a Wiener filtering algorithm, a spectral subtraction algorithm, etc., to obtain a second signal spatial spectrum with higher accuracy and stronger robustness.
[0063] Then, step 240 is involved. In one or more optional embodiments, step 240 may specifically include:
[0064] Performing a spectrum peak search on the second signal spatial spectrum to obtain a target spectrum peak in the second signal spatial spectrum;
[0065] Taking the device receiving the target audio signal as the coordinate origin, calculate the coordinate direction corresponding to the maximum peak value of the target spectrum peak;
[0066] The coordinate direction is determined as a direction in which the target audio signal is output.
[0067] Here, the location of the sound pickup device, such as the electronic device, can be determined as the coordinate origin, and a circle can be drawn with the coordinate origin to determine the corresponding 0-360 degree direction. Next, the coordinate direction corresponding to the target spectrum peak in the second signal spatial spectrum, i.e., the area where the maximum value of the signal spatial spectrum is located, is determined as the direction of outputting the target audio signal, i.e., the source direction of the target audio signal. For example, if the coordinate direction corresponding to the target spectrum peak is 150 degrees, then the direction of outputting the target audio signal is 150 degrees.
[0068] Thus, the first signal spatial spectrum corresponding to the acquired target audio signal is subjected to interference removal processing to obtain the second signal spatial spectrum, and then the target audio signal is located according to the direction of the target spectrum peak in the second signal spatial spectrum. In this way, while the first signal spatial spectrum is preliminarily obtained, the noise spatial spectrum corresponding to the noise audio signal in the target audio signal is determined, and the first signal spatial spectrum is subjected to interference removal processing by the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum. Then, the second signal spatial spectrum is searched for spectrum peaks, and the direction corresponding to the target spectrum peak in the second signal spatial spectrum is determined as the direction of outputting the target audio signal, thereby improving the accuracy of the signal spatial spectrum and the accuracy of the sound source direction judgment.
[0069] Combine the following Figure 5 and Figure 6 , the effect of the above-mentioned sound source localization method is explained.
[0070] like Figure 5 As shown, the sound source localization scenario is a scene with strong wind noise, and the sound source azimuth angle of the target audio signal is about 150 degrees. Figure 5The horizontal axis is the sampling point, and the vertical axis is the sound source angle. Figure 5 The two-dimensional diagram shown in is the signal space spectrum of the corresponding sampling points, and the drawn points are the sound source angles given by the judgment. Figure 5 It is a two-dimensional diagram without signal spatial spectrum denoising, where the area corresponding to frame 50 is generated by interference noise. If it is not processed by interference, it will cause wrong judgment for sound source positioning. Figure 6 The signal space diagram shown is the result of combining the mask to remove the interference of the signal space spectrum. Figure 6 It can be seen from the box 60 in that the noise interference is effectively filtered out, and a more accurate sound source orientation judgment is given. Therefore, the sound source localization method provided in the embodiment of the present application can effectively improve the accuracy of the signal spatial spectrum and the accuracy of the sound source direction judgment.
[0071] It should be noted that the sound source localization method provided in the embodiment of the present application can be performed by a sound source localization device, or a control module in the sound source localization device for performing the sound source localization method. In the embodiment of the present application, the sound source localization device performing the sound source localization method is taken as an example to illustrate the sound source localization device provided in the embodiment of the present application.
[0072] Based on the same inventive concept, the present application also provides a sound source localization device. Figure 7 Provide detailed explanation.
[0073] Figure 7 A schematic diagram of the structure of a sound source localization device provided in an embodiment of the present application.
[0074] like Figure 7 As shown, the sound source localization device 70 is applied to a sound pickup device such as an electronic device, and may specifically include:
[0075] The receiving module 701 is used to receive a target audio signal, where the target audio signal includes a noise audio signal;
[0076] A first determination module 702 is used to determine a first signal spatial spectrum corresponding to the target audio signal according to the target audio signal, where the first signal spatial spectrum is used to characterize the distribution state of audio signal spatial energy of the target audio signal;
[0077] The processing module 703 is used to perform interference removal processing on the first signal spatial spectrum through the noise spatial spectrum corresponding to the noise audio signal to obtain a second signal spatial spectrum;
[0078] The positioning module 704 is used to locate the target audio signal according to the direction of the target spectrum peak in the second signal spatial spectrum.
[0079] The sound source localization device 70 is described in detail below, as shown below:
[0080] In one or more possible embodiments, the first determination module 702 is specifically configured to calculate the distribution state of the audio signal spatial energy of the target audio signal through a sound source orientation estimation algorithm;
[0081] Obtaining a first signal spatial spectrum corresponding to the target audio signal according to a distribution state of audio signal spatial energy of the target audio signal;
[0082] The sound source direction estimation algorithm includes at least one of the following: an arrival time difference algorithm, a maximum output power algorithm, and a multi-signal classification algorithm.
[0083] In one or more possible embodiments, the sound source localization device further includes a second determination module and a third determination module; wherein,
[0084] A second determination module is used to determine frequency information of each frequency point in the target audio signal according to the target audio signal, where the frequency information is used to characterize the probability of speech existing at the frequency point;
[0085] The third determination module is used to determine the noise audio signal in the target audio signal according to the frequency point information.
[0086] Based on this, the third determination module is specifically used to, when the target audio signal includes multiple audio frames, and each audio frame of the multiple audio frames includes multiple frequency points, calculate the average frequency point information of the audio frame according to the multiple frequency points in the audio frame, and the average frequency point information is used to characterize the average probability that there is speech in the audio frame;
[0087] When the average frequency point information of the audio frame meets the preset frequency point information, it is determined that the audio frame is a noise audio frame corresponding to the noise audio signal.
[0088] In one or more possible embodiments, the processing module 703 is specifically configured to perform interference removal processing on the first signal spatial spectrum through a noise reduction algorithm and a noise spatial spectrum corresponding to the noise audio signal to obtain a second signal spatial spectrum that does not include the noise audio signal; wherein
[0089] The noise reduction algorithm includes at least one of the following: Wiener filtering algorithm, spectral subtraction algorithm.
[0090] In one or more possible embodiments, the positioning module 704 is specifically configured to perform a spectrum peak search on the second signal spatial spectrum to obtain a target spectrum peak in the second signal spatial spectrum;
[0091] Taking the device receiving the target audio signal as the coordinate origin, calculate the coordinate direction corresponding to the maximum peak value of the target spectrum peak;
[0092] The coordinate direction is determined as a direction in which the target audio signal is output.
[0093] The sound source localization device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0094] The sound source localization device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0095] The sound source localization device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0096] In an embodiment of the present application, the first signal spatial spectrum corresponding to the acquired target audio signal is subjected to interference removal processing to obtain the second signal spatial spectrum, and then the target audio signal is located according to the direction of the target spectrum peak in the second signal spatial spectrum. In this way, while the first signal spatial spectrum is preliminarily obtained, the noise spatial spectrum corresponding to the noise audio signal in the target audio signal is determined, and the first signal spatial spectrum is subjected to interference removal processing by the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum. Then, the second signal spatial spectrum is searched for spectrum peaks, and the direction corresponding to the target spectrum peak in the second signal spatial spectrum is determined as the direction of outputting the target audio signal, thereby improving the accuracy of the signal spatial spectrum and the accuracy of the sound source direction judgment.
[0097] Optional, such as Figure 8 As shown, the embodiment of the present application also provides a sound pickup device such as an electronic device 80, including a microphone 801, a processor 802, a memory 802, a program or instruction stored in the memory 802 and executable on the processor 801, and when the program or instruction is executed by the processor 801, each process of the above-mentioned sound source localization method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0098] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0099] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0100] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910 and a receiver 911 and other components.
[0101] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0102] In this embodiment of the present application, the microphone 911 is used to receive a target audio signal, which includes a noise audio signal; the processor 910 is used to determine a first signal spatial spectrum corresponding to the target audio signal according to the target audio signal, and the first signal spatial spectrum is used to characterize the distribution state of the audio signal spatial energy of the target audio signal; the first signal spatial spectrum is de-interferenceed by the noise spatial spectrum corresponding to the noise audio signal to obtain a second signal spatial spectrum; and the target audio signal is located according to the direction of the target spectrum peak in the second signal spatial spectrum.
[0103] Further, in one or more embodiments, the processor 910 in the embodiment of the present application may be specifically configured to calculate the distribution state of the audio signal spatial energy of the target audio signal through a sound source orientation estimation algorithm;
[0104] Obtaining a first signal spatial spectrum corresponding to the target audio signal according to a distribution state of audio signal spatial energy of the target audio signal;
[0105] The sound source direction estimation algorithm includes at least one of the following: an arrival time difference algorithm, a maximum output power algorithm, and a multi-signal classification algorithm.
[0106] In one or more embodiments, the processor 910 in the embodiment of the present application may be specifically configured to determine, according to the target audio signal, frequency information of each frequency point in the target audio signal, where the frequency information is used to characterize the probability that a voice exists at the frequency point;
[0107] According to the frequency point information, the noise audio signal in the target audio signal is determined.
[0108] In one or more embodiments, the processor 910 in the embodiment of the present application may be specifically configured to, when the target audio signal includes multiple audio frames, and each audio frame of the multiple audio frames includes multiple frequency points, calculate average frequency point information of the audio frame according to the multiple frequency points in the audio frame, where the average frequency point information is used to characterize the average probability that there is speech in the audio frame;
[0109] When the average frequency point information of the audio frame meets the preset frequency point information, the audio frame is determined to be a noise audio frame corresponding to the noise audio signal.
[0110] In one or more embodiments, the processor 910 in the embodiment of the present application may be specifically configured to perform a spectrum peak search on the second signal spatial spectrum to obtain a target spectrum peak in the second signal spatial spectrum;
[0111] Taking the device receiving the target audio signal as the coordinate origin, calculate the coordinate direction corresponding to the maximum peak value of the target spectrum peak;
[0112] The coordinate direction is determined as a direction in which the target audio signal is output.
[0113] Thus, the first signal spatial spectrum corresponding to the acquired target audio signal is subjected to interference removal processing to obtain the second signal spatial spectrum, and then the target audio signal is located according to the direction of the target spectrum peak in the second signal spatial spectrum. In this way, while the first signal spatial spectrum is preliminarily obtained, the noise spatial spectrum corresponding to the noise audio signal in the target audio signal is determined, and the first signal spatial spectrum is subjected to interference removal processing by the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum. Then, the second signal spatial spectrum is searched for spectrum peaks, and the direction corresponding to the target spectrum peak in the second signal spatial spectrum is determined as the direction of outputting the target audio signal, thereby improving the accuracy of the signal spatial spectrum and the accuracy of the sound source direction judgment.
[0114] It should be understood that the input unit 904 may include a graphics processor (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.
[0115] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned sound source localization method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0116] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0117] In addition, an embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned sound source localization method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0118] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0120] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0122] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A sound source localization method, characterized in that: include: receiving a target audio signal, wherein the target audio signal comprises a noise audio signal and a speech audio signal, and the target audio signal comprises a plurality of audio frames; Determine, according to the target audio signal, a first signal spatial spectrum corresponding to the target audio signal, wherein the first signal spatial spectrum is used to characterize a distribution state of audio signal spatial energy of the target audio signal; While determining the first signal spatial spectrum, determining a noise spatial spectrum corresponding to the noise audio signal in the target audio signal; Performing interference removal processing on the first signal spatial spectrum according to the noise spatial spectrum corresponding to the noise audio signal to obtain a second signal spatial spectrum; Positioning the target audio signal according to the direction of the target spectrum peak in the second signal spatial spectrum; The step of performing interference removal processing on the first signal spatial spectrum by using the noise spatial spectrum corresponding to the noise audio signal to obtain the second signal spatial spectrum includes: Inputting the target audio signal into an audio recognition deep learning model to obtain frequency information, wherein the frequency information represents the probability of speech existing at the frequency; Determine the speech and noise probabilities in the target audio signal by using the frequency point information to determine the interference removal coefficient of the signal spatial spectrum obtained by the target audio signal; The first signal spatial spectrum is subjected to interference removal processing according to the interference removal coefficient to obtain the second signal spatial spectrum.
2. The method according to claim 1, characterized in that The determining, according to the target audio signal, a first signal spatial spectrum corresponding to the target audio signal comprises: Calculating the distribution state of the audio signal spatial energy of the target audio signal by a sound source orientation estimation algorithm; Obtaining a first signal spatial spectrum corresponding to the target audio signal according to a distribution state of audio signal spatial energy of the target audio signal; The sound source direction estimation algorithm includes at least one of the following: an arrival time difference algorithm, a maximum output power algorithm, and a multi-signal classification algorithm.
3. The method according to claim 1 or 2, characterized in that: Before obtaining the second signal spatial spectrum, the method further includes: Determine, according to the target audio signal, frequency point information of each frequency point in the target audio signal, wherein the frequency point information is used to characterize the probability that speech exists at the frequency point; A noise audio signal in the target audio signal is determined according to the frequency point information.
4. The method according to claim 3, characterized in that Each of the multiple audio frames includes multiple frequency points; and determining the noise audio signal in the target audio signal according to the frequency point information includes: Calculate, according to multiple frequency points in the audio frame, average frequency point information of the audio frame, where the average frequency point information is used to represent an average probability that speech exists in the audio frame; When the average frequency point information of the audio frame meets the preset frequency point information, the audio frame is determined to be a noise audio frame corresponding to the noise audio signal.
5. The method according to claim 1, characterized in that The positioning of the target audio signal according to the direction of the target spectrum peak in the second signal spatial spectrum includes: Performing a spectrum peak search on the second signal spatial spectrum to obtain a target spectrum peak in the second signal spatial spectrum; Taking the device receiving the target audio signal as the coordinate origin, calculating the coordinate direction corresponding to the maximum peak value of the target spectrum peak; The coordinate direction is determined as a direction in which the target audio signal is output.
6. A sound source localization device, characterized in that: include: A receiving module, configured to receive a target audio signal, wherein the target audio signal includes a noise audio signal and a speech audio signal, and the target audio signal includes a plurality of audio frames; a first determining module, configured to determine, according to the target audio signal, a first signal spatial spectrum corresponding to the target audio signal, wherein the first signal spatial spectrum is used to characterize a distribution state of audio signal spatial energy of the target audio signal; The first determining module is further configured to determine a noise spatial spectrum corresponding to the noise audio signal in the target audio signal while determining the first signal spatial spectrum; A processing module, configured to perform interference removal processing on the first signal spatial spectrum according to the noise spatial spectrum corresponding to the noise audio signal, so as to obtain a second signal spatial spectrum; a positioning module, configured to locate the target audio signal according to the direction of the target spectrum peak in the second signal spatial spectrum; The processing module is specifically used for: Inputting the target audio signal into an audio recognition deep learning model to obtain frequency information, wherein the frequency information represents the probability of speech existing at the frequency; Determine the speech and noise probabilities in the target audio signal by using the frequency point information to determine the interference removal coefficient of the signal spatial spectrum obtained by the target audio signal; The first signal spatial spectrum is subjected to interference removal processing according to the interference removal coefficient to obtain the second signal spatial spectrum.
7. The device according to claim 6, characterized in that The first determination module is specifically configured to calculate the distribution state of the audio signal spatial energy of the target audio signal through a sound source orientation estimation algorithm; Obtaining a first signal spatial spectrum corresponding to the target audio signal according to a distribution state of audio signal spatial energy of the target audio signal; The sound source direction estimation algorithm includes at least one of the following: an arrival time difference algorithm, a maximum output power algorithm, and a multi-signal classification algorithm.
8. The device according to claim 6 or 7, characterized in that The sound source localization device further includes a second determination module and a third determination module; wherein, The second determination module is used to determine frequency point information of each frequency point in the target audio signal according to the target audio signal, wherein the frequency point information is used to represent the probability that speech exists at the frequency point; The third determination module is configured to determine the noise audio signal in the target audio signal according to the frequency point information.
9. The device according to claim 8, characterized in that The third determination module is specifically configured to, when each of the multiple audio frames includes multiple frequency points, calculate average frequency point information of the audio frame according to the multiple frequency points in the audio frame, wherein the average frequency point information is used to represent an average probability that speech exists in the audio frame; When the average frequency point information of the audio frame meets the preset frequency point information, the audio frame is determined to be a noise audio frame corresponding to the noise audio signal.
10. The device according to claim 6, characterized in that The positioning module is specifically used to perform a spectrum peak search on the second signal spatial spectrum to obtain a target spectrum peak in the second signal spatial spectrum; Taking the device receiving the target audio signal as the coordinate origin, calculating the coordinate direction corresponding to the maximum peak value of the target spectrum peak; The coordinate direction is determined as a direction in which the target audio signal is output.
