Directional sound source noise reduction method and medium for head-mounted AR device
By performing signal transformation, filtering and feature extraction on the sound signal of the head-mounted AR device, the target speech is identified and denoised, which solves the problem of difficulty in the device receiving user voice commands in a noisy environment and improves the noise reduction performance and voice signal quality.
Patent Information
- Application Number
- CN202411002845.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Head-mounted AR devices have difficulty receiving user voice commands clearly in noisy environments, and their noise reduction performance is poor.
By acquiring the sound signal set, performing signal transformation and filtering, calculating signal correlation maps to identify target speech and interfering speech, performing wavelet denoising and adaptive signal filtering, extracting phase features and signal power spectrum for feature cross-fusion, and achieving speech enhancement.
It improves the noise reduction performance of head-mounted AR devices, enhances the clarity and accuracy of voice signals, processes voice signals in a targeted manner, and reduces external noise interference.
Smart Images

Figure CN118553261B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of speech noise reduction, and in particular to a directional sound source noise reduction method and medium for a head-mounted AR device. Background Art
[0002] Head-mounted AR (Augmented Reality) devices are technical products that use head-mounted displays to overlay virtual information onto the real world. Through head-mounted displays, users can see images and information generated by the device in the real environment, thereby gaining an immersive experience. With the development of technology, AR devices have significantly improved in hardware, software, content, applications and services, and AR technology has gradually been accepted by more users.
[0003] Head-mounted AR devices need to receive user voice commands to control and interact with the device, but when users actually wear head-mounted AR devices, they are often in a noisy environment. The interference noise of the external environment makes it difficult to clearly obtain the user's voice commands. Since the user's voice commands come from the user's mouth, and the external noise often comes from multiple directions, how to specifically reduce the noise of the sound signals received by the head-mounted AR device according to the source of the sound signal and improve the noise reduction performance of the head-mounted AR device has become an urgent problem to be solved. Summary of the invention
[0004] The present invention provides a directional sound source noise reduction method and medium for a head-mounted AR device, the main purpose of which is to solve the problem of poor noise reduction performance of the head-mounted AR device.
[0005] To achieve the above object, the present invention provides a method for reducing directional sound source noise of a head-mounted AR device, comprising:
[0006] Acquire a sound signal set of a head-mounted AR device, perform signal transformation and signal filtering on each sound signal in the sound signal set, and obtain a signal spectrum;
[0007] Calculating a signal correlation graph of the sound signal, and identifying a target speech signal and an interfering speech signal in the sound signal set according to the signal spectrum and the signal correlation graph;
[0008] Performing wavelet denoising and variable-step adaptive signal filtering on the target speech signal and the interference speech signal respectively to obtain a target noise reduction signal and an interference noise reduction signal;
[0009] Extracting the phase feature and signal power spectrum of the target noise reduction signal, and performing feature cross-fusion on the phase feature and the signal power spectrum to obtain the target feature;
[0010] The target noise reduction signal is subjected to speech enhancement according to the target feature to obtain an enhanced speech signal, and the enhanced speech signal and the interference noise reduction signal are collected to obtain a noise reduction signal set of the head-mounted AR device.
[0011] Optionally, performing signal transformation and signal filtering on each sound signal in the sound signal set to obtain a signal spectrum includes:
[0012] Performing signal pre-emphasis and signal normalization processing on each of the sound signals to obtain a processed voice signal;
[0013] Performing short-time Fourier transform on the processed speech signal to obtain a signal spectrogram of the sound signal;
[0014] Using a pre-constructed filter bank to perform triangular filtering on the signal spectrogram to obtain a filtered spectrum of the sound signal;
[0015] The filtered spectrum is logarithmically transformed to obtain a signal spectrum of the sound signal.
[0016] Optionally, the frequency response of the filters in the filter bank may be expressed as: in, Indicates that the center frequency of the filter is No. The frequency response of the filter is Represents a Mel filter function.
[0017] Optionally, calculating the signal correlation graph of the sound signal includes:
[0018] Performing a fast Fourier transform on the sound signal and the preset target command signal to obtain a frequency domain spectrum of the sound signal and the target command signal;
[0019] Calculating a cross power spectrum between the sound signal and the target command signal according to the frequency domain spectrum;
[0020] The cross power spectrum is weighted by phase change to obtain a signal correlation spectrum corresponding to the sound signal.
[0021] Optionally, the identifying the target speech signal and the interfering speech signal in the sound signal set according to the signal spectrum and the signal correlation graph includes:
[0022] Performing multi-layer convolution processing and gated loop processing on the signal spectrum and the signal correlation spectrum to obtain convolution features and loop features;
[0023] Performing channel-weighted fusion on the convolutional features and the cyclic features respectively to obtain convolutional fusion features and cyclic fusion features;
[0024] Performing feature splicing on the convolution fusion feature and the loop fusion feature to obtain a target fusion feature;
[0025] A self-attention calculation is performed on the target fusion feature to obtain a self-attention feature, and the self-attention feature is fully connected to obtain a target speech signal and an interfering speech signal in the sound signal set.
[0026] Optionally, performing wavelet denoising and variable-step adaptive signal filtering on the target speech signal and the interference speech signal respectively to obtain a target noise reduction signal and an interference noise reduction signal includes:
[0027] Performing wavelet transform on the target speech signal and the interfering speech signal respectively to obtain wavelet coefficients, performing threshold processing on the wavelet coefficients to obtain a wavelet denoised signal;
[0028] Filtering the wavelet denoising signal using a preset adaptive filter to obtain a filtered signal;
[0029] Calculating a filtering mean square error of the filtering signal according to the filtering coefficient of the adaptive filter;
[0030] The filter coefficient is updated according to the filtering mean square error until the filtering mean square error is less than a preset error threshold, thereby obtaining a target filter;
[0031] The filter coefficient is updated using the following formula: in, represents the updated filter coefficients, represents the filter coefficient, Indicates the preset adjustment parameters, Indicates the preset control parameters, represents the filtering mean square error, represents the wavelet denoised signal;
[0032] The wavelet denoising signal is filtered using the target filter to obtain a target denoising signal and an interference denoising signal.
[0033] Optionally, extracting the phase feature and signal power spectrum of the target noise reduction signal includes:
[0034] Convert the target noise reduction signal into time-frequency domain to obtain a time-frequency domain signal of the target noise reduction signal;
[0035] Extracting the phase characteristics and signal power spectrum of the target noise reduction signal according to the time-frequency domain signal;
[0036] The phase characteristics and signal power spectrum of the target noise reduction signal are extracted using the following formula: in, represents the phase characteristics, Represents the time-frequency domain signal The real part of Represents the time-frequency domain signal The imaginary part of represents the signal power spectrum.
[0037] Optionally, performing feature cross-fusion on the phase feature and the signal power spectrum to obtain a target feature includes:
[0038] Obtaining the phase feature and the phase value and power spectrum value of the same frequency point in the signal power spectrum;
[0039] Arranging the phase value and the power spectrum value at frequency points to obtain a time frame sequence;
[0040] The time frame sequence can be expressed as: in, Indicates the first The power spectrum value sequence of time frames, Indicates the first The phase value sequence of time frames, Indicates The power spectrum value of the first frequency point in the time frame, Indicates time frame, The power spectrum value of the frequency point, Indicates time frame, The power spectrum value of the frequency point, Represents the total number of frequency points, Indicates The phase value of the first frequency point in the time frame, Indicates time frame, The phase value at each frequency point, Indicates time frame, The phase value of each frequency point;
[0041] A target feature is generated based on the sequence of time frames.
[0042] Optionally, performing speech enhancement on the target noise reduction signal according to the target feature to obtain an enhanced speech signal includes:
[0043] Performing feature expansion on the target feature to obtain an expanded cross feature;
[0044] Performing linear activation and normalization processing on the expanded cross features to obtain activation features;
[0045] Performing multi-scale feature encoding on the activation feature to obtain a coding feature, and performing feature correlation calculation on the coding feature using a pre-constructed long-short term neural network to obtain a correlation feature;
[0046] Feature decoding is performed on the relevant features to obtain an enhanced speech signal corresponding to the target noise reduction signal.
[0047] In order to solve the above problems, the present invention also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the directional sound source noise reduction method of the head-mounted AR device as described in any one of the above items is implemented.
[0048] The embodiment of the present invention can extract the key frequency bands in the voice signal, suppress the unimportant frequency bands, and obtain a more accurate signal spectrum by performing signal transformation and signal filtering on each sound signal in the sound signal set of the head-mounted AR device; calculate the signal correlation spectrum of the sound signal, and identify the target voice signal and the interfering voice signal according to the signal spectrum and the signal correlation spectrum; perform wavelet denoising and adaptive signal filtering on the target voice signal and the interfering voice signal to further improve the effect of signal noise reduction; at the same time, perform feature cross-fusion on the phase feature and signal power spectrum of the target noise reduction signal to obtain the target feature, which can make full use of the correlation between phase information and frequency information; perform voice enhancement on the target noise reduction signal according to the target feature, and can perform targeted signal noise reduction and signal enhancement on the voice signal set collected by the head-mounted AR device, while improving the overall noise reduction performance of the head-mounted AR device. Therefore, the directional sound source noise reduction method and medium of the head-mounted AR device proposed in the present invention can solve the problem of poor noise reduction performance of the head-mounted AR device. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of a flow chart of a method for denoising a directional sound source of a head-mounted AR device provided in one embodiment of the present invention;
[0050] Figure 2 A schematic diagram of a process for calculating a signal correlation graph of a sound signal provided by an embodiment of the present invention;
[0051] Figure 3 A schematic diagram of a process of performing wavelet denoising and variable-step adaptive signal filtering on a target speech signal and an interfering speech signal provided by an embodiment of the present invention;
[0052] Figure 4A schematic diagram of a process for performing speech enhancement on a target noise reduction signal provided by an embodiment of the present invention;
[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0055] The embodiment of the present application provides a directional sound source noise reduction method for a head-mounted AR device. The execution subject of the directional sound source noise reduction method for the head-mounted AR device includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the directional sound source noise reduction method for the head-mounted AR device can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0056] Reference Figure 1 FIG. 2 is a flow chart of a method for reducing directional sound source noise of a head-mounted AR device according to an embodiment of the present invention. In this embodiment, the method for reducing directional sound source noise of a head-mounted AR device includes:
[0057] S1. Obtain a sound signal set of a head-mounted AR device, perform signal transformation and signal filtering on each sound signal in the sound signal set, and obtain a signal spectrum.
[0058] In the embodiment of the present invention, the sound signal set is all sound signals collected by the sound collection device of the head-mounted AR device, for example, sound signals corresponding to user voice commands, sound signals of outsiders, sound signals caused by environmental noise, etc.
[0059] Furthermore, signal transformation is to convert the speech signal into a spectrogram to extract the characteristic information of different sound signals in the time-frequency domain, so as to more accurately obtain the time in the sound signal and improve the accuracy of subsequent target speech signal recognition.
[0060] In the embodiment of the present invention, performing signal transformation and signal filtering on each sound signal in the sound signal set to obtain a signal spectrum includes:
[0061] Performing signal pre-emphasis and signal normalization processing on each of the sound signals to obtain a processed voice signal;
[0062] Performing short-time Fourier transform on the processed speech signal to obtain a signal spectrogram of the sound signal;
[0063] Using a pre-constructed filter bank to perform triangular filtering on the signal spectrogram to obtain a filtered spectrum of the sound signal;
[0064] The filtered spectrum is logarithmically transformed to obtain a signal spectrum of the sound signal.
[0065] In the embodiment of the present invention, signal pre-emphasis is to enhance the high-frequency part of the sound signal to compensate for the loss of high-frequency components due to the transmission or recording process. Specifically, signal pre-emphasis is usually implemented in the time domain of the signal. Through signal pre-emphasis, the high-frequency components in the signal can be highlighted, so that the difference between adjacent sound signals is greater, and the target voice signal can be recognized more accurately.
[0066] Furthermore, signal normalization is to scale the amplitude of the sound signal to a uniform range, such as 0 to 1, or -1 to 1. Signal normalization helps to improve the stability of the signal processing algorithm.
[0067] Specifically, the Short-Time Fourier Transform (STFT) can capture the local frequency characteristics of the sound signal and obtain a signal spectrogram by dividing the sound signal into short time frames and performing Fourier transform on each frame. The short-time Fourier transform first divides the processed speech signal into overlapping short time frames. For example, the length of the short time frame is 20ms to 40ms, and there is a 50% overlap between frames. A window function, such as a Hamming window or a Hanning window, is then applied to the data of each frame. A fast Fourier transform is performed on the windowed signal of each frame to obtain the spectrum of the time frame. The spectrum of each frame is arranged in chronological order to obtain a signal spectrogram.
[0068] In an embodiment of the present invention, the filter group can be a Mel triangular filter, which is equidistant at the Mel frequency. Each filter is in the shape of a triangle, with the response at the center frequency being the largest and linearly decreasing to zero on both sides. The signal spectrogram is multiplied by the frequency response of the Mel triangular filter group to obtain the response of each frequency value in the signal spectrogram at the fast Fourier point. The response corresponding to each filter is integrated or summed within the bandwidth of the filter to obtain a filtered spectrum, which can be obtained by accumulating the weighted power spectrum at the frequency point of the fast Fourier transform.
[0069] Specifically, the frequency response of the filters in the filter bank can be expressed as: in, Indicates that the center frequency of the filter is No. The frequency response of the filter is Represents a Mel filter function.
[0070] In the embodiment of the present invention, the Fourier transform of the processed speech signal can be directly multiplied by the frequency response of the filter, that is, the signal spectrogram is multiplied by the frequency response of the filter to obtain the signal response after each filter performs triangular filtering on the signal spectrogram.
[0071] In the embodiment of the present invention, the filter group composed of Mel triangle filters can effectively extract the key frequency band in the speech signal from the sound signal, and suppress the unimportant frequency band, thereby improving the accuracy of subsequent target speech signal recognition.
[0072] S2. Calculate a signal correlation graph of the sound signal, and identify a target speech signal and an interfering speech signal in the sound signal set according to the signal spectrum and the signal correlation graph.
[0073] In an embodiment of the present invention, the signal correlation spectrum is a generalized cross-correlation spectrum between sound signals. The generalized cross-correlation spectrum calculates the cross-power spectrum between two sound signals through a generalized cross-correlation function, and then applies a certain weighting function in the frequency domain of the cross-power spectrum to whiten the sound signal and noise, enhance the frequency components with a higher signal-to-noise ratio, and suppress the influence of noise.
[0074] Furthermore, the weighted cross-power spectrum is inverse Fourier transformed back to the time domain to obtain the generalized cross-correlation function. The peak position of the generalized cross-correlation function can be used to calculate the time delay of the head-mounted AR device receiving the two sound signals, and then accurately calculate the spatial information of the sound signal.
[0075] Specifically, the embodiment of the present invention can further improve the accuracy of subsequent target voice signal recognition by calculating the signal correlation graph between each sound signal and the preset target command signal to analyze the correlation between each voice signal received by the head-mounted AR device and the target command signal. The target command signal can be a voice command signal issued by the user's mouth that has been received by the head-mounted AR device in the past.
[0076] In the embodiment of the present invention, refer to Figure 2 As shown, the calculating of the signal correlation graph of the sound signal includes:
[0077] S21, performing fast Fourier transform according to the sound signal and the preset target command signal to obtain a frequency domain spectrum of the sound signal and the target command signal;
[0078] S22, calculating the cross power spectrum between the sound signal and the target command signal according to the frequency domain spectrum;
[0079] S23. Perform phase change weighting on the cross power spectrum to obtain a signal correlation spectrum corresponding to the sound signal.
[0080] In the embodiment of the present invention, the signal may be preprocessed before fast Fourier transform, such as windowing, to reduce leakage of the signal spectrum. Fast Fourier transform (FFT) can convert the sound signal from the time domain to the frequency domain signal.
[0081] Furthermore, the cross-power spectrum is the product of a frequency signal multiplied by the complex conjugate of another frequency signal and taking the absolute value, that is, the modulus of the product of two complex numbers. Phase transform weighting is to weight the cross-power spectrum with the PHAT (PHrAseTransform) function to enhance certain frequency components of the signal and suppress noise, which can further reduce the error caused by the difference in signal amplitude, thereby improving the accuracy and robustness of delay estimation.
[0082] In the embodiment of the present invention, the target voice signal is a sound signal corresponding to the user voice command collected by the head-mounted AR device, and the interference voice signal is an external interference voice signal collected by the head-mounted AR device, such as the voice signal of an outside person, environmental noise, etc. By identifying the target voice signal in the sound signal, signal noise reduction can be performed in a targeted manner to improve the noise reduction performance of the wearable AR device.
[0083] In an embodiment of the present invention, the identifying the target speech signal and the interfering speech signal in the sound signal set according to the signal spectrum and the signal correlation graph includes:
[0084] Performing multi-layer convolution processing and gated loop processing on the signal spectrum and the signal correlation spectrum to obtain convolution features and loop features;
[0085] Performing channel-weighted fusion on the convolutional features and the cyclic features respectively to obtain convolutional fusion features and cyclic fusion features;
[0086] Performing feature splicing on the convolution fusion feature and the loop fusion feature to obtain a target fusion feature;
[0087] A self-attention calculation is performed on the target fusion feature to obtain a self-attention feature, and the self-attention feature is fully connected to obtain a target speech signal and an interfering speech signal in the sound signal set.
[0088] In the embodiment of the present invention, the data form of the signal spectrum and the signal correlation spectrum is usually a spectrum, which can intuitively display the characteristic information of the signal frequency band and the change of the correlation between the signal and the target command signal over time.
[0089] In an embodiment of the present invention, a pre-constructed convolutional neural network can be used to perform multi-layer convolution processing on the signal spectrum and the signal correlation spectrum, and then a pre-constructed gated recurrent unit (Gated Recurrent Unit) can be used to perform a layer of gated recurrent processing to obtain the convolution features and recurrent features of the signal spectrum and the signal correlation spectrum.
[0090] Among them, the column vector composed of the convolution features of the signal spectrum and the signal correlation spectrum is feature multiplied with the pre-constructed weight matrix to obtain the convolution fusion feature, and the column vector composed of the cyclic features of the signal spectrum and the signal correlation spectrum is feature multiplied with the weight matrix to obtain the cyclic fusion feature.
[0091] Furthermore, the target fusion feature can be self-attention calculated through the Transformer model, and a fully connected layer can be set after the Transformer model to classify the speech signal to obtain the target speech signal and the interference speech signal.
[0092] In the embodiment of the present invention, multi-layer convolution processing and gated loop processing can make up for the shortcomings of Transformer in capturing local feature information, while also enhancing the ability to capture contextual relationships. At the same time, through channel weighted fusion, the relationship between different features can be learned to effectively improve the accuracy of signal recognition.
[0093] S3. Perform wavelet denoising and variable-step adaptive signal filtering on the target speech signal and the interference speech signal respectively to obtain a target noise reduction signal and an interference noise reduction signal.
[0094] In the embodiment of the present invention, wavelet denoising is to perform threshold denoising on the target speech signal and the interfering speech signal after wavelet transform, and variable step adaptive signal filtering is to filter the target speech signal after wavelet denoising using the LMS (least mean square) adaptive algorithm to further denoise the target speech signal and the interfering speech signal.
[0095] In the embodiment of the present invention, refer to Figure 3 As shown, the target speech signal and the interference speech signal are subjected to wavelet denoising and variable step-size adaptive signal filtering respectively to obtain a target noise reduction signal and an interference noise reduction signal, including:
[0096] S31, respectively performing wavelet transform on the target speech signal and the interference speech signal to obtain wavelet coefficients, performing threshold processing on the wavelet coefficients to obtain a wavelet denoising signal;
[0097] S32, filtering the wavelet denoising signal using a preset adaptive filter to obtain a filtered signal;
[0098] S22, calculating a filtering mean square error of the filtered signal according to the filtering coefficient of the adaptive filter;
[0099] S34, updating the filter coefficient according to the filtering mean square error until the filtering mean square error is less than a preset error threshold, thereby obtaining a target filter;
[0100] S35. Filter the wavelet denoising signal using the target filter to obtain a target denoising signal and an interference denoising signal.
[0101] In the embodiment of the present invention, the wavelet coefficients of the signal are obtained through wavelet transform. Most of the wavelet coefficients with larger amplitudes are useful signals, while the wavelet coefficients with smaller amplitudes are generally noises. Therefore, a threshold can be set to retain the wavelet coefficients greater than the threshold, and the wavelet coefficients less than the threshold are set to zero. Then, the signal is reconstructed according to the processed wavelet coefficients to obtain a wavelet denoised signal.
[0102] In an embodiment of the present invention, the adaptive filter includes but is not limited to a FIR (finite impulse response) filter. The dot product of the wavelet denoising signal and the adaptive filter coefficient vector is the desired signal for filtering, and the filtered signal is the actual output signal of the adaptive filter. The mean square error of the wavelet denoising signal is calculated based on the desired signal and the filtered signal, and the coefficient is updated by a variable step size parameter until the filtering mean square error is less than a preset error threshold. The updated filter coefficient is used to replace the filter parameters in the adaptive filter to obtain a target filter.
[0103] Specifically, the filter coefficient is updated using the following formula: in, represents the updated filter coefficients, represents the filter coefficient, Indicates the preset adjustment parameters, Indicates the preset control parameters, represents the filtering mean square error, represents the wavelet denoised signal.
[0104] In the embodiment of the present invention, the noise in the target speech signal and the interfering speech signal can be initially denoised by wavelet denoising, and the effect of signal denoising can be further improved by adaptive signal filtering with a variable step size.
[0105] S4. Extracting the phase feature and the signal power spectrum of the target noise reduction signal, and performing feature cross-fusion on the phase feature and the signal power spectrum to obtain the target feature.
[0106] In the embodiment of the present invention, the phase feature is the relative position or offset of the signal waveform over time, which can reflect the characteristic information of the signal frequency component and time delay. The signal power spectrum is the logarithmic energy spectrum of the target noise reduction signal. The signal power spectrum can display the frequency distribution characteristics of the signal. The signal characteristics of the target noise reduction signal can be comprehensively acquired through the phase feature and the signal power spectrum.
[0107] In an embodiment of the present invention, extracting the phase feature and signal power spectrum of the target noise reduction signal includes:
[0108] Convert the target noise reduction signal into time-frequency domain to obtain a time-frequency domain signal of the target noise reduction signal;
[0109] The phase characteristics and signal power spectrum of the target noise reduction signal are extracted according to the time-frequency domain signal.
[0110] Specifically, the phase characteristics and signal power spectrum of the target noise reduction signal are extracted using the following formula: in, represents the phase characteristics, Represents the time-frequency domain signal The real part of Represents the time-frequency domain signal The imaginary part of represents the signal power spectrum.
[0111] In the embodiment of the present invention, feature cross fusion is to perform cross-arrangement processing on the phase feature and the signal power spectrum to obtain a target feature of mixed phase and spectrum features.
[0112] Specifically, the cross-fusion of the phase feature and the signal power spectrum to obtain the target feature includes:
[0113] Obtaining the phase feature and the phase value and power spectrum value of the same frequency point in the signal power spectrum;
[0114] Arranging the phase value and the power spectrum value at frequency points to obtain a time frame sequence;
[0115] A target feature is generated based on the sequence of time frames.
[0116] In an embodiment of the present invention, after short-time Fourier transform, the time-frequency domain obtained is a complex matrix, each row of which (corresponding to the time frame) contains the spectrum information of all frequency points of the signal at that time point. The elements in the time-frequency domain signal representation matrix obtained after the transformation can be represented by Y[l,n], where Y[l,n] can represent the complex value at the nth time frame and the lth frequency point.
[0117] Furthermore, the frequency point arrangement is to sort the phase values and power spectrum values of the same time frame according to the order of frequency points, and obtain the phase value sequence and power spectrum value sequence corresponding to each time frame. The phase value sequence and the power spectrum value sequence constitute a time frame sequence. The phase value sequence and the power spectrum value sequence are used as matrix row vectors to construct a cross matrix. The transpose of the cross matrix is spliced according to the time order of the time frames to obtain the target feature.
[0118] Specifically, the time frame sequence can be expressed as: in, Indicates the first The power spectrum value sequence of time frames, Indicates the first The phase value sequence of time frames, Indicates The power spectrum value of the first frequency point in the time frame, Indicates time frame, The power spectrum value of the frequency point, Indicates time frame, The power spectrum value of the frequency point, Represents the total number of frequency points, Indicates The phase value of the first frequency point in the time frame, Indicates time frame, The phase value at each frequency point, Indicates time frame, The phase value of a frequency point.
[0119] In the embodiment of the present invention, wavelet denoising and variable step-size adaptive signal filtering cannot completely guarantee that there is no noise signal in the target noise reduction signal. By cross-fusion of phase features and signal power spectrum, the correlation between the phase information and frequency information of the target noise reduction signal can be fully utilized, thereby ensuring the quality of subsequent speech enhancement.
[0120] S5. Perform speech enhancement on the target noise reduction signal according to the target feature to obtain an enhanced speech signal, and collect the enhanced speech signal and the interference noise reduction signal to obtain a noise reduction signal set of the head-mounted AR device.
[0121] In the embodiment of the present invention, speech enhancement is to enhance the signal quality of the target noise reduction signal, so as to specifically perform signal noise reduction on the sound signal set of the head-mounted AR device and enhance the sound signal quality corresponding to the user's voice command.
[0122] In the embodiment of the present invention, refer to Figure 4 As shown, the method of performing speech enhancement on the target noise reduction signal according to the target feature to obtain an enhanced speech signal includes:
[0123] S41, performing feature expansion on the target feature to obtain an expanded cross feature;
[0124] S42, performing linear activation and normalization processing on the expanded cross features to obtain activated features;
[0125] S43, performing multi-scale feature encoding on the activation feature to obtain a coding feature, and performing feature correlation calculation on the coding feature using a pre-constructed long-short term neural network to obtain a correlation feature;
[0126] S44: Decode the relevant features to obtain an enhanced speech signal corresponding to the target noise reduction signal.
[0127] In an embodiment of the present invention, feature expansion is to expand the matrix elements in the target features through pre-set expansion parameters. For example, by multiplying the expansion coefficient with the matrix element, a new matrix element is obtained, and then an expanded matrix is constructed to obtain an expanded cross-feature. By expanding the cross-feature, the correlation between phase information and frequency information can be fully utilized to improve the accuracy of speech enhancement.
[0128] Furthermore, linear activation and normalization processing can convert the expanded cross features into the input dimensions required for feature encoding. Multi-scale feature encoding is performed through encoders of different dimensions, wherein each encoder may include a linear activation function and an ELU (Exponential Linear Unit) activation function. The speech feature information in the activated features can be extracted through the encoding layer, and then the temporal correlation of the encoded features is calculated through the LSTM (Long Short-Term Memory) to obtain the relevant features of the target speech signal.
[0129] In the embodiment of the present invention, feature decoding is the inverse operation of feature encoding, which is used to restore relevant features to speech signals to obtain enhanced speech signals after speech enhancement. Therefore, by collecting enhanced speech signals and interference noise reduction signals after noise reduction, the speech signal set collected by the head-mounted AR device can be targetedly subjected to signal noise reduction and signal enhancement, thereby improving the quality of user voice commands and improving the overall noise reduction performance of the head-mounted AR device.
[0130] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0131] The present invention also provides an electronic device, which may include a processor, a memory, a communication bus and a communication interface, and may also include a computer program stored in the memory and executable on the processor, such as a method program for improving welding stability of heterogeneous titanium alloy laser welding technology.
[0132] In some embodiments, the processor may be composed of an integrated circuit, for example, it may be composed of a single packaged integrated circuit, or it may be composed of multiple packaged integrated circuits with the same or different functions, including one or more central processing units (CPU), microprocessors, digital processing chips, graphics processors and a combination of various control chips.
[0133] The memory includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device.
[0134] The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory and at least one processor, etc.
[0135] The communication interface is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the electronic device and other electronic devices.
[0136] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor through a power management system, so that the power management system can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0137] Specifically, the specific implementation method of the processor for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0138] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or system that can carry the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0139] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0140] Acquire a sound signal set of a head-mounted AR device, perform signal transformation and signal filtering on each sound signal in the sound signal set, and obtain a signal spectrum;
[0141] Calculating a signal correlation graph of the sound signal, and identifying a target speech signal and an interfering speech signal in the sound signal set according to the signal spectrum and the signal correlation graph;
[0142] Performing wavelet denoising and variable-step adaptive signal filtering on the target speech signal and the interference speech signal respectively to obtain a target noise reduction signal and an interference noise reduction signal;
[0143] Extracting the phase feature and signal power spectrum of the target noise reduction signal, and performing feature cross-fusion on the phase feature and the signal power spectrum to obtain the target feature;
[0144] The target noise reduction signal is subjected to speech enhancement according to the target feature to obtain an enhanced speech signal, and the enhanced speech signal and the interference noise reduction signal are collected to obtain a noise reduction signal set of the head-mounted AR device.
[0145] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0146] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0148] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0149] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0150] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0151] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for directional sound source noise reduction of a head-mounted AR device, characterized in that: The method comprises: Acquire a sound signal set of a head-mounted AR device, perform signal transformation and signal filtering on each sound signal in the sound signal set, and obtain a signal spectrum; Calculating a signal correlation graph of the sound signal, and identifying a target speech signal and an interfering speech signal in the sound signal set according to the signal spectrum and the signal correlation graph; Performing wavelet denoising and variable-step adaptive signal filtering on the target speech signal and the interference speech signal respectively to obtain a target noise reduction signal and an interference noise reduction signal; Extract the phase feature and signal power spectrum of the target noise reduction signal, perform feature cross-fusion on the phase feature and the signal power spectrum to obtain the target feature; wherein, the feature cross-fusion on the phase feature and the signal power spectrum to obtain the target feature includes: obtaining the phase value and the power spectrum value of the same frequency point in the phase feature and the signal power spectrum; arranging the phase value and the power spectrum value by frequency points to obtain a time frame sequence; generating the target feature according to the time frame sequence; the frequency point arrangement is to sort the phase value and the power spectrum value of the same time frame in the order of the frequency points, respectively, to obtain the phase value sequence and the power spectrum value sequence corresponding to each time frame, the phase value sequence and the power spectrum value sequence constitute a time frame sequence, the phase value sequence and the power spectrum value sequence are used as matrix row vectors to construct a cross matrix, and the transpose of the cross matrix is spliced according to the time order of the time frame to obtain the target feature, The time frame sequence can be expressed as: A n =A (1,n) ,…A (l,n) ,…A (L,n) i n =θ (1,n) ,…θ (l,n) ,…θ (L,n) Among them, A n represents the power spectrum value sequence of the nth time frame in the time frame sequence, θ n A represents the phase value sequence of the nth time frame in the time frame sequence. (1,n) Indicates the power spectrum value of the nth time frame and the first frequency point, A (l,n) A represents the power spectrum value of the nth time frame and the lth frequency point, (L,n) represents the power spectrum value of the nth time frame and the Lth frequency point, L represents the total number of frequency points, θ (1,n) Indicates the phase value of the nth time frame and the first frequency point, θ (l,n) represents the phase value of the nth time frame and the lth frequency point, θ (Ln) Indicates the phase value of the nth time frame and the Lth frequency point; The target noise reduction signal is voice enhanced according to the target feature to obtain an enhanced voice signal, wherein the method of voice enhancing the target noise reduction signal according to the target feature to obtain an enhanced voice signal includes: performing feature expansion on the target feature to obtain an expanded cross feature; performing linear activation and normalization processing on the expanded cross feature to obtain an activation feature; performing multi-scale feature encoding on the activation feature to obtain a coding feature, and using a pre-constructed long-term and short-term neural network to perform feature correlation calculation on the coding feature to obtain a correlation feature; performing feature decoding on the correlation feature to obtain an enhanced voice signal corresponding to the target noise reduction signal; feature expansion is to multiply a matrix element in the target feature by a pre-set expansion parameter to obtain a new matrix element, and construct an expanded cross feature according to the new matrix element; and the enhanced voice signal and the interference noise reduction signal are collected to obtain a noise reduction signal set of the head-mounted AR device.
2. The directional sound source noise reduction method for a head-mounted AR device according to claim 1, characterized in that: The performing signal transformation and signal filtering on each sound signal in the sound signal set to obtain a signal spectrum includes: Performing signal pre-emphasis and signal normalization processing on each of the sound signals to obtain a processed voice signal; Performing short-time Fourier transform on the processed speech signal to obtain a signal spectrogram of the sound signal; Using a pre-constructed filter bank to perform triangular filtering on the signal spectrogram to obtain a filtered spectrum of the sound signal; The filtered spectrum is logarithmically transformed to obtain a signal spectrum of the sound signal.
3. The directional sound source noise reduction method for a head-mounted AR device as claimed in claim 2, characterized in that: The frequency response of the filters in the filter bank can be expressed as: Among them, H m (k) represents the frequency response of the m-th filter with the filter center frequency point k, and f(·) represents the Mel filter function.
4. The directional sound source noise reduction method for a head-mounted AR device according to claim 1, characterized in that: The calculating the signal correlation graph of the sound signal comprises: Performing a fast Fourier transform on the sound signal and the preset target command signal to obtain a frequency domain spectrum of the sound signal and the target command signal; Calculating a cross power spectrum between the sound signal and the target command signal according to the frequency domain spectrum; The cross power spectrum is weighted by phase change to obtain a signal correlation spectrum corresponding to the sound signal.
5. The directional sound source noise reduction method for a head-mounted AR device according to claim 1, characterized in that: The identifying the target speech signal and the interfering speech signal in the sound signal set according to the signal spectrum and the signal correlation graph includes: Performing multi-layer convolution processing and gated loop processing on the signal spectrum and the signal correlation spectrum to obtain convolution features and loop features; Performing channel-weighted fusion on the convolutional features and the cyclic features respectively to obtain convolutional fusion features and cyclic fusion features; Performing feature splicing on the convolution fusion feature and the loop fusion feature to obtain a target fusion feature; A self-attention calculation is performed on the target fusion feature to obtain a self-attention feature, and the self-attention feature is fully connected to obtain a target speech signal and an interfering speech signal in the sound signal set.
6. The method for directional sound source noise reduction of a head-mounted AR device according to claim 1, characterized in that: The step of performing wavelet denoising and variable-step adaptive signal filtering on the target speech signal and the interference speech signal respectively to obtain a target noise reduction signal and an interference noise reduction signal comprises: Performing wavelet transform on the target speech signal and the interfering speech signal respectively to obtain wavelet coefficients, performing threshold processing on the wavelet coefficients to obtain a wavelet denoised signal; Filtering the wavelet denoising signal using a preset adaptive filter to obtain a filtered signal; Calculating a filtering mean square error of the filtering signal according to the filtering coefficient of the adaptive filter; The filter coefficient is updated according to the filtering mean square error until the filtering mean square error is less than a preset error threshold, thereby obtaining a target filter; The filter coefficient is updated using the following formula: Wherein, X represents the updated filter coefficient, x represents the filter coefficient, a represents the preset adjustment parameter, b represents the preset control parameter, e represents the filter mean square error, and F represents the wavelet denoising signal; The wavelet denoising signal is filtered using the target filter to obtain a target denoising signal and an interference denoising signal.
7. The method for directional sound source noise reduction of a head-mounted AR device according to claim 1, characterized in that: The extracting the phase feature and signal power spectrum of the target noise reduction signal includes: Convert the target noise reduction signal into time-frequency domain to obtain a time-frequency domain signal of the target noise reduction signal; Extracting the phase characteristics and signal power spectrum of the target noise reduction signal according to the time-frequency domain signal; The phase characteristics and signal power spectrum of the target noise reduction signal are extracted using the following formula: A=log(|G| 2 ) in, represents the phase feature, ReG represents the real part of the time-frequency domain signal G, ImG represents the imaginary part of the time-frequency domain signal G, and A represents the signal power spectrum.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for directional sound source noise reduction of a head-mounted AR device as described in any one of claims 1 to 7 is implemented.
