Electronic device and voice signal processing method of electronic device

By using a trained noise prediction model and multi-segment reference signal processing, the difficulties and distortion problems of noise removal when noise and speech are mixed are solved in the existing technology, achieving high-precision noise removal and reducing speech signal distortion.

CN117809668BActive Publication Date: 2026-11-27HISENSE ELECTRONICS TECH SHENZHEN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310788774.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2026-11-27
Estimated Expiration
2043-06-29

AI Technical Summary

Technical Problem

Existing speech enhancement algorithms struggle to effectively remove noise when noise and speech are mixed, and are prone to introducing distortion, especially for non-stationary noise and speech signals with weak correlation.

Method used

By employing a trained noise prediction model and multiple reference signals, noise parameters are predicted and corrected by extracting multiple reference signals. Combined with a denoising diffusion probability model, the noise removal accuracy is improved.

Benefits of technology

It improves the accuracy of noise removal, reduces speech signal distortion, and enhances the noise reduction effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117809668B_ABST
    Figure CN117809668B_ABST
Patent Text Reader

Abstract

The present disclosure provides an electronic device and a voice signal processing method of an electronic device, and relates to the technical field of voice signal processing; wherein the voice signal processing method of the electronic device comprises: receiving a user inputted voice signal to be processed; in the case that the voice signal to be processed comprises a voice signal and a noise signal, and the audio of the voice signal and the noise signal at least partially overlaps, based on a first preset signal length, a plurality of reference signals are intercepted from the voice signal to be processed; based on a trained noise prediction model and the plurality of reference signals, the voice signal to be processed is processed to obtain a target voice signal; in this way, when processing the voice signal to be processed, the reference signal is used as data support, which can improve the accuracy of the noise signal removed from the voice signal to be processed, thereby improving the noise reduction effect and making it difficult to introduce distortion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of speech signal processing technology, and in particular to an electronic device and a speech signal processing method for the electronic device. Background Technology

[0002] Currently, speech enhancement algorithms map noisy speech signals in the frequency domain; then, noise is identified and reduced in the frequency domain; finally, the denoising result is inversely processed back to the time domain to reconstruct a clean speech signal. Currently, spectral subtraction is used to remove noise from the noisy speech spectrum. However, spectral subtraction is suitable for signals with relatively stable noise and where the speech signal is uncorrelated with the noise. For the aliased portions of noisy speech signals, spectral subtraction not only struggles to remove noise but also easily leads to speech distortion. Summary of the Invention

[0003] To address the aforementioned technical problems, this disclosure provides an electronic device and a speech signal processing method for the electronic device, which can perform noise reduction processing on the speech signal to be processed based on a trained noise prediction model and multiple reference signals, thereby improving the accuracy of noise reduction processing, enhancing the noise reduction effect, and making it less prone to introducing distortion.

[0004] The technical solution disclosed herein is as follows:

[0005] In a first aspect, this disclosure provides an electronic device, comprising:

[0006] The communicator is configured to receive user-input voice signals to be processed.

[0007] The controller, coupled to the communicator, is configured to:

[0008] When the speech signal to be processed includes a speech signal and a noise signal, and the audio of the speech signal and the noise signal at least partially overlaps, multiple reference signals are extracted from the speech signal to be processed based on a first preset signal length.

[0009] Based on the trained noise prediction model and the multiple reference signals, the speech signal to be processed is processed to obtain the target speech signal.

[0010] In combination with the first aspect and the above possible implementations, in another possible implementation, two adjacent reference signals in the multiple reference signals have the same audio portion, and the length of the audio portion of the two adjacent reference signals is less than the length of the second preset signal; the length of the second preset signal is less than the length of the first preset signal.

[0011] In conjunction with the first aspect and the above possible implementations, in another possible implementation, the controller is specifically configured as follows:

[0012] Based on the trained noise prediction model, the predicted noise parameters are obtained;

[0013] Based on the multiple reference signals, the predicted noise parameters are corrected to obtain the corrected noise parameters;

[0014] Based on the corrected noise parameters, the speech signal to be processed is denoised to obtain the target speech signal.

[0015] In conjunction with the first aspect and the above possible implementations, in another possible implementation, the controller is specifically configured as follows:

[0016] Based on the predicted mean in the predicted noise parameters, the reference signal, and the ratio of speech signal to noise signal in the reference signal, the target mean in the corrected noise parameters is obtained.

[0017] The target standard deviation of the corrected noise parameters is obtained based on the predicted standard deviation of the noise parameters and the ratio of the speech signal to the noise signal in the reference signal.

[0018] Combining the first aspect and the above possible implementations, in another possible implementation, the target mean is obtained by the following formula:

[0019]

[0020] in, γ represents the target mean; t μ represents the ratio of the speech signal to the noise signal in the reference signal. θ (x t t) represents the predicted mean; This represents hyperparameters.

[0021] Combining the first aspect and the above possible implementations, in another possible implementation, the target standard deviation is obtained by the following formula:

[0022]

[0023] in, γ represents the target standard deviation; t σ represents the ratio of the speech signal to the noise signal in the reference signal; t This represents the standard deviation of the prediction; This represents hyperparameters.

[0024] In conjunction with the first aspect and the above possible implementations, in another possible implementation, the controller is specifically configured as follows:

[0025] Based on the target mean and the target standard deviation, the target noise signal corresponding to the speech signal to be processed is obtained;

[0026] The target speech signal is obtained by denoising the speech signal to be processed based on the target noise signal.

[0027] In conjunction with the first aspect and the above possible implementations, in another possible implementation, the controller is specifically configured as follows:

[0028] Based on the target noise signal, the noise signal in the speech signal to be processed is removed to obtain multiple sub-target speech signals; the multiple sub-target speech signals include a reference signal after removing the noise signal, and / or, speech signals in the speech signal to be processed that do not overlap with the audio of the noise signal;

[0029] The overlapping audio portions of two adjacent sub-segments of the multi-segment target speech signal are removed, and the multi-segment target speech signal after removing the overlapping audio portions is spliced ​​together to obtain the target speech signal.

[0030] In conjunction with the first aspect and the above possible implementations, in another possible implementation, the controller is further configured as follows:

[0031] A denoising diffusion probability model is constructed, and the first Gaussian random noise is obtained based on the denoising diffusion probability model;

[0032] Based on the first Gaussian random noise and speech sample signal, a noise sample signal that follows a standard normal distribution is obtained;

[0033] Based on the denoising diffusion probability model, the noise sample signal is sampled to obtain the noise sample parameters corresponding to the noise sample signal, and the noise sample parameters are fitted to obtain the noise prediction model;

[0034] Based on the noise prediction model, a predicted noise signal is obtained, the loss value between the predicted noise signal and the first Gaussian random noise is determined, and the noise prediction model is updated by gradient based on the loss value to obtain an updated noise prediction model.

[0035] The trained noise prediction model is determined based on the updated noise prediction model and the noise sample signal.

[0036] In conjunction with the first aspect and the above possible implementations, in another possible implementation, the controller is specifically configured as follows:

[0037] The first Gaussian random noise is input into the speech sample signal to obtain a noise sample signal that follows a standard normal distribution.

[0038] In conjunction with the first aspect and the above possible implementations, in another possible implementation, the controller is specifically configured as follows:

[0039] Based on the updated noise prediction model, the second Gaussian random noise is obtained;

[0040] Within a preset number of steps, the noisy speech sample signal is denoised based on the second Gaussian random noise; if the speech sample signal is obtained, the updated noise prediction model is determined to be the trained noise prediction model.

[0041] Secondly, this disclosure provides a method for processing voice signals in an electronic device, the method comprising:

[0042] Receives user-input voice signals to be processed;

[0043] When the speech signal to be processed includes a speech signal and a noise signal, and the audio of the speech signal and the noise signal at least partially overlaps, multiple reference signals are extracted from the speech signal to be processed based on a first preset signal length.

[0044] Based on the trained noise prediction model and the multiple reference signals, the speech signal to be processed is processed to obtain the target speech signal.

