Speech enhancement method and device, electronic equipment and computer readable storage medium

By using pre-trained speech enhancement models in intelligent customer service services in the financial industry, including encoders, bottleneck network layers and decoder modules, the speech signals are processed to improve recognition accuracy, solve the problem of speech recognition under the influence of noise, and improve Reliability and user experience in business consulting.

CN118737173APending Publication Date: 2024-10-01PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411011305.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the intelligent customer service business in the financial industry, customers are affected by external noise when they speak, which leads to a decrease in the recognition accuracy of the speech recognition system. The existing end-to-end speech enhancement model fails to fully utilize the existing information, limiting the speech enhancement performance.

Method used

Using the pre-trained speech enhancement model, including the encoder module, bottleneck network layer module and decoder module, preprocessing is performed by obtaining the speech signal to be enhanced, extracting the noisy speech features, reducing the dimensionality and converting it into enhanced speech information. Time-frequency domain loss and contrastive learning loss are used for training adjustments to ensure full utilization of information during the speech recognition process.

Benefits of technology

It improves the accuracy of speech recognition and the simplicity of financial business consultation, provides a better user experience, and enhances the success rate of intelligent customer service services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737173A_ABST
    Figure CN118737173A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of financial science and technology, and provides a voice enhancement method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining a to-be-enhanced voice signal; preprocessing the voice signal to be enhanced to obtain a preprocessed voice signal; performing feature extraction on the preprocessed voice signal based on an encoder module to obtain a noisy voice feature; carrying out dimension reduction processing on the noisy speech features based on a bottleneck network layer module to obtain context feature vectors; and performing conversion processing on the context feature vector based on a decoder module to obtain enhanced voice information. According to the technical scheme, voice recognition and classification can be more accurate, financial service consultation can be simpler, more convenient, more reliable and more rapid, and good use experience is brought to users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to but are not limited to the field of financial technology, and in particular to a speech enhancement method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the continuous development of social economy and the continuous advancement of science and technology, intelligent customer service services have been increasingly applied in the financial industry. In the process of business application, the customer's speech will be affected by external noise, which in turn affects the recognition accuracy of the speech recognition system. By applying the speech enhancement module to the front end of speech recognition, it can effectively reduce noise misrecognition and improve the customer's effective speech recognition rate, which can greatly improve the success rate of intelligent customer service services in the financial industry. However, in actual applications, the end-to-end speech enhancement model based on neural networks cannot make full use of the existing information, which limits the performance of speech enhancement. Summary of the invention

[0003] The following is a summary of the subject matter described in detail in this application. This summary is not intended to limit the scope of the claims.

[0004] In order to solve the problems mentioned in the above background technology, the embodiments of the present application provide a speech enhancement method, device, electronic device and computer-readable storage medium, so that speech recognition classification can be more accurate, financial business consultation can be more simple, reliable and fast, and bring a good user experience.

[0005] In a first aspect, an embodiment of the present application provides a speech enhancement method, which is applied to a pre-trained speech enhancement model, wherein the speech enhancement model includes an encoder module, a bottleneck network layer module, and a decoder module, and the method includes:

[0006] Acquire a speech signal to be enhanced;

[0007] Preprocessing the speech signal to be enhanced to obtain a preprocessed speech signal;

[0008] Extracting features of the preprocessed speech signal based on the encoder module to obtain noisy speech features;

[0009] Performing dimensionality reduction processing on the noisy speech feature based on the bottleneck network layer module to obtain a context feature vector;

[0010] The context feature vector is converted based on the decoder module to obtain enhanced speech information.

[0011] According to some embodiments of the present application, the training process of the speech enhancement model includes the following:

[0012] Acquire a sample speech signal, wherein the sample speech signal includes a clean speech sample signal, a noisy speech sample signal and noise sample data;

[0013] Extracting features of the noisy speech sample signal based on the encoder module to obtain noisy speech sample features;

[0014] Performing dimensionality reduction processing on the noisy speech sample features based on the bottleneck network layer module to obtain a context sample feature vector;

[0015] Based on the decoder module, the context sample feature vector is converted to obtain enhanced speech sample information;

[0016] determining a speech enhancement loss based on the clean speech sample signal, the noisy speech sample signal, the noise sample data and the enhanced speech sample information;

[0017] The encoder module, the bottleneck network layer module and the decoder module are trained and adjusted according to the speech enhancement loss.

