Voice signal processing method and device, electronic equipment and nonvolatile storage medium
By constructing a voice environment matching degree recognition model and combining multiple voice quality characteristics and environmental variables to identify the applicability of the voice enhancement algorithm, it solves the problems of weak generalization ability and low efficiency caused by manual participation in the existing technology, and achieves high efficiency. , accurate speech signal processing.
Patent Information
- Application Number
- CN202411037344.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-09-06
AI Technical Summary
Existing speech signal processing technology has weak generalization capabilities in different application scenarios and requires manual participation, resulting in evaluation efficiency and results that do not meet user needs, making it difficult to improve speech signal processing efficiency and accuracy.
Construct a speech environment matching recognition model, which is trained based on a variety of speech quality features and environmental variables to identify whether the target speech enhancement algorithm is suitable for a specific environment, and performs speech enhancement processing based on the matching results of the model output, combined with feature splicing and fusion technology to improve the comprehensiveness and accuracy of assessments.
It achieves a more comprehensive and accurate evaluation of speech enhancement algorithms, improves the efficiency and accuracy of speech signal processing, adapts to the needs of different scenarios, reduces computing resource consumption, and provides more reliable evaluation results.
Smart Images

Figure CN118609573A
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, and in particular to a speech signal processing method, apparatus, electronic device, and non-volatile storage medium. Background Technology
[0002] With the rapid development of artificial intelligence, speech processing technology has been widely applied in communications, smart homes, and intelligent customer service, effectively improving human-computer interaction efficiency and user experience. During speech signal processing, speech enhancement algorithms are used to denoise and dederease the speech signal, effectively improving speech clarity and intelligibility, resulting in higher-quality speech signal data. This is beneficial for improving the execution efficiency and accuracy of downstream speech tasks, such as speech recognition and speech synthesis.
[0003] When processing speech signals using speech enhancement algorithms, related technologies first evaluate the speech quality by integrating a series of predefined metrics, and then obtain the evaluation results through manual screening and actual testing. This method performs well in specific speech environments and tasks, but its generalization ability is weak for different application scenarios. Furthermore, due to the need for human intervention, the evaluation efficiency and results cannot meet the real-world needs of users.
[0004] Therefore, improving the efficiency and accuracy of speech signal processing is a technical problem that needs to be solved by those skilled in the art.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] This invention provides a speech signal processing method, apparatus, electronic device, and non-volatile storage medium, which effectively improves the efficiency and accuracy of speech signal processing.
[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0008] This invention provides a speech signal processing method, comprising:
[0009] A speech environment matching degree recognition model is pre-constructed; the speech environment matching degree recognition model is trained based on a speech enhancement signal training dataset containing multiple speech quality features, and is used to identify whether the target speech enhancement algorithm is suitable for the environment in which the speech to be enhanced is located;
[0010] Obtain the target speech quality features of the speech enhancement signal after processing by the target speech enhancement algorithm;
[0011] Obtain the target environment features of the target environment where the speech to be enhanced is located;
[0012] The target speech quality features and the target environment features are input into the speech environment matching degree recognition model;
[0013] Under the condition that the speech environment matching recognition model outputs an algorithm environment matching result, the target speech enhancement algorithm is invoked to perform speech enhancement processing on the speech to be enhanced.
[0014] In a first exemplary embodiment, obtaining the target speech quality features of the speech enhancement signal processed by the target speech enhancement algorithm includes:
[0015] Obtain the speech enhancement signal after processing by the target speech enhancement algorithm;
[0016] Calculate the perceptual evaluation value of speech quality, log-likelihood ratio, signal-to-noise ratio, and short-time objective intelligibility value of the speech enhancement signal respectively;
[0017] The speech quality perception evaluation value, the log-likelihood ratio value, the signal-to-noise ratio value, and the short-time objective intelligibility value are normalized to ensure that they have the same scale.
[0018] The normalized speech quality perception assessment features, log-likelihood ratio features, signal-to-noise ratio features, and short-term objective intelligibility features are used as the target speech quality features.
[0019] In a second exemplary embodiment, inputting the target speech quality features and the target environment features into the speech environment matching degree recognition model includes:
[0020] The log-likelihood ratio feature and the short-time objective intelligibility feature are concatenated to obtain speech quality auxiliary features;
[0021] The speech quality auxiliary features, the acoustic features of the speech enhancement signal, the speech quality perception evaluation features, and the signal-to-noise ratio features are fused to form the fused speech features;
[0022] The fused speech features and the target environment features are input into the speech environment matching recognition model.
[0023] In a third exemplary implementation, obtaining the target environment features of the target environment where the speech to be enhanced is located includes:
[0024] Obtain the overall environmental variables, pronunciation environmental variables, and quality environmental variables of the target environment in which the speech to be enhanced is located;
[0025] The overall environmental variables, the pronunciation environmental variables, and the quality environmental variables are encoded to obtain corresponding numerical features, which are then used as target environmental features.
[0026] In a fourth exemplary embodiment, the process of constructing the voice environment matching degree recognition model includes:
[0027] A speech environment matching recognition model framework is pre-built based on multiple decision trees; each decision tree serves as a base learner, including nodes, leaf nodes, and splitting rules; the nodes represent the splitting points of the input features, the output value of the leaf nodes is the predicted value of the corresponding node, and the splitting rules are used to assign features to different nodes;
[0028] The objective function of the speech environment matching recognition model is determined based on the regularization term and the loss function used to measure the degree of difference between the model's predicted value and the true value.
[0029] Obtain a speech enhancement signal training dataset; the speech enhancement signal training dataset includes multiple speech enhancement samples, each speech enhancement sample includes a speech enhancement algorithm, speech quality features, environmental features, and label values; the label values are qualified speech or unqualified speech;
[0030] Based on the environmental features of each speech enhancement sample in the speech enhancement signal training dataset, speech enhancement samples with the same environment are divided into corresponding sub-speech enhancement signal training datasets.
[0031] Using the training dataset of each sub-speech enhancement signal, the speech environment matching degree recognition model framework is trained separately based on the objective function to obtain multiple trained sub-speech environment matching degree recognition models, and corresponding environment labeling information is set for each sub-speech environment matching degree recognition model;
[0032] The individual speech environment matching degree recognition models are combined into a speech environment matching degree recognition model.
[0033] In a fifth exemplary embodiment, obtaining the speech enhancement signal training dataset includes:
[0034] The speech enhancement samples in the speech enhancement signal training dataset are traversed sequentially to determine whether there are any target speech enhancement samples with missing values.
[0035] If the missing value is a speech enhancement algorithm or environmental feature, then the target speech enhancement sample is removed from the speech enhancement signal training dataset.
[0036] If the missing value is a label value or a speech quality feature, then a corresponding label value or speech quality feature is generated based on the enhanced speech signal and the original speech signal, and the calculated label value or speech quality feature is added to the target speech enhancement sample.
[0037] In a sixth exemplary embodiment, the speech environment matching degree recognition model framework is trained separately based on the objective function, including:
[0038] If the prediction accuracy of the speech environment matching degree recognition model is less than the preset accuracy threshold, then the maximum depth and learning rate of the tree of the current speech environment matching degree recognition model are increased, while the number of trees is reduced.
[0039] Another aspect of the present invention provides a speech signal processing apparatus, comprising:
[0040] The model pre-construction module is used to pre-construct a speech environment matching degree recognition model; the speech environment matching degree recognition model is trained based on a speech enhancement signal training dataset containing multiple speech quality features, and is used to identify whether the target speech enhancement algorithm is suitable for the environment in which the speech to be enhanced is located;
[0041] The feature acquisition module is used to acquire the target speech quality features of the speech enhancement signal processed by the target speech enhancement algorithm; and to acquire the target environment features of the target environment where the speech to be enhanced is located.
[0042] The model processing module is used to input the target speech quality features and the target environment features into the speech environment matching degree recognition model;
[0043] The speech processing module is used to call the target speech enhancement algorithm to perform speech enhancement processing on the speech to be enhanced, provided that the speech environment matching recognition model outputs an algorithm environment matching result.
[0044] The present invention also provides an electronic device including a processor, the processor being configured to perform the steps of the speech signal processing method as described in any of the preceding claims when executing a computer program stored in a memory.
[0045] Finally, the present invention also provides a non-volatile storage medium storing a computer program, which, when executed by a processor, implements the steps of the speech signal processing method as described in any of the preceding claims.
[0046] The advantages of the technical solution provided by this invention lie in its comprehensive consideration of multiple speech quality features for evaluating speech quality. It utilizes feature data covering various aspects of speech enhancement, combined with environmental variables, to train a speech environment matching degree recognition model. This model learns the correlations between different evaluation metrics, enabling a more comprehensive and accurate evaluation of speech enhancement algorithms. It avoids being misled by a single metric and provides a balanced and objective evaluation for speech enhancement algorithms that perform well on one metric but poorly on others. Speech enhancement algorithms based on accurate evaluation are beneficial for improving speech processing accuracy. Furthermore, by learning patterns from a large amount of data, the speech environment matching degree recognition model can adapt well to different speech enhancement algorithms and application scenarios. It maintains stable evaluation performance even with new speech enhancement algorithms or new application scenarios, demonstrating strong generalization ability and adapting to a wider range of speech enhancement needs. Once the speech environment matching degree recognition model is trained, it can quickly provide performance evaluation results for speech enhancement algorithms, reducing computational resource consumption and improving speech signal processing efficiency. Furthermore, the speech environment matching recognition model, through its powerful learning capabilities, learns from human-annotated data to simulate human auditory evaluation of speech quality, automatically discovering the deep-seated relationship between features and whether the enhanced speech is acceptable. This enables the model to not only combine the advantages of subjective and objective evaluation when evaluating speech enhancement algorithms, providing more accurate and reliable evaluation results, but also to more precisely evaluate whether the speech enhancement algorithm is truly effective for the speech signal. This achieves a more comprehensive, accurate, and automated evaluation of the performance of speech enhancement algorithms, realizing high-precision and high-efficiency speech signal processing.
[0047] Furthermore, the present invention also provides corresponding implementation devices, electronic devices, and non-volatile storage media for the speech signal processing method, further making the method more practical. The devices, electronic devices, and non-volatile storage media have corresponding advantages.
[0048] The technical features mentioned above, those to be mentioned below, and those shown individually in the accompanying drawings can be arbitrarily combined with each other, provided that the combined technical features are not contradictory. All feasible combinations of features are the technical content explicitly described herein. Any one of the multiple sub-features contained in the same statement can be applied independently, without necessarily being applied together with other sub-features. It should be understood that the above general description and the following detailed description are merely exemplary and do not limit the invention. Attached Figure Description
[0049] To more clearly illustrate the technical solutions of the present invention or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a schematic diagram of the evaluation process for speech enhancement algorithms in related technologies;
[0051] Figure 2 A flowchart illustrating a speech signal processing method provided by the present invention;
[0052] Figure 3 This is a schematic diagram of the training process of the speech environment matching degree recognition model provided by the present invention;
[0053] Figure 4 A schematic diagram illustrating the framework of the speech signal processing method provided by the present invention in an exemplary application scenario;
[0054] Figure 5 A flowchart illustrating another speech signal processing method provided by the present invention;
[0055] Figure 6 A structural diagram of a specific embodiment of the speech signal processing device provided by the present invention;
[0056] Figure 7 This is a structural diagram of a specific embodiment of the electronic device provided by the present invention. Detailed Implementation
[0057] To enable those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. In this specification and the aforementioned drawings, the terms "first," "second," "third," "fourth," etc., are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. The term "exemplary" means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior to or better than other embodiments.
[0058] In the development of speech processing technology, speech enhancement is used when speech signals are processed by various... After interference or even submersion, useful speech signals are extracted from the noisy background, thereby suppressing and reducing noise interference. When using speech enhancement algorithms, related technologies evaluate them. Traditional speech enhancement algorithm evaluations often use a single speech quality metric to assess the algorithm's performance, and the final evaluation result is obtained only through manual screening and actual testing in specific environments.
[0059] Because each speech quality metric focuses on a different aspect of a speech enhancement algorithm, using a single metric cannot capture performance in other areas, leading to incomplete evaluation results. Different speech quality metrics have varying sensitivities to different characteristics of speech enhancement algorithms. Some speech enhancement algorithms may perform excellently on one metric but perform poorly or even poorly on others. Relying solely on a single metric will result in inaccurate evaluations. Furthermore, using a single metric makes it difficult to conduct a comprehensive and fair comparison of the performance of different speech enhancement algorithms, and the evaluation results of a single metric may be difficult to interpret, failing to provide in-depth insights into algorithm performance. Moreover, different application scenarios may have different requirements for speech quality, intelligibility, and noise suppression, and a single metric cannot fully reflect these practical application needs, leading to discrepancies between evaluation results and actual application effects, rendering it unsuitable for real-world applications. For complex real-world application environments, multiple speech quality metrics are often needed to assess algorithm performance; analyzing each metric individually is both time-consuming and may result in inaccurate results.
[0060] To address the issue that a single speech quality metric can only reflect the performance of a speech enhancement algorithm from a specific perspective, making it difficult to comprehensively evaluate the algorithm's performance across multiple dimensions, and resulting in incomplete and misleading evaluation results, related technologies use comprehensive and objective speech quality metrics to evaluate the performance of speech enhancement algorithms, such as... Figure 1As shown, comprehensive objective speech quality metrics are typically based on a combination of a series of predefined speech quality evaluation indicators, that is, combining existing objective metrics to form a new metric. This approach may perform well in specific speech environments and tasks, but its generalization ability is relatively weak for different application scenarios. Furthermore, comprehensive objective speech quality metrics calculate multiple complex speech indicators, which can be relatively cumbersome and require significant computational resources. Although comprehensive objective speech quality metrics comprehensively evaluate speech enhancement performance from multiple perspectives, they are still objective evaluation methods and cannot reflect human auditory perception of speech quality. Moreover, to adapt to broader speech enhancement needs, this method requires continuous updates and adjustments to its evaluation indicators and weights, resulting in low evaluation efficiency and poor evaluation results. Further, while comprehensive objective speech quality metrics attempt to integrate multiple indicators, their weight definitions are often based on subjective evaluation, still requiring manual intervention and screening, thus failing to truly address the limitations of evaluating single speech quality indicators.
[0061] Therefore, this invention comprehensively considers multiple speech quality features for evaluating speech quality, uses feature data covering various aspects of speech enhancement combined with environmental variables to train a speech environment matching degree recognition model, and uses this model to evaluate the speech enhancement algorithm. This integrates multiple speech quality evaluation indicators, automatically screens speech based on the environment, eliminates manual screening and actual testing, and directly outputs the final evaluation result of the speech enhancement algorithm. This allows for a more comprehensive and accurate evaluation, thereby improving the efficiency and accuracy of speech signal processing. After introducing the technical solution of this invention, various non-limiting embodiments are described in detail below. To better illustrate this invention, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this invention can be practiced without these specific details. In other instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail to highlight the main points of this invention.
[0062] Please see first. Figure 2 , Figure 2 This is a flowchart illustrating a speech signal processing method provided in this embodiment. This embodiment may include the following:
[0063] S201: Pre-build a speech environment matching degree recognition model.
[0064] In this step, the speech environment matching recognition model is trained using any deep learning algorithm and a speech enhancement signal training dataset. This dataset comprises a large collection of speech enhancement algorithm data implemented in real-world applications. Each speech enhancement signal sample includes at least several speech quality features, and may also include the speech enhancement algorithm used for each enhanced speech signal, the value of the target variable, and the actual application environment / indicator weights. The target variable is a manually labeled identifier indicating whether the speech is qualified; for example, Y=0 indicates unqualified, and Y=1 indicates qualified. Speech quality features are metrics used to evaluate speech enhancement algorithms. They are standards that measure speech quality, clarity, naturalness, and recognition accuracy, reflecting the quality and intelligibility of the speech signal from different perspectives, and comprehensively and objectively measuring the performance and quality of speech technology. The speech quality features in this step include, but are not limited to, PESQ (Perceptual Evaluation of Speech Quality), LLR (Log-Likelihood Ratio), SNR (Signal-to-Noise Ratio), and STOI (Short-Time Objective Intelligibility). PESQ mimics the human ear's perception of speech quality, assessing the difference between a reference speech signal and a test speech signal; a higher score indicates better speech quality. LLR can be used to evaluate the consistency between observed speech features and model features; a high LLR value indicates high consistency. SNR is the ratio of signal strength to background noise intensity, focusing on the ratio between the speech signal and background noise, usually expressed in decibels (dB). In speech processing, a higher SNR means a higher ratio of useful information to noise in the speech signal, generally indicating better speech quality. STOI is an objective metric for measuring the intelligibility of speech signals. It assesses the intelligibility of speech under noisy conditions, focusing on speech clarity. A higher STOI value indicates higher speech intelligibility in noisy environments. These speech quality features can be used to evaluate and improve the quality of speech signals, providing users with a better voice interaction experience. Furthermore, using them as input features can improve the accuracy and robustness of speech environment matching recognition models.
[0065] In this step, the speech environment matching recognition model integrates multiple speech signal quality evaluation metrics to form a comprehensive evaluation system. This allows for a more comprehensive assessment of the performance of speech enhancement algorithms and identifies whether the target speech enhancement algorithm is suitable for the environment in which the speech to be enhanced is located. Through the learning capability of the speech environment matching recognition model, the actual effect of the speech enhancement algorithm can be accurately reflected. It can quickly process large amounts of data, produce reliable evaluation results in a short time, improve the efficiency of speech enhancement algorithm evaluation, and reduce computational costs while ensuring accuracy.
[0066] S202: Obtain the target speech quality features of the speech enhancement signal after processing by the target speech enhancement algorithm, and obtain the target environment features of the target environment where the speech to be enhanced is located.
[0067] The target speech enhancement algorithm is the speech enhancement algorithm that needs to be evaluated. The speech enhancement signal is the noisy speech signal collected from the target environment, which is then processed using the target speech enhancement algorithm. The target speech quality features can be the same type as the speech quality features used in training the speech environment matching recognition model. The speech to be enhanced is the speech that needs speech enhancement processing, that is, the most suitable speech enhancement algorithm needs to be selected for the speech to be enhanced. The target environment features are the environmental features that reflect the target environment.
[0068] S203: Input the target speech quality features and target environment features into the speech environment matching degree recognition model.
[0069] In this embodiment, after obtaining the target speech quality features and target environment features in the previous step, they are each input into the speech environment matching recognition model. Alternatively, feature concatenation or feature fusion can be performed before inputting them into the speech environment matching recognition model. If the speech environment matching recognition model has requirements on the format of the input features, the target speech quality features and target environment features need to be converted into a format that meets the requirements before being input into the speech environment matching recognition model.
[0070] S204: Under the condition that the speech environment matching recognition model outputs an algorithm environment matching result, the target speech enhancement algorithm is called to perform speech enhancement processing on the speech to be enhanced.
[0071] In this invention, the output of the speech environment matching degree recognition model is a judgment result on whether the target speech enhancement algorithm matches the target environment. If the speech environment matching degree recognition model outputs a result indicating that the algorithm does not match the environment, it means that the target speech enhancement algorithm is not suitable for enhancing the speech signal in the target environment. In this case, other types of speech enhancement algorithms need to be used as the target speech enhancement algorithm, and S202-S204 needs to be re-executed until it is determined that the currently detected target speech enhancement algorithm is suitable for enhancing the speech signal in the target environment. If the speech environment matching degree recognition model outputs a result indicating that the algorithm matches the environment, it means that the target speech enhancement algorithm is suitable for enhancing the speech signal in the target environment. The resulting speech enhancement signal can effectively reduce or remove noise interference and improve speech clarity and intelligibility.
[0072] In the technical solution provided in this embodiment, multiple speech quality features for evaluating speech quality are comprehensively considered. A speech environment matching degree recognition model is trained using feature data covering various aspects of speech enhancement combined with environmental variables. This model learns the correlation between different evaluation metrics, enabling a more comprehensive and accurate evaluation of speech enhancement algorithms. It avoids being misled by a single metric and provides a balanced and objective evaluation for speech enhancement algorithms that perform well on one metric but poorly on others. Speech enhancement algorithms based on accurate evaluation are beneficial for improving speech processing accuracy. Furthermore, by learning patterns from a large amount of data, the speech environment matching degree recognition model can adapt well to different speech enhancement algorithms and application scenarios. It maintains stable evaluation performance even with new speech enhancement algorithms or new application scenarios, demonstrating strong generalization ability and better practicality. Once the speech environment matching degree recognition model is trained, it can quickly provide performance evaluation results for speech enhancement algorithms, reducing computational resource consumption and improving speech signal processing efficiency. Furthermore, the speech environment matching recognition model, through its powerful learning capabilities, learns from human-annotated data to simulate human auditory evaluation of speech quality, automatically discovering the deep-seated relationship between features and whether the enhanced speech is acceptable. This enables the model to not only combine the advantages of subjective and objective evaluation when evaluating speech enhancement algorithms, providing more accurate and reliable evaluation results, but also to more precisely evaluate whether the speech enhancement algorithm is truly effective for the speech signal. This achieves a more comprehensive, accurate, and automated evaluation of the performance of speech enhancement algorithms, realizing high-precision and high-efficiency speech signal processing.
[0073] In the above embodiments, there is no limitation on how to perform step S202. This embodiment provides an exemplary implementation of how to obtain target speech quality features and target environment features, which may include the following:
[0074] The speech enhancement signal processed by the target speech enhancement algorithm is obtained. The speech quality perceptual evaluation value, log-likelihood ratio, signal-to-noise ratio (SNR), and short-term objective intelligibility value of the enhanced signal are calculated respectively. These values are then normalized to ensure they have the same scale. The normalized speech quality perceptual evaluation features, log-likelihood ratio features, SNR features, and short-term objective intelligibility features are used as the target speech quality features. The overall environmental variables, pronunciation environmental variables, and quality environmental variables of the target environment in which the speech to be enhanced is located are obtained. These variables are encoded to obtain corresponding numerical features, which are used as the target environment features.
[0075] In this embodiment, the perceptual evaluation value of speech quality, log-likelihood ratio, signal-to-noise ratio and short-time objective intelligibility value of the speech enhancement signal can be calculated separately, thereby obtaining a performance evaluation that can cover all aspects of the speech enhancement signal and more comprehensively reflect the speech performance of the speech enhancement signal. Those skilled in the art can perform the calculation based on any related technology, and this embodiment does not limit it in any way. Since the perceptual sound quality evaluation value, log-likelihood ratio, signal-to-noise ratio, and short-term objective intelligibility value have different ranges, and their ranges are not all positively correlated with the speech environment matching degree recognition model, in order to improve the evaluation accuracy and efficiency of the target speech enhancement algorithm, this embodiment can further normalize and standardize the calculated perceptual sound quality evaluation value, log-likelihood ratio, signal-to-noise ratio, and short-term objective intelligibility value. For ease of description, the processed perceptual sound quality evaluation value, log-likelihood ratio, signal-to-noise ratio, and short-term objective intelligibility value can be defined as perceptual sound quality evaluation feature, log-likelihood ratio feature, signal-to-noise ratio feature, and short-term objective intelligibility feature, so as to obtain features with the same scale and better adapt to the speech environment matching degree recognition model.
[0076] In this embodiment, O (Overall, the overall environmental variable) includes all factors that may affect the performance of the speech enhancement algorithm, such as noise level, echo, reverberation, speaker accent, and speech rate. The overall environmental variable affects the accuracy and robustness of speech recognition. P (Phonetic, the pronunciation environmental variable) includes the speaker's pronunciation characteristics, such as accent, intonation, and articulation. The pronunciation environmental variable affects the training and recognition performance of the acoustic model in the speech recognition system. Q (Quality, the quality environmental variable) includes the quality of the speech signal, such as signal-to-noise ratio (SNR), signal distortion, and background noise. The quality environmental variable affects the intelligibility of the speech signal and the recognition rate of the recognition system. For practical application environments / weights, considering that they are categorical variables, they can be converted into numerical features, i.e., label encoding, for ease of data processing.
[0077] As can be seen from the above, this embodiment comprehensively evaluates the performance of the speech enhancement signal by considering PESQ, LLR, SNR, and STOI, while also taking into account the influence of O, P, and Q on the speech enhancement algorithm. Furthermore, it further processes and selects PESQ, LLR, SNR, STOI, O, P, and Q, which can not only improve the evaluation accuracy of the target speech enhancement algorithm, but also improve the evaluation efficiency of the target speech enhancement algorithm.
[0078] Furthermore, in practical applications, since the above four types of evaluation features may still not be able to completely cover all factors affecting speech recognition performance, in order to further improve the evaluation accuracy of speech enhancement algorithms, based on the above embodiments, the present invention also provides the following feature processing methods:
[0079] The log-likelihood ratio feature and short-term objective intelligibility feature are concatenated to obtain speech quality auxiliary features; the speech quality auxiliary features, acoustic features of speech enhancement signal, speech quality perception evaluation features, and signal-to-noise ratio features are fused to obtain fused speech features; the fused speech features and target environment features are then input into the speech environment matching degree recognition model.
[0080] Considering The LLR (Lower Speech Ratio) reflects the objective evaluation of speech intelligibility by the human auditory perception system. A higher value indicates higher and clearer speech intelligibility. LLR and STOI can reflect speech distortion. LLR and STOI can be concatenated as additional features and then input along with acoustic features such as MFCCs, speech quality perception evaluation features reflecting the impact of one-way speech distortion and noise on speech quality, and signal-to-noise ratio features to provide a richer speech representation. Similarly, during the training of the speech environment matching recognition model, to improve the evaluation accuracy of the model, feature processing can be performed as in this embodiment before input. That is, PESQ, LLR, SNR, and STOI can be used as auxiliary features and input along with conventional acoustic features (such as MFCCs) into the speech environment matching recognition model to provide a more comprehensive speech representation. Furthermore, before training the model, the relationship between indicators such as PESQ, LLR, and STOI and recognition accuracy can be analyzed to select the most informative features and consider other factors such as the speaker's accent, speech rate, and emotion. Based on real-time feedback of PESQ, LLR, SNR, and STOI metrics, the parameters of the speech recognition system are dynamically adjusted to adapt to different environments and speakers.
[0081] In the above embodiments, there is no limitation on how to perform step S201. This embodiment provides an exemplary implementation of how to construct a speech environment matching degree recognition model, which may include the following:
[0082] A speech environment matching recognition model framework is pre-built based on multiple decision trees. The objective function of the speech environment matching recognition model is determined according to a regularization term and a loss function used to measure the difference between the model's predicted values and the true values. A speech enhancement signal training dataset is obtained. This dataset includes multiple speech enhancement samples, each containing a speech enhancement algorithm, speech quality features, environmental features, and a label value; the label value is either qualified or unqualified speech. Based on the environmental features of each speech enhancement sample in the training dataset, speech enhancement samples with the same environment are divided into corresponding sub-speech enhancement signal training datasets. Using each sub-speech enhancement signal training dataset, the speech environment matching recognition model framework is trained separately based on the objective function, resulting in multiple trained sub-speech environment matching recognition models. Corresponding environmental labeling information is then set for each sub-speech environment matching recognition model. Finally, these sub-speech environment matching recognition models are combined into a single speech environment matching recognition model.
[0083] In this embodiment, by constructing multiple weak prediction models, such as decision trees, they can be combined to form a strong prediction model, i.e., a speech environment matching recognition model. The speech environment matching recognition model uses decision trees as base learners. Each tree structure includes nodes, leaf nodes, and splitting rules; nodes represent splitting points of input features, leaf nodes output predicted values for their respective nodes, and splitting rules are used to assign features to different nodes based on feature values. For example, a greedy algorithm can be used to select the optimal splitting point. Figure 3 As shown, this embodiment extensively collects data on speech enhancement algorithms implemented in practical applications, including the adopted speech enhancement algorithms, various speech quality feature values of the enhanced speech signals, label values indicating whether the speech is qualified, and actual application environment / indicator weights. To meet the performance evaluation requirements of speech enhancement algorithms in various scenarios, the weights / environment are incorporated into the model input features for model training. Since practical applications require analysis of indicators under different environments, this embodiment divides the training dataset into different subsets according to different environments, trains each subset separately, and analyzes and evaluates each subset based on specific speech enhancement type requirements. During actual training, to improve the training efficiency and accuracy of the speech environment matching recognition model, the training dataset for each type of sub-speech enhancement signal can be further divided into a training set, a validation set, and a test set. The training set is used to train the sub-speech environment matching recognition model, the validation set is used for hyperparameter adjustment during the optimization of the sub-speech environment matching recognition model, and the test set is used to evaluate the final performance of the sub-speech environment matching recognition model. During the training of each sub-speech environment matching recognition model, preprocessed sample data can be used. The sub-speech environment matching recognition model learns the importance or weight of each feature and constructs multiple decision trees to predict the target variable by evaluating all possible split points on each feature and selecting the split point that minimizes the objective function. If a feature is selected as a split point in multiple trees, then the feature's importance is higher. The importance score of a feature can be calculated using methods such as "gain" (based on information gain), "weight" (based on the number of times the feature appears in all trees), and "cover" (based on the number of samples covered by the feature). The importance score reflects the influence of the feature on the model when predicting the target variable. At the same time, the gradient boosting algorithm can be used to progressively optimize the sub-speech environment matching recognition model: in each iteration, the sub-speech environment matching recognition model updates its predictions based on the errors in previous iterations and attempts to reduce these errors by adding new decision trees. This process naturally emphasizes the features that are most helpful in reducing errors.
[0084] During the training of the sub-speech environment matching recognition model, users can adjust the model's learning feature weights by modifying its hyperparameters. For example, if the prediction accuracy of the speech environment matching recognition model is less than a preset accuracy threshold, the maximum tree depth and learning rate of the current model can be increased, while the number of trees can be reduced. Increasing the maximum tree depth may make the model focus more on details and consider more features; conversely, reducing the number of trees or increasing the learning rate penalty may make the model focus more on more important features. Additionally, users can adjust the subsample ratio to modify the model's learning feature weights. Furthermore, the hyperparameters of the speech environment matching recognition model can be adjusted again using a validation set to find a balance between reducing validation set error and preventing overfitting. This process involves multiple iterations and experimentation with different hyperparameter combinations. After optimization, the performance of the optimized sub-speech environment matching recognition model can be evaluated using a test set. For example, the model's accuracy and recall on the test set can be calculated and compared with benchmark algorithms or previous versions. After validation on the test set, the model can be deployed to real-world applications to evaluate the performance of the speech enhancement algorithm. To ensure the accuracy of the speech environment matching recognition model, its performance should be monitored regularly to guarantee its accuracy. If a performance decline is detected, the cause should be analyzed promptly, and the model should be retrained and / or optimized to maintain its high efficiency and accuracy in evaluation.
[0085] The above embodiments do not limit the preprocessing method for the speech enhancement signal training dataset. Besides processing the speech quality features and environmental features according to the processing methods shown in the above embodiments, this invention also provides another preprocessing method, which may include the following:
[0086] The process iterates through each speech enhancement sample in the speech enhancement signal training dataset to determine if there is a target speech enhancement sample with missing values. If the missing value is a speech enhancement algorithm or environmental feature, the target speech enhancement sample is removed from the speech enhancement signal training dataset. If the missing value is a label value or speech quality feature, the corresponding label value or speech quality feature is generated based on the enhanced speech signal and the original speech signal, and the calculated label value or speech quality feature is added to the target speech enhancement sample.
[0087] In this embodiment, the speech enhancement signal training dataset can be checked for missing values and appropriate processing can be performed, such as padding or deletion. Furthermore, the speech environment matching recognition model can also automatically handle missing values through the following sparsity-aware method: missing values and sparse 0 values are treated as missing values, and the traversal of split nodes will skip the entire set of missing values.
[0088] As can be seen from the above, the speech environment matching degree recognition model trained in this embodiment can more comprehensively, accurately and automatically evaluate the performance of speech enhancement algorithms, is applicable to speech signal processing in various environments, has stronger generalization ability, and improves the efficiency and accuracy of speech signal processing by preprocessing the data.
[0089] To further improve the training accuracy of the speech environment matching recognition model, the speech environment matching recognition model framework can be pre-stored locally. The speech environment matching recognition model framework can be represented using the following relation:
[0090] ;
[0091] in, This is the predicted value for the nth speech enhancement sample. It is the k-th tree for speech enhancement samples The prediction is given by K, where K is the total number of decision trees. Furthermore, the objective function can be pre-stored, including a loss function and a regularization term. The loss function measures the difference between the model's predicted values and the true values; any loss function can be used, such as the squared error loss function for regression or the logarithmic loss function for classification. The regularization term controls model complexity and prevents overfitting; it acts as a penalty on feature weights, helping the model select more important features. The objective function Obj can be expressed as:
[0092] ;
[0093] Where l is the loss function, Ω is the regularization term, φ is the model parameter, yi is the label value of the nth speech enhancement sample, n represents the total number of speech enhancement samples, and the regularization term can include the complexity of the tree and the weights of the leaf nodes, and can be expressed as: ;
[0094] Where 𝛾 is the complexity coefficient of the tree, 𝑇 is the number of leaf nodes in the tree, 𝜆 is the L2 regularization coefficient of the leaf node weights, and 𝑤𝑗 is the weight of the leaf nodes.
[0095] To further improve the training and execution accuracy of the speech environment matching recognition model, it can also support parallel computing. Parallel computing can be achieved as follows: Each feature column is pre-sorted and stored in a cache as blocks, with indexes mapping feature values to gradient statistics. A separate contiguous cache is allocated to each thread to store gradient information, improving cache hit rate and optimizing cache access. When the data volume is very large, the data is divided into multiple blocks and stored on disk, with independent threads reading data from disk into memory.
[0096] It should be noted that there is no strict order of execution between the steps in this invention. As long as they conform to the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 This is just an illustrative example and does not mean that this is the only possible execution order.
[0097] Finally, based on the above-described technical solution of the present invention, the following examples illustrate some possible application scenarios of the technical solution of the present invention in conjunction with image-speech signal processing methods. Figure 4 A schematic diagram of the hardware framework applicable to the speech signal processing method provided by the present invention may include the following:
[0098] The hardware framework may include a first electronic device 41 and a second electronic device 42, which are connected via a network 43. The first electronic device 41 is equipped with a processor for executing the training process of the speech environment matching degree recognition model and the speech signal processing method described in any of the above embodiments. The second electronic device 42 is equipped with a user terminal for providing a human-computer interaction interface, for fulfilling requests for speech signal enhancement processing, and can also transmit the speech enhancement signal training dataset.
[0099] In this embodiment, the first electronic device 41 completes all or part of the steps in speech signal processing according to the content described above. In this embodiment, the speech environment matching degree recognition model is based on the XGBoost model, which utilizes its efficiency and accuracy in classification and regression problems to evaluate the performance of the speech enhancement algorithm. A training dataset containing speech enhancement signals processed by various speech enhancement algorithms is obtained. The speech enhancement algorithms process noisy speech signals under different environments (O, P, Q) to obtain corresponding speech enhancement signals. Each speech enhancement sample contains four indicators as speech quality features: PESQ, LLR, SNR, and STOI, a classification variable (environmental variable), and a target variable (Y=0 or 1), which can be determined by expert evaluation or a certain standard. When training the speech environment matching degree recognition model, speech samples under different environments and their corresponding features (PESQ, LLR, SNR, STOI), environmental variables (O, P, Q), and target variable (Y) are used as input features. The model automatically learns the relationship between these features and speech quality, and takes into account the classification problem of environmental variables. After training, different speech enhancement algorithms can be tested in specific environments (weights). For example... Figure 5 As shown, for each algorithm-processed speech signal, corresponding speech quality features and environmental features are extracted and input into the trained XGBoost model. The model automatically classifies based on the values of environmental variables and outputs a predicted value indicating whether the speech is acceptable. The predicted value is the XGBoost evaluation result of the speech. By comparing it with the actual value, the performance of the trained XGBoost model can be evaluated. After continuous optimization, the model shows good performance on the test set, and then the validation set can be used to evaluate the model. After completion, it is deployed to real-world applications to evaluate the performance of new speech enhancement algorithms. When there is a need for a speech enhancement algorithm under the same environmental variables, only the sample features and environmental variables need to be input into the trained model to determine whether the speech is acceptable. This method can not only automatically evaluate the performance of speech enhancement algorithms, but also provide detailed evaluation reports to help researchers better understand the effectiveness and limitations of the algorithms and assess their suitability for application in real-world environments.
[0100] It should be noted that the above application scenarios are shown only to facilitate understanding of the ideas and principles of the present invention, and the embodiments of the present invention are not limited in any way. On the contrary, the embodiments of the present invention can be applied to any applicable scenario.
[0101] As can be seen from the above, the speech environment matching degree recognition model trained based on the XGBoost model in this embodiment can more comprehensively, accurately and automatically evaluate the performance of speech enhancement algorithms, which is beneficial to improving the efficiency and accuracy of speech signal processing.
[0102] This invention also provides a corresponding apparatus for the speech signal processing method, further enhancing the practicality of the method. The apparatus can be described from both a functional module perspective and a hardware perspective. The speech signal processing apparatus provided by this invention is described below. This apparatus is used to implement the speech signal processing method provided by this invention. In this embodiment, the speech signal processing apparatus may include or be divided into one or more program modules. These one or more program modules are stored in a storage medium and executed by one or more processors to complete the speech signal processing method disclosed in Embodiment 1. The program module referred to in this embodiment refers to a series of computer program instruction segments capable of performing a specific function, which is more suitable than the program itself for describing the execution process of the speech signal processing apparatus in the storage medium. The following description will specifically introduce the functions of each program module in this embodiment. The speech signal processing apparatus described below can be referred to in correspondence with the speech signal processing method described above.
[0103] From the perspective of functional modules, see Figure 6 , Figure 6 This is a structural diagram of the speech signal processing device provided in this embodiment under one specific implementation. The device may include:
[0104] The model pre-construction module 601 is used to pre-construct a speech environment matching degree recognition model. The speech environment matching degree recognition model is trained based on a speech enhancement signal training dataset containing multiple speech quality features and is used to identify whether the target speech enhancement algorithm is suitable for the environment in which the speech to be enhanced is located.
[0105] The feature acquisition module 602 is used to acquire the target speech quality features of the speech enhancement signal after processing by the target speech enhancement algorithm; and to acquire the target environment features of the target environment where the speech to be enhanced is located.
[0106] The model processing module 603 is used to input the target speech quality features and target environment features into the speech environment matching degree recognition model;
[0107] The speech processing module 604 is used to call the target speech enhancement algorithm to perform speech enhancement processing on the speech to be enhanced, provided that the speech environment matching recognition model outputs an algorithm environment matching result.
[0108] For example, in some embodiments of this example, the feature acquisition module 602 described above can also be used for:
[0109] Obtain the speech enhancement signal after processing by the target speech enhancement algorithm;
[0110] Calculate the perceptual evaluation value of speech quality, log-likelihood ratio, signal-to-noise ratio and short-time objective intelligibility value of the speech enhancement signal respectively;
[0111] The speech quality perception assessment value, log-likelihood ratio, signal-to-noise ratio value, and short-time objective intelligibility value are normalized to ensure that they have the same scale.
[0112] The normalized speech quality perception assessment features, log-likelihood ratio features, signal-to-noise ratio features, and short-term objective intelligibility features are used as the target speech quality features.
[0113] As an exemplary implementation of the above embodiments, the feature acquisition module 602 can also be used for:
[0114] The log-likelihood ratio feature and the short-time objective intelligibility feature are concatenated to obtain auxiliary features for speech quality.
[0115] The speech quality auxiliary features, acoustic features of the speech enhancement signal, speech quality perception evaluation features, and signal-to-noise ratio features are fused to form the fused speech features;
[0116] The voice features and target environment features are integrated and input into the voice environment matching recognition model.
[0117] For example, in some embodiments of this example, the feature acquisition module 602 described above can also be used for:
[0118] Obtain the overall environmental variables, pronunciation environmental variables, and quality environmental variables of the target environment in which the speech to be enhanced is located;
[0119] The overall environmental variables, pronunciation environmental variables, and quality environmental variables are encoded to obtain corresponding numerical features, which are then used as target environmental features.
[0120] For example, in some embodiments of this example, the model pre-construction module 601 described above can also be used for:
[0121] A speech environment matching recognition model framework is pre-built based on multiple decision trees; each decision tree serves as a base learner, including nodes, leaf nodes, and splitting rules; nodes represent the splitting points of input features, the output value of leaf nodes is the predicted value of the corresponding node, and splitting rules are used to assign features to different nodes;
[0122] The objective function of the speech environment matching recognition model is determined based on the regularization term and the loss function used to measure the degree of difference between the model's predicted values and the true values.
[0123] Obtain the speech enhancement signal training dataset; the speech enhancement signal training dataset includes multiple speech enhancement samples, each speech enhancement sample includes a speech enhancement algorithm, speech quality features, environmental features and label values; the label values are qualified speech or unqualified speech;
[0124] Based on the environmental features of each speech enhancement sample in the speech enhancement signal training dataset, speech enhancement samples with the same environment are divided into corresponding sub-speech enhancement signal training datasets.
[0125] Using the training dataset of each sub-speech enhancement signal, the speech environment matching degree recognition model framework is trained separately based on the objective function to obtain multiple trained sub-speech environment matching degree recognition models, and corresponding environment labeling information is set for each sub-speech environment matching degree recognition model;
[0126] The individual speech environment matching degree recognition models are combined into a speech environment matching degree recognition model.
[0127] As an exemplary implementation of the above embodiments, the model pre-construction module 601 can also be used for:
[0128] Iterate through each speech enhancement sample in the speech enhancement signal training dataset to determine whether there are any target speech enhancement samples with missing values.
[0129] If the missing value is a feature of the speech enhancement algorithm or environment, the target speech enhancement sample will be removed from the speech enhancement signal training dataset.
[0130] If the missing value is a label value or a speech quality feature, then the corresponding label value or speech quality feature is generated based on the enhanced speech signal and the original speech signal, and the calculated label value or speech quality feature is added to the target speech enhancement sample.
[0131] As another exemplary implementation of the above embodiments, the model pre-construction module 601 can also be used for:
[0132] If the prediction accuracy of the speech environment matching recognition model is less than the preset accuracy threshold, then increase the maximum depth and learning rate of the tree in the current speech environment matching recognition model, while reducing the number of trees.
[0133] The functions of each functional module of the speech signal processing device described in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, which will not be repeated here.
[0134] As can be seen from the above, this embodiment can more comprehensively, accurately, and automatically evaluate the performance of speech enhancement algorithms, which is beneficial to improving the efficiency and accuracy of speech signal processing.
[0135] The speech signal processing device mentioned above is described from the perspective of functional modules. Furthermore, the present invention also provides an electronic device, which is described from the perspective of hardware. Figure 7This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. For example... Figure 7 As shown, the electronic device includes a memory 70 for storing a computer program; and a processor 71 for executing the computer program to implement the steps of the speech signal processing method as described in any of the above embodiments.
[0136] The processor 71 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 71 may also be a controller, microcontroller, microprocessor, or other data processing chip. The processor 71 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 71 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 71 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, the processor 71 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0137] The memory 70 may include one or more computer non-volatile storage media, which may be non-transitory. The memory 70 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the memory 70 may be an internal storage unit of an electronic device, such as a server hard drive. In other embodiments, the memory 70 may be an external storage device of an electronic device, such as a plug-in hard drive on a server, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Furthermore, the memory 70 may include both internal and external storage units of the electronic device. The memory 70 can be used not only to store application software and various types of data installed on the electronic device, such as code in the process of executing a speech signal processing method, but also to temporarily store data that has been output or will be output. In this embodiment, the memory 70 is used to store at least the following computer program 701, which, after being loaded and executed by the processor 71, can implement the relevant steps of the speech signal processing method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 70 may also include an operating system 702 and data 703, and the storage method may be temporary storage or permanent storage. The operating system 702 may include Windows, Unix, Linux, etc. The data 703 may include, but is not limited to, data corresponding to the results of speech signal processing.
[0138] In some embodiments, the aforementioned electronic device may further include a display screen 72, an input / output interface 73, a communication interface 74 (or network interface), a power supply 75, and a communication bus 76. The display screen 72 and input / output interface 73, such as a keyboard, are user interfaces. Exemplary user interfaces may also include standard wired interfaces, wireless interfaces, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a display screen or display unit, used to display information processed in the electronic device and to display a visual user interface. The communication interface 74 may exemplary include wired and / or wireless interfaces, such as a Wi-Fi interface, a Bluetooth interface, etc., typically used to establish communication connections between the electronic device and other electronic devices. The communication bus 76 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0139] Those skilled in the art will understand that Figure 7 The structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, such as sensors 77 that perform various functions.
[0140] The functions of each functional module of the electronic device described in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, which will not be repeated here.
[0141] As can be seen from the above, this embodiment can more comprehensively, accurately, and automatically evaluate the performance of speech enhancement algorithms, which is beneficial to improving the efficiency and accuracy of speech signal processing.
[0142] It is understood that if the speech signal processing method in the above embodiments is implemented as a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the related technology, 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 executes all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned storage medium includes, but is not limited to, various media capable of storing program code, such as: USB flash drives, mobile hard drives, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, registers, hard disks, multimedia cards, card-type memories (e.g., SD or DX memories), magnetic memories, removable disks, CD-ROMs, magnetic disks, or optical disks. Based on this, the present invention also provides a non-volatile storage medium storing a computer program, which, when executed by a processor, performs the steps of the speech signal processing method as described in any of the above embodiments.
[0143] It is understood that if the speech signal processing method in the above embodiments is implemented as a software functional unit and sold or used as an independent product, the computer software product may not need to be stored in a physical storage medium. For example, it can be directly transmitted to a computer or other device with information processing capabilities via a wired or wireless network to execute all or part of the steps of the methods in the various embodiments of the present invention. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the related technology, or all or part of the technical solution, can be embodied in the form of a software product. Based on this, the present invention also provides a computer program product storing a computer program, which, when executed by a processor, performs the steps of the speech signal processing method as described in any of the above embodiments.
[0144] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The hardware disclosed in the embodiments, including devices, electronic devices, and non-volatile storage media, is described simply because it corresponds to the methods disclosed in the embodiments; relevant details can be found in the method section.
[0145] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software 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 implementations should not be considered beyond the scope of this invention.
[0146] The above provides a detailed description of a speech signal processing method, apparatus, electronic device, and non-volatile storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of the present invention. It should be noted that, based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Several improvements and modifications can be made to the present invention without departing from its principles, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A speech signal processing method, characterized in that: include: Pre-build a voice environment matching recognition model; The speech environment matching recognition model is trained based on a speech enhancement signal training data set containing a variety of speech quality features, and is used to identify whether a target speech enhancement algorithm is suitable for the environment where the speech to be enhanced is located; Acquire target speech quality characteristics of the speech enhancement signal processed by the target speech enhancement algorithm; Acquire target environment characteristics of the target environment where the speech to be enhanced is located; Inputting the target voice quality feature and the target environment feature into the voice environment matching recognition model; Under the condition that the speech environment matching degree recognition model outputs an algorithm environment matching result, the target speech enhancement algorithm is called to perform speech enhancement processing on the speech to be enhanced.
2. The speech signal processing method according to claim 1, characterized in that: The step of obtaining a target speech quality feature of the speech enhancement signal processed by the target speech enhancement algorithm comprises: Acquire a speech enhancement signal processed by the target speech enhancement algorithm; Respectively calculating a speech quality perception evaluation value, a log likelihood ratio value, a signal-to-noise ratio value, and a short-time objective intelligibility value of the speech enhancement signal; Normalizing the speech quality perception evaluation value, the log likelihood ratio value, the signal-to-noise ratio value, and the short-time objective intelligibility value so that the speech quality perception evaluation value, the log likelihood ratio value, the signal-to-noise ratio value, and the short-time objective intelligibility value have the same scale; The normalized speech quality perception evaluation features, log-likelihood ratio features, signal-to-noise ratio features and short-time objective intelligibility features are used as target speech quality features.
3. The speech signal processing method according to claim 2, characterized in that: The step of inputting the target voice quality feature and the target environment feature into the voice environment matching recognition model comprises: Performing feature splicing on the log-likelihood ratio feature and the short-time objective intelligibility feature to obtain a speech quality auxiliary feature; Performing feature fusion on the voice quality auxiliary feature, the acoustic feature of the voice enhancement signal, the voice quality perception evaluation feature, and the signal-to-noise ratio feature to obtain a fused voice feature; The fused speech features and the target environment features are input into the speech environment matching recognition model.
4. The speech signal processing method according to claim 1, characterized in that: The step of obtaining the target environment feature of the target environment where the speech to be enhanced is located includes: Acquiring overall environment variables, pronunciation environment variables and quality environment variables of the target environment where the speech to be enhanced is located; The overall environment variable, the pronunciation environment variable and the quality environment variable are encoded to obtain corresponding numerical features as target environment features.
5. The speech signal processing method according to any one of claims 1 to 4, characterized in that: The process of constructing the voice environment matching recognition model includes: A speech environment matching recognition model framework is pre-built based on multiple decision trees; each decision tree is used as a base learner, including nodes, leaf nodes and splitting rules; the nodes represent the splitting points of the input features, the output values of the leaf nodes are the predicted values of the corresponding nodes, and the splitting rules are used to allocate features to different nodes; Determining the objective function of the speech environment matching recognition model according to the regularization term and the loss function used to measure the degree of difference between the model prediction value and the true value; Acquire a speech enhancement signal training data set; the speech enhancement signal training data set includes a plurality of speech enhancement samples, each speech enhancement sample includes a speech enhancement algorithm, speech quality characteristics, environmental characteristics and a label value; the label value is qualified speech or unqualified speech; Based on the environmental characteristics of each speech enhancement sample in the speech enhancement signal training data set, the speech enhancement samples in the same environment are divided into corresponding sub-speech enhancement signal training data sets; Using each sub-speech enhancement signal training data set, the speech environment matching degree recognition model framework is trained separately based on the objective function to obtain a plurality of trained sub-speech environment matching degree recognition models, and corresponding environment identification information is set for each sub-speech environment matching degree recognition model; The sub-speech environment matching degree recognition models are combined into a speech environment matching degree recognition model.
6. The speech signal processing method according to claim 5, characterized in that: The step of acquiring a speech enhancement signal training data set includes: Traversing each speech enhancement sample of the speech enhancement signal training data set in turn to determine whether there is a target speech enhancement sample with a missing value; If the missing value is a speech enhancement algorithm or an environmental feature, the target speech enhancement sample is deleted from the speech enhancement signal training data set; If the missing value is a label value or a speech quality feature, a corresponding label value or speech quality feature is generated according to the enhanced speech signal and the original speech signal, and the calculated label value or speech quality feature is added to the target speech enhancement sample.
7. The speech signal processing method according to claim 5, characterized in that: The voice environment matching recognition model framework is trained separately based on the objective function, including: If the prediction accuracy of the speech environment matching recognition model is less than the preset accuracy threshold, the maximum depth and learning rate of the tree of the current speech environment matching recognition model are increased, and the number of trees is reduced.
8. A speech signal processing device, characterized in that: include: Model pre-construction module, used to pre-construct a voice environment matching recognition model; The speech environment matching recognition model is trained based on a speech enhancement signal training data set containing a variety of speech quality features, and is used to identify whether a target speech enhancement algorithm is suitable for the environment where the speech to be enhanced is located; A feature acquisition module, used to acquire target speech quality features of the speech enhancement signal processed by the target speech enhancement algorithm; Acquire target environment characteristics of the target environment where the speech to be enhanced is located; A model processing module, used for inputting the target voice quality characteristics and the target environment characteristics into the voice environment matching degree recognition model; The speech processing module is used to call the target speech enhancement algorithm to perform speech enhancement processing on the speech to be enhanced under the condition that the speech environment matching degree recognition model outputs an algorithm environment matching result.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to implement the steps of the speech signal processing method according to any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the speech signal processing method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Audio recognition method and device, computer equipment and storage medium
CN119673149A
An audio recognition method and device, computer equipment and storage medium
CN119673149B
Evaluation method of sound repair system, electronic device, medium, and program product
CN122493832A