[0045] In combination with the second aspect and the above possible implementations, in another possible implementation, two adjacent reference signals in the multiple reference signals have the same audio portion, and the length of the audio portion of the two adjacent reference signals is less than the length of the second preset signal; the length of the second preset signal is less than the length of the first preset signal.

[0046] In conjunction with the second aspect and the above possible implementations, in another possible implementation, the step of processing the speech signal to be processed based on the trained noise prediction model and the multiple reference signals to obtain the target speech signal includes:

[0047] Based on the trained noise prediction model, the predicted noise parameters are obtained;

[0048] Based on the multiple reference signals, the predicted noise parameters are corrected to obtain the corrected noise parameters;

[0049] Based on the corrected noise parameters, the speech signal to be processed is denoised to obtain the target speech signal.

[0050] In conjunction with the second aspect and the above possible implementations, in another possible implementation, the step of correcting the predicted noise parameters based on the multiple reference signals to obtain corrected noise parameters includes:

[0051] Based on the predicted mean in the predicted noise parameters, the reference signal, and the ratio of speech signal to noise signal in the reference signal, the target mean in the corrected noise parameters is obtained.

[0052] The target standard deviation of the corrected noise parameters is obtained based on the predicted standard deviation of the predicted noise parameters, the reference signal, and the ratio of the speech signal to the noise signal in the reference signal.

[0053] In conjunction with the second aspect and the above possible implementations, in another possible implementation, the step of denoising the speech signal to be processed based on the corrected noise parameters to obtain the target speech signal includes:

[0054] Based on the target mean and the target standard deviation, the target noise signal corresponding to the speech signal to be processed is obtained;

[0055] The target speech signal is obtained by denoising the speech signal to be processed based on the target noise signal.

[0056] In conjunction with the second aspect and the above possible implementations, in another possible implementation, the step of denoising the speech signal to be processed based on the target noise signal to obtain the target speech signal includes:

[0057] Based on the target noise signal, the noise signal in the speech signal to be processed is removed to obtain multiple sub-target speech signals; the multiple sub-target speech signals include a reference signal after removing the noise signal, and / or, speech signals in the speech signal to be processed that do not overlap with the audio of the noise signal;

[0058] The overlapping audio portions of two adjacent sub-segments of the multi-segment target speech signal are removed, and the multi-segment target speech signal after removing the overlapping audio portions is spliced ​​together to obtain the target speech signal.

[0059] In conjunction with the second aspect and the above possible implementations, in another possible implementation, the method further includes:

[0060] A denoising diffusion probability model is constructed, and the first Gaussian random noise is obtained based on the denoising diffusion probability model;

[0061] Based on the first Gaussian random noise and speech sample signal, a noise sample signal that follows a standard normal distribution is obtained;

[0062] Based on the denoising diffusion probability model, the noise sample signal is sampled to obtain the noise sample parameters corresponding to the noise sample signal, and the noise sample parameters are fitted to obtain the noise prediction model;

[0063] Based on the noise prediction model, a predicted noise signal is obtained, the loss value between the predicted noise signal and the first Gaussian random noise is determined, and the noise prediction model is updated by gradient based on the loss value to obtain an updated noise prediction model.

[0064] The trained noise prediction model is determined based on the updated noise prediction model and the noise sample signal.

[0065] Thirdly, this disclosure provides an electronic device, including: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to cause the electronic device to implement the speech signal processing method of the electronic device as provided in any of the first aspects when executing the computer program.

[0066] Fourthly, the present invention provides a computer-readable storage medium comprising: storing a computer program on the computer-readable storage medium, the computer program being executed by a processor as a speech signal processing method of an electronic device as provided in any of the first aspects.

[0067] Fifthly, the present invention provides a computer program product that, when run on a computer, causes the computer to perform a voice signal processing method of an electronic device as provided in any of the first aspects.

[0068] This application provides an electronic device and a speech signal processing method for the electronic device. The speech signal processing method includes: receiving a speech signal to be processed input by a user; when the speech signal to be processed includes a speech signal and a noise signal, and the audio of the speech signal and the noise signal at least partially overlaps, extracting multiple reference signals from the speech signal to be processed based on a first preset signal length; processing the speech signal to be processed based on a trained noise prediction model and the multiple reference signals to obtain a target speech signal; thus, by using reference signals as data support when processing the speech signal to be processed, the accuracy of removing noise signals from the speech signal to be processed can be improved, thereby improving the noise reduction effect and making it less likely to introduce distortion. Attached Figure Description

[0069] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0070] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0071] Figure 1 A schematic diagram illustrating the process of processing speech signals using spectral subtraction, provided in an embodiment of this application;

[0072] Figure 2 A schematic diagram illustrating the forward diffusion process of DDPM applied in an image processing scenario, as provided in an embodiment of this application;

[0073] Figure 3A A schematic diagram illustrating the reverse reconstruction process of DDPM applied in an image processing scenario, as provided in an embodiment of this application;

[0074] Figure 3B A schematic diagram illustrating another reverse reconstruction process provided in an embodiment of this application;

[0075] Figure 4 A schematic diagram illustrating the operational scenario between the electronic device and the control device provided in the embodiments of this application;

[0076] Figure 5 This is a schematic diagram of the structure of a control device provided in an embodiment of this application;

[0077] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0078] Figure 7 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;

[0079] Figure 8 A schematic flowchart illustrating a voice signal processing method for an electronic device provided in an embodiment of this application;

[0080] Figure 9 This application provides a scenario for voice interaction between a user and an electronic device.

[0081] Figure 10 A flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0082] Figure 11 A schematic flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0083] Figure 12A schematic flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0084] Figure 13 A schematic flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0085] Figure 14 A comparison diagram showing the processing effects of spectral subtraction and the speech processing method of the electronic device provided in the embodiments of this application on processing speech signals;

[0086] Figure 15 A schematic flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0087] Figure 16 A schematic diagram of the process of processing the speech signal to be processed to obtain the target speech signal in the speech signal processing method of the electronic device provided in the embodiments of this application;

[0088] Figure 17 A schematic flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0089] Figure 18 A schematic flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0090] Figure 19 A schematic flowchart illustrating another voice signal processing method for an electronic device provided in this application embodiment;

[0091] Figure 20 This application provides a schematic flowchart for processing noise signals based on the existing DDPM model, as an embodiment of the present application.

[0092] Figure 21 This application provides another schematic diagram of a process for processing noise signals based on the existing DDPM model, which is an embodiment of the present application.

[0093] Figure 22 A flowchart illustrating the process of processing speech signals in the frequency domain using a speech signal processing method for an electronic device provided in this application embodiment;

[0094] Figure 23 This is a schematic diagram illustrating the composition of a display device provided in an embodiment of this application;

[0095] Figure 24 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0096] To make the objectives and implementation methods of this application clearer, exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings in the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.

[0097] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0098] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0099] The terms “comprising” and “having” and any variations thereof in this application are intended to cover but not exclude inclusion, for example, a product or device that includes a series of components is not necessarily limited to all the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0100] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this disclosure generally indicates that the preceding and following related objects have an "or" relationship.

[0101] Traditional speech enhancement algorithms map noisy speech signals (noisy speech) to the frequency domain, identify the noise in the frequency domain, and then denoise the noisy speech signal. Finally, the denoised speech signal is inversely processed back to the time domain to reconstruct a clean speech signal. Currently, spectral subtraction is commonly used to denoise noisy speech signals.

[0102] For example, such as Figure 1 As shown, when processing speech using spectral subtraction, the noisy speech in the time domain needs to be transformed to the frequency domain using a short-time Fourier transform (STFT) to obtain noisy speech in the frequency domain. Then, feature extraction is performed on the noisy speech in the frequency domain to extract noise features. Based on these noise features, denoising is performed on the noisy speech in the frequency domain. Finally, inverse STFT processing is performed on the denoised noisy speech in the frequency domain to restore it to the time domain, resulting in denoised speech in the time domain.

[0103] However, spectral subtraction is suitable for signals with relatively stable noise and where the speech signal is uncorrelated with the noise. When noise and speech audio are mixed, spectral subtraction not only fails to remove the noise completely but also easily introduces new distortions, resulting in new noise when performing inverse operations to the time domain signal, thus affecting the noise reduction effect of the speech signal.