[0018] According to some embodiments of the present application, the speech enhancement loss includes a time-frequency domain loss and a contrastive learning loss, and the determining of the speech enhancement loss based on the clean speech sample signal, the noisy speech sample signal, the noise sample data and the enhanced speech sample information includes:

[0019] Determine the time-frequency domain loss according to the clean speech sample signal and the enhanced speech sample information;

[0020] Determine negative sample data according to the noisy speech sample signal and the noise sample data;

[0021] The contrastive learning loss is determined based on the negative sample data and the clean speech sample signal.

[0022] According to some embodiments of the present application, preprocessing the speech signal to be enhanced to obtain a preprocessed speech signal includes:

[0023] Performing pre-emphasis processing on the speech signal to be enhanced to obtain a pre-emphasized speech signal;

[0024] The pre-emphasized speech signal is subjected to windowing processing to obtain the pre-processed speech signal.

[0025] According to some embodiments of the present application, the encoder module includes multiple encoding layers, each of the encoding layers includes a one-dimensional convolution layer, a normalization layer, and an activation function layer, and the feature extraction of the preprocessed speech signal based on the encoder module to obtain the noisy speech feature includes:

[0026] Extracting speech features from the preprocessed speech signal according to the one-dimensional convolutional layer to obtain preprocessed speech features;

[0027] Performing feature uniform processing on the preprocessed speech features according to the normalization layer to obtain normalized speech features;

[0028] The normalized speech features are subjected to nonlinear mapping processing according to the activation function layer to obtain the noisy speech features.

[0029] According to some embodiments of the present application, the bottleneck network layer module includes several encoder layers, each of which includes a self-attention layer and a feedforward neural network layer, and the dimensionality reduction processing of the noisy speech features based on the bottleneck network layer module to obtain a context feature vector includes:

[0030] Performing weighted processing on the noisy speech feature according to the self-attention layer to obtain a weighted speech feature;

[0031] The weighted speech features are mapped and transformed according to the feedforward neural network layer to obtain the context feature vector.

[0032] According to some embodiments of the present application, after the context feature vector is converted based on the decoder module to obtain enhanced speech information, the method further includes:

[0033] Performing semantic recognition processing on the enhanced speech information to obtain semantic information;

[0034] The speech feedback result is determined according to the semantic information and a preset question database.

[0035] In a second aspect, an embodiment of the present application further provides a speech enhancement device, the speech enhancement device comprising a pre-trained speech enhancement model, the speech enhancement model comprising an encoder module, a bottleneck network layer module and a decoder module, the speech enhancement device further comprising:

[0036] A first processing module, used for acquiring a speech signal to be enhanced;

[0037] A second processing module, used for preprocessing the speech signal to be enhanced to obtain a preprocessed speech signal;

[0038] A third processing module, configured to extract features of the preprocessed speech signal based on the encoder module to obtain noisy speech features;

[0039] A fourth processing module, configured to perform dimensionality reduction processing on the noisy speech feature based on the bottleneck network layer module to obtain a context feature vector;

[0040] The fifth processing module is used to convert the context feature vector based on the decoder module to obtain enhanced speech information.

[0041] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the speech enhancement method as described in the first aspect above is implemented.

[0042] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the speech enhancement method as described in the first aspect above.

[0043] According to the speech enhancement method of the embodiment provided by the present application, at least the following beneficial effects are achieved: in the process of speech enhancement processing, firstly, the speech signal to be enhanced is obtained; then, the speech signal to be enhanced is preprocessed to obtain the preprocessed speech signal; then, based on the encoder module, the preprocessed speech signal is feature extracted to obtain the noisy speech feature; then, based on the bottleneck network layer module, the noisy speech feature is dimensionally reduced to obtain the context feature vector; based on the decoder module, the context feature vector is converted to obtain the enhanced speech information. Through the above technical solution, the existing information is fully utilized in the process of speech recognition, so that the speech recognition classification can be more accurate, and the financial business consultation can be more convenient, reliable and fast, bringing a good user experience to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0045] Figure 1 is a flow chart of a speech enhancement method provided by an embodiment of the present application;

[0046] Figure 2 This is a specific flow chart of a training speech enhancement model provided by an embodiment of the present application;

[0047] Figure 3 is a specific flow chart for determining speech enhancement loss provided by an embodiment of the present application;

[0048] Figure 4 is a specific flow chart of step S200 provided in one embodiment of the present application;

[0049] Figure 5 is a specific flow chart of step S300 provided in one embodiment of the present application;

[0050] Figure 6 is a specific flow chart of step S400 provided in one embodiment of the present application;

