A voice processing method, device, equipment and storage medium
By utilizing the time domain parameter prediction and reconstruction technology of historical voice frames in the VoIP system, combined with network models and signal reasoning, the shortcomings of PLC technology in sudden packet loss scenarios are solved, and efficient voice signal reconstruction is achieved, which is suitable for real-time communication, ensuring the quality of voice calls, and used in combination with FEC technology to enhance system flexibility.
Patent Information
- Application Number
- CN202010416575.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-15
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-05-15
AI Technical Summary
In the existing VoIP system, the classic PLC technology cannot effectively handle sudden packet loss scenarios, resulting in a decline in voice signal quality, and the FEC technology occupies additional bandwidth and increases delay, which is costly and inflexible.
By determining the historical speech frames of the target speech frame, obtaining its time domain parameters, predicting and reconstructing the target speech frame, using a combination of network models and signal reasoning strategies, it supports continuous packet loss compensation, and can be used in combination with FEC technology.
It improves voice processing capabilities, reduces processing complexity, is suitable for real-time communication scenarios, ensures voice call quality, and flexibly responds to the impact of sound quality impairment.
Smart Images

Figure CN111554308B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, specifically to the field of VoIP (Voice over Internet Protocol, voice transmission based on IP) call technology, especially to a voice processing method, a voice processing device, a voice processing equipment and a computer-readable storage medium. Background Art
[0002] The voice signal may be damaged during transmission through the VoIP system. In the prior art, a mainstream solution to the problem of voice quality damage is the classic PLC technology. The main principle is that if the receiving end does not receive the nth (n is a positive integer) voice frame, it will perform signal analysis and processing on the n-1th voice frame to compensate for the nth voice frame. However, practice has found that due to the limited signal analysis and processing capabilities, the voice processing capabilities of the classic PLC technology are limited and cannot be applied to the scenario of sudden packet loss in the existing network. Summary of the invention
[0003] The embodiments of the present application provide a speech processing method, apparatus, device and storage medium, which can make up for the deficiencies of traditional signal analysis and processing technology and improve speech processing capabilities.
[0004] On the one hand, an embodiment of the present application provides a speech processing method, including:
[0005] Determine a historical speech frame corresponding to a target speech frame to be processed;
[0006] Obtaining time domain parameters of historical speech frames;
[0007] A parameter set of a target speech frame is obtained according to time domain parameter prediction of the historical speech frame, wherein the parameter set includes at least two parameters;
[0008] Reconstruct the target speech frame according to the parameter set.
[0009] On the one hand, an embodiment of the present application provides a speech processing method, including:
[0010] Receive voice signals transmitted via the VoIP system;
[0011] When the target speech frame in the speech signal is lost, the target speech frame is reconstructed using the above method;
[0012] A speech signal is output based on the reconstructed target speech frame.
[0013] On the one hand, an embodiment of the present application provides a speech processing device, including:
[0014] A determination unit, used to determine a historical speech frame corresponding to a target speech frame to be processed;
[0015] An acquisition unit, used for acquiring time domain parameters of historical speech frames;
[0016] The processing unit is used to predict a parameter set of a target speech frame according to time domain parameters of historical speech frames, wherein the parameter set includes at least two parameters; and to reconstruct the target speech frame according to the parameter set.
[0017] On the one hand, an embodiment of the present application provides another speech processing device, including:
[0018] A receiving unit, used for receiving a voice signal transmitted via the VoIP system;
[0019] A processing unit, used for reconstructing the target speech frame by using the above method when the target speech frame in the speech signal is lost;
[0020] The output unit is used to output a speech signal based on the reconstructed target speech frame.
[0021] On the one hand, an embodiment of the present application provides a speech processing device, the device comprising:
[0022] a processor adapted to implement one or more instructions; and,
[0023] A computer-readable storage medium stores one or more instructions, wherein the one or more instructions are suitable for being loaded by a processor and executing the speech processing method as described above.
[0024] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the speech processing method as described above.
[0025] In an embodiment of the present application, when it is necessary to reconstruct a target speech frame in a speech signal, the time domain parameters of a historical speech frame corresponding to the target speech frame can be obtained, and a parameter set of the target speech frame can be predicted based on the time domain parameters of the historical speech frame. The above process decomposes the reconstruction task of the target speech frame into several parameter prediction tasks, and then the reconstruction of the target speech frame is achieved by performing inter-parameter filtering on the parameter set. This speech reconstruction method is relatively simple and efficient, can effectively reduce processing complexity, and is more suitable for communication scenarios with high real-time requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A schematic diagram of the structure of a VoIP system provided by an exemplary embodiment of the present application is shown;
[0028] Figure 2 A schematic diagram of the structure of a speech processing system provided by an exemplary embodiment of the present application is shown;
[0029] Figure 3 A flow chart of a speech processing method provided by an exemplary embodiment of the present application is shown;
[0030] Figure 4 A flowchart of a speech processing method provided by another exemplary embodiment of the present application is shown;
[0031] Figure 5 A flowchart of a speech processing method provided by another exemplary embodiment of the present application is shown;
[0032] Figure 6 A schematic diagram of the structure of a network model provided by an exemplary embodiment of the present application is shown;
[0033] Figure 7 A schematic diagram of the structure of a speech generation model based on an excitation signal provided by an exemplary embodiment of the present application is shown;
[0034] Figure 8 A flowchart of a speech processing method provided by another exemplary embodiment of the present application is shown;
[0035] Fig. 9 A schematic diagram showing the statistical characteristics of time domain parameters of historical speech frames provided by an exemplary embodiment of the present application is shown;
[0036] Fig.10 A schematic diagram of the structure of a speech processing device provided by an exemplary embodiment of the present application is shown;
[0037] Fig.11 A schematic diagram of the structure of a speech processing device provided by another exemplary embodiment of the present application is shown;
[0038] Fig.12 A structural schematic diagram of a speech processing device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] The present application embodiment relates to VoIP. VoIP is a voice call technology that uses IP to achieve voice calls and multimedia conferences, that is, to communicate via the Internet. VoIP can also be called IP phone, Internet phone, network phone, broadband phone, and broadband phone service. Figure 1 The structure diagram of a VoIP system provided by an exemplary embodiment of the present application is shown; the system includes a sending end and a receiving end, the sending end refers to a terminal that initiates a voice signal transmitted via the VoIP system; correspondingly, the receiving end refers to a terminal that receives a voice signal transmitted via VoIP; the terminal here may include but is not limited to: a mobile phone, a PC (Personal Computer), a PDA, etc. The processing flow of the voice signal in the VoIP system is roughly as follows:
[0041] On the sender side:
[0042] (1) collecting an input voice signal, which may be collected by a microphone, for example, and the voice signal is an analog signal; performing analog-to-digital conversion on the voice signal to obtain a digital signal;
[0043] (2) Encoding the digital signal to obtain multiple voice frames; here, encoding may refer to OPUS encoding. OPUS is a lossy sound coding format suitable for real-time sound transmission on the network. Its main features include: ① Supporting a sampling rate range from 8000Hz (narrowband signal) to 48000Hz (full-band signal); ② Supporting constant bit rate and variable bit rate; ③ Supporting audio bandwidth from narrowband to full-band; ④ Supporting voice and music; ⑤ Dynamically adjusting the bit rate, audio bandwidth and frame size; ⑤ Having good robustness loss rate and PLC (Packet Loss Concealment) capabilities. Based on OPUS's strong PLC capability and good VoIP sound quality, OPUS encoding is usually used in VoIP systems. The sampling rate Fs in the encoding process can be set according to actual needs. Fs can be 8000Hz (Hertz), 16000Hz, 32000Hz, 48000Hz, etc. Generally, the frame length of a speech frame is determined by the structure of an encoder used in the encoding process. The frame length of a speech frame may be, for example, 10 ms (milliseconds), 20 ms, and the like.
[0044] (3) Encapsulate multiple voice frames into one or more IP packets.
[0045] (4) Send the IP data packet to the receiving end through the network.
[0046] On the receiving side:
[0047] (5) Receive IP data packets transmitted by the network, and decapsulate the received IP data packets to obtain multiple voice frames.
[0048] (6) Decode the speech frame and restore it to digital signal.
[0049] (7) Performing digital-to-analog conversion on the digital signal, restoring it to an analog voice signal and outputting it. The output here may be played through a speaker, for example.
[0050] The voice signal may be damaged during transmission through the VoIP system. The so-called sound quality damage refers to the phenomenon that after the normal voice signal from the sender is transmitted to the receiver, abnormal conditions such as playback jamming and unsmoothness occur on the receiver side. An important factor causing sound quality damage is network reasons. During the transmission of data packets, the receiver cannot receive the data packets normally due to network instability or abnormalities, resulting in the loss of voice frames in the data packets, and then the receiver cannot recover the voice signal, resulting in abnormal conditions such as jamming when outputting the voice signal. In the prior art, there are several mainstream solutions to the phenomenon of sound quality damage:
[0051] One solution involves FEC (Feedforward Error Correction) technology. FEC technology is generally deployed at the transmitting end. Its main principle is: after the transmitting end packages and sends the nth (n is a positive integer) voice frame, a certain bandwidth is still allocated in the next data packet to package and send the nth voice frame again. The data packet formed by the repackaging is called a "redundant packet", and the information of the nth voice frame encapsulated in the redundant packet is called the redundant information of the nth voice frame. In order to save transmission bandwidth, the accuracy of the nth voice frame can be reduced, and the information of the low-precision version of the nth voice frame can be packaged into the redundant packet. During the voice transmission process, if the nth voice frame is lost, the receiving end can wait for the redundant packet of the nth voice frame to arrive, and reconstruct the nth voice frame according to the redundant information of the nth voice frame in the redundant packet, and restore the corresponding voice signal. FEC technology can be divided into in-band FEC and out-of-band FEC. The so-called in-band FEC refers to using the idle bytes in a voice frame to store redundant information. Out-of-band FEC refers to the storage of redundant information outside the structure of a voice frame through digital packet encapsulation technology. However, in practice, it is found that the FEC technology has the following shortcomings in solving the problem of sound quality impairment: it requires additional bandwidth to encode redundant information, and the receiving end will increase additional delay while waiting for redundant information; and different encoding mechanisms require specific FEC adaptation, which is costly and inflexible.
[0052] Another solution is the classic PLC (Packet Loss Concealment) technology, which is usually deployed at the receiving end. The main principle of the classic PLC technology is: if the receiving end does not receive the nth voice frame, it will read the n-1th voice frame, and perform traditional signal analysis and processing on the n-1th voice frame to compensate for the nth voice frame. Compared with FEC technology, PLC technology does not require additional bandwidth. However, practice has found that PLC technology still has its shortcomings in solving the problem of sound quality damage: the signal analysis and processing capabilities are limited, and it is only applicable to the situation where one frame of voice frame is lost. However, in many cases in the existing network, there is burst packet loss (that is, multiple consecutive frames are lost). In this case, the above-mentioned PLC-based technology is invalid.
[0053] The embodiment of the present application proposes a speech processing scheme, which makes the following improvements on the above-mentioned classic PLC technology: ① By analyzing the time domain parameters of the historical speech frames, the parameter set of the target speech frame is predicted, and then the target speech frame is reconstructed according to the parameter set of the target speech frame. The reconstruction process is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements; ② Since different types of parameters have different tolerances for prediction errors, different prediction strategies can be adopted for different types of parameters, which can achieve targeted prediction processing and effectively improve the speech processing efficiency; ③ For parameters with low tolerance for prediction errors, a network model prediction strategy can be adopted; that is, traditional signal analysis and processing technology is combined with deep learning technology, modeling is performed based on the data of speech signals, and the corresponding parameters of the target speech frame are predicted by deep learning of historical speech frames. Since only the prediction errors are targeted, the prediction errors are processed in a targeted manner. ④ For parameters with high tolerance to prediction errors, a signal inference strategy can be adopted, that is, the corresponding parameters of the target speech frame are predicted by performing simple signal inference processing on the time domain parameters of the historical speech frames, which can effectively improve the speech processing efficiency; ⑤ The parameter set used to reconstruct the target speech frame contains two or more parameters, so that the reconstruction task of the target speech frame is decomposed into a process of predicting several parameters. In this way, the processing complexity can be effectively reduced; ⑥ Support continuous packet loss compensation, that is, when multiple consecutive speech frames are lost, the reconstruction of multiple consecutive speech frames can be realized to ensure the quality of voice calls; ⑤ Support the combined use with FEC technology to avoid the adverse effects of sound quality damage in a relatively flexible combination.
[0054] The speech processing solution proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0055] Figure 2 FIG. 1 shows a schematic diagram of a speech processing system provided by an exemplary embodiment of the present application; Figure 2 As shown, the improved PLC technology proposed in the embodiment of the present application is deployed on the downlink receiving end side. The reasons for this deployment are: 1) the receiving end is the last link of the system in end-to-end communication. After the reconstructed target voice frame is restored to a voice signal output (such as played through a speaker, a loudspeaker, etc.), the user can intuitively perceive the voice quality; 2) in the field of mobile communications, the communication link from the downlink air interface to the receiving end is the node most prone to quality problems. Setting a PLC mechanism at this node can achieve a more direct improvement in sound quality.
[0056] Figure 3A flowchart of a voice processing method provided by an exemplary embodiment of the present application is shown; since the improved PLC technology is deployed at the downlink receiving end, Figure 3 The process shown is Figure 2 The receiving end shown is the execution subject; the method includes the following steps S301-S303.
[0057] S301, receiving a voice signal transmitted via a VoIP system.
[0058] The voice signal is sent from the sending end to the receiving end via the network. As can be seen from the processing flow in the aforementioned VoIP system, the voice signal received by the receiving end is a voice signal in the form of an IP data packet. The receiving end decapsulates the IP data packet to obtain a voice frame.
[0059] S302, when the target speech frame in the speech signal is lost, the target speech frame is reconstructed using the improved PLC technology proposed in the embodiment of the present application. The embodiment of the present application uses the nth speech frame to represent the target speech frame, and the speech processing method involved in the improved PLC technology will be described in detail in subsequent embodiments.
[0060] S303: output a speech signal based on the reconstructed target speech frame.
[0061] After reconstructing the target voice frame, the receiving end will decode and perform digital-to-analog conversion on the target voice frame, and finally play the voice signal through a speaker, etc., thereby realizing the restored output of the voice signal.
[0062] In one embodiment, the improved PLC technology can be used alone. In this case, when the receiving end confirms that the nth voice frame is lost, the packet loss compensation function is activated, and the nth voice frame is reconstructed through the processing flow involved in the improved PLC technology (i.e., the above step S303). In another embodiment, the improved PLC technology can also be used in combination with the FEC technology. In this case, Figure 3 The process shown may also include the following steps S304-S305:
[0063] S304, obtaining redundant information of the target speech frame.
[0064] S305, when the target speech frame in the speech signal is lost, reconstruct the target speech frame according to the redundant information of the target speech frame. If the target speech frame is not reconstructed according to the redundant information of the target speech frame, step S302 is triggered again to reconstruct the target speech frame using the improved PLC technology proposed in the embodiment of the present application.
[0065] In the scenario where the improved PLC technology is used in combination with the FEC technology, an FEC operation is performed at the sending end, that is, not only the n-th voice frame is packaged and sent, but also the redundant information of the n-th voice frame is packaged and sent; when the n-th voice frame is lost, the receiving end first relies on the redundant information of the n-th voice frame to try to reconstruct and restore the n-th voice frame. If the n-th voice frame cannot be successfully restored, the improved PLC function is activated to reconstruct the n-th voice frame through the processing flow involved in the improved PLC technology.
[0066] In an embodiment of the present application, when a target voice frame in a VoIP voice signal is lost, an improved PLC technology can be used to reconstruct the target voice frame. The reconstruction process of the improved PLC technology is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements. In addition, it supports continuous packet loss compensation, that is, when multiple consecutive voice frames are lost, it is possible to reconstruct multiple consecutive voice frames to ensure the quality of voice calls. Moreover, the improved PLC technology can also be used in combination with the FEC technology to avoid the adverse effects of sound quality damage in a relatively flexible combination manner.
[0067] The speech processing method involved in the improved PLC technology proposed in the embodiment of the present application will be described in detail below in conjunction with the accompanying drawings.
[0068] Figure 4 A flowchart of a speech processing method provided by another exemplary embodiment of the present application is shown; the method comprises Figure 2 The method is performed by the receiving end shown in the figure; the method includes the following steps S401-S404.
[0069] S401, determining a historical speech frame corresponding to a target speech frame to be processed.
[0070] When there is a voice frame loss in the voice signal transmitted by the VoIP system, the lost voice frame is determined as the target voice frame, and the historical voice frame refers to the voice frame that was transmitted before the target voice frame and can be successfully restored to the voice signal. In the subsequent embodiments of this application, the target voice frame is the nth (n is a positive integer) frame voice frame in the voice signal transmitted by the VoIP system; and the historical voice frame includes t (t is a positive integer) frames of voice frames from the nt frame to the n-1 frame in the voice signal transmitted by the VoIP system. The value of t can be set according to actual needs, and the embodiment of this application does not limit the value of t; for example: if you want to reduce the difficulty of calculation, the value of t can be set to be relatively small, such as t=1, that is, select the adjacent frame before the nth frame as the historical voice frame; or if t=2, that is, select the adjacent two frames before the nth frame as the historical voice frame. If you want to obtain a more accurate calculation result, the value of t can be set to be relatively large, such as t=n-1, that is, select all frames before the nth frame as historical voice frames.
[0071] S402, obtaining time domain parameters of historical speech frames.
[0072] The time domain parameters are parameters used to represent the time domain characteristics of the time domain signal; the time domain parameters include but are not limited to at least one of the following: short-time correlation parameters, long-time correlation parameters and energy parameters. The definitions of various types of time domain parameters are detailed in the description of the subsequent embodiments. The historical speech frame is a time domain signal, and the time domain parameters of the historical speech frame are parameters used to reflect the time domain characteristics of the historical speech frame; the time domain parameters of the historical speech frame may include at least one of the following: short-time correlation parameters of the historical speech frame, long-time correlation parameters of the historical speech frame and energy parameters of the historical speech frame.
[0073] S403: Predicting a parameter set of the target speech frame according to the time domain parameters of the historical speech frame, wherein the parameter set includes at least two parameters.
[0074] The parameter set of the target speech frame includes at least two parameters, and the parameters in the parameter set refer to the time domain parameters of the target speech frame required for reconstructing and restoring the target speech frame; referring to the relevant definition of the aforementioned time domain parameters, it can be known that the parameters in the parameter set of the target speech frame may include at least one of the following: the long-term correlation parameter of the target speech frame, the short-term correlation parameter of the target speech frame, and the energy parameter of the target speech frame. The types of target speech frames may include but are not limited to: voiced frames and unvoiced frames; voiced frames belong to quasi-periodic signals, while unvoiced frames belong to non-periodic signals. The types of target speech frames are different, and the parameters required for their reconstruction are also different, so the parameters included in the parameter set of the target speech frame are also different. After determining the parameters in the parameter set according to actual needs, the time domain parameters of the historical speech frames can be predicted and processed to obtain the parameter set of the target speech frame.
[0075] Different types of time domain parameters have different tolerances for prediction errors. Some types of time domain parameters have lower tolerances for prediction errors, while some types of time domain parameters have higher tolerances for prediction errors. The so-called tolerance for prediction errors refers to the range of allowed prediction errors. For example, if the tolerance for prediction errors is ±0.1, it means that the range of allowed prediction errors is [-0.1, 0.1]. The larger the range of allowed prediction errors, the higher the tolerance for prediction errors; conversely, the smaller the range of allowed prediction errors, the lower the tolerance for prediction errors. In one embodiment, if the range of allowed prediction errors is less than the tolerance threshold (this tolerance threshold can be set according to actual needs), it is considered that the tolerance for prediction errors is low; conversely, if the range of allowed prediction errors is greater than the tolerance threshold, it is considered that the tolerance for prediction errors is high. In the embodiments of the present application, different prediction processing strategies can be adopted for different types of time domain parameters in view of the differences in tolerance of different types of time domain parameters to prediction errors; this can achieve targeted prediction processing and effectively improve speech processing efficiency; in one embodiment, if the parameter set contains parameters with low tolerance to prediction errors (such as long-term correlation parameters of target speech frames), then a network model prediction strategy can be used to predict the time domain parameters of historical speech frames required to predict the parameters. The network model can include multiple neural networks. After the network structure of the network model is configured, a deep learning method can be used to train the network model to obtain an optimized network model. Reuse the optimized network model By predicting the corresponding time domain parameters of the historical speech frames, the parameters with low tolerance for prediction errors in the parameter set of the target speech frame can be obtained. In this way, the traditional signal analysis and processing technology is combined with the deep learning technology, and the size of the model can be effectively controlled, the network structure can be greatly simplified, and the processing complexity can be reduced. In another embodiment, if the parameter set contains parameters with high tolerance for prediction errors (such as short-time correlation parameters of the target speech frame), a signal inference strategy can be used to perform signal inference processing on the time domain parameters of the historical speech frames required to predict the parameters, thereby improving the speech processing efficiency.
[0076] S404: Reconstruct the target speech frame according to the parameter set.
[0077] The parameter set Pa(n) contains the predicted time domain parameters of the target speech frame, and the time domain parameters are parameters that reflect the time domain characteristics of the time domain signal. Then, the target speech frame can be reconstructed and restored using the time domain characteristics of the target speech frame represented by the predicted time domain parameters of the target speech frame. In a specific implementation, the parameters in the parameter set Pa(n) can be subjected to inter-parameter filtering to reconstruct the target speech frame.
[0078] In an embodiment of the present application, when it is necessary to reconstruct a target speech frame in a speech signal, the time domain parameters of a historical speech frame corresponding to the target speech frame can be obtained, and a parameter set of the target speech frame can be predicted based on the time domain parameters of the historical speech frame. The above process decomposes the reconstruction task of the target speech frame into several parameter prediction tasks, and then the reconstruction of the target speech frame is achieved by performing inter-parameter filtering on the parameter set. This speech reconstruction method is relatively simple and efficient, can effectively reduce processing complexity, and is more suitable for communication scenarios with high real-time requirements.
[0079] For the convenience of description, the following example scenario is used as an example for detailed description in the subsequent embodiments of this application. The example scenario includes the following information: (1) The speech signal is a broadband signal with a sampling rate of Fs = 16000 Hz; based on experience, the order of the LPC filter corresponding to the broadband signal with a sampling rate of Fs = 16000 Hz is 16; (2) The frame length of the speech frame is 20 ms, and each speech frame contains 320 samples. (3) The 320 sample points of each speech frame are decomposed into two sub-frames. The first sub-frame corresponds to the first 10 ms of the speech frame with a total of 160 sample points, and the second sub-frame corresponds to the last 10 ms of the speech frame with a total of 160 sample points. (4) Each speech frame is divided into 5 ms frames to obtain 4 5 ms sub-frames. Based on experience, the order of the LTP filter corresponding to the 5 ms sub-frame is 5. It should be noted that the above-mentioned example scenario is cited only to more clearly describe the process of the speech processing method of the embodiment of the present application, but does not constitute a limitation on the relevant technology of the embodiment of the present application. The speech processing method of the embodiment of the present application is also applicable in other scenarios. For example, in other scenarios, Fs may change accordingly, such as Fs=8000Hz, 32000Hz or 48000Hz; the speech frame may also change accordingly, for example, the frame length may be 10ms, 15ms; the decomposition method of the frame and subframe may change accordingly; for example: when decomposing the speech frame to form a frame, and when dividing the speech frame into a frame to form a subframe, both can be processed according to 5ms, that is, the frame length of the frame and the subframe are both 5ms; and so on. The speech processing process in these other scenarios can refer to the speech processing process in the example scenario of the embodiment of the present application for similar analysis.
[0080] Figure 5 A flowchart of a speech processing method provided by another exemplary embodiment of the present application is shown; the method comprises Figure 2 The method is performed by the receiving end shown in the figure; the method includes the following steps S501-S507.
[0081] S501, determining a historical speech frame corresponding to a target speech frame to be processed.
[0082] The target speech frame refers to the nth speech frame in the speech signal; the historical speech frame includes a total of t speech frames from the ntth frame to the n-1th frame in the speech signal, where n and t are both positive integers. The value of t can be set according to actual needs. In addition, the value of t can also change during the speech processing. It should be noted that the historical speech frame refers to a speech frame that is transmitted before the target speech frame and can be successfully restored to a speech signal. In one embodiment, the historical speech frame is a speech frame that is completely received by the receiving end and can be normally restored to a speech signal through decoding; in another embodiment, the historical speech frame is a speech frame that has been lost but has been successfully reconstructed through FEC technology, classic PLC technology, the improved PLC technology proposed in the embodiment of the present application, or a combination of the above various technologies. The successfully reconstructed speech frame can be normally decoded to restore the speech signal. Similarly, after the nth speech frame is successfully reconstructed by the speech processing method of the embodiment of the present application, if the n+1th speech frame is lost and needs to be reconstructed, the nth speech frame can be used as a historical speech frame for the n+1th speech frame to help the n+1th speech frame to be reconstructed. Figure 5 As shown, the historical speech frame can be expressed as s_prev(n), which represents a sequence of sample points contained in the nt frame to the n-1 frame speech frame. Here, taking t=1 as an example, s_prev(n) has a total of 320 sample points, that is, s_prev(n) uses a time domain waveform composed of 320 sample points to express the signal changes of the n-1 frame speech frame over time.
[0083] S502: Acquire time domain parameters of historical speech frames.
[0084] Time domain parameters are parameters used to represent the time domain characteristics of time domain signals; time domain parameters include but are not limited to at least one of the following: short-time correlation parameters, long-time correlation parameters and energy parameters. Various time domain parameters are closely related to the filtering processing of time domain signals in the speech processing process. The embodiment of the present application involves a reconstruction filter. The definition of various time domain parameters is introduced below in conjunction with the definition of the reconstruction filter. In this embodiment, the i-th (i is a positive integer) frame speech frame is any frame speech frame in the speech signal. Taking the i-th frame speech frame as an example, the definitions of various time domain parameters are as follows:
[0085] (1) Short-term correlation parameters.
[0086] The short-time correlation parameter is a parameter that reflects the short-time correlation characteristics of the time domain speech signal. The core of the reconstruction filter includes the LPC filter and the LTP filter. Among them, the LPC filter is responsible for processing the parameters related to the short-time correlation of the linear prediction, so the short-time correlation parameter can be considered as a parameter related to the LPC filter. First, define a p-order filter as shown in the following formula 1.1:
[0087] A p (z) = 1 + a 1 z -1 +a 2 z -2 +…+a p z -p Formula 1.1
[0088] In the above formula 1.1, p is the order of the filter. For LPC filter, a j (1≤j≤p) represents the LPC coefficient; for the LTP filter, a j (1≤j≤p) represents the LTP coefficient. z represents the speech signal. The LPC filter is implemented based on LP (Linear Prediction) analysis. The so-called LP analysis means that when LPC is used to filter the i-th speech frame, the filtering result of the i-th speech frame is obtained by convolving the first p historical speech frames of the i-th speech frame with the p-order filter shown in the above formula 1.1; this is in line with the short-term correlation characteristics of speech. According to experience, in the scenario with a sampling rate of Fs=8000Hz, the order of the LPC filter is p=10; in the scenario with a sampling rate of Fs=16000Hz, the order of the LPC filter is p=16.
[0089] In the example shown in this embodiment, the sampling rate Fs=16000 Hz, so the order of the LPC filter can be p=16; the p-order filter shown in the above formula 1.1 can be further decomposed into the following formula 1.2:
[0090]
[0091] Where P(z) = A p (z)-z -(p+1) A p (z -1 ) Formula 1.3
[0092] Q(z)=A p (z)+z -(p+1) A p (z -1 ) Formula 1.4
[0093] From a physical point of view, P(z) shown in formula 1.3 represents the periodic change law of glottis opening, Q(z) shown in formula 1.4 represents the periodic change law of glottis closing, and P(z) and Q(z) represent the periodic change law of glottis opening and closing.
[0094] The roots formed by the decomposition of the two polynomials P(z) and Q(z) appear alternately in the complex plane, so they are named LSF (Line Spectral Frequency). The LSF is represented by a series of angular frequencies w where the roots of P(z) and Q(z) are distributed on the unit circle in the complex plane. k Assume that the root of P(z) and Q(z) in the complex plane is defined as θ k , then the corresponding angular frequency is defined as follows:
[0095]
[0096] In the above formula 1.5, Re{θ k} represents θ k Real number, Im{θ k} represents θ k imaginary number.
[0097] The line spectrum frequency LSF(i) of the i-th speech frame can be calculated by the above formula 1.5. As mentioned above, the line spectrum frequency is a parameter that is strongly correlated with the short-time correlation of speech. Therefore, the short-time correlation parameter of the i-th speech frame includes the line spectrum frequency LSF(i) of the i-th speech frame. In practical applications, speech frames are usually decomposed, that is, a speech frame is decomposed into k sub-frames, and the LSF(i) of the i-th speech frame is decomposed into the line spectrum frequencies LSFk(i) of the k sub-frames; as shown in the example of this embodiment, the speech frame is divided into two sub-frames, namely the first 10ms and the second 10ms; the LSF(i) of the i-th speech frame is decomposed into the line spectrum frequency LSF1(i) of its first sub-frame and the line spectrum frequency LSF2(i) of its second sub-frame. Then, in order to further simplify the computational complexity, in one implementation, the line spectrum frequency LSF2(i) of the second sub-frame of the i-th speech frame can be obtained by the above formula 1.5; then, based on the line spectrum frequency LSF2(i-1) of the second sub-frame of the i-1-th frame and the line spectrum frequency LSF2(i) of the second sub-frame of the i-th speech frame, the line spectrum frequency LSF1(i) of the first sub-frame of the i-th speech frame can be obtained by interpolation, and the interpolation factor is expressed as α lsf (i). So further, the short-time correlation parameters of the i-th speech frame may include the line spectrum frequency LSF2(i) of the second sub-frame of the i-th speech frame; and the interpolation factor α lsf (i) Each subframe of the i-th speech frame includes p line spectrum frequencies, where p is the order of the corresponding LPC filter. In this embodiment, p=16, and each subframe of the i-th speech frame includes 16 LSF coefficients.
[0098] (2) Long-term correlation parameters.
[0099] The long-term correlation parameter is a parameter that reflects the long-term correlation characteristics of the time domain speech signal. The LTP filter is responsible for processing parameters related to the long-term correlation of the pitch delay, so the long-term correlation parameter can be considered as a parameter related to the LTP filter. LTP filtering reflects the long-term correlation of speech frames (especially voiced frames), and the long-term correlation is strongly correlated with the pitch delay (Pitch Lag) of the speech frame. The pitch delay reflects the quasi-periodicity of the speech frame, that is, the pitch delay of the sample point in the i-th frame of the speech frame, which can be obtained by fixing the pitch delay of the sample point in the historical speech frame corresponding to the i-th frame of the speech frame, and then performing LTP filtering on the fixed pitch delay based on the quasi-periodicity. Therefore, the long-term correlation parameter of the i-th frame of the speech frame includes the pitch delay and LTP coefficient of each subframe of the i-th frame of the speech frame.
[0100] (3)Energy parameters.
[0101] The energy of different speech frames is also different, and the energy can be reflected by the gain value of each subframe of the speech frame. Therefore, the energy parameter of the i-th speech frame refers to the gain value of each subframe in the i-th speech frame.
[0102] According to the tolerance to prediction error, the time domain parameters of the i-th speech frame can be divided into two categories: one is the time domain parameters with low tolerance to prediction error, which may include the long-term correlation parameters of the i-th speech frame and the energy parameters. The other is the time domain parameters with high tolerance to prediction error, which may include the short-term correlation parameters of the i-th speech frame.
[0103] Referring to the above definition, it can be seen that, assuming that the time domain parameters of the historical speech frame are represented by P_prev(n), and divided according to the tolerance to prediction errors, the P_prev(n) may include P_prev1(n) and P_prev2(n), P_prev1(n) represents the time domain parameters with lower tolerance to prediction errors, and P_prev2(n) represents the time domain parameters with higher tolerance to prediction errors; wherein, the P_prev1(n) may include at least one of the following: ① the long-term correlation parameters of the historical speech frame, including the fundamental frequency delay and the 5th-order LTP filter coefficients of each 5ms subframe of the t frames of historical speech frames, and each subframe of each frame of historical speech frames corresponds to a fundamental frequency delay and 5 LTP coefficients; ② the energy parameters of the historical speech frame, including the gain values of each 5ms subframe of the t frames of historical speech frames. The P_prev2(n) includes the short-time correlation parameters of the historical speech frame, specifically including the LSF coefficients of the t-frame historical speech frame; in this embodiment, the order of the LPC filter is 16, and each frame of the historical speech frame contains 16 LSF coefficients in a subframe, and each frame of the historical speech frame contains two subframes, so each frame of the historical speech frame contains 32 LSF coefficients. Taking t=1 as an example, P_prev1(n) includes the pitch delay and 20 LTP coefficients of the 4 subframes of the n-1-th frame of the speech frame; in addition, P_prev1(n) can also include the 4 subframe gain values of the n-1-th frame of the speech frame. P_prev2(n) includes 32 LSF coefficients of the n-1-th frame of the historical speech frame.
[0104] The parameter set Pa(n) of the target speech frame includes the time domain parameters of the target speech frame required for reconstructing and restoring the target speech frame; similarly, referring to the above definition, it can be seen that according to the tolerance to prediction error, the parameter set Pa(n) of the target speech frame includes Pa1(n) and Pa2(n), Pa1(n) represents the time domain parameters with lower tolerance to prediction error, and Pa2(n) represents the time domain parameters with higher tolerance to prediction error; wherein, the parameters that Pa1(n) may include are as follows: (1) long-term correlation parameters of the target speech frame. The target speech frame includes m subframes, and the long-term correlation parameters of the target speech frame include the pitch delay and LTP coefficient of each subframe of the target speech frame, and m is a positive integer. In the example shown in this embodiment, m=4, and Pa1(n) may include parameter one and parameter two, and parameter one refers to the pitch delay of the four subframes of the target speech frame, which are expressed as pitch(n,0), pitch(n,1), pitch(n,2) and pitch(n,3). Parameter 2 refers to the LTP coefficients corresponding to the four subframes of the target speech frame. If the LTP filter is a fifth-order filter, each subframe corresponds to five LTP coefficients, and parameter 2 includes a total of 20 LTP coefficients. (2) Energy parameter gain(n) of the target speech frame. The energy of different speech frames is also different, and the energy can be reflected by the gain values of each subframe of the speech frame. This defines parameter 3 in parameter set Pa(n), which refers to the energy parameter gain(n) of the target speech frame. In the example shown in this embodiment, the target speech frame includes four 5ms subframes, and the energy parameter gain(n) of the target speech frame includes the gain values of the four 5ms subframes, specifically including gain(n,0), gain(n,1), gain(n,2), and gain(n,3). Gain(n) is used to amplify the signal of the target speech frame obtained by filtering and reconstructing the reconstruction filter, so that the reconstructed target speech frame can be amplified to the energy level of the original speech signal, thereby restoring a more accurate and clearer target speech frame. The Pa2(n) may include the short-time correlation parameters of the target speech frame; the target speech frame includes k sub-frames, and the short-time correlation parameters of the target speech frame include the line spectrum frequency LSFk(n) of the kth sub-frame of the target speech frame and the interpolation factor α lsf (n). In the example shown in this embodiment, k=2, that is, the target speech frame includes the first subframe corresponding to the first 10ms and the second subframe corresponding to the last 10ms; therefore, Pa2(n) may include parameter four and parameter five. Parameter four refers to the line spectrum frequency LSF2(n) of the second subframe of the target speech frame, which includes 16 LSF coefficients in total. Parameter five refers to the interpolation factor α of the target speech frame. lsf (n), the interpolation factor α lsf(n) may include 5 candidate values, including 0, 0.25, 0.5, 0.75, and 1.0. That is, the parameter set Pa(n) of the target speech frame includes Pa1(n) and Pa2(n), wherein Pa1(n) may include parameter 1 and parameter 2, and may also include parameter 3; and Pa2(n) may include parameter 4 and parameter 5.
[0105] Since the network model is obtained by training and optimizing a large amount of training data based on deep learning technology, the network model can provide relatively high-precision prediction results and is suitable for processing time domain parameters with low tolerance for prediction errors. Therefore, in one embodiment, the P_prev1(n) of the historical speech frame can be predicted using the network model prediction strategy to obtain Pa1(n) of the target speech frame. For details, see the following step S503:
[0106] S503, calling the network model to predict the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame.
[0107] The network model can contain multiple neural networks. After configuring the network structure of the network model, the deep learning method can be used to train the network model to obtain an optimized network model. Reuse the optimized network model By predicting the P_prev1(n) of the historical speech frame, we can get the Pa1(n) of the target speech frame. This combines the traditional signal analysis and processing technology with the deep learning technology, and can effectively control the size of the model, greatly simplify the network structure, and reduce the processing complexity. Figure 6 FIG. 1 shows a schematic diagram of a network model provided by an exemplary embodiment of the present application; Figure 6 As shown, the network model includes a first neural network 601 and at least two second neural networks 602, and the second neural network 602 is a subnetwork of the first neural network 601. One second neural network 602 is used to predict a long-term correlation parameter in the parameter set.
[0108] In one implementation, the first neural network 601 may include a two-dimensional convolutional neural network (CNN), which includes CNN1 and CNN2, wherein the input of CNN1 is the time domain signal s_prev(n) of the historical speech frame. Taking t=1 as an example, the time domain waveform of s_prev(n) uses 320 sample points to express the signal change of the n-1th frame of speech frame over time. After s_prev(n) is convolved by CNN1 and CNN2, CNN2 will output an intermediate parameter, which is the result of s_prev(n) being convolved by CNN1 and CNN2. This intermediate parameter will be used as part of the input of the second neural network 602. The second neural network 602 includes a layer of FC (Fully connected layer), and a second neural network 602 is used to predict a parameter (i.e., parameter one or parameter two) contained in Pa1(n). Each second neural network 602 has a common part of input, which is the intermediate parameter output by the first neural network 601. Here, according to the different types of parameters to be predicted, each second neural network 602 also includes another part of different input. The different input part is specifically: (1) a second neural network 602 for predicting parameter one of the target speech frame (i.e., the pitch delay of the four subframes of the target speech frame), whose output is parameter one of the target speech frame. In addition to the intermediate parameter output by the first neural network 601, its input also includes P_prev1(n), and at this time, P_prev1(n) includes the pitch delay of each subframe of the historical speech frame. Taking t=1 as an example, at this time, P_prev1(n) includes the pitch delay of the four subframes of the n-1th frame of the speech frame. (2) A second neural network 602 for predicting parameter 2 of the target speech frame (i.e., a total of 20 LTP coefficients corresponding to the four subframes of the target speech frame), whose output is parameter 2. Its input includes, in addition to the intermediate parameters output by the first neural network 601, P_prev1(n). At this time, P_prev1(n) includes the LTP coefficients corresponding to each subframe of the historical speech frame. Taking t=1 as an example, at this time, P_prev1(n) includes a total of 20 LTP coefficients corresponding to the four subframes of the n-1th speech frame.
[0109] based on Figure 6 In the network model shown, in one implementation, step S503 can be refined into the following steps s11-s13:
[0110] s11, calling the first neural network 601 to process the time domain waveform of the historical speech frame to obtain intermediate parameters;
[0111] s12, inputting the intermediate parameters and the pitch delay of the historical speech frame as input information into the second neural network 602 for prediction processing to obtain the pitch delay of the target speech frame; and
[0112] s13, the intermediate parameters and the LTP coefficients of the historical speech frames are input as input information into the second neural network 602 for prediction processing to obtain the LTP coefficients of the target speech frames.
[0113] See also Figure 6 The network model also includes a third neural network 603, which is a parallel network with the first neural network (or the second neural network); the third neural network 603 includes a layer of LSTM and a layer of FC. Figure 6 In another implementation of the network model shown, the method further includes the following step s14:
[0114] s14, calling the third neural network 603 to predict the energy parameters of the historical speech frame to obtain the energy parameters of the target speech frame, the energy parameters of the target speech frame belong to a parameter included in Pa1(n), that is, parameter three of the target speech frame; the target speech frame includes m subframes, and the energy parameters of the target speech frame include the gain values of each subframe of the target speech frame.
[0115] The energy parameters of some or all of the speech frames in the t-frame historical speech frame can be used to predict the energy parameters of the target speech frame; as mentioned above, the speech processing process also supports changes in the value of t. Here, t=2 is taken as an example, that is, P_prev1(n) includes the energy parameter gain(n-1) of the n-1th frame speech frame and the energy parameter gain(n-2) of the n-2th frame speech frame. In the example shown in this embodiment, m=4, that is, each speech frame contains 4 5ms subframes; then, the energy parameter gain(n-1) of the n-1th speech frame includes the gain values of the 4 5ms subframes of the n-1th speech frame, specifically including gain(n-1,0), gain(n-1,1), gain(n-1,2), gain(n-1,3); similarly, the energy parameter gain(n-2) of the n-2th speech frame includes the gain values of the 4 5ms subframes of the n-2th speech frame, specifically including gain(n-2,0), gain(n-2,1), gain(n-2,2), gain(n-2,3). Similarly, the energy parameter gain(n) of the nth speech frame includes the gain values of the 4 5mg subframes of the nth speech frame, including gain(n,0), gain(n,1), gain(n,2), gain(n,3). In the example shown in this embodiment, the LSTM in the third neural network 603 includes 128 units; the FC layer includes 4 processing units and an activation function, wherein the 4 processing units are respectively used to output gain values of 4 subframes of the nth speech frame.
[0116] based on Figure 6 The network structure of the network model shown in FIG. 1 predicts the P_prev1(n) of the historical speech frame to obtain the Pa1(n) of the target speech frame. It can be understood that Figure 6 The network structure of the network model shown is only an example, and the network structure can be changed according to actual needs. For example, the first neural network 601 can also be a one-dimensional convolutional network, or a three-dimensional convolutional network, etc.; the second neural network 602 can also be two layers of FC, or more layers of FC; the embodiments of the present application are not limited to this.
[0117] For parameters with a high tolerance for prediction errors, a signal inference strategy can be used to perform signal inference processing on the time domain parameters of the historical speech frames required to predict the parameters, which can improve speech processing efficiency. Therefore, in another embodiment, a signal inference strategy can be used to perform prediction processing on P_prev2(n) of the historical speech frames to obtain Pa2(n) of the target speech frame, as shown in the following step S504:
[0118] S504, comparing the frame type of the historical speech frame and the frame type of the target speech frame to see if they have changed; performing signal inference processing on the short-time correlation parameters of the historical speech frame according to the comparison result to obtain the short-time correlation parameters of the target speech frame.
[0119] The comparison result includes whether the frame type has changed or whether the frame type has not changed; the frame type has not changed means that the frame type of the historical speech frame is the same as the frame type of the target speech frame, for example: the historical speech frame is an unvoiced frame, and the target speech frame is also an unvoiced frame; another example: the historical speech frame is a voiced frame, and the target speech frame is also a voiced frame. The frame type has changed means that the frame type of the historical speech frame is different from the frame type of the target speech frame, including: the historical speech frame is a voiced frame, and the target speech frame is an unvoiced frame; or, the historical speech frame is an unvoiced frame, and the target speech frame is a voiced frame.
[0120] Depending on the different situations of the comparison results, the signal inference processing process in step S504 is also different. Specifically:
[0121] (1) If the frame type does not change, step S504 may include the following steps s21-s22:
[0122] s21, if the frame type of the historical speech frame is the same as the frame type of the target speech frame, setting the interpolation factor of the target speech frame to a first value; and,
[0123] s22, setting the average value of the line spectrum frequencies of all sub-frames of the historical speech frame as the line spectrum frequency of the kth sub-frame of the target speech frame.
[0124] As mentioned above, each subframe of the i-th speech frame in the speech signal contains p line spectrum frequencies, where p is the order of the corresponding LPC filter. In this embodiment, p=16, and each subframe of the i-th speech frame contains 16 LSF coefficients; the line spectrum frequency of the k-th subframe of the i-th speech frame can be expressed as LSFk(i,f), f=0,1,2...p. In steps s21-s22, the frame type of the target speech frame has not changed compared with the frame type of the historical speech frame. For the convenience of description, this embodiment takes t=1 as an example, that is, the frame type of the n-th speech frame is the same as the frame type of the n-1-th speech frame; the line spectrum frequency of the k-th subframe of the target speech frame is expressed as LSF2(n,f), and LSF2(n,f) is set using the following formula 1.6:
[0125]
[0126] The k-1th subframe of the target speech frame can be obtained by interpolation. In this example, the line spectrum frequency of the k-1th subframe of the target speech frame can be represented by LSF1(n,f), and the first value can be 0.5, that is, α lsf(n) = 0.5, as shown in formula 1.7:
[0127] LSF1(n,f)=(1-0.5)*LSF2(n-1,f)+0.5LSF2(n,f),f=0,1,2……15 Equation 1.7
[0128] The above formula 1.7 indicates that the line spectral frequency LSF1(n) of the first sub-frame of the target speech frame is obtained by weighted summing the line spectral frequency LSF2(n-1) of the second sub-frame of the n-1th frame speech frame and the line spectral frequency LSF2(n) of the second sub-frame of the target speech frame, and the weight is the candidate value of the interpolation factor.
[0129] When the frame type does not change, Pa2(n) can be obtained according to the signal inference process of steps s21-s22 above, and Pa2(n) includes parameter three (i.e., the line spectrum frequency LSFk(n,f) of the kth sub-frame of the target speech frame) and parameter four (i.e., the interpolation factor of the target speech frame).
[0130] (2) For the case where the frame type changes, further, the historical speech frame is a voiced frame, and the target speech frame is an unvoiced frame, that is, a change occurs from a voiced frame to an unvoiced frame. For this case, first pair the p line spectral frequencies contained in each sub-frame in the speech frame. Specifically: any sub-frame of each speech frame in the speech signal contains p line spectral frequencies, and among the p line spectral frequencies, the fth line spectral frequency and the f+1th line spectral frequency are configured as an associated pair; wherein f is an integer and an even number. Then step S504 may include the following steps s31-s34:
[0131] s31, if the historical speech frame is a voiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value;
[0132] s32, obtaining the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the maximum item in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong;
[0133] s33, setting the sum of the f-th line spectrum frequency and the absolute value of the k-th subframe of the historical speech frame as the f-th line spectrum frequency in the k-th subframe of the target speech frame;
[0134] s34, setting the sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the maximum term to the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
[0135] For the convenience of description, we still take t=1 as an example. The line spectrum frequency of the kth subframe of the target speech frame is expressed as LSF2(n,f), f=0,1,2...15; after pairing, LSF2(n,f) and LSF2(n,f+1) are associated pairs, and f=0,2,4,6,8,10,12,14. Among them, LSF2(n,f) is the first element in this associated pair, and LSF2(n,f+1) is the second element in this associated pair. In steps s31-s34, LSF2(n,f) is obtained using the following formula 1.8, and LSF2(n,f+1) is obtained using the following formula 1.9:
[0136] LSF2(n,f)=LSF2(n-1,f)+|LSF1(n-1,f)-LSF2(n-1,f)| Equation 1.8
[0137] LSF2(n,f+1)=LSF2(n,f)+D(f) Equation 1.9
[0138] in,
[0139] D(f)=max(D1(f),D2(f)) Formula 2.0
[0140] D1(f)=LSF1(n-1,f+1) Formula 2.1
[0141] D2(f)=LSF2(n-1,f+1) Formula 2.2
[0142] f=0,2,4,6,8,10,12,14
[0143] In addition, in this example, the second value may be 1, that is, α lsf (n)=1; and, the line spectral frequency LSF1(n) of the k-1th subframe of the target speech frame=LSF2(n).
[0144] Regarding the change of frame type from voiced frame to unvoiced frame, Pa2(n) can be obtained according to the signal inference process of steps s31-s34 above. Pa2(n) includes parameter three (i.e., the line spectrum frequency LSFk(n,f) of the kth sub-frame of the target speech frame) and parameter four (i.e., the interpolation factor of the target speech frame).
[0145] (3) For the case where the frame type changes, further, the historical speech frame is an unvoiced frame, and the target speech frame is a voiced frame, that is, a change occurs from an unvoiced frame to a voiced frame. For this case, first pair the p line spectrum frequencies contained in each sub-frame in the speech frame. Specifically: any sub-frame of each speech frame in the speech signal contains p line spectrum frequencies, and among the p line spectrum frequencies, the fth line spectrum frequency and the f+1th line spectrum frequency are configured as an associated pair; wherein f is an integer and an even number. Then step S504 may include the following steps s41-s44:
[0146] s41, if the historical speech frame is an unvoiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value;
[0147] s42, obtaining the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the minimum term in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong;
[0148] s43, setting the difference between the fth line spectrum frequency and the absolute value of the kth subframe of the historical speech frame as the fth line spectrum frequency in the kth subframe of the target speech frame; and
[0149] s44, setting the sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the minimum term to the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
[0150] For the convenience of description, we still take t=1 as an example. The line spectrum frequency of the kth subframe of the target speech frame is expressed as LSF2(n,f), f=0,1,2...15; after pairing, LSF2(n,f) and LSF2(n,f+1) are associated pairs, and f=0,2,4,6,8,10,12,14. Among them, LSF2(n,f) is the first element in this associated pair, and LSF2(n,f+1) is the second element in this associated pair. In steps s41-s44, LSF2(n,f) is obtained using the following formula 2.3, and LSF2(n,f+1) is obtained using the following formula 2.4:
[0151] LSF2(n,f)=LSF2(n-1,f)-|LSF1(n-1,f)-LSF2(n-1,f)| Equation 2.4
[0152] LSF2(n,f+1)=LSF2(n,f)+E(f) Equation 2.4
[0153] in,
[0154] E(f)=min(E1(f),E2(f)) Formula 2.6
[0155] E1(f)=LSF1(n-1,f+1) Formula 2.7
[0156] E2(f)=LSF2(n-1,f+1) Formula 2.8
[0157] f=0,2,4,6,8,10,12,14
[0158] In addition, in this example, the second value may be 1, that is, α lsf (n)=1; and, the line spectral frequency LSF1(n) of the k-1th subframe of the target speech frame=LSF2(n).
[0159] In view of the change of the frame type from unvoiced frame to voiced frame, Pa2(n) can be obtained according to the signal inference process of steps s31-s34, which includes parameter three (i.e., the line spectrum frequency LSFk(n,f) of the kth subframe of the target speech frame) and parameter four (i.e., the interpolation factor α of the target speech frame). lsf (n)).
[0160] The method for determining the frame type in step S504 will be described in detail below.
[0161] In an exemplary embodiment of the present application, t=1, firstly, Figure 6 The network model shown predicts the pitch delay of the four subframes of the target speech frame based on the time domain waveform of the n-1th speech frame and the pitch delay of the four subframes of the n-1th speech frame; then, the frame type of the n-1th speech frame is determined by using the pitch delay of the four subframes of the n-1th speech frame, and the frame type of the target speech frame is determined by using the pitch delay of the four subframes of the target speech frame. The method of determining the frame type by using the pitch delay of the four subframes of the i-th speech frame includes the following s51-s53:
[0162] s51, respectively comparing the pitch delay of each subframe of the i-th speech frame with a delay threshold, and if the pitch delay of the subframe is lower than the delay threshold, setting the pitch delay of the subframe to a specific value;
[0163] s52, counting the proportion of subframes in the i-th speech frame whose pitch delay is a specific value;
[0164] s53, if the number ratio is greater than the preset ratio, the i-th frame is determined to be an unvoiced frame; if the number ratio is not greater than the preset ratio, the i-th frame is determined to be a voiced frame.
[0165] In steps s51-s53, the delay threshold can be set according to actual conditions, for example, the delay threshold can be set to 2.5ms, 2ms, etc. The specific value refers to a specific numerical value, and the specific value here can be 0. The preset ratio can also be set according to actual needs, such as 1 / 2, 3 / 4, etc. If the pitch delay of a subframe of the i-th frame speech frame is less than the delay threshold (such as 2.5ms), the pitch delay of the subframe is set to 0; the number of all subframes with a pitch delay of 0 in the i-th frame speech frame is counted, and the number ratio is obtained by dividing the number of subframes with a pitch delay of 0 by the number of all subframes of the i-th frame speech frame (4 in this example); if this number ratio is greater than the preset ratio (such as 1 / 2), then the i-th frame speech frame is an unvoiced frame; otherwise, the i-th frame speech frame is a voiced frame.
[0166] By adopting the method of steps s51-s53, the frame type of the n-1th speech frame can be obtained based on the pitch delay of the 4 subframes of the n-1th speech frame. Similarly, the frame type of the target speech frame can be determined based on the pitch delay of the 4 subframes of the target speech frame. Step S504 can compare the changes between the frame type of the n-1th speech frame and the frame type of the target speech frame, and then perform targeted signal inference processing according to different changes, so as to predict Pa2(n) of the target speech frame.
[0167] See also Figure 5 , the speech processing method further includes:
[0168] S505: Establish a reconstruction filter according to the parameter set.
[0169] The parameter set Pa(n) of the target speech frame includes Pa1(n) and Pa2(n), Pa1(n) includes the long-term correlation parameters (parameter one and parameter two) of the target speech frame, and also includes the energy parameters (i.e. parameter three) of the target speech frame; Pa2(n) includes the short-term correlation parameters (parameter four and parameter five) of the target speech frame. As mentioned above, the reconstruction filter includes an LTP filter and an LPC filter. The LTP filter can be established using the long-term correlation parameters (parameter one and parameter two) of the target speech frame in Pa1(n), and the LPC filter can be established using the short-term correlation parameters (parameter four and parameter five) of the target speech frame in Pa2(n). Referring to the above formula 1.1, the establishment of the filter mainly lies in determining the corresponding coefficients of the filter, and the establishment of the LTP filter lies in determining the LTP coefficients, and parameter two already includes the LTP coefficients, so the LTP filter can be established relatively simply based on parameter two.
[0170] The establishment of the LPC filter is to determine the LPC coefficient; the establishment process of the LPC coefficient is as follows:
[0171] First, parameter 4 refers to the line spectrum frequency LSF2(n) of the second subframe of the target speech frame, which contains a total of 16 LSF coefficients; parameter 5 refers to the interpolation factor α of the target speech frame lsf (n). According to step S504, when the frame type does not change, the line spectrum frequency LSF1(n) of the first subframe of the target speech frame can be realized by the interpolation shown in formula 1.7; when the frame type changes, the line spectrum frequency LSF1(n) of the first subframe of the target speech frame = LSF2(n).
[0172] Secondly, according to the relevant derivation of the above-mentioned formulas 1.1 to 1.5, it can be known that the LPC coefficient and the LSF coefficient are related. Combining formulas 1.1 to 1.5 can respectively obtain the 16th-order LPC coefficient of the first sub-frame 10ms before the target speech frame, that is, LPC1(n); and obtain the 16th-order LPC coefficient of the second sub-frame 10ms after the target speech frame, that is, LPC2(n).
[0173] The LPC coefficients can be determined through the above process, and the LPC filter can be established accordingly.
[0174] S506, obtaining an excitation signal of the target speech frame.
[0175] S507, using a reconstruction filter to filter the excitation signal of the target speech frame to obtain the target speech frame.
[0176] Figure 7 The schematic diagram of the structure of a speech generation model based on an excitation signal provided by an exemplary embodiment of the present application is shown; the physical basis of the speech generation model based on the excitation signal is the human sound generation process, which can be roughly divided into two sub-processes: (1) When a person is speaking, a noise-like impact signal with a certain energy is generated in the human trachea; this impact signal corresponds to the excitation signal, which is a set of random signed noise-like sequences with strong fault tolerance. (2) The impact signal impacts the human vocal cords, producing a quasi-periodic opening and closing; after being amplified by the mouth, a sound is emitted; this process corresponds to a reconstruction filter, and the working principle of the reconstruction filter is to simulate this process to construct a sound. Sounds are divided into unvoiced and voiced sounds. The so-called voiced sound refers to the sound of the vocal cords vibrating when pronouncing; and the unvoiced sound refers to the sound of the vocal cords not vibrating. Taking into account the above characteristics of sound, the above human sound generation process will be further refined: (3) For quasi-periodic signals such as voiced sounds, LTP filters and LPC filters need to be used in the reconstruction process, and the excitation signal will impact the LTP filter and LPC filter respectively; (4) For non-periodic signals such as unvoiced sounds, only LPC filters need to be used in the reconstruction process, and the excitation signal will only impact the LPC filter.
[0177] Based on the above description, it can be known that the excitation signal is a set of random signed noise-like sequences, which is used as a driving source to impact (or excite) the reconstruction filter to generate a target speech frame. In step S506 of the embodiment of the present application, the excitation signal of the historical speech frame can be obtained, and the excitation signal of the target speech frame can be estimated based on the excitation signal of the historical speech frame.
[0178] In one implementation, step S506 may estimate the excitation signal of the target speech frame in a multiplexing manner, and the multiplexing manner may be as shown in the following equation 2.9:
[0179] ex(n)=ex(n-1) Formula 2.9
[0180] In the above formula 2.9, ex(n-1) represents the excitation signal of the n-1th speech frame; ex(n) represents the excitation signal of the target speech frame (ie, the nth speech frame).
[0181] In another implementation, step S506 may estimate the excitation signal of the target speech frame by an average value method, and the average value method may be expressed as shown in the following equation 3.0:
[0182]
[0183] The above formula 3.0 represents the excitation signal of the target speech frame (i.e., the nth speech frame) ex(n) is obtained by averaging the excitation signals of the t-th frame to the n-1-th frame, which is a total of t frames of historical speech frames. In formula 3.0, ex(nq)(1≤q≤t) represents the excitation signal of each speech frame from the nt-th frame to the n-1-th frame.
[0184] In another implementation, step S506 may estimate the excitation signal of the target speech frame by weighted summation, and the weighted summation may be as shown in the following formula 3.1:
[0185]
[0186] The above formula 3.1 represents the weighted summation of the excitation signals of the historical speech frames from the nt frame to the n-1 frame, and obtains the excitation signal ex(n) of the target speech frame (i.e., the nth speech frame). In formula 3.1, ∝ i The weight corresponding to the excitation signal of each historical speech frame is represented. Taking t=5 as an example, a weight combination can be shown in the following Table 1:
[0187] Table 1: Weight table
[0188] project Weight <![CDATA[∝ 1 ]]> 0.40 <![CDATA[∝ 2 ]]> 0.30 <![CDATA[∝ 3 ]]> 0.15 <![CDATA[∝ 4 ]]> 0.10 <![CDATA[∝ 5 ]]> 0.05
[0189] Combination Figure 7In one embodiment, if the target speech frame is a non-periodic signal such as an unvoiced frame, the reconstruction filter may only include an LPC filter, that is, only an LPC filter is needed to filter the excitation signal of the target speech frame; at this time, in the parameter set Pa(n), Pa1(n) includes the energy parameter of the target speech frame (parameter three), and Pa2(n) includes the short-time correlation parameter of the target speech frame (parameter four and parameter five). Then, the process of generating the target speech frame in step S507 refers to the processing process of the LPC filtering stage, including:
[0190] First, parameter 4 refers to the line spectrum frequency LSF2(n) of the second subframe of the target speech frame, which contains a total of 16 LSF coefficients; parameter 5 refers to the interpolation factor α of the target speech frame lsf (n). According to step S504, when the frame type does not change, the line spectrum frequency LSF1(n) of the first subframe of the target speech frame can be realized by the interpolation shown in formula 1.7; when the frame type changes, the line spectrum frequency LSF1(n) of the first subframe of the target speech frame = LSF2(n).
[0191] Secondly, according to the relevant derivation of the above-mentioned formulas 1.1 to 1.5, it can be known that the LPC coefficient and the LSF coefficient are related. Combining formulas 1.1 to 1.5 can respectively obtain the 16th-order LPC coefficient of the first sub-frame 10ms before the target speech frame, that is, LPC1(n); and obtain the 16th-order LPC coefficient of the second sub-frame 10ms after the target speech frame, that is, LPC2(n).
[0192] Again, under the impact of the excitation signal of the target speech frame, LPC1(n) is subjected to LPC filtering to reconstruct the first 10ms of the target speech frame, which is a total of 160 sample points, and gain(n,0) and gain(n,1) are called to amplify the first 160 sample points to obtain the first 160 sample points of the reconstructed target speech frame. Similarly, LPC2(n) is subjected to LPC filtering to reconstruct the last 10ms of the target speech frame, which is a total of 160 sample points, and gain(n,2) and gain(n,3) are called to amplify the last 160 sample points to obtain the last 160 sample points of the reconstructed target speech frame. The first 10ms and the last 10ms of the target speech frame are synthesized to obtain a complete target speech frame.
[0193] In the above LPC filtering process, the LPC filtering of the nth speech frame uses the LSF coefficients of the n-1th speech frame. That is to say, the LPC filtering of the nth speech frame needs to be implemented using the historical speech frames adjacent to the nth speech frame, which confirms the short-time correlation characteristics of the LPC filtering.
[0194] In another embodiment, if the target speech frame is a quasi-periodic signal such as a voiced frame, the reconstruction filter includes an LPC filter and an LTP filter, that is, the LTP filter and the LPC filter need to be used together to filter the excitation signal of the target speech frame. At this time, in the parameter set Pa(n), Pa1(n) includes the long-term correlation parameters (parameters one and two) of the target speech frame and the energy parameters (i.e., parameter three) of the target speech frame, and Pa2(n) includes the short-term correlation parameters (parameters four and five) of the target speech frame. Then, the process of generating the target speech frame in step S507 includes:
[0195] (I) LTP filtering stage:
[0196] First, parameter 1 includes the pitch delays of the four subframes of the target speech frame, namely pitch(n,0), pitch(n,1), pitch(n,2) and pitch(n,3). The pitch delay of each subframe is processed as follows: ① Compare the pitch delay of the subframe with the delay threshold. If the pitch delay of the subframe is lower than the delay threshold, set the pitch delay of the subframe to 0 and omit the LTP filtering step. ② If the pitch delay of the subframe is not lower than the delay threshold, take the historical sample point corresponding to the subframe, set the order of the LTP filter to 5, and call the 5th-order LTP filter to perform LTP filtering on the historical sample point corresponding to the subframe to obtain the LTP filtering result of the subframe. Since the LTP filter reflects the long-term correlation of the speech frame, and the long-term correlation is strongly correlated with the pitch delay, the historical sample points corresponding to the subframe in the LTP filter involved in the above step ② are selected with reference to the pitch delay of the subframe. Specifically, the subframe is used as the starting point, and the number of sample points corresponding to the value of the pitch delay is traced back as the historical sample points corresponding to the subframe. For example, if the value of the pitch delay of the subframe is 100, then the historical sample points corresponding to the subframe refer to the 100 sample points traced back from the subframe. It can be seen that setting the historical sample points corresponding to the subframe with reference to the pitch delay of the subframe actually uses the sample points contained in the historical subframe before the subframe (such as the previous 5ms subframe) to perform LTP filtering, which confirms the long-term correlation characteristics of the LTP filter.
[0197] Secondly, the LTP filtering results of each subframe are synthesized, including synthesizing the LTP filtering results of the first subframe and the LTP filtering results of the second subframe to obtain the LTP synthetic signal of the first subframe of the first 10ms of the target speech frame; synthesizing the LTP filtering results of the third subframe and the LTP filtering results of the fourth subframe to obtain the LTP synthetic signal of the second subframe of the last 10ms of the target speech frame; thus completing the processing of the LTP filtering stage.
[0198] (II) LPC filtering stage:
[0199] Referring to the processing process of the LPC filtering stage in the above implementation mode, firstly, the 16th-order LPC coefficients of the first sub-frame 10 ms before the target speech frame are obtained based on parameters four and five, i.e., LPC1(n); and the 16th-order LPC coefficients of the second sub-frame 10 ms after the target speech frame are obtained, i.e., LPC2(n).
[0200] Secondly, the LTP synthetic signal of the first subframe of the first 10ms of the target speech frame obtained in the LTP filtering stage is used together with LPC1(n) to perform LPC filtering, and the first 10ms of the target speech frame is reconstructed with a total of 160 sample points, and gain(n,0) and gain(n,1) are called to amplify the first 160 sample points to obtain the first 160 sample points of the reconstructed target speech frame. Similarly, the LTP synthetic signal of the second subframe of the last 10ms of the target speech frame obtained in the LTP filtering stage is used together with LPC2(n) to perform LPC filtering, and the last 10ms of the target speech frame is reconstructed with a total of 160 sample points, and gain(n,2) and gain(n,3) are called to amplify the last 160 sample points to obtain the last 160 sample points of the reconstructed target speech frame. The first 10ms and the last 10ms of the target speech frame are synthesized to obtain a complete target speech frame.
[0201] Through the above description of this embodiment, when the nth voice frame in the voice signal needs to be PLC, the voice processing method based on this embodiment can reconstruct the nth voice frame. If continuous packet loss occurs, for example, the n+1th voice frame, the n+2th voice frame, etc. are lost, the n+1th voice frame, the n+2th voice frame, etc. can be reconstructed and restored according to the above process to achieve continuous packet loss compensation and ensure voice call quality.
[0202] In an embodiment of the present application, when it is necessary to reconstruct a target speech frame in a speech signal, the parameter set of the target speech frame is predicted by analyzing the time domain parameters of the historical speech frame, and then the target speech frame is reconstructed according to the parameter set of the target speech frame. The reconstruction process is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements. In addition, since different types of parameters have different tolerances for prediction errors, different prediction strategies can be adopted for different types of parameters. For parameters with low tolerance for prediction errors, a network model prediction strategy can be adopted, which can effectively control the size of the model, greatly simplify the network structure, and reduce processing complexity. For parameters with high tolerance for prediction errors, a signal inference strategy can be adopted. This can effectively improve the efficiency of speech processing. In addition, an embodiment of the present application also supports continuous packet loss compensation, that is, in the event that multiple consecutive voice frames are lost, multiple consecutive voice frames can be reconstructed to ensure the quality of voice calls.
[0203] Figure 8 A flowchart of a speech processing method provided by another exemplary embodiment of the present application is shown; the method comprises Figure 2 The method is performed by the receiving end shown in the figure; the method includes the following steps S801-S808.
[0204] S801, determining a historical speech frame corresponding to a target speech frame to be processed.
[0205] S802, obtaining time domain parameters of historical speech frames.
[0206] S803, calling the network model to predict the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame.
[0207] S804, extracting statistical features of line spectrum frequencies of each sub-frame of the historical speech frame.
[0208] The statistical characteristics of the time domain parameters of the historical speech frame can be used to reflect the changes in the time domain parameters of the historical speech frame over time. The changes here may include but are not limited to: (1) the pronunciation change of the speech frame, such as from voiced sound to unvoiced sound; or from unvoiced sound to silence, etc.; (2) the change of the energy distribution area of the speech frame, for example: which areas correspond to the energy distribution of plosive sounds, and which areas correspond to the energy distribution of unvoiced sounds. The time domain parameter P_prev(n) of the historical speech frame includes P_prev1(n) and P_prev2(n), wherein P_prev1(n) may include at least one of the following: ① the long-term correlation parameter of the historical speech frame, including the pitch delay and the 5th-order LTP filter coefficient of each 5ms subframe of the t-frame historical speech frame, and each subframe of each frame of the historical speech frame corresponds to a pitch delay and 5 LTP coefficients; ② the energy parameter of the historical speech frame, including the gain value of each 5ms subframe of the t-frame historical speech frame. The P_prev2(n) includes the short-time correlation parameters of the historical speech frames, specifically including the LSF coefficients of the t frames of historical speech frames. Considering that the statistical characteristics of the short-time correlation parameters of the historical speech frames are more highly correlated with the reconstructed target speech frames, for example: the statistical characteristics of the short-time correlation parameters of the historical speech frames can better reflect the type conversion of the speech frames over time, and are suitable for segmentation. The parameters of the target speech frames predicted based on this can obtain a more accurate reconstruction effect. This embodiment is explained by taking the extraction of the statistical characteristics of the short-time correlation parameters of the historical speech frames as an example. Figure 8As shown, step S804 extracts the statistical characteristics of the LSF coefficients of each sub-frame of the historical speech frame in P_prev2(n); then, for the LSF coefficient of the i-th frame of the speech frame, the following formulas 1.6 to 1.9 can be used to calculate the LSF coefficient of the historical speech frame to obtain the statistical characteristics of the LSF coefficient of the i-th frame of the speech frame:
[0209]
[0210]
[0211]
[0212]
[0213] In the above formulas 3.2 to 3.5, w k Represents the angular frequency corresponding to the LSF coefficient of the i-th speech frame on the unit circle of the complex plane. The statistical features of the LSF of the i-th speech frame may include at least one of the following features: a first statistical feature Shift(i), a second statistical feature Bias(i) and a third statistical feature Dev(i). From a physical point of view, the first statistical feature Shift(i) is used to reflect the angular frequency w corresponding to the LSF coefficient of the i-th speech frame. k The second statistical feature Bias(i) is used to reflect the angular frequency w corresponding to the LSF coefficient of the i-th speech frame. k The third statistical feature Dev(i) is used to reflect the angular frequency w corresponding to the LSF coefficient of the i-th speech frame. k The higher-order moment of . Among them, when β takes the value of 1, formula 1.8 takes into account the influence of the sign on the third statistical feature Dev(i). When the third statistical feature Dev(i) is a positive number, it means that the LSF coefficient of the i-th frame of speech frame is distributed at a high frequency; conversely, when the third statistical feature Dev(i) is a negative number, it means that the LSF coefficient of the i-th frame of speech frame is distributed at a low frequency.
[0214] Fig. 9 A schematic diagram showing the statistical characteristics of time domain parameters of historical speech frames provided by an exemplary embodiment of the present application is shown; Fig. 9What is presented are examples of three statistical features of the LSF coefficients of the i-th speech frame; the peak value of the first statistical feature Shift(i) corresponds to the pronunciation change of the i-th speech frame, such as the change from voiced sound to unvoiced sound, or from unvoiced sound to silence, or the continuous change from voiced sound to unvoiced sound to silence; the peak value of the first statistical feature Shift(i) can be used to segment the speech signal. The peak area of the second statistical feature Bias(i) corresponds to the energy area where the plosive sound of the i-th speech frame is located; the peak area of the third statistical feature Dev(i) corresponds to the energy area where the unvoiced sound of the i-th speech frame is located. In one embodiment, the above-mentioned formulas 3.2-3.5 can be used to calculate the LSF coefficients of each frame in the historical speech frame respectively, and the above-mentioned three statistical features of the LSF coefficients of each frame of the historical speech frame are obtained. In another embodiment, modeling can also be performed based on the above-mentioned formulas 3.2-3.5, and the statistical features of the LSF coefficients of each frame in the historical speech frame can be extracted by the established model.
[0215] In one embodiment, any one of the first statistical feature Shift(i), the second statistical feature Bias(i) and the third statistical feature Dev(i), or a combination of any two of them, or three of them can be extracted and handed over to the subsequent network model for prediction processing. The embodiment of the present application does not limit the type and quantity of the extracted statistical features. This embodiment takes the extraction of the first statistical feature Shift(i) as an example for explanation. Further, the i-th frame of speech frame contains two 10ms sub-frames, then the statistical features of the LSF coefficients of the two sub-frames of the i-th frame of speech frame are extracted respectively, then the statistical features of the LSF coefficients of the first sub-frame of the i-th frame of speech frame can be expressed as Shift1(i); the statistical features of the LSF coefficients of the second sub-frame of the i-th frame of speech frame can be expressed as Shift2(i), and Shift1(i) and Shift2(i) can form a two-dimensional statistical feature vector {Shift1(i), Shift2(i)} corresponding to the i-th frame of speech frame. For the convenience of description, taking t=2 as an example, {Shift1(n-2), Shift2(n-2)} of the n-2th speech frame and {Shift1(n-1), Shift2(n-1)} of the n-1th speech frame can be extracted. In order to better use the statistical features of the historical speech frame in subsequent steps, in step S804, the difference processing can be performed between the elements in the statistical feature vectors of all historical speech frames extracted, and the feature vector formed after the difference processing result is recorded as the statistical feature SP_prev2(n) finally extracted in step S804. In the example shown in this embodiment, the SP_prev2(n) is a three-dimensional feature vector, and the SP_prev2(n) is expressed as {SP_Shift1(n), SP_Shift2(n), SP_Shift3(n)}; wherein, SP_Shift1(n) = Shift2(n-2)-Shift1(n-2); SP_Shift2(n) = Shift1(n-1)-Shift2(n-2); SP_Shift3(n) = Shift2(n-1)-Shift1(n-1). The SP_prev2(n) can be used in step S805 to determine whether the frame type has changed.
[0216] S805, comparing the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed; performing signal inference processing on the short-time correlation parameters of the historical speech frame according to the comparison result to obtain the short-time correlation parameters of the target speech frame.
[0217] In step S805, the process of comparing the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed may include the following steps s61-s62:
[0218] s61, iteratively subtracting the statistical features of the line spectrum frequencies of each subframe of the historical speech frame, and summing the iterative subtraction results to obtain a comparison variable;
[0219] s62, if the comparison variable is greater than the change threshold, a comparison result indicating that the frame type has changed is obtained.
[0220] In steps s61-s62, the three elements in SP_prev2(n) are iteratively subtracted, and the iterative subtraction results are summed to obtain the comparison variable avg shift(n) , as shown in the following formula 3.6:
[0221] avg shift(n) =local_shift1(n)+local_shift2(n) Equation 3.6
[0222] in,
[0223] local_shift1(n)=SP_shift2(n)-SP_shift1(n)
[0224] local_shift1(n)=SP_shift3(n)-SP_shift2(n)
[0225] In getting the comparison variable avg shift(n) , you can use the avg shift(n) Compared with the change threshold, the change threshold can be set based on experience. If avg shift(n) The value of is greater than the change threshold, indicating that the frame type has changed, that is, the frame type of the target speech frame has changed compared with the frame type of the historical speech frame; if avg shift(n) If the value of is not greater than the change threshold, it means that the frame type has not changed, that is, the frame type of the target speech frame is the same as the frame type of the historical speech frame. In the case where it is determined that the frame type has changed, it is necessary to further determine the frame type of the historical speech frame and the frame type of the target speech frame to further determine how the frame type has changed. In one embodiment, see Figure 5In steps s51-s53 of the illustrated embodiment, the frame type of the n-1th speech frame can be determined based on the pitch delay of the four subframes of the n-1th speech frame; since the frame type changes, after determining the frame type of the n-1th speech frame, the frame type of the target speech frame can be quickly determined; for example: if the n-1th speech frame is determined to be a voiced frame, then the target speech frame can be quickly determined to be an unvoiced frame, and the frame type changes from a voiced frame to an unvoiced frame; for another example: if the n-1th speech frame is determined to be an unvoiced frame, then the target speech frame can be quickly determined to be a voiced frame, and the frame type changes from an unvoiced frame to a voiced frame. Of course, it can be understood that the frame type of the target speech frame in this embodiment can also be determined in the manner of steps s51-s53, which will not be repeated here.
[0226] S806: Establish a reconstruction filter according to the parameter set.
[0227] S807, obtaining an excitation signal of the target speech frame.
[0228] S808, using a reconstruction filter to filter the excitation signal of the target speech frame to obtain the target speech frame.
[0229] For relevant contents of steps S801-S803 and steps S805-S808 in this embodiment, please refer to Figure 5 The description of steps S501 to S507 of the illustrated embodiment will not be repeated here.
[0230] In an embodiment of the present application, when it is necessary to reconstruct a target speech frame in a speech signal, the parameter set of the target speech frame is predicted by analyzing the time domain parameters of the historical speech frame, and then the target speech frame is reconstructed according to the parameter set of the target speech frame. The reconstruction process is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements. In addition, since different types of parameters have different tolerances for prediction errors, different prediction strategies can be adopted for different types of parameters. For parameters with low tolerance for prediction errors, a network model prediction strategy can be adopted, which can effectively control the size of the model, greatly simplify the network structure, and reduce processing complexity. For parameters with high tolerance for prediction errors, a signal inference strategy can be adopted. This can effectively improve the efficiency of speech processing. In addition, an embodiment of the present application also supports continuous packet loss compensation, that is, in the event that multiple consecutive voice frames are lost, multiple consecutive voice frames can be reconstructed to ensure the quality of voice calls.
[0231] Fig.10The structure diagram of a speech processing device provided by an exemplary embodiment of the present application is shown; the speech processing device can be used as a computer program (including program code) running in a terminal, for example, the speech processing device can be an application program in the terminal (such as an App providing a VoIP call function); the terminal running the speech processing device can be used as Figure 1 or Figure 2 The receiving end shown; the speech processing device can be used to perform the following Figure 4 , Figure 5 or Figure 8 Some or all of the steps in the method embodiment shown. Fig.10 , the speech processing device comprises the following units:
[0232] A determination unit 1001 is used to determine a historical speech frame corresponding to a target speech frame to be processed;
[0233] An acquisition unit 1002 is used to acquire time domain parameters of historical speech frames;
[0234] The processing unit 1003 is used to predict a parameter set of a target speech frame according to the time domain parameters of the historical speech frames, wherein the parameter set includes at least two parameters; and to reconstruct the target speech frame according to the parameter set.
[0235] In one implementation, the target voice frame refers to the nth voice frame in the voice signal transmitted via the VoIP system;
[0236] The historical voice frames include t-th frame to n-1-th frame in total of t voice frames in the voice signal transmitted through the VoIP system, where n and t are both positive integers;
[0237] Each speech frame in the speech signal includes k sub-frames and m sub-frames, where k is an integer greater than 1 and m is a positive integer.
[0238] In one embodiment, the time domain parameters of the historical speech frame include the long-term correlation parameters of the historical speech frame; the parameter set includes the long-term correlation parameters of the target speech frame; the processing unit 1003 is specifically used to: call the network model to predict the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame.
[0239] In one implementation, the long-term correlation parameter includes a pitch delay and a long-term prediction coefficient; the network model includes a first neural network and at least two second neural networks, the second neural network being a subnetwork of the first neural network; a second neural network is used to predict a long-term correlation parameter in a parameter set; the processing unit 1003 is specifically used to:
[0240] Calling the first neural network to process the time domain waveform of the historical speech frame to obtain intermediate parameters;
[0241] Inputting the intermediate parameters and the pitch delay of the historical speech frame as input information into the second neural network for prediction processing to obtain the pitch delay of the target speech frame; and
[0242] The intermediate parameters and the long-term prediction coefficients of the historical speech frames are input as input information into the second neural network for prediction processing to obtain the long-term prediction coefficients of the target speech frames.
[0243] In one implementation, the time domain parameters of the historical speech frame include short-time correlation parameters of the historical speech frame; the short-time correlation parameters of the historical speech frame include line spectrum frequencies of each subframe of the historical speech frame; the parameter set includes short-time correlation parameters of the target speech frame; the short-time correlation parameters of the target speech frame include line spectrum frequencies and interpolation factors of the kth subframe of the target speech frame; the processing unit 1003 is specifically used to:
[0244] Compare the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed;
[0245] According to the comparison result, the short-time correlation parameters of the historical speech frame are subjected to signal inference processing to obtain the short-time correlation parameters of the target speech frame;
[0246] The comparison result includes: the frame type has changed or the frame type has not changed; the frame type has not changed means that the frame type of the historical voice frame is the same as the frame type of the target voice frame;
[0247] The frame type changes include: the historical speech frame is a voiced frame, and the target speech frame is an unvoiced frame; or, the historical speech frame is an unvoiced frame, and the target speech frame is a voiced frame.
[0248] In one implementation, the processing unit 1003 is specifically configured to:
[0249] If the frame type of the historical speech frame is the same as the frame type of the target speech frame, setting the interpolation factor of the target speech frame to a first value; and,
[0250] The average value of the line spectrum frequencies of all sub-frames of the historical speech frame is set as the line spectrum frequency of the k-th sub-frame of the target speech frame.
[0251] In one implementation, any subframe of each speech frame in the speech signal includes p line spectrum frequencies, and among the p line spectrum frequencies, the fth line spectrum frequency and the f+1th line spectrum frequency are configured as an associated pair; wherein f is an integer and an even number, p is a positive integer, 0≤f≤p; the processing unit 1003 is specifically used to:
[0252] If the historical speech frame is a voiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value; and,
[0253] Obtain the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the maximum item in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong;
[0254] The sum of the f-th line spectrum frequency and the absolute value of the k-th subframe of the historical speech frame is set as the f-th line spectrum frequency in the k-th subframe of the target speech frame; and
[0255] The sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the maximum term is set to the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
[0256] In one implementation, any subframe of each speech frame in the speech signal includes p line spectrum frequencies, and among the p line spectrum frequencies, the fth line spectrum frequency and the f+1th line spectrum frequency are configured as an associated pair; wherein f is an integer and an even number, p is a positive integer, 0≤f≤p; the processing unit 1003 is specifically used to:
[0257] If the historical speech frame is an unvoiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value; and,
[0258] Obtain the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the minimum item in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong;
[0259] The difference between the fth line spectrum frequency and the absolute value of the kth subframe of the historical speech frame is set as the fth line spectrum frequency in the kth subframe of the target speech frame; and
[0260] The sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the minimum term is set to the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
[0261] In one implementation, the time domain parameters of the historical speech frames include long-term correlation parameters of the historical speech frames; the processing unit 1003 is specifically configured to:
[0262] The network model is called to predict the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame;
[0263] Determining the frame type of the n-1th speech frame by using the long-term correlation parameter of the n-1th speech frame, and determining the frame type of the target speech frame by using the predicted long-term correlation parameter of the target speech frame; and,
[0264] Compare the frame type of the n-1th speech frame with the frame type of the target speech frame to see whether they have changed.
[0265] In one implementation, the processing unit 1003 is further configured to: extract statistical features of line spectrum frequencies of each sub-frame of the historical speech frame; and,
[0266] Iteratively subtract the statistical characteristics of the line spectrum frequencies of each subframe of the historical speech frame, and sum the iterative subtraction results to obtain a comparison variable;
[0267] If the comparison variable is greater than the change threshold, a comparison result indicating a change in the frame type is obtained;
[0268] If the comparison change amount is not greater than the change threshold, a comparison result indicating that the frame type has not changed is obtained.
[0269] In one implementation, the time domain parameters of the historical speech frame include the long-term correlation parameters of the n-1th speech frame; the processing unit 1003 is further configured to:
[0270] If the comparison result is that the frame type has changed, the frame type of the n-1th speech frame is determined using the long-term correlation parameter of the n-1th speech frame; and,
[0271] The frame type of the target speech frame is determined according to the frame type of the (n-1)th speech frame.
[0272] In one implementation, any speech frame in a speech signal is represented as an i-th speech frame, and the time domain parameters of the i-th speech frame include a long-term correlation parameter, and the long-term correlation parameter includes a pitch delay of m subframes of the i-th speech frame; and the method of using the long-term correlation parameter of the i-th frame to determine the frame type includes:
[0273] Comparing the pitch delay of each subframe of the i-th speech frame with a delay threshold, respectively, and if the pitch delay of the subframe is lower than the delay threshold, setting the pitch delay of the subframe to a specific value;
[0274] Count the proportion of subframes with a specific pitch delay value in the i-th speech frame;
[0275] If the number ratio is greater than the preset ratio, the i-th frame is determined to be an unvoiced frame; if the number ratio is not greater than the preset ratio, the i-th frame is determined to be a voiced frame.
[0276] In one implementation, the processing unit 1003 is specifically configured to:
[0277] Establishing a reconstruction filter according to the parameter set;
[0278] Obtaining an excitation signal of a target speech frame;
[0279] A reconstruction filter is used to filter the excitation signal of the target speech frame to obtain the target speech frame;
[0280] Among them, if the target speech frame is an unvoiced frame, the time domain parameters of the historical speech frame include short-time correlation parameters of the historical speech frame, and the parameter set includes the short-time correlation parameters of the target speech frame; the reconstruction filter includes a linear prediction coding filter; if the target speech frame is a voiced frame, the time domain parameters of the historical speech frame include short-time correlation parameters and long-time correlation parameters of the historical speech frame, and the parameter set includes short-time correlation parameters of the target speech frame and long-time correlation parameters of the target speech frame; the reconstruction filter includes a long-time prediction filter and a linear prediction coding filter.
[0281] In one implementation, the processing unit 1003 is specifically configured to:
[0282] Obtaining an excitation signal of a historical speech frame;
[0283] The excitation signal of the target speech frame is estimated according to the excitation signal of the historical speech frame.
[0284] In one implementation, the excitation signal of the historical speech frame includes the excitation signal of the n-1th speech frame; the processing unit 1003 is specifically configured to: determine the excitation signal of the n-1th speech frame as the excitation signal of the target speech frame.
[0285] In one implementation, the excitation signal of the historical speech frame includes the excitation signal of each speech frame from the nt frame to the n-1 frame; the processing unit 1003 is specifically used to: calculate the average value of the excitation signals of the t frames of speech frames from the nt frame to the n-1 frame, to obtain the excitation signal of the target speech frame.
[0286] In one implementation, the excitation signal of the historical speech frame includes the excitation signal of each speech frame from the nt frame to the n-1 frame; the processing unit 1003 is specifically used to: perform weighted summation on the excitation signals of the nt frame to the n-1 frame, a total of t frames of speech frames, to obtain the excitation signal of the target speech frame.
[0287] In one implementation, the network model further includes a third neural network, and the third neural network and the first neural network or the second neural network are parallel networks; the time domain parameters of the historical speech frames include energy parameters of the historical speech frames; then the processing unit 1003 is further used to:
[0288] The third neural network is called to predict the energy parameters of the historical speech frames to obtain the energy parameters of the target speech frame. The energy parameters of the target speech frame belong to a parameter set of the target speech frame. The energy parameters of the target speech frame include gain values of each subframe of the target speech frame.
[0289] In an embodiment of the present application, when it is necessary to reconstruct a target speech frame in a speech signal, the parameter set of the target speech frame is predicted by analyzing the time domain parameters of the historical speech frame, and then the target speech frame is reconstructed according to the parameter set of the target speech frame. The reconstruction process is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements. In addition, since different types of parameters have different tolerances for prediction errors, different prediction strategies can be adopted for different types of parameters. For parameters with low tolerance for prediction errors, a network model prediction strategy can be adopted, which can effectively control the size of the model, greatly simplify the network structure, and reduce processing complexity. For parameters with high tolerance for prediction errors, a signal inference strategy can be adopted. This can effectively improve the efficiency of speech processing. In addition, an embodiment of the present application also supports continuous packet loss compensation, that is, in the event that multiple consecutive voice frames are lost, multiple consecutive voice frames can be reconstructed to ensure the quality of voice calls.
[0290] Fig.11 A schematic diagram of the structure of a voice processing device provided by another exemplary embodiment of the present application is shown; the voice processing device can be used as a computer program (including program code) running in a terminal, for example, the voice processing device can be an application program in the terminal (such as an App that provides a VoIP call function); the terminal running the voice processing device can be used as Figure 1 or Figure 2 The receiving end shown; the speech processing device can be used to perform Figure 3 Some or all of the steps in the method embodiment shown. Fig.11 , the speech processing device comprises the following units:
[0291] The receiving unit 1101 is used to receive the voice signal transmitted via the VoIP system;
[0292] The processing unit 1102 is used to, when the target speech frame in the speech signal is lost, adopt the following method: Figure 4 , Figure 5 or Figure 8 The method shown reconstructs the target speech frame;
[0293] The output unit 1103 is configured to output a speech signal based on the reconstructed target speech frame.
[0294] In one implementation, the processing unit 1102 is further configured to:
[0295] Obtaining redundant information of a target speech frame;
[0296] When a target speech frame in a speech signal is lost, the target speech frame is reconstructed according to redundant information of the target speech frame;
[0297] If the target speech frame cannot be reconstructed based on the redundant information of the target speech frame, the following method is used: Figure 4 , Figure 5 or Figure 8 The method shown reconstructs the target speech frame.
[0298] In an embodiment of the present application, when a target voice frame in a VoIP voice signal is lost, an improved PLC technology can be used to reconstruct the target voice frame. The reconstruction process of the improved PLC technology is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements. In addition, it supports continuous packet loss compensation, that is, when multiple consecutive voice frames are lost, it is possible to reconstruct multiple consecutive voice frames to ensure the quality of voice calls. Moreover, the improved PLC technology can also be used in combination with the FEC technology to avoid the adverse effects of sound quality damage in a relatively flexible combination manner.
[0299] Fig.12 FIG. 1 shows a schematic diagram of the structure of a speech processing device provided by an exemplary embodiment of the present application. Fig.12 , the speech processing device may be Figure 1 or Figure 2 At the receiving end shown, the speech processing device includes a processor 1201, an input device 1202, an output device 1203 and a computer-readable storage medium 1204. The processor 1201, the input device 1202, the output device 1203 and the computer-readable storage medium 1204 can be connected via a bus or other means. The computer-readable storage medium 1204 can be stored in the memory of the speech processing device, the computer-readable storage medium 1204 is used to store a computer program, the computer program includes program instructions, and the processor 111 is used to execute the program instructions stored in the computer-readable storage medium 1204. The processor 1201 (or CPU (Central Processing Unit)) is the computing core and control core of the speech processing device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.
[0300] The embodiment of the present application also provides a computer-readable storage medium (Memory), wherein the computer-readable storage medium is a memory device in a speech processing device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the speech processing device and the extended storage medium supported by the speech processing device. The computer-readable storage medium provides a storage space, which stores the operating system of the speech processing device. In addition, one or more instructions suitable for being loaded and executed by the processor 1201 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0301] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor 1201 loads and executes the one or more instructions stored in the computer-readable storage medium to implement the following. Figure 4 , Figure 5 or Figure 8 Corresponding steps of the speech processing method in the illustrated embodiment; in a specific implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the following steps:
[0302] Determine a historical speech frame corresponding to a target speech frame to be processed;
[0303] Obtaining time domain parameters of historical speech frames;
[0304] A parameter set of a target speech frame is obtained according to time domain parameter prediction of the historical speech frame, wherein the parameter set includes at least two parameters;
[0305] Reconstruct the target speech frame according to the parameter set.
[0306] In one implementation, the target voice frame refers to the nth voice frame in the voice signal transmitted via the VoIP system;
[0307] The historical voice frames include t-th frame to n-1-th frame in total of t voice frames in the voice signal transmitted through the VoIP system, where n and t are both positive integers;
[0308] Each speech frame in the speech signal includes k sub-frames and m sub-frames, where k is an integer greater than 1 and m is a positive integer.
[0309] In one implementation, the time domain parameters of the historical speech frames include the long-term correlation parameters of the historical speech frames; the parameter set includes the long-term correlation parameters of the target speech frame; when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the step of predicting the parameter set of the target speech frame according to the time domain parameters of the historical speech frames, the following steps are specifically performed:
[0310] The network model is called to predict the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame.
[0311] In one implementation, the long-term correlation parameter includes a pitch delay and a long-term prediction coefficient; the network model includes a first neural network and at least two second neural networks, the second neural network being a subnetwork of the first neural network; a second neural network is used to predict a long-term correlation parameter in a parameter set; one or more instructions in a computer-readable storage medium are loaded and executed by the processor 1201 to call the network model to predict the time domain waveform of a historical speech frame and the long-term correlation parameters of the historical speech frame, and obtain the long-term correlation parameters of the target speech frame, and the following steps are specifically performed:
[0312] Calling the first neural network to process the time domain waveform of the historical speech frame to obtain intermediate parameters;
[0313] Inputting the intermediate parameters and the pitch delay of the historical speech frame as input information into the second neural network for prediction processing to obtain the pitch delay of the target speech frame; and
[0314] The intermediate parameters and the long-term prediction coefficients of the historical speech frames are input as input information into the second neural network for prediction processing to obtain the long-term prediction coefficients of the target speech frames.
[0315] In one implementation, the time domain parameters of the historical speech frame include short-time correlation parameters of the historical speech frame; the short-time correlation parameters of the historical speech frame include line spectrum frequencies of each subframe of the historical speech frame; the parameter set includes short-time correlation parameters of the target speech frame; the short-time correlation parameters of the target speech frame include line spectrum frequencies and interpolation factors of the kth subframe of the target speech frame;
[0316] When one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and executed to predict the time domain parameters of the historical speech frames to obtain the parameter set of the target speech frame, the following steps are specifically performed:
[0317] Compare the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed;
[0318] According to the comparison result, the short-time correlation parameters of the historical speech frame are subjected to signal inference processing to obtain the short-time correlation parameters of the target speech frame;
[0319] The comparison result includes: the frame type has changed or the frame type has not changed; the frame type has not changed means that the frame type of the historical voice frame is the same as the frame type of the target voice frame;
[0320] The frame type changes include: the historical speech frame is a voiced frame, and the target speech frame is an unvoiced frame; or, the historical speech frame is an unvoiced frame, and the target speech frame is a voiced frame.
[0321] In one implementation, when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and executed to perform signal inference processing on the short-time correlation parameters of the historical speech frames according to the comparison results to obtain the short-time correlation parameters of the target speech frames, the following steps are specifically performed:
[0322] If the frame type of the historical speech frame is the same as the frame type of the target speech frame, setting the interpolation factor of the target speech frame to a first value; and,
[0323] The average value of the line spectrum frequencies of all sub-frames of the historical speech frame is set as the line spectrum frequency of the k-th sub-frame of the target speech frame.
[0324] In one implementation, any subframe of each speech frame in the speech signal contains p line spectrum frequencies, and among the p line spectrum frequencies, the fth line spectrum frequency and the f+1th line spectrum frequency are configured as an associated pair; wherein f is an integer and an even number, p is a positive integer, and 0≤f≤p;
[0325] When one or more instructions in the computer-readable storage medium are loaded and executed by the processor 1201 to perform signal inference processing on the short-time correlation parameters of the historical speech frames according to the comparison results to obtain the short-time correlation parameters of the target speech frames, the following steps are specifically performed:
[0326] If the historical speech frame is a voiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value; and,
[0327] Obtain the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the maximum item in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong;
[0328] The sum of the f-th line spectrum frequency and the absolute value of the k-th subframe of the historical speech frame is set as the f-th line spectrum frequency in the k-th subframe of the target speech frame; and
[0329] The sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the maximum term is set to the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
[0330] In one implementation, any subframe of each speech frame in the speech signal contains p line spectrum frequencies, and among the p line spectrum frequencies, the fth line spectrum frequency and the f+1th line spectrum frequency are configured as an associated pair; wherein f is an integer and an even number, p is a positive integer, and 0≤f≤p;
[0331] When one or more instructions in the computer-readable storage medium are loaded and executed by the processor 1201 to perform signal inference processing on the short-time correlation parameters of the historical speech frames according to the comparison results to obtain the short-time correlation parameters of the target speech frames, the following steps are specifically performed:
[0332] If the historical speech frame is an unvoiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value; and,
[0333] Obtain the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the minimum item in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong;
[0334] The difference between the fth line spectrum frequency and the absolute value of the kth subframe of the historical speech frame is set as the fth line spectrum frequency in the kth subframe of the target speech frame; and
[0335] The sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the minimum term is set to the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
[0336] In one implementation, the time domain parameters of the historical speech frames include long-term correlation parameters of the historical speech frames; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further perform the following steps:
[0337] The network model is called to predict the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame;
[0338] Determine the frame type of the n-1th speech frame by using the long-term correlation parameter of the n-1th speech frame, and determine the frame type of the target speech frame by using the predicted long-term correlation parameter of the target speech frame;
[0339] Comparing the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed, includes: comparing the frame type of the n-1th speech frame and the frame type of the target speech frame to see whether they have changed.
[0340] In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and further perform the following steps: extracting statistical features of line spectrum frequencies of each subframe of the historical speech frame;
[0341] In this implementation manner, when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the step of comparing the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed, the following steps are specifically performed:
[0342] Iteratively subtract the statistical characteristics of the line spectrum frequencies of each subframe of the historical speech frame, and sum the iterative subtraction results to obtain a comparison variable;
[0343] If the comparison variable is greater than the change threshold, a comparison result indicating a change in the frame type is obtained;
[0344] If the comparison change amount is not greater than the change threshold, a comparison result indicating that the frame type has not changed is obtained.
[0345] In one implementation, the time domain parameters of the historical speech frame include the long-term correlation parameters of the n-1th speech frame; one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and the following steps are also performed:
[0346] If the comparison result is that the frame type has changed, the frame type of the n-1th speech frame is determined using the long-term correlation parameter of the n-1th speech frame; and,
[0347] The frame type of the target speech frame is determined according to the frame type of the (n-1)th speech frame.
[0348] In one implementation, any speech frame in a speech signal is represented as an i-th speech frame, and the time domain parameters of the i-th speech frame include a long-term correlation parameter, and the long-term correlation parameter includes a pitch delay of m subframes of the i-th speech frame; and a method for determining a frame type using the long-term correlation parameter of the i-th frame includes:
[0349] Comparing the pitch delay of each subframe of the i-th speech frame with a delay threshold, respectively, and if the pitch delay of the subframe is lower than the delay threshold, setting the pitch delay of the subframe to a specific value;
[0350] Count the proportion of subframes with a specific pitch delay value in the i-th speech frame;
[0351] If the number ratio is greater than the preset ratio, the i-th frame is determined to be an unvoiced frame; if the number ratio is not greater than the preset ratio, the i-th frame is determined to be a voiced frame.
[0352] In one implementation, when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and the step of reconstructing the target speech frame according to the parameter set is executed, the following steps are specifically performed:
[0353] Establishing a reconstruction filter according to the parameter set;
[0354] Obtaining an excitation signal of a target speech frame;
[0355] A reconstruction filter is used to filter the excitation signal of the target speech frame to obtain the target speech frame;
[0356] Among them, if the target speech frame is an unvoiced frame, the time domain parameters of the historical speech frame include short-time correlation parameters of the historical speech frame, and the parameter set includes the short-time correlation parameters of the target speech frame; the reconstruction filter includes a linear prediction coding filter; if the target speech frame is a voiced frame, the time domain parameters of the historical speech frame include short-time correlation parameters and long-time correlation parameters of the historical speech frame, and the parameter set includes short-time correlation parameters of the target speech frame and long-time correlation parameters of the target speech frame; the reconstruction filter includes a long-time prediction filter and a linear prediction coding filter.
[0357] In one implementation, when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and the step of obtaining the excitation signal of the target speech frame is executed, the following steps are specifically performed:
[0358] Obtaining an excitation signal of a historical speech frame;
[0359] The excitation signal of the target speech frame is estimated according to the excitation signal of the historical speech frame.
[0360] In one embodiment, the excitation signal of the historical speech frame includes the excitation signal of the n-1th frame speech frame; when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the step of estimating the excitation signal of the target speech frame based on the excitation signal of the historical speech frame, the following steps are specifically performed: the excitation signal of the n-1th frame speech frame is determined as the excitation signal of the target speech frame.
[0361] In one embodiment, the excitation signal of the historical speech frame includes the excitation signal of each speech frame from the nt frame to the n-1 frame; when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the step of estimating the excitation signal of the target speech frame based on the excitation signal of the historical speech frame, the following steps are specifically performed: the excitation signal of the t-th frame to the n-1-th frame, a total of t frames of speech frames, is averaged to obtain the excitation signal of the target speech frame.
[0362] In one embodiment, the excitation signal of the historical speech frame includes the excitation signal of each speech frame from the nt frame to the n-1 frame; when one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the step of estimating the excitation signal of the target speech frame based on the excitation signal of the historical speech frame, the following steps are specifically performed: weighted summation of the excitation signals of the nt frame to the n-1 frame, a total of t frames of speech frames, is performed to obtain the excitation signal of the target speech frame.
[0363] In one implementation, the network model further includes a third neural network, and the third neural network and the first neural network or the second neural network are parallel networks; the time domain parameters of the historical speech frames include energy parameters of the historical speech frames; then one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and the following steps are also performed:
[0364] The third neural network is called to predict the energy parameters of the historical speech frames to obtain the energy parameters of the target speech frame. The energy parameters of the target speech frame belong to a parameter set of the target speech frame. The energy parameters of the target speech frame include gain values of each subframe of the target speech frame.
[0365] In an embodiment of the present application, when it is necessary to reconstruct a target speech frame in a speech signal, the parameter set of the target speech frame is predicted by analyzing the time domain parameters of the historical speech frame, and then the target speech frame is reconstructed according to the parameter set of the target speech frame. The reconstruction process is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements. In addition, since different types of parameters have different tolerances for prediction errors, different prediction strategies can be adopted for different types of parameters. For parameters with low tolerance for prediction errors, a network model prediction strategy can be adopted, which can effectively control the size of the model, greatly simplify the network structure, and reduce processing complexity. For parameters with high tolerance for prediction errors, a signal inference strategy can be adopted. This can effectively improve the efficiency of speech processing. In addition, an embodiment of the present application also supports continuous packet loss compensation, that is, in the event that multiple consecutive voice frames are lost, multiple consecutive voice frames can be reconstructed to ensure the quality of voice calls.
[0366] In another embodiment, the processor 1201 loads and executes one or more instructions stored in a computer-readable storage medium to implement Figure 3 Corresponding steps of the speech processing method in the illustrated embodiment; in a specific implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 1201 and execute the following steps:
[0367] Receive voice signals transmitted via the VoIP system;
[0368] When the target speech frame in the speech signal is lost, the Figure 4 , Figure 5 or Figure 8 The method shown reconstructs the target speech frame;
[0369] A speech signal is output based on the reconstructed target speech frame.
[0370] In one embodiment, one or more instructions in the computer readable storage medium are loaded by the processor 1201 and further perform the following steps:
[0371] Obtaining redundant information of a target speech frame;
[0372] When a target speech frame in a speech signal is lost, the target speech frame is reconstructed according to redundant information of the target speech frame;
[0373] If the target speech frame cannot be reconstructed based on the redundant information of the target speech frame, the following steps are triggered: Figure 4 , Figure 5 or Figure 8 The method shown reconstructs the target speech frame.
[0374] In an embodiment of the present application, when a target voice frame in a VoIP voice signal is lost, an improved PLC technology can be used to reconstruct the target voice frame. The reconstruction process of the improved PLC technology is relatively simple and efficient, and is more suitable for communication scenarios with high real-time requirements. In addition, it supports continuous packet loss compensation, that is, when multiple consecutive voice frames are lost, it is possible to reconstruct multiple consecutive voice frames to ensure the quality of voice calls. Moreover, the improved PLC technology can also be used in combination with the FEC technology to avoid the adverse effects of sound quality damage in a relatively flexible combination manner.
[0375] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0376] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A speech processing method, It is characterized in that include: Determine a historical voice frame corresponding to a target voice frame to be processed; the target voice frame includes the nth voice frame in the voice signal transmitted via the VoIP system; the historical voice frame includes t-th frame to n-1-th frame in the voice signal, a total of t-frame voice frames; each voice frame in the voice signal includes k sub-frames and m sub-frames, and any sub-frame of each voice frame in the voice signal includes p line spectrum frequencies, and among the p line spectrum frequencies, the fth line spectrum frequency and the f+1th line spectrum frequency are configured as an associated pair; wherein k is an integer greater than 1, n, t, m, and p are positive integers, f is an integer and an even number, and 0≤f≤p; Acquiring time domain parameters of the historical speech frame; Predicting a parameter set of the target speech frame according to the time domain parameters of the historical speech frame, wherein the parameter set includes at least two parameters; Reconstructing the target speech frame according to the parameter set; Among them, if the time domain parameters of the historical speech frame include the short-time correlation parameters of the historical speech frame, and the short-time correlation parameters of the historical speech frame include the line spectral frequencies of each sub-frame of the historical speech frame, then the parameter set includes the short-time correlation parameters of the target speech frame, and the short-time correlation parameters of the target speech frame include the line spectral frequencies and interpolation factors of the k-th sub-frame of the target speech frame; if the historical speech frame is a voiced frame and the target speech is a manifest frame, then the interpolation factor of the target speech frame is a second numerical value, the f-th line spectral frequency in the k-th sub-frame of the target speech frame is the sum of the absolute values of the differences between the f-th line spectral frequency of the k-th sub-frame of the historical speech frame and the f-th line spectral frequencies of each sub-frame of the historical speech frame, and the f+1 line spectral frequency in the k-th sub-frame of the target speech frame is the sum of the maximum terms in the associated pairs to which the f-th line spectral frequencies of each sub-frame of the historical speech frame belong.
2. The method according to claim 1, It is characterized in that If the time domain parameters of the historical speech frame include the long-term correlation parameters of the historical speech frame, then the parameter set includes the long-term correlation parameters of the target speech frame; The step of predicting the parameter set of the target speech frame according to the time domain parameters of the historical speech frame comprises: The network model is called to perform prediction processing on the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame.
3. The method according to claim 2, wherein the long-term correlation parameters include pitch delay and long-term prediction coefficients; the network model includes a first neural network and at least two second neural networks, wherein the second neural networks are subnetworks of the first neural network; and one of the second neural networks is used to predict a long-term correlation parameter in the parameter set; The calling network model predicts and processes the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame, including: Calling the first neural network to process the time domain waveform of the historical speech frame to obtain intermediate parameters; Inputting the intermediate parameter and the pitch delay of the historical speech frame as input information into the second neural network for prediction processing to obtain the pitch delay of the target speech frame; and The intermediate parameters and the long-term prediction coefficients of the historical speech frames are input into the second neural network as input information for prediction processing to obtain the long-term prediction coefficients of the target speech frames.
4. The method according to claim 1, It is characterized in that If the time domain parameters of the historical speech frame include the short-time correlation parameters of the historical speech frame, then the parameter set of the target speech frame is obtained by predicting the time domain parameters of the historical speech frame, including: Comparing the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed; Performing signal inference processing on the short-time correlation parameters of the historical speech frame according to the comparison result to obtain the short-time correlation parameters of the target speech frame; The comparison result includes: whether the frame type has changed or whether the frame type has not changed; whether the frame type has not changed means that the frame type of the historical voice frame is the same as the frame type of the target voice frame; The frame type change includes: the historical speech frame is a voiced frame, and the target speech frame is an unvoiced frame; or the historical speech frame is an unvoiced frame, and the target speech frame is a voiced frame.
5. The method according to claim 4, It is characterized in that The performing signal inference processing on the short-time correlation parameters of the historical speech frames according to the comparison results to obtain the short-time correlation parameters of the target speech frames includes: If the frame type of the historical speech frame is the same as the frame type of the target speech frame, setting the interpolation factor of the target speech frame to a first value; and, The average value of the line spectrum frequencies of all subframes of the historical speech frame is set as the line spectrum frequency of the kth subframe of the target speech frame.
6. The method according to claim 4, It is characterized in that The performing signal inference processing on the short-time correlation parameters of the historical speech frames according to the comparison results to obtain the short-time correlation parameters of the target speech frames includes: If the historical speech frame is a voiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value; and, Obtaining the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the maximum item in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong; The sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the absolute value is set as the f-th line spectrum frequency in the k-th subframe of the target speech frame; and The sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the maximum term is set as the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
7. The method according to claim 4, It is characterized in that The performing signal inference processing on the short-time correlation parameters of the historical speech frames according to the comparison results to obtain the short-time correlation parameters of the target speech frames includes: If the historical speech frame is an unvoiced frame and the target speech frame is an unvoiced frame, setting the interpolation factor of the target speech frame to a second value; and, Obtaining the f-th line spectrum frequency of the k-th subframe of the historical speech frame, the absolute value of the difference between the f-th line spectrum frequencies of each subframe of the historical speech frame, and the minimum term in the associated pair to which the f-th line spectrum frequencies of each subframe of the historical speech frame belong; The difference between the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the absolute value is set as the f-th line spectrum frequency in the k-th subframe of the target speech frame; and The sum of the f-th line spectrum frequency of the k-th subframe of the historical speech frame and the minimum term is set as the f+1-th line spectrum frequency in the k-th subframe of the target speech frame.
8. The method according to claim 4, It is characterized in that If the time domain parameters of the historical speech frame further include the long-term correlation parameters of the historical speech frame, the method further includes: Calling the network model to predict the time domain waveform of the historical speech frame and the long-term correlation parameters of the historical speech frame to obtain the long-term correlation parameters of the target speech frame; Determining the frame type of the n-1th speech frame by using the long-term correlation parameter of the n-1th speech frame, and determining the frame type of the target speech frame by using the predicted long-term correlation parameter of the target speech frame; The comparing the frame type of the historical speech frame and the frame type of the target speech frame to see whether they have changed includes: comparing the frame type of the n-1th speech frame and the frame type of the target speech frame to see whether they have changed.
9. The method according to claim 4, It is characterized in that The method further comprises: extracting statistical features of line spectrum frequencies of each sub-frame of the historical speech frame; The comparing the frame type of the historical voice frame and the frame type of the target voice frame to determine whether there is a change, comprises: Iteratively subtracting the statistical features of the line spectrum frequencies of each subframe of the historical speech frame, and summing the iterative subtraction results to obtain a comparison variable; If the comparison variable is greater than the change threshold, a comparison result indicating that the frame type has changed is obtained; If the comparison variable is not greater than the change threshold, a comparison result indicating that the frame type has not changed is obtained.
10. The method according to claim 9, It is characterized in that If the time domain parameters of the historical speech frame include the long-term correlation parameters of the n-1th speech frame; then the method further includes: If the comparison result is that the frame type has changed, the frame type of the n-1th speech frame is determined by using the long-term correlation parameter of the n-1th speech frame; and The frame type of the target speech frame is determined according to the frame type of the n-1th speech frame.
11. The method according to claim 8 or 10, It is characterized in that Any speech frame in the speech signal is represented as an i-th speech frame, and the time domain parameters of the i-th speech frame include long-term correlation parameters, and the long-term correlation parameters include the pitch delays of m subframes of the i-th speech frame; The method of determining the frame type by using the long-term correlation parameter of the i-th frame includes: Comparing the pitch delay of each subframe of the i-th speech frame with a delay threshold, respectively, and if the pitch delay of the subframe is lower than the delay threshold, setting the pitch delay of the subframe to a specific value; Counting the proportion of subframes in the i-th speech frame whose pitch delay is a specific value; If the number ratio is greater than the preset ratio, the i-th frame is determined to be an unvoiced frame; if the number ratio is not greater than the preset ratio, the i-th frame is determined to be a voiced frame.
12. The method of claim 1, It is characterized in that The reconstructing the target speech frame according to the parameter set comprises: establishing a reconstruction filter according to the parameter set; Obtaining an excitation signal of a target speech frame; Using the reconstruction filter to filter the excitation signal of the target speech frame to obtain the target speech frame; Among them, if the target speech frame is an unvoiced frame, the time domain parameters of the historical speech frame include short-time correlation parameters of the historical speech frame, and the parameter set includes the short-time correlation parameters of the target speech frame; the reconstruction filter includes a linear prediction coding filter; if the target speech frame is a voiced frame, the time domain parameters of the historical speech frame include short-time correlation parameters and long-time correlation parameters of the historical speech frame, and the parameter set includes the short-time correlation parameters of the target speech frame and the long-time correlation parameters of the target speech frame; the reconstruction filter includes a long-time prediction filter and a linear prediction coding filter.
13. The method according to claim 12, It is characterized in that The step of obtaining the excitation signal of the target speech frame comprises: Acquiring an excitation signal of the historical speech frame; The excitation signal of the target speech frame is estimated according to the excitation signal of the historical speech frame.
14. The method according to claim 13, It is characterized in that The excitation signal of the historical speech frame includes the excitation signal of the n-1th speech frame; and estimating the excitation signal of the target speech frame according to the excitation signal of the historical speech frame includes: The excitation signal of the n-1th speech frame is determined as the excitation signal of the target speech frame.
15. The method of claim 13, It is characterized in that The excitation signal of the historical speech frame includes the excitation signal of each speech frame from the nt frame to the n-1 frame; and estimating the excitation signal of the target speech frame according to the excitation signal of the historical speech frame includes: The excitation signal of the target speech frame is obtained by calculating the average value of the excitation signals of the t-th frame to the n-1-th frame, which is t frames in total.
16. The method of claim 13, It is characterized in that The excitation signal of the historical speech frame includes the excitation signal of each speech frame from the nt frame to the n-1 frame; and estimating the excitation signal of the target speech frame according to the excitation signal of the historical speech frame includes: The excitation signals of the t-th frame to the n-1-th frame (t frames in total) are weighted summed to obtain the excitation signal of the target speech frame.
17. The method of claim 3, It is characterized in that The network model further includes a third neural network, and the third neural network and the first neural network or the second neural network are parallel networks; the time domain parameters of the historical speech frame include energy parameters of the historical speech frame; the method further includes: The third neural network is called to predict the energy parameters of the historical speech frame to obtain the energy parameters of the target speech frame, wherein the energy parameters of the target speech frame belong to a parameter set of the target speech frame; the energy parameters of the target speech frame include gain values of each subframe of the target speech frame.
18. A method for speech processing, It is characterized in that include: Receive voice signals transmitted via the VoIP system; When a target speech frame in the speech signal is lost, reconstructing the target speech frame using the method according to any one of claims 1 to 17; The speech signal is output based on the reconstructed target speech frame.
19. The method of claim 18, It is characterized in that The method further comprises: Acquiring redundant information of the target speech frame; When a target speech frame in the speech signal is lost, reconstructing the target speech frame according to redundant information of the target speech frame; If reconstruction of the target speech frame according to the redundant information of the target speech frame fails, then the method according to any one of claims 1 to 17 is triggered to reconstruct the target speech frame.
20. A speech processing device, It is characterized in that include: A determination unit, used to determine a historical voice frame corresponding to a target voice frame to be processed; the target voice frame includes an nth voice frame in a voice signal transmitted via a VoIP system; the historical voice frame includes t-th frame to n-1-th frame in the voice signal, a total of t-frame voice frames; each voice frame in the voice signal includes k sub-frames and m sub-frames, any sub-frame of each voice frame in the voice signal includes p line spectrum frequencies, and among the p line spectrum frequencies, the fth line spectrum frequency and the f+1th line spectrum frequency are configured as an associated pair; wherein k is an integer greater than 1, n, t, m, p are positive integers, f is an integer and an even number, and 0≤f≤p; An acquisition unit, used for acquiring the time domain parameters of the historical speech frame; A processing unit, configured to predict a parameter set of the target speech frame according to the time domain parameters of the historical speech frame, wherein the parameter set includes at least two parameters; and to reconstruct the target speech frame according to the parameter set; Among them, if the time domain parameters of the historical speech frame include the short-time correlation parameters of the historical speech frame, and the short-time correlation parameters of the historical speech frame include the line spectral frequencies of each sub-frame of the historical speech frame, then the parameter set includes the short-time correlation parameters of the target speech frame, and the short-time correlation parameters of the target speech frame include the line spectral frequencies and interpolation factors of the k-th sub-frame of the target speech frame; if the historical speech frame is a voiced frame and the target speech is a manifest frame, then the interpolation factor of the target speech frame is a second numerical value, the f-th line spectral frequency in the k-th sub-frame of the target speech frame is the sum of the absolute values of the differences between the f-th line spectral frequency of the k-th sub-frame of the historical speech frame and the f-th line spectral frequencies of each sub-frame of the historical speech frame, and the f+1 line spectral frequency in the k-th sub-frame of the target speech frame is the sum of the maximum terms in the associated pairs to which the f-th line spectral frequencies of each sub-frame of the historical speech frame belong.
21. A speech processing device, It is characterized in that include: A receiving unit, used for receiving a voice signal transmitted via the VoIP system; A processing unit, configured to reconstruct the target speech frame by using the method according to any one of claims 1 to 17 when the target speech frame in the speech signal is lost; An output unit is used to output the speech signal based on the reconstructed target speech frame.
22. A speech processing device, It is characterized in that The device comprises: a processor adapted to implement one or more instructions; and, A computer-readable storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the speech processing method as described in any one of claims 1-19.
23. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the speech processing method as described in any one of claims 1-19.