[0104] In recent years, with the increasing maturity of integrated circuit manufacturing technology and the emergence of high-speed digital signal processing (DSP) chips, more and more deep learning models have been proposed and applied to the fields of image processing and speech enhancement; such as GAN (Generative Adversarial Nets), VAE (Variational Auto-Encoder), and DDPM (Denoising Diffusion Probabilistic Models). Among them, DDPM is commonly used in image processing.

[0105] DDPM includes a forward diffusion process and a reverse reconstruction process.

[0106] For example, Figure 2 This illustrates the forward diffusion process when DDPM is applied to image processing; for example... Figure 2 As shown, the forward diffusion process is used to repeatedly add Gaussian random noise to the original image X0 until the original image X0 becomes noise X. T That is, it follows a standard normal distribution; then, the prediction function is estimated through a Convolutional Networks for Biomedical Image Segmentation (U-NET), thereby obtaining the target prediction function ∈ θ (x t ,t)(trained noise prediction model∈ θ (x t The variance of the added Gaussian random noise ranges from 0 to 1. As the number of additions increases, the variance of the Gaussian random noise will become larger and larger; that is, the Gaussian random noise added each time is different.

[0107] Figure 3A This illustrates the inverse reconstruction process when DDPM is applied to image processing; for example... Figure 3A As shown, the reverse reconstruction process is used to utilize the trained noise prediction model ∈ θ (x t Generate prediction noise (t); then, use the noise X... TThe predicted noise removal process is repeated multiple times to reduce noise X. T Restored to the original image X0; where, from the noise X T The number of times prediction noise is removed is the same as the number of times Gaussian random noise is repeatedly added to the original image X0 during the forward diffusion process.

[0108] For example, such as Figure 3B As shown, if the image x during the forward diffusion process is... t Through a reverse reconstruction process, image x is restored. t-1 The following steps are required: using the trained noise prediction model ∈ θ (x t ,t), Predicted noise X T The noise parameter (predicted mean μ) θ (x t ,t) and prediction standard deviation σ t ); then, based on the predicted mean μ θ (x t ,t) and prediction standard deviation σ t Generate prediction noise; finally, convert the noise X... T The predicted noise is input into the subtractor to reduce the predicted noise from the noise X. T Remove the image from the middle to obtain the original image X0.

[0109] It is understandable that in speech signal processing, the noise in noisy speech signals often does not follow a Gaussian distribution. Therefore, the DDPM in the above-mentioned existing technology cannot reflect the actual noise scene. As a result, when using DDPM to denoise noisy speech signals, the speech signal in the noisy speech signal will be treated as noise signal and eliminated during the reverse reconstruction process, thus causing speech signal distortion.

[0110] To address the aforementioned problems, embodiments of this application provide an electronic device and a speech signal processing method for the electronic device. When processing a speech signal to be processed, the method extracts multiple reference signals from the speech signal to be processed and uses the reference signals as data support to process the speech signal to be processed. In this way, the accuracy of noise signals removed from the speech signal to be processed can be improved, thereby achieving a high noise reduction effect and making it less likely to introduce distortion.

[0111] The following describes the voice signal processing method for electronic devices provided in the embodiments of this application. The electronic devices provided in the embodiments of this application can have various forms, such as televisions, smart TVs, laser projection devices, watches, headphones, air conditioners, washing machines, and other voice-controlled electronic devices. The embodiments of this application do not limit the specific form of the electronic device. In this embodiment, a television set is used as an example for illustrative purposes. Figure 4 and Figure 5 This is one specific embodiment of the electronic device of this application.

[0112] Figure 4 This is a schematic diagram illustrating the operational scenario between the electronic device and the control device according to the embodiment. Figure 4 As shown, the user can control the television 300 via voice commands. In this case, the television 300 can directly receive the user's voice commands through its internally configured voice command acquisition module, or it can receive the user's voice commands through an external voice control device.

[0113] In some embodiments, the user can also operate the television 300 via the control device 200.

[0114] In some embodiments, the control device 200 may be a remote control. Communication between the remote control and the television 300 includes infrared protocol communication and other short-range communication methods, controlling the television 300 wirelessly or via wired means. Users can control the television 300 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.

[0115] In some embodiments, a user may also control the television 300 using a smart device 400 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.). For example, the television 300 may be controlled using an application running on the smart device.

[0116] In some embodiments, the television 300 may not receive instructions from the aforementioned smart device 400 or control device 200, but may instead receive user control via touch or gestures.

[0117] In some embodiments, the television set 300 also communicates with the server 500. The television set 300 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 500 may provide the television set 300 with various content and interactive features (e.g., audio and video data, voice interaction). The server 500 may be a cluster or multiple clusters, and may include one or more types of servers.

[0118] For example, Figure 5 A configuration block diagram of the control device 200 in an embodiment of this application is shown. For example... Figure 5As shown, the control device 200 includes a controller 210, a communication interface 220, a user input / output interface 230, a memory, and a power supply. The control device 200 can receive user input operation commands and convert the operation commands into commands that the television 300 can recognize and respond to, thus acting as an intermediary for interaction between the user and the television 300.

[0119] For example, Figure 6 A schematic diagram of the structure of a television set provided in an embodiment of this application is shown.

[0120] like Figure 6 The television set 300 includes at least one of the following: a tuner 310, a communicator 320, a detector 330, an external device interface 340, a controller 350, a display 360, an audio output interface 370, a memory, a power supply, and a user interface 380.

[0121] In some embodiments, the controller 350 includes at least one of the following: a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), random access memory (RAM), read-only memory (ROM), a first to an nth interface for input / output, a communication bus, etc.

[0122] The display 360 includes a display screen assembly for presenting images, a driving assembly for driving image display, a component for receiving image signals output from the controller 350, and a user interface (UI) for displaying video content, image content, and menu control interface.

[0123] The display 360 can be a liquid crystal display, an organic light-emitting diode (OLED) display, or a projection display, and can also be a projection device and a projection screen.

[0124] The communicator 320 is a component used to communicate with external devices according to various communication protocol types. For example, the communicator 320 may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared module (e.g., an infrared receiver and an infrared transmitter). The television 300 can establish a connection with the control device 200 through the communicator 320 to send and receive information (e.g., control signals and data signals).

[0125] User interface 380 can be used to receive control signals from control device 200.

[0126] Detector 330 is used to acquire signals from the external environment or to interact with the external environment. For example, detector 330 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 330 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 330 includes a sound acquisition device, such as a microphone, for receiving external sounds (e.g., voice commands).

[0127] The external device interface 340 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or data high-definition component input interface (which may be referred to as component), composite video input interface (CVBS), Universal Serial Bus (USB) input interface (which may be referred to as USB port), etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.

[0128] The tuner / demodulator 310 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals.

[0129] In some embodiments, the controller 350 and the tuner 310 may be located in different separate devices, that is, the tuner 310 may also be located in an external device of the main device where the controller 350 is located, such as an external set-top box.

[0130] The controller 350 controls the operation of the television 300 and responds to user operations through various software control programs stored in the memory. The controller 350 controls the overall operation of the television 300. For example, in response to a user-input voice signal (voice signal to be processed), the controller 350 controls the display 360 to show the corresponding feedback word (e.g., "Please wait"), while simultaneously processing and recognizing the voice signal to be processed.

[0131] Users can input user commands through the user interface (UI) displayed on the 360-degree screen, and the user input interface receives user input commands through the user interface (UI).

[0132] A "user interface" (UI) is the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form that the user can accept. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on a television screen. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0133] Figure 7 See the schematic diagram of the software system of the electronic device provided in this application. Figure 7 In some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android runtime and system library layer (referred to as the "System Runtime Library Layer"), and the kernel layer.

[0134] In some embodiments, at least one application runs in the application layer. These applications may be Windows programs, system settings programs, or clock programs that come with the operating system; they may also be applications developed by third-party developers. In specific implementations, the applications in the application layer include, but are not limited to, the examples above. For instance, the application layer includes a voice signal processing application. This application can receive a voice signal to be processed through an electronic device, process and recognize the voice signal, obtain corresponding voice operation commands, and output the voice operation commands to the electronic device, thereby enabling the electronic device to respond to the voice operation commands and perform corresponding operations.