[0051] Figure 7 is a flow chart of a speech enhancement method provided by another embodiment of the present application;

[0052] Figure 8 is a schematic diagram of a speech recognition device provided by an embodiment of the present application;

[0053] Fig. 9 It is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] It should be noted that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification and claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0056] It should be noted that, unless otherwise defined, all technical and scientific terms used in this application have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this application are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0057] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0058] AI is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. Artificial intelligence is a branch of computer science. Artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robots, language recognition, image recognition, natural language processing and expert systems. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0059] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0060] Artificial intelligence is AI. AI is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0061] The servers involved in artificial intelligence technology can be independent servers or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0062] The present application provides a speech enhancement method, device, electronic device and computer-readable storage medium. In the process of speech enhancement processing, firstly, the speech signal to be enhanced is obtained; then, the speech signal to be enhanced is preprocessed to obtain the preprocessed speech signal; then, based on the encoder module, the preprocessed speech signal is feature extracted to obtain the noisy speech feature; then, based on the bottleneck network layer module, the noisy speech feature is dimensionally reduced to obtain the context feature vector; based on the decoder module, the context feature vector is converted to obtain the enhanced speech information. Through the above technical solution, the existing information is fully utilized in the process of speech recognition, so that the speech recognition classification can be more accurate, and the financial business consultation can be more simple, reliable and fast, bringing a good user experience to the user.

[0063] The speech enhancement method provided in the embodiment of the present application relates to the field of financial technology. The speech enhancement method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the speech enhancement method, etc., but is not limited to the above forms.

[0064] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0065] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0066] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0067] like Figure 1 As shown, Figure 1This is a flowchart of a speech enhancement method provided by an embodiment of the present application. The speech enhancement method is applied to a speech enhancement model after pre-training. The speech enhancement model includes an encoder module, a bottleneck network layer module and a decoder module. The speech enhancement method includes but is not limited to steps S100 to S500.

[0068] Step S100, obtaining a speech signal to be enhanced;

[0069] Step S200, preprocessing the speech signal to be enhanced to obtain a preprocessed speech signal;

[0070] Step S300, extracting features of the preprocessed speech signal based on the encoder module to obtain noisy speech features;

[0071] Step S400, performing dimensionality reduction processing on the noisy speech features based on the bottleneck network layer module to obtain a context feature vector;

[0072] Step S500: converting the context feature vector based on the decoder module to obtain enhanced speech information.

[0073] It should be noted that, in the process of speech enhancement, firstly, the speech signal to be enhanced is obtained; then, the speech signal to be enhanced is preprocessed to obtain the preprocessed speech signal; then, based on the encoder module, the preprocessed speech signal is feature extracted to obtain the noisy speech feature; then, based on the bottleneck network layer module, the noisy speech feature is dimensionally reduced to obtain the context feature vector; based on the decoder module, the context feature vector is converted to obtain the enhanced speech information. Through the above technical solution, the existing information is fully utilized in the process of speech recognition, so that the speech recognition classification can be more accurate, and the financial business consultation can be more simple, reliable and fast, bringing a good user experience to the user.

[0074] It is worth noting that the voice signal to be enhanced in the embodiment of the present application can be the voice signal generated by the user in the consultation dialogue with the intelligent dialogue system of the financial industry; for example, when the user asks the intelligent dialogue system "what is the current gold price", the intelligent dialogue system can convert the received user voice into the voice signal to be enhanced, making the prerequisite preparation for the subsequent semantic recognition. Among them, before the intelligent dialogue system communicates with the user, it will first obtain the user's permission, and will obtain the user's separate permission or separate consent through a pop-up window or jump to a confirmation page. After clearly obtaining the user's separate permission or separate consent, it will obtain the necessary user-related data for the normal operation of the embodiment of the present application, which greatly improves the dialogue security of the intelligent dialogue system.

[0075] It is worth noting that the speech enhancement model may include an encoder module, a bottleneck network layer module and a decoder module, wherein the encoder module, the bottleneck network layer module and the decoder module are connected in sequence; the encoder module can perform feature extraction processing on the preprocessed speech signal to obtain noisy speech features; then the encoder module can transmit the noisy speech features to the bottleneck network layer module, and then the bottleneck network layer module can perform dimensionality reduction processing on the noisy speech features to obtain a context feature vector; finally, the context feature vector is converted based on the decoder module to obtain enhanced speech information; through the above technical solution, while retaining useful information, the speech signal to be enhanced is enhanced to obtain enhanced speech information, so that subsequent semantic recognition can be more accurate.

