Training method of speech quality detection model and speech quality detection method
By using QoS data and neural network structure in the voice quality detection model, it provides complete and simplified mode detection methods, solves the complexity of reference-free evaluation and real-time monitoring problems, and improves the accuracy and applicability of voice quality detection.
Patent Information
- Application Number
- CN202110202612.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-02-23
AI Technical Summary
There is a lack of effective reference-free voice quality evaluation methods in the existing technology, which makes it impossible to implement real-time voice quality monitoring in real-time voice communication systems. Moreover, the deep learning method is highly complex, cannot be processed on the mobile terminal, and the effect is unstable.
Proposes a training method for voice quality detection model, uses network quality of service (QoS) data to assist voice quality detection, provides full mode and simplified mode detection methods, switches modes according to device processing capabilities, and uses convolutional layers and gated loop units The neural network structure of layers and fully connected layers is combined with QoS data for voice quality assessment.
It improves the accuracy and robustness of voice quality detection, is suitable for terminal devices with different computing power, realizes voice quality monitoring in real-time voice communication systems, and reduces detection complexity and processing time.
Smart Images

Figure CN112967735B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of audio technology, and more specifically, to a training method and a training device for a speech quality detection model and a detection method and a detection device for speech quality. Background Art
[0002] At present, objective quality evaluation of audio signals can be divided into two methods, namely, full reference method and no-reference method. The full reference method takes the original lossless speech signal and the corresponding audio signal whose sound quality is reduced due to various possible reasons (i.e., the scored signal) as input signals, obtains a gap value by comparing the original reference signal and the corresponding scored signal, and gives the quality of the scored signal (i.e., score) according to the size of the gap. For example, PESQ and Polqa are full reference speech quality evaluation methods. The full reference method requires a reference signal to complete the scoring, and cannot be applied to the real-time speech quality monitoring task in the real-time voice communication system. In addition, the no-reference method refers to directly scoring the input audio signal without the need for the original speech reference. However, compared with the reference scoring method, there is currently no widely adopted mature no-reference audio quality scoring method in the industry. Summary of the invention
[0003] The present disclosure provides a training method and a training device for a speech quality detection model and a detection method and a detection device for speech quality, so as to at least solve the problems in the above-mentioned related technologies, or may not solve any of the above-mentioned problems.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for training a speech quality detection model is provided, comprising: obtaining a speech signal sample and a network service quality QoS data sample when the speech signal sample is transmitted through a network; inputting the audio features of the speech signal sample and the network QoS data sample into the speech quality detection model to obtain an estimated speech quality score; determining a loss function of the speech quality detection model based on the actual speech quality score of the speech signal sample and the estimated speech quality score; and training the speech quality detection model based on the determined loss function.
[0005] Optionally, the audio features of the speech signal samples may be obtained by performing a time-frequency transformation on the speech signal samples.
[0006] Optionally, the network QoS data may include at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
[0007] Optionally, the voice quality detection model may include a convolution layer, a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein, inputting the audio features of the voice signal samples and the network QoS data samples into the voice quality detection model to obtain an estimated voice quality score may include: inputting the audio features of the voice signal samples into the convolution layer to obtain a convolved feature vector; concatenating the convolved feature vector with the network QoS data sample to obtain a concatenated feature; inputting the concatenated feature into the first fully connected layer to obtain a transformation feature; inputting the transformation feature into the gated recurrent unit layer to obtain a time series feature; and inputting the time series feature into the second fully connected layer to obtain the estimated voice quality score.
[0008] Optionally, the actual speech quality score may be a speech quality score related to subjective perception of the speech signal of the pre-marked speech signal sample after being transmitted through the network under the condition of the corresponding network QoS data sample.
[0009] Optionally, determining the loss function of the speech quality detection model based on the actual speech quality score of the speech signal sample and the estimated speech quality score may include: calculating a mean square error between the actual speech quality score and the estimated speech quality score as the loss function.
[0010] According to a second aspect of an embodiment of the present disclosure, a method for detecting voice quality is provided, comprising: obtaining a voice signal to be detected and real-time network quality of service QoS data when the voice signal to be detected is transmitted through a network; inputting the audio features of the voice signal to be detected and the real-time network QoS data into a voice quality detection model trained according to the training method of the present disclosure, and obtaining a voice quality score for the voice signal to be detected.
[0011] Optionally, the audio feature of the speech signal to be detected can be obtained by performing time-frequency transformation on the speech signal to be detected.
[0012] Optionally, the real-time network QoS data may include at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, and a real-time network delay.
[0013] Optionally, the voice quality detection model may include a convolution layer, a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein, the audio features of the voice signal to be detected and the real-time network QoS data are input into a voice quality detection model trained according to the training method of the present invention to obtain a voice quality score for the voice signal to be detected, including: inputting the audio features of the voice signal to be detected into the convolution layer to obtain a convolved feature vector; concatenating the convolved feature vector with the real-time network QoS data to obtain a concatenated feature; inputting the concatenated feature into the first fully connected layer to obtain a transformation feature; inputting the transformation feature into the gated recurrent unit layer to obtain a time series feature; inputting the time series feature into the second fully connected layer to obtain the voice quality score for the voice signal to be detected.
[0014] According to a third aspect of an embodiment of the present disclosure, a method for training a speech quality detection model is provided, comprising: obtaining a network service quality QoS data sample when a speech signal sample is transmitted through a network; inputting the network QoS data sample into the speech quality detection model to obtain an estimated speech quality score; determining a loss function of the speech quality detection model based on a real speech quality score of the speech signal sample and the estimated speech quality score; and training the speech quality detection model based on the determined loss function.
[0015] Optionally, the network QoS data may include at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
[0016] Optionally, the voice quality detection model may include: a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein, inputting the network QoS data sample into the voice quality detection model to obtain an estimated voice quality score may include: inputting the network QoS data sample into the first fully connected layer to obtain transformation features; inputting the transformation features into the gated recurrent unit layer to obtain timing features; and inputting the timing features into the second fully connected layer to obtain the estimated voice quality score.
[0017] Optionally, the actual speech quality score may be a speech quality score related to subjective perception of the speech signal of the pre-marked speech signal sample after being transmitted through the network under the condition of the corresponding network QoS data sample.
[0018] Optionally, determining the loss function of the speech quality detection model based on the actual speech quality score of the speech signal sample and the estimated speech quality score may include: calculating a mean square error between the actual speech quality score and the estimated speech quality score as the loss function.
[0019] According to a fourth aspect of an embodiment of the present disclosure, a method for detecting voice quality is provided, comprising: obtaining real-time network quality of service QoS data when a voice signal to be detected is transmitted through a network; inputting the real-time network QoS data into a voice quality detection model trained according to the training method of the present disclosure, and obtaining a voice quality score for the voice signal to be detected.
[0020] Optionally, the real-time network QoS data may include at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, and a real-time network delay.
[0021] Optionally, the speech quality detection model may include: a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein, inputting the real-time network QoS data into the speech quality detection model to obtain an estimated speech quality score may include: inputting the real-time network QoS data into the first fully connected layer to obtain transformation features; inputting the transformation features into the gated recurrent unit layer to obtain timing features; inputting the timing features into the second fully connected layer to obtain a speech quality score for the speech signal to be detected.
[0022] According to a fifth aspect of an embodiment of the present disclosure, a method for detecting voice quality is provided, comprising: obtaining real-time processing load information of a voice signal to be detected when it is transmitted through a network; obtaining a comparison result between the real-time processing load information and a first load threshold; when the real-time processing load information is less than the first load threshold, executing a first mode detection method; when the real-time processing load information is greater than or equal to the first load threshold, executing a second mode detection method; wherein the first mode detection method includes a full mode detection method, and the second mode detection method includes a simplified mode detection method.
[0023] Optionally, the detection method may also include: obtaining a comparison result between the real-time processing load information and a second load threshold, wherein the second load threshold is greater than the first load threshold; wherein, when the real-time processing load information is less than the first load threshold, executing the first mode detection method, when the real-time processing load information is greater than or equal to the first load threshold and less than the second load threshold, executing the second mode detection method, and when the real-time processing load information is greater than the second load threshold, terminating the execution of the voice quality detection method.
[0024] Optionally, the processing load information may include time information spent on processing each voice frame of the voice signal to be detected when the voice signal to be detected is transmitted through the network; the first load threshold may be a preset first time threshold; and the second load threshold may be a preset second time threshold.
[0025] According to a sixth aspect of an embodiment of the present disclosure, a training device for a speech quality detection model is provided, comprising: an acquisition unit, configured to acquire speech signal samples and network service quality QoS data samples when the speech signal samples are transmitted through a network; an estimation unit, configured to input the audio features of the speech signal samples and the network QoS data samples into the speech quality detection model to obtain an estimated speech quality score; a calculation unit, configured to determine a loss function of the speech quality detection model based on the actual speech quality score of the speech signal samples and the estimated speech quality score; and a training unit, configured to train the speech quality detection model based on the determined loss function.
[0026] Optionally, the audio features of the speech signal samples may be obtained by performing a time-frequency transformation on the speech signal samples.
[0027] Optionally, the network QoS data may include at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
[0028] Optionally, the speech quality detection model may include a convolutional layer, a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein the estimation unit may be configured to: input the audio features of the speech signal sample into the convolutional layer to obtain a convolved feature vector; concatenate the convolved feature vector with the network QoS data sample to obtain a concatenated feature; input the concatenated feature into the first fully connected layer to obtain a transformed feature; input the transformed feature into the gated recurrent unit layer to obtain a time series feature; input the time series feature into the second fully connected layer to obtain the estimated speech quality score.
[0029] Optionally, the actual speech quality score may be a speech quality score related to subjective perception of the speech signal of the pre-marked speech signal sample after being transmitted through the network under the condition of the corresponding network QoS data sample.
[0030] Optionally, the calculation unit may be configured to: calculate a mean square error between the actual speech quality score and the estimated speech quality score as the loss function.
[0031] According to a seventh aspect of an embodiment of the present disclosure, a voice quality detection device is provided, comprising: an acquisition unit, configured to acquire a voice signal to be detected and real-time network service quality QoS data when the voice signal to be detected is transmitted through a network; an estimation unit, configured to input the audio features of the voice signal to be detected and the real-time network QoS data into a voice quality detection model trained according to the training method of the present disclosure, and obtain a voice quality score for the voice signal to be detected.
[0032] Optionally, the audio feature of the speech signal to be detected can be obtained by performing time-frequency transformation on the speech signal to be detected.
[0033] Optionally, the real-time network QoS data may include at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, and a real-time network delay.
[0034] Optionally, the speech quality detection model may include a convolutional layer, a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein the estimation unit may be configured to: input the audio features of the speech signal to be detected into the convolutional layer to obtain a convolved feature vector; concatenate the convolved feature vector with the real-time network QoS data to obtain a concatenated feature; input the concatenated feature into the first fully connected layer to obtain a transformed feature; input the transformed feature into the gated recurrent unit layer to obtain a time series feature; input the time series feature into the second fully connected layer to obtain the speech quality score for the speech signal to be detected.
[0035] According to an eighth aspect of an embodiment of the present disclosure, a training device for a speech quality detection model is provided, comprising: an acquisition unit, configured to acquire a network service quality QoS data sample when a speech signal sample is transmitted through a network; an estimation unit, configured to input the network QoS data sample into the speech quality detection model to obtain an estimated speech quality score; a calculation unit, configured to determine a loss function of the speech quality detection model based on a real speech quality score of the speech signal sample and the estimated speech quality score; and a training unit, configured to train the speech quality detection model based on the determined loss function.
[0036] Optionally, the network QoS data may include at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
[0037] Optionally, the voice quality detection model may include: a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein the estimation unit may be configured to: input the network QoS data sample into the first fully connected layer to obtain a transformation feature; input the transformation feature into the gated recurrent unit layer to obtain a timing feature; input the timing feature into the second fully connected layer to obtain the estimated voice quality score.
[0038] Optionally, the actual speech quality score may be a speech quality score related to subjective perception of the speech signal of the pre-marked speech signal sample after being transmitted through the network under the condition of the corresponding network QoS data sample.
[0039] Optionally, the calculation unit may be configured to: calculate a mean square error between the actual speech quality score and the estimated speech quality score as the loss function.
[0040] According to the ninth aspect of the embodiments of the present disclosure, a voice quality detection device is provided, characterized in that it includes: an acquisition unit, configured to acquire real-time network service quality QoS data when a voice signal to be detected is transmitted through a network; an estimation unit, configured to input the real-time network QoS data into a voice quality detection model trained according to the training method of the present disclosure, and obtain a voice quality score for the voice signal to be detected.
[0041] Optionally, the real-time network QoS data may include at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, and a real-time network delay.
[0042] Optionally, the speech quality detection model may include: a first fully connected layer, a gated recurrent unit layer and a second fully connected layer; wherein the estimation unit may be configured to: input the real-time network QoS data into the first fully connected layer to obtain transformation features; input the transformation features into the gated recurrent unit layer to obtain timing features; input the timing features into the second fully connected layer to obtain a speech quality score for the speech signal to be detected.
[0043] According to the tenth aspect of an embodiment of the present disclosure, a voice quality detection device is provided, comprising: a first acquisition unit, configured to acquire real-time processing load information of a voice signal to be detected when it is transmitted through a network; a second acquisition unit, configured to acquire a comparison result between the real-time processing load information and a first load threshold; a detection unit, configured to, when the real-time processing load information is less than the first load threshold, execute a first mode detection method, and when the real-time processing load information is greater than or equal to the first load threshold, execute a second mode detection method; wherein the first mode detection method includes a full mode detection method, and the second mode detection method includes a simplified mode detection method.
[0044] Optionally, the second acquisition unit can also be configured to: obtain a comparison result between the real-time processing load information and a second load threshold, wherein the second load threshold is greater than the first load threshold; wherein the detection unit can be configured to: when the real-time processing load information is less than the first load threshold, execute the first mode detection method; when the real-time processing load information is greater than or equal to the first load threshold and less than the second load threshold, execute the second mode detection method; when the real-time processing load information is greater than the second load threshold, terminate the execution of the voice quality detection method.
[0045] Optionally, the processing load information may include time information spent on processing each voice frame of the voice signal to be detected when the voice signal to be detected is transmitted through the network; the first load threshold may be a preset first time threshold; and the second load threshold may be a preset second time threshold.
[0046] According to an eleventh aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute a training method for a speech quality detection model or a method for detecting speech quality according to the present disclosure.
[0047] According to the twelfth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the training method of the speech quality detection model or the detection method of speech quality according to the present disclosure.
[0048] According to the thirteenth aspect of an embodiment of the present disclosure, there is provided a computer program product, comprising computer instructions, which, when executed by at least one processor, implement the training method of a speech quality detection model or the detection method of speech quality according to the present disclosure.
[0049] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0050] According to the training method and training device of the voice quality detection model and the voice quality detection method and detection device disclosed in the present invention, objective indicators such as QoS data can be used to participate in voice quality detection, which can improve the accuracy and robustness of the model in actual scenarios. In addition, a voice quality detection method for switching between a full mode and a simplified mode is provided, and the voice quality detection mode can be flexibly adjusted according to the processing capability of the current device. It can be applied to terminal devices with different computing powers, and can also be applied to voice quality monitoring tasks in real-time voice communication systems.
[0051] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0053] Figure 1 FIG. 4 is a conceptual diagram illustrating a voice quality detection method according to an exemplary embodiment of the present disclosure.
[0054] Figure 2 is a flowchart illustrating a training method of a speech quality detection model according to an exemplary embodiment of the present disclosure.
[0055] Figure 3 Detailed description is given of the structure of a speech quality detection model according to an exemplary embodiment of the present disclosure.
[0056] Figure 4 is a flowchart illustrating a method for detecting voice quality according to an exemplary embodiment of the present disclosure.
[0057] Figure 5 is a flowchart illustrating a method for training a speech quality detection model according to another exemplary embodiment of the present disclosure.
[0058] Figure 6 Detailed description is given of the structure of a speech quality detection model according to another exemplary embodiment of the present disclosure.
[0059] Figure 7 is a flowchart illustrating a method for detecting voice quality according to another exemplary embodiment of the present disclosure.
[0060] Figure 8 is a flowchart illustrating a method for detecting voice quality according to another exemplary embodiment of the present disclosure.
[0061] Fig. 9 is a flowchart illustrating a method for detecting voice quality according to an exemplary embodiment of the present disclosure.
[0062] Fig.10 is a block diagram illustrating a training apparatus for a speech quality detection model according to an exemplary embodiment of the present disclosure.
[0063] Fig.11 is a block diagram illustrating a voice quality detection apparatus according to an exemplary embodiment of the present disclosure.
[0064] Fig.12 is a block diagram illustrating a training apparatus for a speech quality detection model according to another exemplary embodiment of the present disclosure.
[0065] Fig.13 is a block diagram illustrating a voice quality detection apparatus according to another exemplary embodiment of the present disclosure.
[0066] Fig.14 is a block diagram illustrating a voice quality detection apparatus according to another exemplary embodiment of the present disclosure.
[0067] Fig.15 is a block diagram of an electronic device 1500 according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0068] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0069] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0070] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0071] Generally, objective quality evaluation of audio signals may include full reference methods and no-reference methods. The full reference method relies on a reference signal to complete the scoring, which has obvious defects and cannot be applied to real-time speech quality detection scenarios. The no-reference method can complete the scoring without relying on a reference signal and can be applied to real-time speech quality detection scenarios. However, the no-reference method can be implemented through a deep learning-based method, but there is currently no mature method that is widely adopted. For example, existing depth-based methods can predict the quality of audio signals transmitted through ultra-wideband voice communication networks, but they are too complex to be processed on mobile terminals, and the results are unstable and the predictions are inaccurate in actual usage scenarios.
[0072] In order to solve the above technical problems, the present disclosure proposes a novel method for detecting voice quality and a method for training a voice quality detection model. Specifically, the present disclosure proposes two modes of voice quality detection models, namely, a full mode voice quality detection model and a simplified mode voice quality detection model. In the full mode, objective indicators such as network quality of service (QoS) data can be used to assist in the voice quality detection of voice signals passing through the network; in the simplified mode, objective indicators such as QoS data can be used directly to perform voice quality detection. The use of objective indicators such as QoS data in voice quality detection can improve the accuracy and robustness of the model in actual scenarios. In addition, compared with the simplified mode that directly uses QoS data to perform voice quality detection, the evaluation effect of the full mode that uses QoS data to assist voice quality detection will be better than that of the simplified mode. The full mode is highly complex, and the computing power and processing time required are higher than those of the simplified mode. Therefore, the present disclosure proposes a voice quality detection method that can switch between the full mode and the simplified mode, and flexibly adjusts the voice quality detection mode according to the processing capability of the current device. The method can be applied to terminal devices with different computing powers, and can also be applied to voice quality monitoring tasks in real-time voice communication systems.
[0073] Next, we will refer to Figures 1 to 15 The training method and training device of the sound quality detection model and the detection method and detection device of the speech quality according to the present disclosure are described in detail.
[0074] Figure 1 is a conceptual diagram showing a method for detecting voice quality according to an exemplary embodiment of the present disclosure. Figure 1 (a) is a schematic diagram showing a method for detecting speech quality in full mode, Figure 1 (b) is a schematic diagram showing a method for detecting speech quality in a simplified mode, Figure 1 (c) Schematic diagram showing a speech quality detection method that can switch between full mode and simplified mode.
[0075] Reference Figure 1(a), in the complete mode, the feature extraction of the speech signal can be performed to obtain the audio feature, for example, the speech signal is subjected to a time-frequency transform (for example, short-time Fourier transform (STFT) or modified discrete cosine transform (MDCT) etc.) to obtain the amplitude spectrum and / or phase spectrum information as the audio feature. Subsequently, the audio feature of the speech signal can be used as input, and the network-related QoS data (QoS sequence) can be used as an auxiliary input to enter the speech quality detection model of the complete mode (which can be called the complete speech quality detection model), and the complete speech quality detection model outputs the estimated speech quality score. In this way, the complete speech quality detection model uses the audio feature of the speech signal and the network QoS data to estimate the speech quality score, and uses the pre-labeled subjective perception-related speech quality score to train the complete speech quality detection model.
[0076] Reference Figure 1 (b), in the simplified mode, the audio features of the speech signal are not used, and only the network QoS data (QoS sequence) is input into the simplified mode speech quality detection model (which may be referred to as the simplified speech quality detection model), and the estimated speech quality score can be output by the simplified speech quality detection model. In this way, the simplified speech quality detection model uses the network QoS data to estimate the speech quality score, and uses the pre-labeled subjective perception-related speech quality scores to train the simplified speech quality detection model.
[0077] Reference Figure 1 (c) It is possible to switch between full mode and simplified mode according to the processing capability of the current device. When the processing load of the current device is low or the processing capability allows, the voice signal and the network QoS data (QoS sequence) can be used to perform voice quality detection on the voice signal in full mode to obtain a voice quality score. When the processing load of the current device is high or the processing capability is poor (for example, a low-end mobile phone), the network QoS data can be reused to perform voice quality detection on the voice signal in simplified mode to obtain a voice quality score. In addition, if the processing load of the current device is too high or the processing capability is too poor to support voice quality detection or if performing voice quality detection will affect the execution of higher priority processing tasks or the user experience, the voice quality detection can be terminated.
[0078] Figure 2 is a flowchart illustrating a training method of a speech quality detection model according to an exemplary embodiment of the present disclosure. Figure 2 The training method shown is applicable to the full-mode speech quality detection model according to the present disclosure.
[0079] Reference Figure 2 In step 201, a voice signal sample and a network QoS data sample when the voice signal sample is transmitted through the network may be obtained.
[0080] According to an exemplary embodiment of the present disclosure, a speech signal sample may be obtained from a speech signal sample set used to train a speech quality detection model. Each speech signal sample may have a label with a pre-marked real speech quality score. For example, the real speech quality score may be a score of manual quality annotation, that is, a speech quality score related to the subjective perception of the speech signal after the speech signal sample is transmitted through the network under the network conditions of the corresponding network QoS data sample. Here, the speech quality score related to subjective perception may be a score given by the scorer based on the subjectively perceived speech quality when hearing the speech signal of the speech signal sample after it is transmitted through the network. For another example, the real speech quality score may be a score obtained by scoring based on the speech signal sample and the corresponding network QoS data sample using a complete reference evaluation system.
[0081] According to an exemplary embodiment of the present disclosure, a network QoS data sample may be a network QoS data sample collected when a voice signal sample is transmitted through a network. For example, a network QoS data sample may be QoS data recorded in an actual network transmission when a voice signal sample is transmitted through an actual network. For another example, a network QoS data sample may be real-time QoS data recorded when a voice signal sample is transmitted through a simulated network with simulated network loss. For example, the network QoS data may include, but is not limited to, at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, a network delay, and the like.
[0082] In step 202, the audio features of the speech signal samples and the network QoS data samples may be input into a speech quality detection model to obtain an estimated speech quality score. According to another exemplary embodiment of the present disclosure, feature extraction may also be performed on the network QoS data samples to obtain features of the network QoS data samples, and the audio features of the speech signal samples and the features of the network QoS data samples may be input into a speech quality detection model to obtain an estimated speech quality score.
[0083] According to an exemplary embodiment of the present disclosure, the audio features of a speech signal sample can be obtained by a method of transforming the speech signal from the time domain to the time-frequency domain through time-frequency transform (e.g., short-time Fourier transform (STFT) or modified discrete cosine transform (MDCT) etc.).
[0084] For example, the input speech signal S(t) is transformed using STFT to obtain a time-frequency domain (complex) signal S(n, k), which can be expressed as the following formula (1):
[0085] S(n,k)=STFT(S(t))=A(n,k)*e iθ(n,k) (1)
[0086] Wherein, A(n, k) may represent the signal amplitude, and θ(n, k) may represent the signal phase.
[0087] According to an exemplary embodiment of the present disclosure, the signal amplitude and / or signal phase obtained after the transformation may be used as an audio feature of the speech signal sample.
[0088] According to another exemplary embodiment of the present disclosure, the signal amplitude and / or signal phase obtained after the transformation can be processed to obtain other audio features (e.g., mel-frequency cepstrum coefficient (mfcc), mel spectrum (melspectrogram), audio spectrum contrast (spectral contrast), audio spectrum (spectrogram), etc.), as audio features of the speech signal sample. Since these audio features are processed by the signal after time-frequency conversion, the specific algorithm can be based on actual use needs. For example, the input speech signal S (t) can be transformed using MDCT to obtain a real number result, which can be expressed as the following formula (2):
[0089] S(n,k)=MDCT(S(t))=M(n,k) (2)
[0090] According to an exemplary embodiment of the present disclosure, the voice quality detection model may have, but is not limited to, a network structure combining a convolutional neural network (CNN) and a long short-term memory network (LSTM). For example, Figure 3 is a structural diagram showing a voice quality detection model according to an exemplary embodiment of the present disclosure. Figure 3, the voice quality detection model may include a convolution layer, a first fully connected layer (Dense), a gated recurrent unit layer and a second fully connected layer (Dense), wherein the convolution layer may be composed of, but not limited to, four two-dimensional convolution layers (2D Conv), and the gated recurrent unit layer may be composed of, but not limited to, two gated recurrent unit layers (GRU). According to an exemplary embodiment of the present disclosure, audio features (e.g., Mel spectrum) may be input into the convolution layer to obtain a feature vector after convolution. For example, the audio features may be input into the convolution layer in batches, and the batch size may be 16. The number of convolution kernels (Filters) of the four two-dimensional convolution layers in the convolution layer may be 64, 128, 128, 128, respectively, the convolution kernel size (Kernel) may be 3×3, the activation function (Activation) may be ELU, the batch normalization (Batch Normalization) may be Channel, the pooling size may be (2,2), (4,2), (4,2), (4,2), and the Dropout may be 0.1. Subsequently, the convolved feature vector output by the convolution layer can be connected in series with the network QoS data sample (or the feature of the network QoS data sample) to obtain a series feature, and the series feature is input into the first fully connected layer to obtain a transformation feature. For example, assuming that the audio feature has k frequency points per frame and the network QoS data sample has j parameters, the audio features of the k frequency points and the j parameters can be connected in series (concatenated) to obtain a series feature (concatenated feature) of dimension k+j. Subsequently, the transformation feature output by the first fully connected layer can be input into the gated recurrent unit layer to obtain a time series feature. For example, the two GRU layers can be two 32-unit GRUs, and the Dropout can be 0.3. Subsequently, the time series feature output by the gated recurrent unit layer can be input into the second fully connected layer to obtain an estimated speech quality score. For example, the second fully connected layer can be a 32-unit fully connected layer, and the activation function (Activation) can be Softmax. In addition, when training the speech quality detection model, the loss function can be set to the mean square error between the true value and the estimated value, the optimizer selects Adam, the learning rate can be set to 0.0001, and the Patience can be set to 10.
[0091] Of course, the speech quality detection model disclosed in the present invention is not limited to the above-mentioned model, and any possible model can be used to implement the speech quality detection of the full mode.
[0092] Return to reference Figure 2 In step 203, a loss function of a speech quality detection model may be determined based on the actual speech quality score and the estimated speech quality score of the speech signal sample.
[0093] According to an exemplary embodiment of the present disclosure, the actual speech quality score of the speech signal sample may be a score of manual quality annotation and / or a score scored using a complete reference evaluation system. Here, the score of manual quality annotation may refer to a speech quality score related to the subjective perception of the speech signal after the speech signal sample is transmitted through the network under the network conditions of the corresponding network QoS data sample. The score scored using the complete reference evaluation system may be a score obtained by scoring based on the speech signal sample and the corresponding network QoS data sample using the complete reference evaluation system.
[0094] According to an exemplary embodiment of the present disclosure, the mean square error (MSE) of the real speech quality score and the estimated speech quality score can be calculated as a loss function. When batch training, multiple estimated speech quality scores can be obtained, and therefore, the mean square error between the average of the multiple estimated speech quality scores and the average of the corresponding multiple real speech quality scores can be calculated as a loss function.
[0095] In step 204, the speech quality detection model may be trained based on the determined loss function. The parameters of the speech quality detection model may be adjusted based on the determined loss function to train the speech quality detection model.
[0096] Figure 4 is a flow chart showing a method for detecting voice quality according to an exemplary embodiment of the present disclosure. Figure 4 The illustrated method for detecting speech quality is performed based on a speech quality detection model in a full mode according to the present disclosure.
[0097] Reference Figure 4 In step 401, a voice signal to be detected and real-time network QoS data when the voice signal to be detected is transmitted through the network may be obtained. For example, when it is necessary to detect the voice transmission quality under the target network environment, the voice signal transmitted through the target network and the real-time network QoS data when the voice signal is transmitted through the target network may be obtained. For example, the real-time network QoS data may include, but is not limited to, at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, a real-time network delay, and the like.
[0098] In step 402, the audio characteristics of the voice signal to be detected and the real-time network QoS data can be input into the Figure 2 The training method trains a voice quality detection model to obtain a voice quality score for a voice signal to be detected. According to another exemplary embodiment of the present disclosure, feature extraction can also be performed on real-time network QoS data to obtain features of the real-time network QoS data, and the audio features of the voice signal sample and the features of the real-time network QoS data are input into the voice quality detection model to obtain an estimated voice quality score.
[0099] According to an exemplary embodiment of the present disclosure, the audio features of the speech signal to be detected can be obtained by performing a time-frequency transformation on the speech signal to be detected. The method of obtaining the audio features of the speech signal to be detected is the same or similar to the method of obtaining the audio features of the speech signal sample described above, and therefore, it will not be repeated here.
[0100] According to an exemplary embodiment of the present disclosure, the voice quality detection model may include a convolution layer, a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer. The specific description of the voice quality detection model may be as described above and will not be repeated here. For example, the audio features of the voice signal to be detected may be input into the convolution layer to obtain a feature vector after convolution; the feature vector after convolution is connected in series with the real-time network QoS data (or the features of the real-time network QoS data) to obtain a series feature; the series feature is input into the first fully connected layer to obtain a transformation feature; the transformation feature is input into the gated recurrent unit layer to obtain a timing feature; the timing feature is input into the second fully connected layer to obtain a voice quality score for the voice signal to be detected.
[0101] Figure 5 is a flowchart illustrating a method for training a speech quality detection model according to another exemplary embodiment of the present disclosure. Figure 5 The training method shown is applicable to the speech quality detection model in the simplified mode according to the present disclosure.
[0102] Reference Figure 5 In step 501, a network QoS data sample may be obtained when the voice signal sample is transmitted through the network. Here, the description of the voice signal sample and the network QoS data sample is as described above, and will not be repeated here.
[0103] In step 502, the network QoS data sample may be input into a voice quality detection model to obtain an estimated voice quality score. According to another exemplary embodiment of the present disclosure, feature extraction may also be performed on the network QoS data sample, and the proposed feature may be input into a voice quality detection model to obtain an estimated voice quality score.
[0104] According to an exemplary embodiment of the present disclosure, the voice quality detection model may have, but is not limited to, a network structure of a long short-term memory network (LSTM). For example, Figure 6 FIG. 2 is a structural diagram showing a voice quality detection model according to another exemplary embodiment of the present disclosure. Figure 6, the voice quality detection model may include a first fully connected layer (Dense), a gated recurrent unit layer (GRU) and a second fully connected layer (Dense), wherein the gated recurrent unit layer may be composed of, but not limited to, two gated recurrent unit layers (GRU). According to an exemplary embodiment of the present disclosure, a network QoS data sample (or a feature extracted from a network QoS data sample) may be input into the first fully connected layer to obtain a transformed feature. For example, the first fully connected layer may be a fully connected layer of 32 units. Subsequently, the transformed features output by the first fully connected layer may be input into the gated recurrent unit layer to obtain a temporal feature. For example, the two GRU layers may be two GRUs of 32 units, and the Dropout may be 0.3. Subsequently, the temporal features output by the gated recurrent unit layer may be input into the second fully connected layer to obtain an estimated voice quality score. For example, the second fully connected layer may be a fully connected layer of 32 units, and the activation function (Activation) may be Softmax. In addition, when training the speech quality detection model, the loss function can be set to the mean square error between the true value and the estimated value, the optimizer selects Adam, the learning rate can be set to 0.0001, and the Patience can be set to 10.
[0105] Of course, the speech quality detection model disclosed in the present invention is not limited to the above-mentioned model, and any possible model may be used to implement the speech quality detection in a simplified mode.
[0106] Return to reference Figure 5 In step 503, a loss function of a speech quality detection model may be determined based on the actual speech quality score and the estimated speech quality score of the speech signal sample.
[0107] According to an exemplary embodiment of the present disclosure, the actual speech quality score of the speech signal sample may be as described above, which will not be described in detail herein.
[0108] According to an exemplary embodiment of the present disclosure, the mean square error (MSE) of the real speech quality score and the estimated speech quality score can be calculated as a loss function. When batch training, multiple estimated speech quality scores can be obtained, and therefore, the mean square error between the average of the multiple estimated speech quality scores and the average of the corresponding multiple real speech quality scores can be calculated as a loss function.
[0109] In step 504, the speech quality detection model may be trained based on the determined loss function. Parameters of the speech quality detection model may be adjusted based on the determined loss function to train the speech quality detection model.
[0110] Figure 7 FIG. 4 is a flow chart showing a method for detecting voice quality according to another exemplary embodiment of the present disclosure. Figure 7The illustrated method for detecting speech quality is performed based on a speech quality detection model in a simplified mode according to the present disclosure.
[0111] Reference Figure 7 In step 701, real-time network QoS data when the voice signal to be detected is transmitted through the network can be obtained. For example, when it is necessary to detect the voice transmission quality under the target network environment, real-time network QoS data when the voice signal is transmitted through the target network can be obtained. For example, the real-time network QoS data may include, but is not limited to, at least one of real-time network jitter rate, real-time network packet loss rate, real-time network uplink and downlink bandwidth, real-time network delay, etc.
[0112] In step 702, the audio characteristics of the voice signal to be detected and the real-time network QoS data can be input into the Figure 5 The training method trains a voice quality detection model to obtain a voice quality score for a voice signal to be detected. According to another exemplary embodiment of the present disclosure, feature extraction can also be performed on real-time network QoS data to obtain features of the real-time network QoS data, and the features of the real-time network QoS data are input into the voice quality detection model to obtain an estimated voice quality score.
[0113] According to an exemplary embodiment of the present disclosure, the audio features of the speech signal to be detected can be obtained by performing a time-frequency transformation on the speech signal to be detected. The method of obtaining the audio features of the speech signal to be detected is the same or similar to the method of obtaining the audio features of the speech signal sample described above, and therefore, it will not be repeated here.
[0114] According to an exemplary embodiment of the present disclosure, the voice quality detection model may include a first fully connected layer, a gated cyclic unit layer, and a second fully connected layer. The specific description of the voice quality detection model may be as described above and will not be repeated here. For example, real-time network QoS data (or features extracted from real-time network QoS data) may be input into the first fully connected layer to obtain transformation features; the transformation features may be input into the gated cyclic unit layer to obtain timing features; the timing features may be input into the second fully connected layer to obtain a voice quality score for the voice signal to be detected.
[0115] Figure 8 is a flowchart illustrating a method for detecting voice quality according to another exemplary embodiment of the present disclosure.
[0116] Reference Figure 8In step 801, real-time processing load information when the voice signal to be detected is transmitted through the network may be obtained. Here, the real-time processing load information may refer to the real-time processing load information of the terminal device that receives the voice signal to be detected through the network transmission. For example, the processing load information may refer to the time length information (e.g., 5ms) spent by the terminal device to perform processing on each voice frame of the voice signal to be detected when the voice signal to be detected is transmitted through the network.
[0117] In step 802, a comparison result between the real-time processing load information and the first load threshold may be obtained. When the processing load information is information about the duration of processing each speech frame, the first load threshold may be a preset first duration threshold (eg, 10 ms).
[0118] In step 803, when the real-time processing load information is less than the first load threshold, the detection method of the first mode may be executed. In step 804, when the real-time processing load information is greater than or equal to the first load threshold, the detection method of the second mode may be executed. Here, the first mode may refer to the full mode, that is, the detection method of the first mode may refer to the detection method executed based on the voice quality detection model of the full mode according to the present disclosure. The second mode may refer to the simplified mode, that is, the detection method of the second mode may refer to the detection method executed based on the voice quality detection model of the simplified mode according to the present disclosure.
[0119] For example, when the first load threshold is preset to 10ms, when the real-time frame processing duration is 5ms, that is, the real-time frame processing duration < the first load threshold, the full mode detection method can be executed; when the real-time frame processing duration is 12ms, that is, the real-time frame processing duration > the first load threshold, the simplified mode detection method can be executed.
[0120] In addition, when the terminal device is processing in real time, it is assumed that there are two tasks, one is real-time speech noise reduction, and the other is real-time sound quality scoring. The priority of real-time speech noise reduction is higher than that of real-time sound quality scoring. Therefore, it is calculated whether the time of a speech noise reduction inference is greater than a threshold (a threshold that affects real-time speech noise reduction). If it is greater than this threshold for n consecutive times, the real-time sound quality scoring is turned off. Therefore, according to the exemplary embodiment of the present disclosure, the voice quality detection method may also include: obtaining a comparison result of real-time processing load information and a second load threshold, wherein the second load threshold is greater than the first load threshold. In the case where the processing load information is the time length information spent on processing each voice frame, the first load threshold may be a preset first time length threshold (for example, 10ms), and the second load threshold may be a preset second time length threshold (for example, 15ms). For example, Fig. 9 is a flow chart showing a method for detecting voice quality according to an exemplary embodiment of the present disclosure. Fig. 9 , Fig. 9Step 901 and Figure 8 The steps of step 902 and step 903 are the same as step 801 and are not described here again. In step 902, the comparison result of the real-time processing load information and the first load threshold and the second load threshold may be obtained. In step 903, when the real-time processing load information is less than the first load threshold, the detection method of the first mode may be executed. In step 904, when the real-time processing load information is greater than or equal to the first load threshold and less than the second load threshold, the detection method of the second mode is executed. In step 905, when the real-time processing load information is greater than the second load threshold, the execution of the voice quality detection method is terminated.
[0121] For example, when the first load threshold is preset to 10ms and the second load threshold is preset to 15ms, when the real-time frame processing duration is 5ms, that is, the real-time frame processing duration < the first load threshold, the full mode detection method can be executed; when the real-time frame processing duration is 12ms, that is, the first load threshold < the real-time frame processing duration < the second load threshold, the simplified mode detection method can be executed; when the real-time frame processing duration is 18ms, that is, the real-time frame processing duration > the second load threshold, the voice quality detection can be terminated.
[0122] Fig.10 is a block diagram illustrating a training apparatus for a speech quality detection model according to an exemplary embodiment of the present disclosure. Fig.10 The training apparatus shown is suitable for a full-mode speech quality detection model according to the present disclosure.
[0123] Reference Fig.10 According to an exemplary embodiment of the present disclosure, a training device 1000 for a speech quality detection model may include an acquisition unit 1001 , an estimation unit 1002 , a calculation unit 1003 , and a training unit 1104 .
[0124] The acquisition unit 1001 may acquire a voice signal sample and a network QoS data sample when the voice signal sample is transmitted through a network.
[0125] According to an exemplary embodiment of the present disclosure, a speech signal sample may be obtained from a speech signal sample set used to train a speech quality detection model. Each speech signal sample may have a label with a pre-marked real speech quality score. For example, the real speech quality score may be a score of manual quality annotation, that is, a speech quality score related to the subjective perception of the speech signal after the speech signal sample is transmitted through the network under the network conditions of the corresponding network QoS data sample. Here, the speech quality score related to subjective perception may be a score given by the scorer based on the subjectively perceived speech quality when hearing the speech signal of the speech signal sample after it is transmitted through the network. For another example, the real speech quality score may be a score obtained by scoring based on the speech signal sample and the corresponding network QoS data sample using a complete reference evaluation system.
[0126] According to an exemplary embodiment of the present disclosure, a network QoS data sample may be a network QoS data sample collected when a voice signal sample is transmitted through a network. For example, a network QoS data sample may be QoS data recorded in an actual network transmission when a voice signal sample is transmitted through an actual network. For another example, a network QoS data sample may be real-time QoS data recorded when a voice signal sample is transmitted through a simulated network with simulated network loss. For example, the network QoS data may include, but is not limited to, at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, a network delay, and the like.
[0127] The estimation unit 1002 may input the audio features of the speech signal sample and the network QoS data sample into the speech quality detection model to obtain an estimated speech quality score. According to another exemplary embodiment of the present disclosure, feature extraction may also be performed on the network QoS data sample to obtain features of the network QoS data sample, and the estimation unit 1002 may input the audio features of the speech signal sample and the features of the network QoS data sample into the speech quality detection model to obtain an estimated speech quality score.
[0128] According to an exemplary embodiment of the present disclosure, the audio features of a speech signal sample can be obtained by a method of transforming the speech signal from the time domain to the time-frequency domain through time-frequency transform (e.g., short-time Fourier transform (STFT) or modified discrete cosine transform (MDCT) etc.).
[0129] According to an exemplary embodiment of the present disclosure, the signal amplitude and / or signal phase obtained after the transformation may be used as an audio feature of the speech signal sample.
[0130] According to another exemplary embodiment of the present disclosure, the signal amplitude and / or signal phase obtained after the transformation can be processed to obtain other audio features (e.g., mel-frequency cepstrum coefficient (mfcc), mel spectrum, audio spectrum contrast, audio spectrum, etc.) as audio features of the speech signal sample. Since these audio features are processed by the signal after time-frequency conversion, the specific algorithm can be based on actual use needs.
[0131] According to an exemplary embodiment of the present disclosure, the voice quality detection model may have, but is not limited to, a network structure combining a convolutional neural network (CNN) and a long short-term memory network (LSTM), for example, Figure 3 The voice quality detection model shown. The voice quality detection model may include a convolution layer, a first fully connected layer (Dense), a gated recurrent unit layer, and a second fully connected layer (Dense), wherein the convolution layer may be composed of, but not limited to, four two-dimensional convolution layers (2D Conv), and the gated recurrent unit layer may be composed of, but not limited to, two gated recurrent unit layers (GRU). According to an exemplary embodiment of the present disclosure, an audio feature (e.g., a Mel spectrum) may be input into a convolution layer to obtain a convolutional feature vector. Subsequently, the convolutional feature vector output by the convolution layer may be connected in series with a network QoS data sample (or a feature of a network QoS data sample) to obtain a series feature, and the series feature may be input into the first fully connected layer to obtain a transformation feature. Subsequently, the transformation feature output by the first fully connected layer may be input into the gated recurrent unit layer to obtain a time series feature. Subsequently, the time series feature output by the gated recurrent unit layer may be input into the second fully connected layer to obtain an estimated voice quality score.
[0132] The calculation unit 1003 may determine a loss function of the speech quality detection model based on the actual speech quality score and the estimated speech quality score of the speech signal sample.
[0133] According to an exemplary embodiment of the present disclosure, the actual speech quality score of the speech signal sample may be a score of manual quality annotation and / or a score scored using a complete reference evaluation system. Here, the score of manual quality annotation may refer to a speech quality score related to the subjective perception of the speech signal after the speech signal sample is transmitted through the network under the network conditions of the corresponding network QoS data sample. The score scored using the complete reference evaluation system may be a score obtained by scoring based on the speech signal sample and the corresponding network QoS data sample using the complete reference evaluation system.
[0134] According to an exemplary embodiment of the present disclosure, the calculation unit 1003 may calculate the mean square error (MSE) of the real speech quality score and the estimated speech quality score as a loss function. When batch training is performed, a plurality of estimated speech quality scores may be obtained, and therefore, the calculation unit 1003 may calculate the mean square error between the average of the plurality of estimated speech quality scores and the average of the corresponding plurality of real speech quality scores as a loss function.
[0135] The training unit 1004 may train the speech quality detection model based on the determined loss function. The training unit 1004 may adjust the parameters of the speech quality detection model based on the determined loss function to train the speech quality detection model.
[0136] Fig.11 is a block diagram showing a device for detecting voice quality according to an exemplary embodiment of the present disclosure. Fig.11 The illustrated speech quality detection apparatus operates based on a full-mode speech quality detection model according to the present disclosure.
[0137] Reference Fig.11 According to an exemplary embodiment of the present disclosure, a voice quality detection device 1100 may include an acquisition unit 1101 and an estimation unit 1102 .
[0138] The acquisition unit 1101 may acquire the voice signal to be detected and the real-time network service quality QoS data when the voice signal to be detected is transmitted through the network. For example, when it is necessary to detect the voice transmission quality in the target network environment, the acquisition unit 1101 may acquire the voice signal transmitted through the target network and the real-time network QoS data when the voice signal is transmitted through the target network. For example, the real-time network QoS data may include, but is not limited to, at least one of the real-time network jitter rate, the real-time network packet loss rate, the real-time network uplink and downlink bandwidth, the real-time network delay, etc.
[0139] The estimation unit 1102 can input the audio characteristics of the speech signal to be detected and the real-time network QoS data into Figure 2 The training method trains a voice quality detection model to obtain a voice quality score for a voice signal to be detected. According to another exemplary embodiment of the present disclosure, feature extraction can also be performed on real-time network QoS data to obtain features of the real-time network QoS data, and the estimation unit 1102 inputs the audio features of the voice signal sample and the features of the real-time network QoS data into the voice quality detection model to obtain an estimated voice quality score.
[0140] According to an exemplary embodiment of the present disclosure, the audio features of the speech signal to be detected can be obtained by performing a time-frequency transformation on the speech signal to be detected. The method of obtaining the audio features of the speech signal to be detected is the same or similar to the method of obtaining the audio features of the speech signal sample described above, and therefore, it will not be repeated here.
[0141] According to an exemplary embodiment of the present disclosure, the voice quality detection model may include a convolution layer, a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer. The specific description of the voice quality detection model may be as described above and will not be repeated here. For example, the estimation unit 1102 may input the audio features of the voice signal to be detected into the convolution layer to obtain a feature vector after convolution; concatenate the feature vector after convolution with the real-time network QoS data (or the features of the real-time network QoS data) to obtain a series feature; input the series feature into the first fully connected layer to obtain a transformation feature; input the transformation feature into the gated recurrent unit layer to obtain a timing feature; input the timing feature into the second fully connected layer to obtain a voice quality score for the voice signal to be detected.
[0142] Fig.12 is a block diagram illustrating a training apparatus for a speech quality detection model according to another exemplary embodiment of the present disclosure. Fig.12 The training apparatus shown is suitable for a speech quality detection model in a simplified mode according to the present disclosure.
[0143] Reference Fig.12 According to another exemplary embodiment of the present disclosure, a training device 1200 for a speech quality detection model may include an acquisition unit 1201 , an estimation unit 1202 , a calculation unit 1203 , and a training unit 1204 .
[0144] The acquisition unit 1201 may acquire a network quality of service QoS data sample when the voice signal sample is transmitted through the network. Here, the description of the voice signal sample and the network QoS data sample is as described above, and will not be repeated here.
[0145] The estimation unit 1202 may input the network QoS data sample into the voice quality detection model to obtain an estimated voice quality score. According to another exemplary embodiment of the present disclosure, feature extraction may also be performed on the network QoS data sample, and the estimation unit 1202 inputs the proposed feature into the voice quality detection model to obtain an estimated voice quality score.
[0146] According to an exemplary embodiment of the present disclosure, the voice quality detection model may have, but is not limited to, a network structure of a long short-term memory network (LSTM), such as Figure 6The voice quality detection model shown. The voice quality detection model may include a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer, wherein the gated recurrent unit layer may be composed of, but not limited to, two gated recurrent unit layers (GRU). According to an exemplary embodiment of the present disclosure, the estimation unit 1202 may input the network QoS data sample (or the features extracted from the network QoS data sample) into the first fully connected layer to obtain the transformation features. Subsequently, the transformation features output by the first fully connected layer may be input into the gated recurrent unit layer to obtain the timing features. Subsequently, the timing features output by the gated recurrent unit layer may be input into the second fully connected layer to obtain an estimated voice quality score. In addition, when training the voice quality detection model, the loss function may be set to the mean square error between the true value and the estimated value, the optimizer may select Adam, the learning rate may be set to 0.0001, and the Patience may be set to 10.
[0147] Of course, the speech quality detection model disclosed in the present invention is not limited to the above-mentioned model, and any possible model may be used to implement the speech quality detection in a simplified mode.
[0148] The calculation unit 1203 may determine a loss function of the speech quality detection model based on the actual speech quality score and the estimated speech quality score of the speech signal sample.
[0149] According to an exemplary embodiment of the present disclosure, the actual speech quality score of the speech signal sample may be as described above, which will not be described in detail herein.
[0150] According to an exemplary embodiment of the present disclosure, the calculation unit 1203 may calculate the mean square error (MSE) of the real speech quality score and the estimated speech quality score as a loss function. When batch training is performed, a plurality of estimated speech quality scores may be obtained, and therefore, the mean square error between the average of the plurality of estimated speech quality scores and the average of the corresponding plurality of real speech quality scores may be calculated as a loss function.
[0151] The training unit 1204 may train the speech quality detection model based on the determined loss function. The parameters of the speech quality detection model may be adjusted based on the determined loss function to train the speech quality detection model.
[0152] Fig.13 is a block diagram showing a device for detecting voice quality according to another exemplary embodiment of the present disclosure. Fig.13 The illustrated speech quality detection apparatus operates based on a speech quality detection model in a simplified mode according to the present disclosure.
[0153] Reference Fig.13 According to an exemplary embodiment of the present disclosure, a voice quality detection apparatus may include an acquisition unit 1301 and an estimation unit 1302 .
[0154] The acquisition unit 1301 may acquire real-time network service quality QoS data when the voice signal to be detected is transmitted through the network. For example, when it is necessary to detect the voice transmission quality under the target network environment, the acquisition unit 1301 may acquire real-time network QoS data when the voice signal is transmitted through the target network. For example, the real-time network QoS data may include, but is not limited to, at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, a real-time network delay, and the like.
[0155] The estimation unit 1302 can input the audio characteristics of the voice signal to be detected and the real-time network QoS data into Figure 5 The training method trains a voice quality detection model to obtain a voice quality score for a voice signal to be detected. According to another exemplary embodiment of the present disclosure, feature extraction can also be performed on real-time network QoS data to obtain features of the real-time network QoS data, and the estimation unit 1302 inputs the features of the real-time network QoS data into the voice quality detection model to obtain an estimated voice quality score.
[0156] According to an exemplary embodiment of the present disclosure, the audio features of the speech signal to be detected can be obtained by performing a time-frequency transformation on the speech signal to be detected. The method of obtaining the audio features of the speech signal to be detected is the same or similar to the method of obtaining the audio features of the speech signal sample described above, and therefore, it will not be repeated here.
[0157] According to an exemplary embodiment of the present disclosure, the voice quality detection model may include a first fully connected layer, a gated cyclic unit layer, and a second fully connected layer. The specific description of the voice quality detection model may be as described above and will not be repeated here. For example, real-time network QoS data (or features extracted from real-time network QoS data) may be input into the first fully connected layer to obtain transformation features; the transformation features may be input into the gated cyclic unit layer to obtain timing features; the timing features may be input into the second fully connected layer to obtain a voice quality score for the voice signal to be detected.
[0158] Fig.14 is a block diagram illustrating a voice quality detection apparatus according to another exemplary embodiment of the present disclosure.
[0159] Reference Fig.14 According to another exemplary embodiment of the present disclosure, a voice quality detection device 1400 may include a first acquisition unit 1401 , a second acquisition unit 1402 , and a detection unit 1403 .
[0160] The first acquisition unit 1401 may acquire real-time processing load information when the voice signal to be detected is transmitted through the network. Here, the real-time processing load information may refer to the real-time processing load information of the terminal device that receives the voice signal to be detected through the network transmission. For example, the processing load information may refer to the time length information spent by the terminal device to perform processing on each voice frame of the voice signal to be detected when the voice signal to be detected is transmitted through the network.
[0161] The second acquisition unit 1402 may acquire a comparison result between the real-time processing load information and the first load threshold. When the processing load information is information about the duration of processing each voice frame, the first load threshold may be a preset first duration threshold.
[0162] In the case where the real-time processing load information is less than the first load threshold, the detection unit 1403 may execute the detection method of the first mode. In the case where the real-time processing load information is greater than or equal to the first load threshold, the detection unit 1403 may execute the detection method of the second mode. Here, the first mode may refer to the full mode, that is, the detection method of the first mode may refer to the detection method performed based on the voice quality detection model of the full mode according to the present disclosure. The second mode may refer to the simplified mode, that is, the detection method of the second mode may refer to the detection method performed based on the voice quality detection model of the simplified mode according to the present disclosure.
[0163] In addition, when the terminal device is processing in real time, it is assumed that there are two tasks, one is real-time speech noise reduction and the other is real-time sound quality scoring. The priority of real-time speech noise reduction is higher than that of real-time sound quality scoring. Therefore, it is calculated whether the time of a speech noise reduction inference is greater than a threshold (a threshold affecting real-time speech noise reduction). If it is greater than this threshold for n consecutive times, the real-time sound quality scoring is turned off. Therefore, according to another exemplary embodiment of the present disclosure, the second acquisition unit 1402 can also obtain a comparison result of the real-time processing load information and the second load threshold, wherein the second load threshold is greater than the first load threshold. In the case where the processing load information is the time length information spent on processing each voice frame, the first load threshold may be a preset first time length threshold, and the second load threshold may be a preset second time length threshold. In the case where the real-time processing load information is less than the first load threshold, the detection unit 1403 may execute the detection method of the first mode. In the case where the real-time processing load information is greater than or equal to the first load threshold and less than the second load threshold, the detection unit 1403 may execute the detection method of the second mode. When the real-time processing load information is greater than the second load threshold, the detection unit 1403 terminates the execution of the voice quality detection method, that is, the detection unit 1403 terminates the operation and no longer performs voice quality detection.
[0164] Fig.15 is a block diagram of an electronic device 1500 according to an exemplary embodiment of the present disclosure.
[0165] Reference Fig.15 The electronic device 1500 includes at least one memory 1501 and at least one processor 1502, wherein the at least one memory 1501 stores a set of computer executable instructions. When the computer executable instruction set is executed by the at least one processor 1502, a training method for a speech enhancement model or a speech enhancement method according to an exemplary embodiment of the present disclosure is executed.
[0166] As an example, the electronic device 1500 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the electronic device 1500 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above-mentioned instructions (or instruction sets) individually or in combination. The electronic device 1500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0167] In the electronic device 1500, the processor 1502 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0168] The processor 1502 may execute instructions or codes stored in the memory 1501, wherein the memory 1501 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.
[0169] The memory 1501 may be integrated with the processor 1502, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 1501 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 1501 and the processor 1502 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 1502 can read files stored in the memory.
[0170] In addition, the electronic device 1500 may further include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 1500 may be connected to each other via a bus and / or a network.
[0171] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium may also be provided, wherein when the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the training method of the speech quality detection model or the detection method of speech quality according to the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0172] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided, including computer instructions, which may be executed by at least one processor to complete the training method of the speech quality detection model or the detection method of the speech quality according to the exemplary embodiment of the present disclosure.
[0173] According to the training method and training device of the voice quality detection model and the voice quality detection method and detection device disclosed in the present invention, objective indicators such as QoS data can be used to participate in voice quality detection, which can improve the accuracy and robustness of the model in actual scenarios. In addition, a voice quality detection method for switching between a full mode and a simplified mode is provided, and the voice quality detection mode can be flexibly adjusted according to the processing capability of the current device. It can be applied to terminal devices with different computing powers, and can also be applied to voice quality monitoring tasks in real-time voice communication systems.
[0174] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0175] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for detecting voice quality, characterized in that: include: Acquire real-time processing load information when the voice signal to be detected is transmitted through the network, wherein the real-time processing load information includes time length information spent on processing each voice frame of the voice signal to be detected when the voice signal to be detected is transmitted through the network; Obtaining a comparison result between the real-time processing load information and a first load threshold, wherein the first load threshold is a preset first duration threshold; When the real-time processing load information is less than a first load threshold, executing a detection method of a first mode; When the real-time processing load information is greater than or equal to the first load threshold, executing the detection method of the second mode; The detection method of the first mode includes: Acquire a voice signal to be detected and real-time network quality of service (QoS) data when the voice signal to be detected is transmitted through a network; Inputting the audio features of the voice signal to be detected and the real-time network QoS data into a complete voice quality detection model to obtain a voice quality score for the voice signal to be detected; The detection method of the second mode includes: Obtain real-time network quality of service (QoS) data when the voice signal to be detected is transmitted through the network; The real-time network QoS data is input into a simplified voice quality detection model to obtain a voice quality score for the voice signal to be detected.
2. The detection method according to claim 1, characterized in that Also includes: Obtaining a comparison result between the real-time processing load information and a second load threshold, wherein the second load threshold is greater than the first load threshold; Wherein, when the real-time processing load information is less than a first load threshold, a detection method of a first mode is executed, When the real-time processing load information is greater than or equal to the first load threshold and less than the second load threshold, the detection method of the second mode is executed, wherein the second load threshold is a preset second duration threshold, When the real-time processing load information is greater than a second load threshold, the voice quality detection method is terminated.
3. The detection method according to claim 1, characterized in that The audio feature of the speech signal to be detected is obtained by performing time-frequency transformation on the speech signal to be detected.
4. The detection method according to claim 1, characterized in that The real-time network QoS data includes at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, and a real-time network delay.
5. The detection method according to claim 1, characterized in that The complete speech quality detection model includes a convolutional layer, a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; The step of inputting the audio features of the voice signal to be detected and the real-time network QoS data into a complete voice quality detection model to obtain a voice quality score for the voice signal to be detected includes: Inputting the audio features of the speech signal to be detected into the convolution layer to obtain a convolved feature vector; Concatenating the convolved feature vector with the real-time network QoS data to obtain a concatenated feature; Inputting the series features into the first fully connected layer to obtain transformed features; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into a second fully connected layer to obtain a speech quality score for the speech signal to be detected.
6. The detection method according to claim 1, characterized in that The simplified speech quality detection model comprises: a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; The step of inputting the real-time network QoS data into a simplified voice quality detection model to obtain a voice quality score for the voice signal to be detected includes: Inputting the real-time network QoS data into a first fully connected layer to obtain a transformation feature; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into the second fully connected layer to obtain a speech quality score for the speech signal to be detected.
7. The detection method according to claim 1, characterized in that The complete speech quality detection model is trained by the following training method: Acquire a voice signal sample and a network quality of service (QoS) data sample when the voice signal sample is transmitted through a network; Inputting the audio features of the speech signal sample and the network QoS data sample into the complete speech quality detection model to obtain an estimated speech quality score; Determining a loss function of the complete speech quality detection model based on the actual speech quality score of the speech signal sample and the estimated speech quality score; Based on the determined loss function, the complete speech quality detection model is trained.
8. The detection method according to claim 7, characterized in that The audio features of the speech signal samples are obtained by performing time-frequency transformation on the speech signal samples.
9. The detection method according to claim 7, characterized in that: The network QoS data includes at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
10. The detection method according to claim 7, characterized in that: The complete speech quality detection model includes a convolutional layer, a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; The step of inputting the audio features of the speech signal sample and the network QoS data sample into the complete speech quality detection model to obtain an estimated speech quality score comprises: Inputting the audio features of the speech signal sample into the convolution layer to obtain a convolved feature vector; Concatenating the convolved feature vector with the network QoS data sample to obtain a concatenated feature; Inputting the series features into the first fully connected layer to obtain transformed features; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into the second fully connected layer to obtain the estimated speech quality score.
11. The detection method according to claim 7, characterized in that: The actual speech quality score is a speech quality score related to subjective perception of the speech signal after the pre-marked speech signal sample is transmitted through the network under the corresponding network QoS data sample condition.
12. The detection method according to claim 7, characterized in that: The determining of the loss function of the complete speech quality detection model based on the real speech quality score of the speech signal sample and the estimated speech quality score comprises: A mean square error between the actual speech quality score and the estimated speech quality score is calculated as the loss function.
13. The detection method according to claim 1, characterized in that: The simplified speech quality detection model is trained by the following training method: Obtain network service quality QoS data samples when the voice signal samples are transmitted through the network; Inputting the network QoS data sample into the simplified voice quality detection model to obtain an estimated voice quality score; Determining a loss function of the simplified speech quality detection model based on the actual speech quality score of the speech signal sample and the estimated speech quality score; Based on the determined loss function, the simplified speech quality detection model is trained.
14. The detection method according to claim 13, characterized in that: The network QoS data includes at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
15. The detection method according to claim 13, characterized in that: The simplified speech quality detection model comprises: a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; The step of inputting the network QoS data sample into the simplified voice quality detection model to obtain an estimated voice quality score includes: Inputting the network QoS data sample into the first fully connected layer to obtain a transformation feature; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into the second fully connected layer to obtain the estimated speech quality score.
16. The detection method according to claim 13, characterized in that: The actual speech quality score is a speech quality score related to subjective perception of the speech signal after the pre-marked speech signal sample is transmitted through the network under the corresponding network QoS data sample condition.
17. The detection method according to claim 13, characterized in that: The method of determining the loss function of the simplified speech quality detection model based on the real speech quality score of the speech signal sample and the estimated speech quality score comprises: A mean square error between the actual speech quality score and the estimated speech quality score is calculated as the loss function.
18. A voice quality detection device, characterized in that: include: A first acquisition unit is configured to acquire real-time processing load information when the voice signal to be detected is transmitted through a network, wherein the real-time processing load information includes time length information spent on performing processing on each voice frame of the voice signal to be detected when the voice signal to be detected is transmitted through the network; A second acquisition unit is configured to obtain a comparison result between the real-time processing load information and a first load threshold, wherein the first load threshold is a preset first duration threshold; The detection unit is configured to: When the real-time processing load information is less than a first load threshold, executing a detection method of a first mode, When the real-time processing load information is greater than or equal to the first load threshold, executing the detection method of the second mode; The detection method of the first mode includes: Acquire a voice signal to be detected and real-time network quality of service (QoS) data when the voice signal to be detected is transmitted through a network; Inputting the audio features of the voice signal to be detected and the real-time network QoS data into a complete voice quality detection model to obtain a voice quality score for the voice signal to be detected; The detection method of the second mode includes: Obtain real-time network quality of service (QoS) data when the voice signal to be detected is transmitted through the network; The real-time network QoS data is input into a simplified voice quality detection model to obtain a voice quality score for the voice signal to be detected.
19. The detection device according to claim 18, characterized in that: The second acquisition unit is further configured to: acquire a comparison result between the real-time processing load information and a second load threshold, wherein the second load threshold is greater than the first load threshold; Wherein, the detection unit is configured as: When the real-time processing load information is less than a first load threshold, executing a detection method of a first mode, When the real-time processing load information is greater than or equal to the first load threshold and less than the second load threshold, the detection method of the second mode is executed, wherein the second load threshold is a preset second duration threshold, When the real-time processing load information is greater than a second load threshold, the voice quality detection method is terminated.
20. The detection device according to claim 18, characterized in that The audio feature of the speech signal to be detected is obtained by performing time-frequency transformation on the speech signal to be detected.
21. The detection device according to claim 18, characterized in that: The real-time network QoS data includes at least one of a real-time network jitter rate, a real-time network packet loss rate, a real-time network uplink and downlink bandwidth, and a real-time network delay.
22. The detection device according to claim 18, characterized in that: The complete speech quality detection model includes a convolutional layer, a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; Wherein, the detection unit is configured as: Inputting the audio features of the speech signal to be detected into the convolution layer to obtain a convolved feature vector; Concatenating the convolved feature vector with the real-time network QoS data to obtain a concatenated feature; Inputting the series features into the first fully connected layer to obtain transformed features; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into a second fully connected layer to obtain a speech quality score for the speech signal to be detected.
23. The detection device according to claim 18, characterized in that: The simplified speech quality detection model comprises: a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; Wherein, the detection unit is configured as: Inputting the real-time network QoS data into a first fully connected layer to obtain a transformation feature; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into the second fully connected layer to obtain a speech quality score for the speech signal to be detected.
24. The detection device according to claim 18, characterized in that The complete speech quality detection model is trained by the following training method: Acquire a voice signal sample and a network quality of service (QoS) data sample when the voice signal sample is transmitted through a network; Inputting the audio features of the speech signal sample and the network QoS data sample into the complete speech quality detection model to obtain an estimated speech quality score; Determining a loss function of the complete speech quality detection model based on the actual speech quality score of the speech signal sample and the estimated speech quality score; Based on the determined loss function, the complete speech quality detection model is trained.
25. The detection device according to claim 24, characterized in that The audio features of the speech signal samples are obtained by performing time-frequency transformation on the speech signal samples.
26. The detection device according to claim 24, characterized in that The network QoS data includes at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
27. The detection device according to claim 24, characterized in that The complete speech quality detection model includes a convolutional layer, a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; The step of inputting the audio features of the speech signal sample and the network QoS data sample into the complete speech quality detection model to obtain an estimated speech quality score comprises: Inputting the audio features of the speech signal sample into the convolution layer to obtain a convolved feature vector; Concatenating the convolved feature vector with the network QoS data sample to obtain a concatenated feature; Inputting the series features into the first fully connected layer to obtain transformed features; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into the second fully connected layer to obtain the estimated speech quality score.
28. The detection device according to claim 24, characterized in that: The actual speech quality score is a speech quality score related to subjective perception of the speech signal after the pre-marked speech signal sample is transmitted through the network under the corresponding network QoS data sample condition.
29. The detection device according to claim 24, characterized in that: The determining of the loss function of the complete speech quality detection model based on the real speech quality score of the speech signal sample and the estimated speech quality score comprises: A mean square error between the actual speech quality score and the estimated speech quality score is calculated as the loss function.
30. The detection device according to claim 18, characterized in that The simplified speech quality detection model is trained by the following training method: Obtain network service quality QoS data samples when the voice signal samples are transmitted through the network; Inputting the network QoS data sample into the simplified voice quality detection model to obtain an estimated voice quality score; Determining a loss function of the simplified speech quality detection model based on the actual speech quality score of the speech signal sample and the estimated speech quality score; Based on the determined loss function, the simplified speech quality detection model is trained.
31. The detection device according to claim 30, characterized in that The network QoS data includes at least one of a network jitter rate, a network packet loss rate, a network uplink and downlink bandwidth, and a network delay.
32. The detection device according to claim 30, characterized in that The simplified speech quality detection model comprises: a first fully connected layer, a gated recurrent unit layer, and a second fully connected layer; The step of inputting the network QoS data sample into the simplified voice quality detection model to obtain an estimated voice quality score includes: Inputting the network QoS data sample into the first fully connected layer to obtain a transformation feature; Inputting the transformed features into the gated recurrent unit layer to obtain time series features; The time series features are input into the second fully connected layer to obtain the estimated speech quality score.
33. The detection device according to claim 30, characterized in that The actual speech quality score is a speech quality score related to subjective perception of the speech signal after the pre-marked speech signal sample is transmitted through the network under the corresponding network QoS data sample condition.
34. The detection device according to claim 30, characterized in that The method of determining the loss function of the simplified speech quality detection model based on the real speech quality score of the speech signal sample and the estimated speech quality score comprises: A mean square error between the actual speech quality score and the estimated speech quality score is calculated as the loss function.
35. An electronic device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to perform the voice quality detection method according to any one of claims 1 to 17.
36. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform the voice quality detection method according to any one of claims 1 to 17.
37. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by at least one processor, the method for detecting speech quality according to any one of claims 1 to 17 is implemented.
Citation Information
Patent Citations
Optional encoding system and method for operating the system
CN101273405A
System for monitoring VOIP voice quality based on SIP protocol and detection method thereof
CN101437032A
Audio treating method and audio treating device
CN101552010A
Self-adapting method, device and system for adjusting speech encoding rate
CN101729196A
Frame division multiplexing-based adaptive voice service bearing method and system
CN102237091A