[0135] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a processing center, determining the actions taken by applications within the application layer. Applications can access system resources and services during execution through the API. For example, the application framework layer includes system services that can receive user-input voice signals, process (e.g., denoising) and recognize them to determine the corresponding voice operation commands. Upon receiving a voice operation command, the service executes the corresponding operation based on that command.

[0136] In some embodiments, the system runtime library layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer to implement the functions that the framework layer needs to perform.

[0137] In some embodiments, the kernel layer is a layer between the hardware and software. The kernel layer includes at least one of the following drivers: Bluetooth driver, camera driver, WiFi driver, USB driver, HDMI driver, sensor driver (such as a fingerprint sensor, temperature sensor, pressure sensor, etc.), microphone driver, power driver, display driver for the monitor, and audio driver for the speaker. The display driver for the monitor can call the monitor's interface to obtain at least one wireless network information, or call the monitor's interface to configure the monitor.

[0138] The display can be used to sample the user's voice and acquire sampled data. The sound acquisition unit can also be used to send the sampled data to the dialogue service via its corresponding display driver. Furthermore, the sound acquisition unit can be used to set its sensitivity according to the instructions of its corresponding display driver.

[0139] The methods described in the following embodiments can all be implemented in electronic devices having the above-described hardware or software structures. The following embodiments use a television set 300 as an example to illustrate the methods of this application.

[0140] like Figure 8 As shown, this application provides a voice signal processing method for an electronic device, which may include steps S801-S803.

[0141] S801: Receives the voice signal to be processed input by the user.

[0142] The TV 300 receives the voice signal to be processed input by the user.

[0143] In some embodiments, the television 300, when awake, receives a voice signal to be processed input by the user.

[0144] In some embodiments, the television 300 may be woken up based on a user pressing at least one button on the remote control.

[0145] For example, when a user presses at least one button on the remote control, the control device 200 receives and responds to the operation, generates a wake-up command, and sends the wake-up command to the television 300. The television 300, when powered on, receives and responds to the wake-up command, entering a wake-up state.

[0146] In some embodiments, the television 300 can be woken up based on a user's voice operation.

[0147] For example, Figure 9 This provides a voice interaction scenario between a user and a television set 300; such as Figure 9 As shown, the user can speak a wake-up voice command. After detecting the user's wake-up voice command, the TV 300 compares it to other commands to determine if the user's voice command includes a wake-up word. If the user's voice command does not include a wake-up word, the TV 300 outputs a first feedback word (e.g., "Sorry, I can't hear you clearly."). If the user's voice command includes a wake-up word, the TV 300 is woken up. After being woken up, the TV 300 can output a second feedback word (e.g., "Hey there."). In this way, the user can determine whether the TV 300 has been woken up based on the different feedback words output by the TV 300.

[0148] After the television 300 is woken up, it executes step S801 to acquire the user-inputted voice signal to be processed. Then, the television 300 can perform front-end processing on the user-inputted voice signal, including the voice signal processing method (voice enhancement) provided in this application embodiment.

[0149] It is understood that, in addition to the speech signal processing method provided in the embodiments of this application, the front-end processing may also include at least one of noise cancellation, echo suppression, gain compensation, and direction orientation; for example, the front-end processing includes noise cancellation, echo suppression, speech enhancement (the speech signal processing method provided in the embodiments of this application), gain compensation, and direction orientation. Noise cancellation, echo suppression, speech enhancement, gain compensation, and direction orientation are all prior art, and will not be described further in the embodiments of this application.

[0150] Furthermore, this application does not limit the number or type of processing methods in the front-end processing, and when the front-end processing includes multiple processing methods, this application does not limit the execution order of the multiple processing methods. The following embodiments will exemplify this by using the example of front-end processing including the speech signal processing method provided in this application, but excluding other processing methods.

[0151] It should be noted that, in this embodiment, the television 300 can receive the user-inputted voice signal to be processed through at least one of an internally configured module for acquiring voice commands (e.g., the sound collector in the detector 330) and an externally configured voice control device. With the development of voice recognition technology, the television 300 may be able to directly receive the user-inputted voice signal to be processed without needing to be woken up in the future. The following embodiments illustrate this by taking the television 300 receiving the user-inputted voice signal to be processed in a woken-up state as an example.

[0152] S802. When the speech signal to be processed includes a speech signal and a noise signal, and the audio of the speech signal and the noise signal overlaps at least partially, multiple reference signals are extracted from the speech signal to be processed based on a first preset signal length.

[0153] In some embodiments, in the speech signal x to be processed t In a case where the audio signals x0 and n are included, and the audio signals x0 and n at least partially overlap, the television 300, based on a first preset signal length, selects the audio signal x0 to be processed from the noise signal n. t Multiple segments of the reference signal y are extracted from the middle.

[0154] For example, the television 300, based on a first preset signal length, inputs the voice signal x to be processed. t The signal is divided into m regions to obtain m segments of reference signal y.

[0155] In some embodiments, the audio at least partially overlapping of the speech signal and the noise signal can be either the waveforms of the speech signal and the noise signal in the time domain at least partially overlapping, or the spectra of the speech signal and the noise signal in the frequency domain at least partially overlapping. This application does not limit whether the speech signal to be processed is located in the time domain or the frequency domain; this application will use the example of the speech signal to be processed being located in the time domain for illustrative purposes.

[0156] In some embodiments, the television 300 can process the voice signal x. t The sampling begins at the overlapping portion of the audio signals of the speech signal x0 and the noise signal n, to extract a reference signal y from this overlapping portion. Thus, each segment of the reference signal y includes both the speech signal x0 and the noise signal n, and the audio signals of x0 and n completely overlap; that is, the reference signal y can be considered as the overlap of the speech signal x0 and the noise signal n, denoted as y = x0 + n.

[0157] In some embodiments, two adjacent reference signals in a plurality of reference signals have the same audio portion, and the length of the audio portion of the two adjacent reference signals that are the same is less than the length of a second preset signal; the length of the second preset signal is less than the length of a first preset signal.

[0158] For example, the television 300 receives the voice signal x to be processed. t After extracting the reference signal y1, the portion of reference signal y1 shorter than the second preset signal length is truncated as a part of the adjacent reference signal to obtain reference signal y2. That is, the television 300, based on the first preset signal length, processes the input voice signal x... tWhen the signal is divided into m regions, a redundancy with a length less than the second preset signal length is introduced between adjacent regions. This increases the correlation between adjacent reference signal segments.

[0159] It is understandable that ambient noise is varied and unavoidable when a user outputs a voice signal. Therefore, the voice signal to be processed received by the user input in S801 by the television 300 includes a voice signal and a noise signal, and the audio frequencies of the voice signal and the noise signal at least partially overlap. In some scenarios, the voice signal to be processed received by the television 300 includes a voice signal but not a noise signal, or the voice signal to be processed received by the television 300 includes a voice signal and a noise signal but the audio frequencies of the voice signal and the noise signal do not overlap; in these cases, the television 300 can still process the voice signal to be processed using the voice signal processing method provided in this application embodiment. This application embodiment will exemplify an example where the voice signal to be processed received by the television 300 includes a voice signal and a noise signal, and the audio frequencies of the voice signal and the noise signal at least partially overlap.

[0160] S803 processes the speech signal to be processed based on the trained noise prediction model and multiple reference signals to obtain the target speech signal.

[0161] The TV 300 processes the speech signal to be processed based on the trained noise prediction model and multiple reference signals to obtain the target speech signal.

[0162] In some embodiments, such as Figure 9 As shown, after the television 300 receives the target voice signal, it can input the target voice signal into the voice recognition module for recognition. Then, it checks the instruction library to see if a corresponding instruction word exists. If a corresponding instruction word exists in the instruction library, the instruction corresponding to that instruction word is executed.

[0163] like Figure 10 As shown, in some embodiments, S803 includes S8031-S8033.