[0076] It is worth noting that the encoder module may include multiple encoding layers, and each encoding layer includes a one-dimensional convolution layer, a normalization layer, and an activation function layer. The one-dimensional convolution layer, the normalization layer, and the activation function layer are connected in sequence. The one-dimensional convolution layer can realize feature extraction, the normalization layer can realize data dimensionality reduction processing, and the activation function layer can realize data mapping processing. The bottleneck network layer module may include several encoder layers, each encoder layer includes a self-attention layer and a feedforward neural network layer, the self-attention layer can perform weighted processing on the features, and the feedforward neural network layer can perform mapping transformation processing on the weighted speech features. In addition, the decoder module has a submodule corresponding to the encoder. For the decoder module in the embodiment of the present application, it may also include a one-dimensional convolution layer, a normalization layer, and an activation function layer.

[0077] It is worth noting that preprocessing the speech signal to be enhanced can obtain a preprocessed speech signal to prepare for subsequent speech enhancement. In the embodiment of the present application, the signal is not removed during the speech enhancement process, so that the speech signal to be enhanced retains useful information, so that the enhanced speech information finally obtained will not be distorted, thereby improving the performance of speech enhancement and making subsequent speech recognition more accurate. It is worth noting that speech enhancement refers to the technology of extracting useful speech signals from the noisy background and suppressing and reducing noise interference when the speech signal is interfered with or even submerged by various noises. Extract the original speech that is as pure as possible from the noisy speech.

[0078] In some embodiments, Figure 2 As shown, the training process of the speech enhancement model may include but is not limited to steps S110 to S160.

[0079] Step S110, obtaining a sample speech signal, wherein the sample speech signal includes a clean speech sample signal, a noisy speech sample signal and noise sample data;

[0080] Step S120, extracting features of the noisy speech sample signal based on the encoder module to obtain noisy speech sample features;

[0081] Step S130, performing dimensionality reduction processing on the noisy speech sample features based on the bottleneck network layer module to obtain a context sample feature vector;

[0082] Step S140, converting the context sample feature vector based on the decoder module to obtain enhanced speech sample information;

[0083] Step S150, determining the speech enhancement loss based on the clean speech sample signal, the noisy speech sample signal, the noise sample data and the enhanced speech sample information;

[0084] Step S160, training and adjusting the encoder module, the bottleneck network layer module and the decoder module according to the speech enhancement loss.

[0085] It should be noted that in the process of training the speech enhancement model, a sample speech signal is first obtained, and then the feature extraction of the noisy speech sample signal is performed based on the encoder module to obtain the noisy speech sample feature; then the noisy speech sample feature is reduced in dimension based on the bottleneck network layer module to obtain the context sample feature vector; then the context sample feature vector is converted based on the decoder module to obtain the enhanced speech sample information; then the speech enhancement loss is determined based on the clean speech sample signal, the noisy speech sample signal, the noise sample data and the enhanced speech sample information; finally, the parameters of the encoder module, the bottleneck network layer module and the decoder module are adjusted according to the speech enhancement loss to realize the training process of the speech enhancement model and make the prerequisite preparation for the subsequent speech enhancement process.

[0086] It is worth noting that the sample speech signal includes a clean speech sample signal, a noisy speech sample signal and a noise sample data; after obtaining the enhanced speech sample information, the time domain loss can be determined according to the clean speech sample signal and the enhanced speech sample information, and the negative sample data can be determined according to the noisy speech sample signal and the noise sample data; finally, the contrastive learning loss can be determined according to the negative sample data and the clean speech sample signal; through the above technical scheme, a method of introducing more useful information into speech enhancement by using contrastive learning is used to improve the performance of speech enhancement; firstly, the contrastive learning loss function can utilize more useful information in the training stage, such as noisy speech, clean speech and noise data, thereby further improving the model performance; secondly, contrastive learning can shorten the distance between the enhanced speech and the clean speech, and increase the distance between the enhanced speech and the noisy speech and the noise, thereby further enhancing the denoising ability of the model.

[0087] It is understandable that the sample speech signal includes a clean speech sample signal, a noisy speech sample signal and a noise sample data, wherein the clean speech sample signal, the noisy speech sample signal and the noise sample data are all signals collected in advance, so as to facilitate the training and processing of the speech enhancement model. Exemplarily, in the process of training and processing the speech enhancement model in the intelligent dialogue system, the relevant sample speech signals can be collected first, and then the collected sample speech signals can be used to train and process the speech enhancement model, so as to facilitate the subsequent speech enhancement processing of the collected speech signals to be enhanced.

[0088] In some embodiments, Figure 3 As shown, the speech enhancement loss includes time-frequency domain loss and contrastive learning loss, and the above step S150 may include but is not limited to steps S151 to S153.

[0089] Step S151, determining the time-frequency domain loss according to the clean speech sample signal and the enhanced speech sample information;

[0090] Step S152, determining negative sample data according to the noisy speech sample signal and the noise sample data;

[0091] Step S153, determining the contrastive learning loss according to the negative sample data and the clean speech sample signal.

[0092] It should be noted that, in the process of determining the speech enhancement loss based on the clean speech sample signal, the noisy speech sample signal, the noise sample data and the enhanced speech sample information, the time-frequency domain loss is first determined based on the clean speech sample signal and the enhanced speech sample information, and then the negative sample data is determined based on the noisy speech sample signal and the noise sample data; finally, the contrastive learning loss can be determined based on the negative sample data and the clean speech sample signal.

[0093] It is worth noting that the method of using contrastive learning to introduce more useful information into speech enhancement is used to improve the performance of speech enhancement; first, the contrastive learning loss function can utilize more useful information in the training stage, such as noisy speech, clean speech and noise data, thereby further improving the model performance; secondly, contrastive learning can shorten the distance between the enhanced speech and clean speech, and increase the distance between the enhanced speech and noisy speech and noise, further enhancing the denoising ability of the model.

[0094] In some embodiments, Figure 4 As shown, the above step S200 may include but is not limited to steps S210 to S220.

[0095] Step S210, performing pre-emphasis processing on the speech signal to be enhanced to obtain a pre-emphasized speech signal;

[0096] Step S220: performing windowing processing on the pre-emphasized speech signal to obtain a pre-processed speech signal.

[0097] It should be noted that, in the process of preprocessing the enhanced speech signal to obtain the preprocessed speech signal, the enhanced speech signal is first pre-emphasized to obtain the pre-emphasized speech signal; then the pre-emphasized speech signal is windowed to obtain the preprocessed speech signal, so as to prepare for the subsequent speech enhancement.

[0098] It is worth noting that windowing reduces the signal's mutation in the time domain by dot-multiplying the signal with a window function, thereby reducing spectrum leakage; pre-emphasis is a high-pass filter technology used to enhance high-frequency components and reduce the energy attenuation of low-frequency components in voice signals. For example, when a user asks the intelligent dialogue system "What is the specific process of buying insurance?", when the intelligent dialogue system collects the voice signal, it can perform pre-emphasis and windowing on the voice signal to obtain a pre-processed voice signal, in preparation for subsequent voice enhancement processing.

[0099] In some embodiments, Figure 5 As shown, the encoder module includes multiple encoding layers, each encoding layer includes a one-dimensional convolution layer, a normalization layer and an activation function layer, and the above step S300 may include but is not limited to steps S310 to S330.

[0100] Step S310, extracting speech features from the preprocessed speech signal using a one-dimensional convolutional layer to obtain preprocessed speech features;

[0101] Step S320, performing feature uniform processing on the preprocessed speech features according to the normalization layer to obtain normalized speech features;

[0102] Step S330, performing nonlinear mapping processing on the normalized speech features according to the activation function layer to obtain noisy speech features.

[0103] It should be noted that in the process of extracting features from the preprocessed speech signal based on the encoder module to obtain noisy speech features, firstly, the preprocessed speech signal is subjected to speech feature extraction processing according to the one-dimensional convolution layer to obtain the preprocessed speech features; then, the preprocessed speech features are subjected to feature uniform processing according to the normalization layer to obtain the normalized speech features; finally, the normalized speech features are subjected to nonlinear mapping processing according to the activation function layer to obtain the noisy speech features. Through the above technical solution, the encoder module can better extract the noisy speech features from the preprocessed speech signal. Through the above technical solution, the noisy speech features can be obtained by extracting features from the preprocessed speech signal, so as to prepare for the subsequent speech enhancement processing.

[0104] In some embodiments, Figure 6 As shown, the bottleneck network layer module includes several encoder layers, each encoder layer includes a self-attention layer and a feedforward neural network layer, and the above step S400 may include but is not limited to steps S410 to S420.

[0105] Step S410, performing weighted processing on the noisy speech features according to the self-attention layer to obtain weighted speech features;

[0106] Step S420, mapping and transforming the weighted speech features according to the feedforward neural network layer to obtain a context feature vector.