[0164] S8031. Based on the trained noise prediction model, the predicted noise parameters are obtained.

[0165] In some embodiments, the television 300 predicts noise signals in the speech signal to be processed based on a trained noise prediction model to obtain predicted noise parameters.

[0166] For example, the predicted noise parameters include the predicted mean μ. θ (x t ,t) and prediction standard deviation Television 300 uses a trained noise prediction model ∈ θ (x t ,t) the speech signal to be processed x t The noise signal in the signal is predicted to obtain the predicted mean μ corresponding to the predicted noise. θ (x t ,t) and prediction standard deviation This yields the predicted noise parameters. The trained noise prediction model ∈ θ (x t The predicted mean μ is obtained by formula 1-1. θ (x t Formula 1-1 is shown below: (t),

[0167]

[0168] Where, α t 1-β t ,β t Represents variance. This represents hyperparameters.

[0169] S8032. Based on multiple reference signals, the predicted noise parameters are corrected to obtain the corrected noise parameters.

[0170] For example, the signal television 300 corrects the predicted noise parameters corresponding to each reference signal in the predicted noise based on each reference signal segment. Assume that the television 300 executes S802 to process the speech signal x... t The signal is divided into m regions (region 1, region 2, ..., region m), and m reference signals y are obtained (reference signal y1, reference signal y2, ..., reference signal y3). m At this point, the television 300, based on the trained noise prediction model, will obtain multiple sets of predicted noise parameters, such as predicted noise parameter 1, predicted noise parameter 2, ..., predicted noise parameter m. Among these, predicted noise parameter 1 corresponds to the speech signal x to be processed in region 1. t Correspondence; the predicted noise parameter 2 corresponds to the speech signal x to be processed in region 2. t Correspondingly, and so on, the predicted noise parameter m and the speech signal x to be processed in region m are... t Correspondingly, when the television 300 executes S8032, it will correct the predicted noise parameter 1 based on the reference signal y1, and correct the predicted noise parameter 2 based on the reference signal y2.

[0171] Understandably, compared to existing technologies that process the entire audio signal x, tIn this application embodiment, a multi-stage noise reduction process is performed on the speech signal to be processed based on multiple reference signals. This reduces the workload of a single noise reduction process, thereby improving the efficiency of speech processing.

[0172] S8033. Based on the corrected noise parameters, perform noise reduction processing on the speech signal to be processed to obtain the target speech signal.

[0173] Based on the corrected noise parameters, the TV 300 performs noise reduction processing on the speech signal to be processed to obtain the target speech signal.

[0174] In some embodiments, the corrected noise parameters include the target standard deviation and the target mean. For example... Figure 11 As shown, S8032 includes S80321-S80322.

[0175] S80321. Based on the predicted mean in the predicted noise parameters, the reference signal, and the ratio of the speech signal to the noise signal in the reference signal, the target mean in the corrected noise parameters is obtained.

[0176] For example, the television 300 is based on the predicted mean μ θ (x t ,t), the reference signal y, and the ratio γ of the speech signal and noise signal in the reference signal. t The target mean value in the corrected noise parameters is obtained.

[0177] In some embodiments, the target mean is obtained by the following formula:

[0178]

[0179] in, γ represents the target mean; t μ represents the ratio of the speech signal to the noise signal in the reference signal. θ (x t t) represents the predicted mean; This represents hyperparameters.

[0180] S80322. Based on the predicted standard deviation in the predicted noise parameters and the ratio of the speech signal to the noise signal in the reference signal, the target standard deviation in the corrected noise parameters is obtained.

[0181] For example, the television 300 is based on the prediction standard deviation σ t And the ratio γ of the speech signal and the noise signal in the reference signal. t The target standard deviation in the corrected noise parameters is obtained.

[0182] In some embodiments, the target standard deviation is obtained by the following formula:

[0183]

[0184] in, γ represents the target standard deviation; t σ represents the ratio of the speech signal to the noise signal in the reference signal; t Indicates the standard deviation of the forecast; This represents hyperparameters.

[0185] In some embodiments, the television 300 first generates a target noise signal based on the corrected noise parameters; then, it removes the target noise signal from the speech signal to be processed, thereby completing the denoising process of the speech signal to be processed and obtaining the target speech signal. Figure 12 As shown, S8033 includes S80331-S80332.

[0186] S80331. Based on the target mean and target standard deviation, obtain the target noise signal corresponding to the speech signal to be processed.

[0187] In some embodiments, the television 300 modifies and constrains the trained noise prediction model based on a target mean and a target standard deviation; then, based on the modified and constrained trained noise prediction model, it generates a target noise signal. Modifying and constraining the trained noise prediction model based on the target mean and target standard deviation can be achieved by inputting the target mean and target standard deviation into the trained noise prediction model to generate the target noise signal. Alternatively, it can be achieved by determining a new mean (e.g., the average of the target mean and the predicted mean) based on the target mean and the predicted mean, and by determining a new standard deviation (e.g., the average of the target standard deviation and the predicted standard deviation) based on the target standard deviation and the predicted standard deviation; then, the new mean and the new standard deviation are input into the trained noise prediction model to generate the target noise signal. This application does not limit this approach; the following embodiments will exemplify the use of inputting the target mean and target standard deviation into the trained noise prediction model to generate the target noise signal.

[0188] For example, such as Figure 13 As shown, the television 300 executes S802, from the voice signal x to be processed. t A segment of reference speech y is extracted from the data; then, the TV 300, based on the DDPM model, uses the trained noise prediction model ∈ θ (x t Predict the speech signal to be processed x. t Predicted mean μ of medium noise signal θ (x t ,t) and prediction standard deviation σ tThen, the television 300, based on the reference speech y and the predicted mean μ... θ (x t ,t) and prediction standard deviation σ t Determine the target standard deviation and target mean Determining the target standard deviation and target mean Subsequently, TV 300 was based on the target standard deviation. and target mean For the trained noise prediction model ∈ θ (x t The target standard deviation is then adjusted and constrained. and target mean Input the trained noise prediction model ∈ θ (x t In ,t), the target noise signal is generated.

[0189] S80332. Based on the target noise signal, perform noise reduction processing on the speech signal to be processed to obtain the target speech signal.

[0190] In some embodiments, the television 300 removes the target noise signal from the speech signal to be processed to complete the denoising process of the speech signal to be processed and obtain the target speech signal.

[0191] For example, such as Figure 13 As shown, the television 300 will display the target noise signal and the speech signal to be processed x. t The input is fed into the subtractor to remove the target noise from the speech signal x to be processed. t Remove, and obtain the target speech signal x t-1 .

[0192] Understandable Figure 14 The diagram shows a comparison of the processing effects of spectral subtraction and the speech processing method of the electronic device provided in the embodiments of this application on the processing of speech signals; for example... Figure 14 As shown, Figure 14 In this context, a1 represents the waveform of the unprocessed time-domain noisy speech signal; Figure 14 b1 in the figure represents the unprocessed frequency-domain noisy speech signal waveform; Figure 14 a2 in the figure represents the waveform of the noisy time-domain speech signal after spectral subtraction. Figure 14 b2 in the figure represents the waveform of the frequency domain noisy speech signal after spectral subtraction. Figure 14 a3 in the figure represents the waveform of the time-domain noisy speech signal after processing by the speech processing method provided in this application; Figure 14 b3 in the diagram represents the waveform of the frequency-domain noisy speech signal processed by the speech processing method provided in this application. Based on Figure 14It can be concluded that: since the reference signal y is extracted from the speech signal x to be processed... t Therefore, after correcting the predicted noise parameters based on the reference signal y, the obtained corrected noise parameters will be closer to the speech signal x to be processed. t The noise signal n in the text; thus, the target noise signal obtained based on the corrected noise parameters will be closer to the speech signal x to be processed. t The noise signal n in the target noise signal. Thus, the speech signal x to be processed is based on the target noise signal. t When performing noise reduction processing, it is less likely to introduce new distortions. That is, the speech processing method of the electronic device provided in the embodiments of this application has a better noise reduction (speech enhancement) effect.

[0193] like Figure 15 As shown, in some embodiments, S80332 includes S1501-S1502.

[0194] S1501. Based on the target noise signal, remove the noise signal in the speech signal to be processed to obtain multiple segments of target speech signal.

[0195] The multi-segment target speech signal includes a reference signal after removing the noise signal, and / or a speech signal in the speech signal to be processed that does not overlap with the audio of the noise signal.

[0196] In some embodiments, since the reference signal y is provided with multiple segments, the number of target noise signals obtained by the television 300 is multiple segments; thus, when the television 300 removes noise signals in the speech signal to be processed based on each segment of target noise signal, it will obtain multiple segments of sub-target speech signals.

[0197] For example, such as Figure 16 As shown, the television 300 executes S802 to process the voice signal x. t The signal is divided into m regions (region 1, region 2, ..., region m) and m reference signals y are obtained (reference signal y1, reference signal y2, ..., reference signal y3). m The television 300 received the voice signal x to be processed. t Then, the speech signal x to be processed is based on a convolutional layer (Conv) with a 1×1 kernel. t Convolution is performed; then, the television 300 uses the trained noise prediction model ∈ θ (x t ,t) for the speech signal to be processed in region 1 tThe noise signal in the signal is used to predict noise parameters to obtain the predicted noise parameter 1. After obtaining the predicted noise parameter 1, the television 300 obtains the corrected noise parameter 1 based on the reference signal y1 and the predicted noise parameter 1, and returns the value. That is, the corrected noise parameter 1 is input into the trained noise prediction model ∈ θ (x t In ,t), so that the trained noise prediction model ∈ θ (x t The device 300 can generate a target noise signal 1 based on the corrected numerical noise parameter 1; then, the television 300 processes the speech signal x to be processed in region 1 based on the target noise signal 1. t Denoising processing is performed to obtain sub-target speech signal 1. Repeating the above steps, the television 300 will obtain m segments of sub-target speech signals (sub-target speech signal 1, sub-target speech signal 2, ..., sub-target speech signal m). It should be noted that the noise prediction model ∈ [the training model] is used... θ (x t ,t) for the speech signal to be processed in the next region x t Before performing noise prediction on the noise signal, the trained noise prediction model ∈ θ (x t The parameters of ,t) will be adjusted to their initial values. Thus, the trained noise prediction model ∈ θ (x t When generating a target noise signal based on the corrected noise parameters, it will not be affected by the corrected noise parameters corresponding to other reference signals. This can further improve the noise prediction model after training. θ (x t The accuracy of the target noise signal generated by ,t) is improved, thereby reducing the distortion introduced during speech processing.

[0198] In some embodiments, if there are audio signals in the speech signal to be processed that do not overlap with the audio of the noise signal, the audio signals in the speech signal to be processed that do not overlap with the audio of the noise signal do not need to be denoised. In this case, the audio signals in the speech signal to be processed that do not overlap with the audio of the noise signal can be directly divided into sub-target speech signals, or the audio signals in the speech signal to be processed that do not overlap with the audio of the noise signal can be directly divided into multiple sub-target speech signals according to the first preset signal length.

[0199] S1502. Remove the audio overlap between two adjacent sub-segments of the multi-segment target speech signal, and then splice the multi-segment target speech signal after removing the audio overlap to obtain the target speech signal.

[0200] In some embodiments, since two adjacent reference signals y have the same audio portion, i.e., the television 300 executes S802 to process the audio signal x... t When divided into m regions, some regions between region 1 and region 2 will overlap. Therefore, in the multi-segment target speech signal obtained by the television 300 in S1501, some audio parts of two adjacent sub-segments of the target speech signal will also be the same. At this time, it is necessary to first remove the audio parts that are the same between two adjacent target speech signals; then, the multi-segment target speech signal after removing the audio overlap parts is spliced ​​together to obtain the target speech signal.

[0201] For example, such as Figure 16 As shown, after receiving m segments of target speech signals, the television 300 uses an adder to remove the audio overlap between adjacent segments of the m segments through conditional selection, and then concatenates the m segments of target speech signals after removing the audio overlap. For example, the part of target speech signal 2 that overlaps with the audio of target speech signal 1 is removed, and then the audio overlap-free sub-target speech signal 2 and sub-target speech signal 1 are concatenated together. This process is repeated until all m segments of target speech signals are concatenated. Finally, a 1×1 convolutional layer is used to convolve the concatenated m segments of target speech signals to obtain the target speech signal x0.

[0202] In some embodiments, the trained noise prediction model in this application can be trained by an external device, or it can be trained by constructing a denoising diffusion probability model using a television 300. The following embodiments will use the example of obtaining the trained noise prediction model by constructing a denoising diffusion probability model using a television 300 as an example.

[0203] like Figure 17 As shown, the voice signal processing method for electronic devices provided in this application embodiment further includes:

[0204] S1701. Construct a denoised diffusion probability model and obtain the first Gaussian random noise based on the denoised diffusion probability model.

[0205] In some embodiments, the television 300 constructs a denoising diffusion probability model (DDPM) and generates first Gaussian random noise through the denoising diffusion probability model. It should be noted that the method for generating the first Gaussian random noise through the denoising diffusion probability model is prior art and will not be described further in this application.

[0206] In some embodiments, the television 300 may first acquire the voice sample signal and then execute S1701; or it may execute S1701 first and then acquire the voice sample signal. This application embodiment does not limit this. In the following embodiments, the example of the television 300 first acquiring the voice sample signal and executing S1701 to generate the first Gaussian random noise will be used for illustrative purposes.

[0207] S1702. Based on the first Gaussian random noise and the speech sample signal, a noise sample signal that follows a standard normal distribution is obtained.

[0208] In some embodiments, the television 300 adds a first Gaussian random noise to the speech sample signal to obtain a noise sample signal that follows a standard normal distribution.

[0209] For example, such as Figure 18 As shown, the television 300 acquires a speech sample signal X0; then, the television 300 generates a first Gaussian random noise ∈ based on a denoising diffusion probability model and determines the time t; the time of generating the first Gaussian random noise ∈ is determined. The denoising diffusion probability model determines the corresponding preset hyperparameters from the noise schedule based on time t. And based on hyperparameters The first Gaussian random noise ∈ disrupts the speech sample signal X0, thus obtaining a noise sample signal X that follows a standard normal distribution. t .

[0210] In some embodiments, the hyperparameter-based approach can be represented by Equation 1-2. After the first Gaussian random noise ∈ distorts the speech sample signal X0, the resulting noise sample signal x is... t Formulas 1-2 are shown below:

[0211]

[0212] in, The weighting coefficients for the speech sample signal X0 are... represents the weighting coefficient of the first Gaussian random noise ∈; and All are based on the hyperparameters corresponding to time t in the noise schedule. Sure.

[0213] S1703. Based on the denoising diffusion probability model, the noise sample signal is sampled to obtain the noise sample parameters corresponding to the noise sample signal, and the noise sample parameters are fitted to obtain the noise prediction model.

[0214] For example, based on the segmentation convolutional network (U-NET) in the denoising diffusion probability model, the noisy sample signal x is processed. t Sampling is performed to determine the noise sample signal x. t The corresponding noise sample parameters (e.g., variance and mean) are obtained, and the noise sample parameters are fitted based on time t to obtain the noise prediction model.

[0215] S1704. Based on the noise prediction model, the predicted noise signal is obtained, the loss value between the predicted noise signal and the first Gaussian random noise is determined, and the noise prediction model is updated by gradient based on the loss value to obtain the updated noise prediction model.

[0216] For example, DDPM uses a noise prediction model to predict noise parameters and generates a predicted noise signal based on the predicted noise parameters; then, it calculates the loss value between the predicted noise signal and the first Gaussian random noise ∈ generated in S1701, and updates the noise prediction model based on the loss value to obtain the updated noise prediction model.

[0217] In some embodiments, the gradient of the noise prediction model can be updated using a gradient network formula, as shown below:

[0218]

[0219] in, For a gradient network, ∈ represents the first Gaussian random noise. To predict noise signals.

[0220] It should be noted that after the loss value converges, the gradient update of the noise prediction model will be stopped, thus obtaining the updated noise prediction model.

[0221] S1705. Based on the updated noise prediction model and the noise sample signal, determine the trained noise prediction model.

[0222] In some embodiments, the television 300 performs denoising processing on the noise sample signal based on the updated noise prediction model. If a speech sample signal is obtained, the updated noise prediction model is determined to be the trained noise prediction model. If a speech sample signal cannot be obtained, S1701-S1705 are re-executed until the trained noise prediction model is obtained.

[0223] like Figure 19 As shown, in some embodiments, S1705 includes:

[0224] S17051. Based on the updated noise prediction model, the second Gaussian random noise is obtained.

[0225] Television 300 generates a second Gaussian random noise using an updated noise prediction model.

[0226] S17052. Within a preset number of steps, the noisy speech sample signal is denoised based on the second Gaussian random noise; if the speech sample signal is obtained, the updated noise prediction model is determined to be the trained noise prediction model.

[0227] In some embodiments, the user-input voice signal to be processed may contain a portion of noise signal whose audio does not overlap with the voice signal; that is, the voice signal to be processed received by the television 300 includes at least one of noise signal, voice signal, and a portion of the voice signal and noise signal audio overlapping. When the voice signal to be processed includes noise signal, the voice signal processing method provided in this application embodiment can be used to process the noise signal; alternatively, the noise signal can be processed based on the DDPM model in the prior art. This application embodiment does not limit this approach. The following embodiments will exemplarily illustrate the method of processing noise signal based on the DDPM model in the prior art.

[0228] For example, Figure 20 and Figure 21 This illustrates the process of processing noise signals based on the DDPM model in the prior art; such as Figure 20 As shown, the television 300 generates Gaussian random noise via DDPM and adds it to the speech sample signal x0 to obtain the speech signal x1. Then, it generates new Gaussian random noise and adds it to the speech signal x1, repeating this process for T steps until a normally distributed signal (noise x0) is obtained. T The speech sample signal x0 includes the speech signal but excludes noise. For example... Figure 21 As shown, the noise x is obtained. T Subsequently, the television set 300 obtains a noise prediction model (prediction function) containing noise waveform features through DDPM training. After obtaining the prediction function, the television set 300 uses the prediction function to predict the noise x. T Reverse reconstruction processing is performed. That is, the television 300 generates new Gaussian random noise based on the prediction function, and then performs reconstruction from the noise x. T The process involves removing new Gaussian random noise generated based on the prediction function. This process is repeated for T steps to obtain the speech sample signal x0, thus achieving denoising of the noise signal.

[0229] In some embodiments, the television set 300 can execute the speech signal processing method provided in the embodiments of this application to process the speech signal to be processed in the time domain or in the frequency domain. The embodiments of this application do not limit whether the speech signal processing method provided in the embodiments of this application is applied to the frequency domain or the time domain; the following embodiments will exemplify the application of the speech signal processing method provided in the embodiments of this application to the frequency domain.

[0230] For example, Figure 22 A flowchart illustrating the processing of speech signals in the frequency domain is shown; for example... Figure 22 As shown, the television 300 performs STFT processing on the speech signal to be processed (time-domain speech signal) to transform the time-domain speech signal to the frequency domain, obtaining a frequency-domain speech signal. Then, the television 300 performs forward diffusion processing on the frequency-domain speech signal using DDPM to train a noise prediction model that includes noise frequency features. Next, based on the reference signal and the noise prediction model with noise frequency features, the frequency-domain speech signal is reconstructed in reverse to obtain the reconstructed frequency-domain speech signal. Finally, the reconstructed frequency-domain speech signal is subjected to inverse STFT processing to transform the frequency-domain speech signal back to the time domain, thus obtaining the denoised time-domain speech signal.

[0231] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that the units and algorithm steps of the examples described in the embodiments disclosed herein can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0232] This application embodiment can divide an electronic device (e.g., a television set 300) into functional modules based on the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0233] Embodiments of this application also provide an electronic device. For example... Figure 23 As shown, electronic device 2300 includes:

[0234] The communicator 2301 is configured to receive a user-input voice signal to be processed.

[0235] Controller 2302, coupled to communicator 2301, is configured to:

[0236] When the speech signal to be processed includes a speech signal and a noise signal, and the audio of the speech signal and the noise signal at least partially overlaps, multiple reference signals are extracted from the speech signal to be processed based on a first preset signal length.

[0237] Based on the trained noise prediction model and the multiple reference signals, the speech signal to be processed is processed to obtain the target speech signal.

[0238] In another possible implementation, two adjacent reference signals in the multiple reference signals have the same audio portion, and the length of the audio portion of the two adjacent reference signals is less than the length of a second preset signal; the length of the second preset signal is less than the length of the first preset signal.

[0239] In another possible implementation, the controller 2302 is specifically configured as follows:

[0240] Based on the trained noise prediction model, the predicted noise parameters are obtained;

[0241] Based on the multiple reference signals, the predicted noise parameters are corrected to obtain the corrected noise parameters;

[0242] Based on the corrected noise parameters, the speech signal to be processed is denoised to obtain the target speech signal.

[0243] In another possible implementation, the controller 2302 is specifically configured as follows:

[0244] Based on the predicted mean in the predicted noise parameters, the reference signal, and the ratio of speech signal to noise signal in the reference signal, the target mean in the corrected noise parameters is obtained.

[0245] The target standard deviation of the corrected noise parameters is obtained based on the predicted standard deviation of the noise parameters and the ratio of the speech signal to the noise signal in the reference signal.

[0246] In another possible implementation, the target mean is obtained by the following formula:

[0247]

[0248] in, γ represents the target mean; tμ represents the ratio of the speech signal to the noise signal in the reference signal. θ (x t t) represents the predicted mean; This represents hyperparameters.

[0249] In another possible implementation, the target standard deviation is obtained by the following formula:

[0250]

[0251] in, γ represents the target standard deviation; t σ represents the ratio of the speech signal to the noise signal in the reference signal; t This represents the standard deviation of the prediction; This represents hyperparameters.

[0252] In another possible implementation, the controller 2302 is specifically configured as follows:

[0253] Based on the target mean and the target standard deviation, the target noise signal corresponding to the speech signal to be processed is obtained;

[0254] The target speech signal is obtained by denoising the speech signal to be processed based on the target noise signal.

[0255] In another possible implementation, the controller 2302 is specifically configured as follows:

[0256] Based on the target noise signal, the noise signal in the speech signal to be processed is removed to obtain multiple sub-target speech signals; the multiple sub-target speech signals include a reference signal after removing the noise signal, and / or, speech signals in the speech signal to be processed that do not overlap with the audio of the noise signal;

[0257] The overlapping audio portions of two adjacent sub-segments of the multi-segment target speech signal are removed, and the multi-segment target speech signal after removing the overlapping audio portions is spliced ​​together to obtain the target speech signal.

[0258] In another possible implementation, the controller 2302 is further configured as follows:

[0259] A denoising diffusion probability model is constructed, and the first Gaussian random noise is obtained based on the denoising diffusion probability model;

[0260] Based on the first Gaussian random noise and speech sample signal, a noise sample signal that follows a standard normal distribution is obtained;

[0261] Based on the denoising diffusion probability model, the noise sample signal is sampled to obtain the noise sample parameters corresponding to the noise sample signal, and the noise sample parameters are fitted to obtain the noise prediction model;

[0262] Based on the noise prediction model, a predicted noise signal is obtained, the loss value between the predicted noise signal and the first Gaussian random noise is determined, and the noise prediction model is updated by gradient based on the loss value to obtain an updated noise prediction model.

[0263] The trained noise prediction model is determined based on the updated noise prediction model and the noise sample signal.

[0264] In another possible implementation, the controller 2302 is specifically configured as follows:

[0265] The first Gaussian random noise is input into the speech sample signal to obtain a noise sample signal that follows a standard normal distribution.

[0266] In another possible implementation, the controller 2302 is specifically configured as follows:

[0267] Based on the updated noise prediction model, the second Gaussian random noise is obtained;

[0268] Within a preset number of steps, the noisy speech sample signal is denoised based on the second Gaussian random noise; if the speech sample signal is obtained, the updated noise prediction model is determined to be the trained noise prediction model.

[0269] Of course, the electronic device 2300 provided in this application embodiment includes, but is not limited to, the modules described above. For example, the electronic device 2300 may also include a memory. The memory can be used to store executable instructions of the electronic device 2300, and can also be used to store data generated by the electronic device 2300 during operation, such as wireless network information.

[0270] This application also provides an electronic device, including a processor and a memory; the memory is used to store computer instructions, and when the electronic device is running, the processor executes the computer instructions stored in the memory to cause the electronic device to perform the voice signal processing method of the electronic device provided in this application.

[0271] This application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device can perform the voice signal processing method of the electronic device provided in this application.

[0272] For example, the computer-readable storage medium can be ROM, RAM, Compact Disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0273] This application also provides a computer program product containing computer instructions, which, when executed on an electronic device, enable the electronic device to perform the voice signal processing method of the electronic device provided in this application.

[0274] This application also provides an apparatus (e.g., a chip system) including a processor for supporting an electronic device in implementing the voice signal processing method of the electronic device provided in this application. In one possible design, the apparatus further includes a memory for storing necessary program instructions and data of the electronic device. When the apparatus is a chip system, it can be composed of chips or may include chips and other discrete devices.

[0275] For example, such as Figure 24 As shown, the chip system provided in this application embodiment may include at least one processor 2401 and at least one interface circuit 2402. The processor 2401 may be the processor in the aforementioned television set 300. The processor 2401 and the interface circuit 2402 may be interconnected via a line. The processor 2401 may receive and execute computer instructions from the memory of the aforementioned television set 300 through the interface circuit 2402. When the computer instructions are executed by the processor 2401, the television set 300 may perform the various steps executed by the television set 300 in the above embodiment. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application embodiment.

[0276] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device (e.g., the first control device, the area controller) can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device (e.g., the first control device, the area controller) and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0277] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices (e.g., first control device, area controller) and methods can be implemented in other ways. For example, the device (e.g., first control device, area controller) embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

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

[0279] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0280] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.

[0281] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An electronic device, characterized in that, include: The communicator is configured to receive user-input voice signals to be processed. The controller, coupled to the communicator, is configured to: When the speech signal to be processed includes a speech signal and a noise signal, and the audio of the speech signal and the noise signal at least partially overlaps, multiple reference signals are extracted from the speech signal to be processed based on a first preset signal length. Wherein, in the multiple reference signals, two adjacent reference signals have the same audio portion, and the length of the audio portion of the two adjacent reference signals that are the same is less than the length of the second preset signal; the length of the second preset signal is less than the length of the first preset signal; Based on the trained noise prediction model, the predicted noise parameters are obtained; Based on the multiple reference signals, the predicted noise parameters are corrected to obtain corrected noise parameters; wherein, based on the predicted mean of the predicted noise parameters, the reference signal, and the ratio of speech signal to noise signal in the reference signal, the target mean of the corrected noise parameters is obtained; based on the predicted standard deviation of the predicted noise parameters, the reference signal, and the ratio of speech signal to noise signal in the reference signal, the target standard deviation of the corrected noise parameters is obtained. Based on the target mean and the target standard deviation, the target noise signal corresponding to the speech signal to be processed is obtained; Based on the target noise signal, the noise signal in the speech signal to be processed is removed to obtain multiple sub-target speech signals; the multiple sub-target speech signals include a reference signal after removing the noise signal, and / or, speech signals in the speech signal to be processed that do not overlap with the audio of the noise signal; The overlapping audio portions of two adjacent sub-segments of the multi-segment target speech signal are removed, and the multi-segment target speech signal after removing the overlapping audio portions is spliced ​​together to obtain the target speech signal.

2. The electronic device according to claim 1, characterized in that, The target mean is obtained using the following formula: in, This represents the target mean; This represents the ratio of the speech signal to the noise signal in the reference signal; This represents the predicted mean; This represents hyperparameters.

3. The electronic device according to claim 1, characterized in that, The target standard deviation is obtained using the following formula: in, This represents the target standard deviation; This represents the ratio of the speech signal to the noise signal in the reference signal; This represents the standard deviation of the prediction; This represents hyperparameters.

4. The electronic device according to claim 1, characterized in that, The controller is also configured to: A denoising diffusion probability model is constructed, and the first Gaussian random noise is obtained based on the denoising diffusion probability model; Based on the first Gaussian random noise and speech sample signal, a noise sample signal that follows a standard normal distribution is obtained; Based on the denoising diffusion probability model, the noise sample signal is sampled to obtain the noise sample parameters corresponding to the noise sample signal, and the noise sample parameters are fitted to obtain the noise prediction model; Based on the noise prediction model, a predicted noise signal is obtained, the loss value between the predicted noise signal and the first Gaussian random noise is determined, and the noise prediction model is updated by gradient based on the loss value to obtain an updated noise prediction model. The trained noise prediction model is determined based on the updated noise prediction model and the noise sample signal.

5. The electronic device according to claim 4, characterized in that, The controller is specifically configured as follows: The first Gaussian random noise is input into the speech sample signal to obtain a noise sample signal that follows a standard normal distribution.

6. The electronic device according to claim 4, characterized in that, The controller is specifically configured as follows: Based on the updated noise prediction model, the second Gaussian random noise is obtained; Within a preset number of steps, the noisy speech sample signal is denoised based on the second Gaussian random noise; if the speech sample signal is obtained, the updated noise prediction model is determined to be the trained noise prediction model.

7. A method for processing voice signals in an electronic device, characterized in that, The method includes: Receives user-input voice signals to be processed; When the speech signal to be processed includes a speech signal and a noise signal, and the audio of the speech signal and the noise signal at least partially overlaps, multiple reference signals are extracted from the speech signal to be processed based on a first preset signal length. Wherein, in the multiple reference signals, two adjacent reference signals have the same audio portion, and the length of the audio portion of the two adjacent reference signals that are the same is less than the length of the second preset signal; the length of the second preset signal is less than the length of the first preset signal; Based on the trained noise prediction model, the predicted noise parameters are obtained; Based on the multiple reference signals, the predicted noise parameters are corrected to obtain corrected noise parameters; wherein, based on the predicted mean of the predicted noise parameters, the reference signal, and the ratio of speech signal to noise signal in the reference signal, the target mean of the corrected noise parameters is obtained; based on the predicted standard deviation of the predicted noise parameters, the reference signal, and the ratio of speech signal to noise signal in the reference signal, the target standard deviation of the corrected noise parameters is obtained. Based on the target mean and the target standard deviation, the target noise signal corresponding to the speech signal to be processed is obtained; Based on the target noise signal, the noise signal in the speech signal to be processed is removed to obtain multiple sub-target speech signals; the multiple sub-target speech signals include a reference signal after removing the noise signal, and / or, speech signals in the speech signal to be processed that do not overlap with the audio of the noise signal; The overlapping audio portions of two adjacent sub-segments of the multi-segment target speech signal are removed, and the multi-segment target speech signal after removing the overlapping audio portions is spliced ​​together to obtain the target speech signal.

8. The method according to claim 7, characterized in that, The method further includes: A denoising diffusion probability model is constructed, and the first Gaussian random noise is obtained based on the denoising diffusion probability model; Based on the first Gaussian random noise and speech sample signal, a noise sample signal that follows a standard normal distribution is obtained; Based on the denoising diffusion probability model, the noise sample signal is sampled to obtain the noise sample parameters corresponding to the noise sample signal, and the noise sample parameters are fitted to obtain the noise prediction model; Based on the noise prediction model, a predicted noise signal is obtained, the loss value between the predicted noise signal and the first Gaussian random noise is determined, and the noise prediction model is updated by gradient based on the loss value to obtain an updated noise prediction model. The trained noise prediction model is determined based on the updated noise prediction model and the noise sample signal.

Citation Information

Patent Citations

  • Voice signal processing method and device, computer readable medium and electronic equipment

    CN111435598A

  • Noise suppression method and device and mobile terminal

    CN113113039A