[0107] It should be noted that in the process of dimensionality reduction processing of noisy speech features based on the bottleneck network layer module, the noisy speech features are first weighted according to the self-attention layer to obtain weighted speech features; then the weighted speech features are mapped and transformed according to the feedforward neural network layer to obtain the context feature vector; finally, the context feature vector can be converted according to the decoder module to obtain enhanced speech information, which is a prerequisite for subsequent semantic recognition.

[0108] It is worth noting that the bottleneck network layer module includes several encoder layers, and each encoder layer includes a self-attention layer and a feedforward neural network layer. Furthermore, through the self-attention layer and the feedforward neural network layer in each encoder layer, the noisy speech features can be well reduced in dimension, and the amount of computation can be greatly reduced while retaining useful contextual information.

[0109] In some embodiments, Figure 7 As shown, after executing step S500, the following steps may also include but are not limited to step S610 and step S620.

[0110] Step S610, performing semantic recognition processing on the enhanced voice information to obtain semantic information;

[0111] Step S620, determining the speech feedback result according to the semantic information and a preset question database.

[0112] It should be noted that after determining that the enhanced voice information is obtained, semantic recognition processing can be performed on the enhanced voice information to obtain semantic information; finally, the voice feedback result can be determined based on the semantic information and the preset question database, and finally, the question feedback can be given to the user based on the voice feedback result, thereby bringing a good user experience to the user.

[0113] For example, when a user is consulting and communicating with the intelligent dialogue system, the user asks the intelligent dialogue system "What types of funds are currently included" and after the intelligent dialogue system determines that the question the user is asking is "What specific types of funds are currently included", it can perform keyword recognition processing on the text to obtain the keywords "fund", "include" and "type" respectively; finally, the identified keywords "fund", "include" and "type" can be matched with the preset answer data, and finally the final question feedback result can be determined to answer the question asked by the user, which brings great convenience to the user.

[0114] In order to more clearly explain the speech enhancement method of the present application, a specific embodiment is provided below for illustration.

[0115] In some embodiments of the present application, contrastive learning is used to introduce more useful information into speech enhancement to improve the performance of speech enhancement. The speech enhancement model of the embodiment of the present application includes an encoder, a bottleneck network layer and a decoder.

[0116] Process description and module design:

[0117] Data preparation:

[0118] The data used in this application includes anonymized voice data generated in the business process and open source noise data collected externally, which serve as training data for this algorithm module.

[0119] Model Architecture:

[0120] The speech enhancement model proposed in this application adopts the U-net structure, which mainly includes the following three modules: Figure 1 shown.

[0121] 1) Encoder module

[0122] The encoder module contains D layers, each of which contains a one-dimensional convolution, a normalization layer, and a GELU activation function layer. The size of the convolution kernel is K, the convolution step is S, and the number of channels is H. Given a noisy speech waveform x, the noisy feature z is obtained through the encoder, where

[0123] z=encoder(x).

[0124] 2) Bottleneck network layer module

[0125] The bottleneck network layer mainly uses N layers of Transformer encoder layers, each of which contains a multi-head self-attention layer and a feedforward neural network layer. The noisy feature z obtained by the encoder is sent to the bottleneck network layer module to obtain the context representation c, where

[0126] c = bottleneck(z).

[0127] 3) Decoder module

[0128] The decoder module contains D layers, each of which contains a one-dimensional transposed convolution, a normalization layer, and a GELU activation function layer. The size of the convolution kernel is K, the convolution step is S, and the number of channels is H. The decoder is mirror-symmetric to the encoder in structure. The context representation c is fed into the decoder to obtain the enhanced speech. in,

[0129]

[0130] 4) Loss Function

[0131] The overall loss function mainly adopts the traditional speech enhancement loss function L se And the loss function L based on contrastive loss learning c . It can be expressed as:

[0132] K total =K se +λL c

[0133] λ represents the weight coefficient. The traditional speech enhancement loss function L se It includes time domain loss function and frequency domain loss function. The time domain loss function adopts L1 loss function, and the frequency domain loss function adopts multi-resolution short-time Fourier transform loss function. se It can be expressed as

[0134] in,

[0135]

[0136]

[0137] Where M represents the number of STFT loss functions, || || F Denotes the F norm. Multi-resolution loss function The calculations were performed using the short-time Fourier transform.

[0138] In order to make better use of clean speech, noisy speech and noise data, a contrast loss function is additionally used. It is expected that the distance between the enhanced speech and the clean speech is as close as possible, and the distance between the noisy speech and the noise is as far as possible. For the convenience of representation, the clean speech is represented as y, and the enhanced speech is represented as The noisy speech is represented by y noisy , the noise data is represented by y n Clean speech is regarded as positive sample, noisy speech and noise data are regarded as negative samples, and the contrast loss function Lc The calculation formula is as follows:

[0139]

[0140] in, Represents negative samples sampled from noisy speech and noise data. Negative samples are randomly sampled from noisy speech and noise data, and multiple samples are sampled. sim() represents cosine similarity, and k represents temperature coefficient. During the training process, the optimized loss function is L total .

[0141] In addition, if Figure 8 As shown, an embodiment of the present application further provides a speech enhancement device 10, the speech enhancement device includes a pre-trained speech enhancement model, the speech enhancement model includes an encoder module, a bottleneck network layer module and a decoder module, and the speech enhancement device also includes:

[0142] The first processing module 100 is used to obtain a speech signal to be enhanced;

[0143] The second processing module 200 is used to preprocess the speech signal to be enhanced to obtain a preprocessed speech signal;

[0144] The third processing module 300 is used to extract features of the preprocessed speech signal based on the encoder module to obtain noisy speech features;

[0145] A fourth processing module 400 is used to perform dimensionality reduction processing on the noisy speech features based on the bottleneck network layer module to obtain a context feature vector;

[0146] The fifth processing module 500 is used to convert the context feature vector based on the decoder module to obtain enhanced speech information.

[0147] It should be noted that, in the process of speech enhancement, firstly, the speech signal to be enhanced is obtained; then, the speech signal to be enhanced is preprocessed to obtain the preprocessed speech signal; then, based on the encoder module, the preprocessed speech signal is feature extracted to obtain the noisy speech feature; then, based on the bottleneck network layer module, the noisy speech feature is dimensionally reduced to obtain the context feature vector; based on the decoder module, the context feature vector is converted to obtain the enhanced speech information. Through the above technical solution, the existing information is fully utilized in the process of speech recognition, so that the speech recognition classification can be more accurate, and the financial business consultation can be more simple, reliable and fast, bringing a good user experience to the user.

[0148] The specific implementation of the speech enhancement device 10 is substantially the same as the specific implementation of the above-mentioned speech enhancement method, and will not be described in detail herein.

[0149] In addition, if Fig. 9 As shown, an embodiment of the present application further provides an electronic device 700 , which includes: a memory 720 , a processor 710 , and a computer program stored in the memory 720 and executable on the processor 710 .

[0150] The processor 710 and the memory 720 may be connected via a bus or in other ways.

[0151] The non-transient software programs and instructions required to implement the speech enhancement methods of the above embodiments are stored in the memory 720. When executed by the processor 710, the speech enhancement methods of the above embodiments are executed, for example, the speech enhancement methods described above are executed. Figure 1 The method steps S100 to S500, Figure 2 Steps S110 to S160 of the method, Figure 3 Steps S151 to S153 of the method, Figure 4 Steps S210 to S220 of the method, Figure 5 Steps S310 to S330 of the method, Figure 6 Method steps S410 to S420 and Figure 7 Method steps S610 to S620 in.

[0152] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions, which are executed by a processor 710 or a controller, for example, by a processor 710 in the above-mentioned device embodiment, so that the processor 710 can execute the speech enhancement method in the above-mentioned embodiment, for example, execute the above-mentioned Figure 1 Method steps in Figure 1 The method steps S100 to S500, Figure 2 Steps S110 to S160 of the method, Figure 3 Steps S151 to S153 of the method, Figure 4 Steps S210 to S220 of the method, Figure 5 Steps S310 to S330 of the method, Figure 6 Method steps S410 to S420 and Figure 7 Method steps S610 to S620 in.

[0154] The above embodiments may be used in combination, and modules with the same name in different embodiments may be the same or different.

[0155] The above describes specific embodiments of the present application, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0156] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0157] The apparatus, device, computer-readable storage medium and method provided in the embodiments of the present application correspond to each other. Therefore, the apparatus, device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device and computer storage medium will not be repeated here.

[0158] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0159] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0160] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0161] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0162] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0163] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0166] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0167] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory (Flash RAM). The memory is an example of a computer-readable medium.

[0168] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this application, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0169] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0170] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0171] Embodiments of the present application may be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. Embodiments of the present application may also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0172] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0173] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A speech enhancement method, characterized in that: The method is applied to a speech enhancement model after pre-training, wherein the speech enhancement model includes an encoder module, a bottleneck network layer module and a decoder module. Acquire a speech signal to be enhanced; Preprocessing the speech signal to be enhanced to obtain a preprocessed speech signal; Extracting features of the preprocessed speech signal based on the encoder module to obtain noisy speech features; Performing dimensionality reduction processing on the noisy speech feature based on the bottleneck network layer module to obtain a context feature vector; The context feature vector is converted based on the decoder module to obtain enhanced speech information.

2. The speech enhancement method according to claim 1, characterized in that: The training process of the speech enhancement model includes the following: Acquire a sample speech signal, wherein the sample speech signal includes a clean speech sample signal, a noisy speech sample signal and noise sample data; Extracting features of the noisy speech sample signal based on the encoder module to obtain noisy speech sample features; Performing dimensionality reduction processing on the noisy speech sample features based on the bottleneck network layer module to obtain a context sample feature vector; Based on the decoder module, the context sample feature vector is converted to obtain enhanced speech sample information; determining a speech enhancement loss based on the clean speech sample signal, the noisy speech sample signal, the noise sample data and the enhanced speech sample information; The encoder module, the bottleneck network layer module and the decoder module are trained and adjusted according to the speech enhancement loss.

3. The speech enhancement method according to claim 2, characterized in that: The speech enhancement loss includes a time-frequency domain loss and a contrastive learning loss, and the determining of the speech enhancement loss based on the clean speech sample signal, the noisy speech sample signal, the noise sample data and the enhanced speech sample information includes: Determine the time-frequency domain loss according to the clean speech sample signal and the enhanced speech sample information; Determine negative sample data according to the noisy speech sample signal and the noise sample data; The contrastive learning loss is determined based on the negative sample data and the clean speech sample signal.

4. The speech enhancement method according to claim 1, characterized in that: The preprocessing of the speech signal to be enhanced to obtain a preprocessed speech signal includes: Performing pre-emphasis processing on the speech signal to be enhanced to obtain a pre-emphasized speech signal; The pre-emphasized speech signal is subjected to windowing processing to obtain the pre-processed speech signal.

5. The speech enhancement method according to claim 1, characterized in that: The encoder module includes a plurality of encoding layers, each of which includes a one-dimensional convolution layer, a normalization layer, and an activation function layer, and extracting features from the preprocessed speech signal based on the encoder module to obtain noisy speech features, including: Extracting speech features from the preprocessed speech signal according to the one-dimensional convolutional layer to obtain preprocessed speech features; Performing feature uniform processing on the preprocessed speech features according to the normalization layer to obtain normalized speech features; The normalized speech features are subjected to nonlinear mapping processing according to the activation function layer to obtain the noisy speech features.

6. The speech enhancement method according to claim 1, characterized in that: The bottleneck network layer module includes a plurality of encoder layers, each of which includes a self-attention layer and a feedforward neural network layer, and the dimension reduction processing of the noisy speech feature based on the bottleneck network layer module to obtain a context feature vector includes: Performing weighted processing on the noisy speech feature according to the self-attention layer to obtain a weighted speech feature; The weighted speech features are mapped and transformed according to the feedforward neural network layer to obtain the context feature vector.

7. The speech enhancement method according to claim 1, characterized in that: After the context feature vector is converted based on the decoder module to obtain enhanced speech information, the method further includes: Performing semantic recognition processing on the enhanced speech information to obtain semantic information; The speech feedback result is determined according to the semantic information and a preset question database.

8. A speech enhancement device, characterized in that: The speech enhancement device includes a pre-trained speech enhancement model, the speech enhancement model includes an encoder module, a bottleneck network layer module and a decoder module, and the speech enhancement device also includes: A first processing module, used for acquiring a speech signal to be enhanced; A second processing module, used for preprocessing the speech signal to be enhanced to obtain a preprocessed speech signal; A third processing module, configured to extract features of the preprocessed speech signal based on the encoder module to obtain noisy speech features; A fourth processing module, configured to perform dimensionality reduction processing on the noisy speech feature based on the bottleneck network layer module to obtain a context feature vector; The fifth processing module is used to convert the context feature vector based on the decoder module to obtain enhanced speech information.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the speech enhancement method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are used to execute the speech enhancement method described in any one of claims 1 to 7.

Citation Information

Cited By

  • Information transmission method and device based on audio two-dimensional code, equipment and medium

    CN119446157A

  • Speech enhancement method, speech enhancement device, electronic equipment and storage medium

    CN119517053A