Voice processing method, live voice playing method, device, equipment and system
By calculating the network delay between the receiving end and the sending end, dynamically determining the cache delay, optimizing the cache area and playback control, the problem of poor audio effect caused by inappropriate cache delay in the existing technology is solved, and the audio quality is improved.
Patent Information
- Application Number
- CN202010014609.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-07
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-01-07
AI Technical Summary
The cache delay determined in the prior art is inappropriate, resulting in poor audio listening effects for users.
By calculating the network delay between the receiving end and the sending end, the buffering delay of the data packet is dynamically determined to match the network delay and optimize the buffer size and playback control.
It effectively avoids the problem of inappropriate cache delay due to inappropriate network delay, and improves the effect of users listening to audio, especially in scenarios where the retransmission function is turned on in a weak network environment.
Smart Images

Figure CN113162812B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of voice processing technology, and in particular to a voice processing method, a live voice playback method, a device, a equipment and a system. Background Art
[0002] With the continuous development of Internet technology, the application of acquiring and playing voice through the network is becoming more and more widespread.
[0003] At present, since there is always a certain network delay for data packets transmitted on the network, the inconsistency of the delay size causes the jitter of the network delay, that is, delay jitter. Therefore, in order to improve voice quality and reduce delay jitter, the general method is to establish a buffer area at the receiving end, and the voice data packet is temporarily stored in the buffer area after arrival, so as to eliminate the jitter of network delay by increasing the delay in the buffer area. In addition, in order to make the delay increased in the buffer area match the network delay, it is usually adopted to determine the cache delay according to the network delay, and cache the voice data packet according to the cache delay. Among them, the received voice data packets are all used to determine the network delay.
[0004] However, the above processing method has the problem that the determined cache delay is inappropriate, resulting in poor audio listening effect for users. Summary of the invention
[0005] The embodiments of the present application provide a voice processing method, a live voice playback method, an apparatus, a device and a system to solve the problem of inappropriate buffer delay determined in the prior art, resulting in poor audio listening experience for users.
[0006] In a first aspect, an embodiment of the present application provides a speech processing method, comprising:
[0007] Calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end;
[0008] According to the network delay, a buffering delay of the data packet is determined, so as to buffer the voice data packet received from the sending end based on the buffering delay.
[0009] In a second aspect, an embodiment of the present application provides a live broadcast processing method, which is applied to a receiving end, including:
[0010] When the retransmission function is enabled, calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end;
[0011] Determining a buffering delay of a data packet according to the network delay, so as to buffer the voice data packet received from the transmitting end based on the buffering delay;
[0012] The playing of the buffered voice data packet is controlled according to the buffer delay and the network delay.
[0013] In a third aspect, an embodiment of the present application provides a speech processing device, including:
[0014] A network delay module, used for calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end;
[0015] The buffer delay module is used to determine the buffer delay of the data packet according to the network delay, so as to buffer the voice data packet received from the sending end based on the buffer delay.
[0016] In a fourth aspect, an embodiment of the present application provides a live broadcast processing device, including:
[0017] A network delay module, used to calculate the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end when the retransmission function is turned on;
[0018] A cache delay module, used to determine a cache delay of a data packet according to the network delay, so as to cache the voice data packet received from the sending end based on the cache delay;
[0019] The playing control module is used to control the playing of the buffered voice data packet according to the buffering delay and the network delay.
[0020] In a fifth aspect, an embodiment of the present application provides a receiving end, comprising: a memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method described in any one of the first aspects.
[0021] In the sixth aspect, an embodiment of the present application provides a receiving end, comprising: a memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method described in any one of the second aspects.
[0022] In a seventh aspect, an embodiment of the present application provides a voice processing system, comprising: a transmitting end and a receiving end as described in any one of the fifth aspects, wherein the transmitting end is used to send a voice data packet to the receiving end.
[0023] In an eighth aspect, an embodiment of the present application provides a live broadcast playback processing system, comprising: a transmitting end and a receiving end as described in any one of the sixth aspects, wherein the transmitting end is used to send a voice data packet to the receiving end.
[0024] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes at least one section of code, and the at least one section of code can be executed by a computer to control the computer to execute the method as described in any one of the first aspects.
[0025] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes at least one section of code, and the at least one section of code can be executed by a computer to control the computer to execute the method as described in any one of the second aspects.
[0026] An embodiment of the present application further provides a computer program, which, when executed by a computer, is used to implement the method as described in any one of the first aspects.
[0027] An embodiment of the present application further provides a computer program, which, when executed by a computer, is used to implement the method as described in any one of the second aspects.
[0028] The voice processing method, live voice playback method, device, equipment and system provided in the embodiments of the present application calculate the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end, and determine the cache delay of the data packet according to the network delay, so as to cache the voice data packets received from the sending end based on the cache delay, thereby realizing that the receiving end calculates the network delay based on part of the voice data packets from the sending end, avoiding the problem of inappropriate cache delay determined according to the actual network delay between the receiving end and the sending end in some special scenarios (for example, the scenario of turning on the retransmission function in a weak network environment), so that the determined cache delay can meet the scenario requirements, thereby improving the effect of the user listening to the audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 A schematic diagram of an application scenario of an embodiment of the present application;
[0031] Figure 2 A schematic diagram of web page instant communication provided by an embodiment of the present application;
[0032] Figure 3 A schematic diagram of the playback principle provided in an embodiment of the present application;
[0033] Figure 4 A flowchart of a speech processing method provided in one embodiment of the present application;
[0034] Figure 5 A flowchart of a speech processing method provided by another embodiment of the present application;
[0035] Figure 6 A flowchart of a live broadcast processing method provided in one embodiment of the present application;
[0036] Figure 7 A schematic diagram of the structure of a speech processing device provided in one embodiment of the present application;
[0037] Figure 8 A schematic diagram of the structure of a receiving end provided in an embodiment of the present application;
[0038] Fig. 9 A schematic diagram of the structure of a live broadcast processing device provided in one embodiment of the present application;
[0039] Fig.10 A schematic diagram of the structure of a receiving end provided in another embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "said", and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.
[0042] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0043] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0044] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.
[0045] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0046] The speech processing method provided in the embodiment of the present application can be applied to Figure 1 In the application scenario shown, Figure 1 As shown, the application scenario may include a sending end 11, a network 12, and a receiving end 13. The sending end 11 and the receiving end 13 are connected to each other through the network 12.
[0047] Among them, the sending end 11 can collect voice signals through a sound collection device (such as a microphone), generate voice data packets according to the collected voice signals, and send the voice data packets to the receiving end 13 through the network 12. Due to the complex network environment of the network 12, there are delays, jitters, packet loss, disorder and other phenomena in the network 12. In order to improve the voice quality and reduce the impact of the delay jitter of the network 12 on the playback of the voice data packet, after receiving the voice data packet through the network 12, the receiving end 13 temporarily stores the voice data packet in the buffer area, adds a certain buffer delay to the buffer area to eliminate the jitter of the network delay, and then obtains the voice data packet from the buffer area and plays it through a sound playback device (such as a speaker).
[0048] It should be noted that the voice processing method provided in the embodiment of the present application can be applied to the receiving end 13, and the present application does not limit the specific manner in which the receiving end 13 communicates with the sending end 11.
[0049] Figure 1The communication scenario between the sending end 11 and the receiving end 13 can be a real-time communication scenario, that is, a (live broadcast scenario). After collecting and generating voice data packets, the sending end 11 can send the voice data packets to the receiving end 13 in real time. Based on this, the real-time communication scenario can specifically be a real-time voice communication scenario or a real-time video communication scenario. For the real-time video communication scenario, the voice signal in the real-time video communication can be processed by the method provided in the embodiment of the present application, and the image signal in the real-time video communication can be processed in a different manner from the voice signal.
[0050] or, Figure 1 The communication scenario between the sending end 11 and the receiving end 13 can be a non-real-time scenario (i.e., a non-live broadcast scenario). The sending end 11 can store a pre-generated voice data packet, which can be generated by the sending end 11 collecting voice signals, or can be collected and generated by other devices outside the sending end 11 and sent to the sending end 11 for storage.
[0051] Alternatively, the communication scenario between the sending end 11 and the receiving end 13 can be a real-time communication scenario + a non-real-time communication scenario. In the process of the sending end 11 sending the voice data packets collected and generated by it to the receiving end 13 in real time, it can be switched to sending the voice data packets pre-stored by the sending end 11 to the receiving end 13 under certain conditions, so as to realize the function of inserting in the live broadcast scenario.
[0052] Take the example of the sending end 11 and the receiving end 13 communicating through the Web Real-Time Communication (WebRTC) voice engine. Figure 2As shown, the voice engine completes the entire process from voice collection to voice playback. Specifically, first, the sending end 11 obtains an analog voice signal through a microphone, converts the analog voice signal into a digital voice signal through an analog-to-digital converter (ADC) to achieve sound collection, and further performs acoustic echo cancellation (AEC), noise suppression (NS), automatic gain control (AGC) and other processing on the voice signal, and then performs voice compression encoding (Encoder), and transmits it to the receiving end 13 through the Internet network 12. After the voice data packet arrives at the receiving end 13, it first enters the NetEQ module shown in the dotted box to perform jitter elimination, packet loss concealment (PLC), and compression decoding (Decoder) operations based on the jitter buffer (Jitter Buffer, JB), and then after noise suppression and automatic gain control post-processing, the voice signal is converted from a digital signal to an analog signal through a digital-to-analog converter (DAC) and played through a speaker to achieve sound playback.
[0053] Among them, the NetEQ module is mainly responsible for eliminating packet loss and delay jitter caused by changes in network transmission paths and congestion conditions. Specifically, the NetEQ module establishes a buffer area at the receiving end, such as Figure 3 As shown, the WebRTC voice engine will start two threads during operation, namely the receiving thread and the decoding thread. The receiving thread is used to receive voice data packets from the network, and insert the voice data packets into the jitter buffer after they arrive. The decoding thread reads the voice data packets from the jitter buffer through shared memory and decodes them through the decoder. After decoding, they are placed in the decoding buffer, and the digital signal processor (Digital Signal Processor, DSP) reads the decoded voice data from the decoding buffer for processing, and plays it after processing. Among them, the microcontroller unit (Microcontroller Unit, MCU) can determine the network delay according to the received voice data packet, determine the cache delay according to the network delay, and control the DSP to complete the voice playback according to the network delay and cache delay. It should be noted that Figure 3 This is only an example of the playback principle and does not constitute a limitation to this application.
[0054] It is understandable that when the sending end 11 and the receiving end 13 communicate through the WebRTC voice engine, since the NetEQ module can achieve the jitter elimination function, the voice processing method provided in the embodiment of the present application can be used to optimize the NetEQ module. It should be noted that the voice processing method provided in the embodiment of the present application is not limited to optimizing the NetEQ module, but can be used for any object that achieves jitter elimination through the buffer area.
[0055] Typically, the receiving end 13 calculates the current network delay between the receiving end 13 and the sending end 11 based on all voice data packets from the receiving end, that is, the network delay can reflect the delay for all voice data packets sent by the sending end 11 through the network 12 to reach the receiving end, and further, the cache delay can be determined based on the network delay.
[0056] However, since the cache delay is determined by the network delay, and the factors affecting the network delay are very complex, it is inevitable that for some special scenarios there will be a problem that the cache delay determined according to the actual network delay of the network 12 is inappropriate.
[0057] Exemplarily, when the network environment of network 12 is a weak network environment with a high packet loss rate, in order to achieve packet loss recovery to improve voice quality, the receiving end 13 can enable the retransmission function. After the receiving end 13 enables the retransmission function, the sending end 11 can retransmit the voice data packet according to the negative acknowledgement (NACK) response of the receiving end 13 to a voice data packet, so that the receiving end 13 can successfully receive the voice data packet. When the retransmission function is enabled, the delay of the voice data packet will inevitably increase significantly, and then it is determined that the network delay will increase significantly, so that the cache delay will also increase significantly. When the cache delay increases significantly, it will cause the problem of inappropriate delay in human hearing of voice.
[0058] The voice processing method provided in the embodiment of the present application calculates the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end, and determines the cache delay according to the network delay, so as to cache the voice data packets from the receiving end based on the cache delay. This enables the receiving end to calculate the network delay based on part of the voice data packets from the sending end, thereby avoiding the problem of inappropriate cache delay determined according to the actual network delay between the receiving end and the sending end due to some special scenarios.
[0059] Some embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0060] Figure 4This is a flow chart of a speech processing method provided in an embodiment of the present application. The execution subject of this embodiment may be Figure 1 The receiving end 13 in the embodiment may be a processor in the receiving end 13. Figure 4 As shown, the method of this embodiment may include:
[0061] Step 401, based on part of the voice data packets from the sending end, calculate the current network delay between the receiving end and the sending end.
[0062] In this step, network delay refers to the statistical delay between the receiving end and the sending end, which is specifically obtained by the receiving end based on the statistics of some voice data packets of the sending end. Assuming that voice data packets 1 and 2 belong to the said part of voice data packets, and voice data packet 3 does not belong to the said part of voice data packets, when the receiving end receives voice data packet 1 from the sending end, it can calculate the current network delay based on voice data packet 1; when the receiving end receives voice data packet 2 from the sending end, it can calculate the current network delay based on voice data packet 2; when the receiving end receives voice data packet 3 from the sending end, it can skip the process of calculating the current network delay.
[0063] The network delay can be understood as the ideal delay of the receiving end. Ideally, when the delay caused by the buffer area of the receiving end is equal to the network delay, the buffering of the voice data packet by the receiving end can eliminate the delay jitter of the network for the voice data packet to the greatest extent.
[0064] It should be noted that the specific method of determining the network delay based on the voice data packet is not limited in the embodiment of the present application. For example, the delay of the voice data packet can be determined according to the timestamp of the voice data packet, and the network delay can be further determined according to the delay of the voice data packet.
[0065] Step 402: Determine a buffering delay of a data packet according to the network delay, so as to buffer the voice data packet received from the transmitting end based on the buffering delay.
[0066] In this step, the cache delay determined according to the network delay can be used to cache the voice data packets from the sending end, thereby affecting the number of voice data packets actually cached, and the number of voice data packets actually cached can characterize the actual delay caused by the cache. Therefore, based on the network delay, the cache delay that makes the actual delay caused by the cache match the ideal delay can be determined.
[0067] The cache delay can be used to dynamically adjust the size of the jitter buffer. The size of the jitter buffer can be related to the duration of a single voice data packet and the cache delay when the sender performs voice collection. The longer the cache delay, the longer the jitter buffer needs to be cached, and the larger the size of the jitter buffer can be; the shorter the cache delay, the shorter the jitter buffer needs to be cached, and the smaller the size of the buffer can be. When the cache delay is constant, the longer the duration of a single voice data packet, the smaller the size of the jitter buffer can be, and the shorter the duration of a single voice data packet, the smaller the size of the jitter buffer can be.
[0068] It should be noted that the embodiments of the present application do not limit the specific method of determining the cache delay based on the network delay.
[0069] In this embodiment, the current network delay between the receiving end and the sending end is calculated based on part of the voice data packets from the sending end, and the cache delay of the data packets is determined according to the network delay, so that the voice data packets received from the sending end are cached based on the cache delay. This enables the receiving end to calculate the network delay based on part of the voice data packets from the sending end, avoids the problem of inappropriate cache delay determined according to the actual network delay between the receiving end and the sending end due to some special scenarios, and enables the determined cache delay to meet the scenario requirements, thereby improving the user's audio listening experience.
[0070] Figure 5 A flowchart of a speech processing method provided in another embodiment of the present application. Figure 4 Based on the embodiment shown, an optional implementation method is mainly described, such as Figure 5 As shown, the method of this embodiment may include:
[0071] Step 501, based on part of the voice data packets from the sending end that meet the target condition, calculate the current network delay between the receiving end and the sending end.
[0072] In this step, if the voice data packet meets the target condition, it may indicate that the network delay needs to be determined based on the voice data packet; if the voice data packet does not meet the target condition, it may indicate that the network delay does not need to be determined based on the voice data packet. The target condition may be flexibly implemented according to the demand. For example, under the demand of reducing the delay of human ears hearing voice, the target condition may be, for example, that the delay is less than a certain threshold. For voice data packets with a delay less than the threshold, the network delay is determined, while for voice data packets with a delay greater than the threshold, the network delay is not determined, so as to reduce the network delay, thereby reducing the cache delay, and thus reducing the delay of human ears hearing voice.
[0073] Optionally, the target condition may include: it is a non-retransmission data packet, and / or it is a retransmission data packet and the delay satisfies the delay condition.
[0074] By including non-retransmission data packets as target conditions, it is possible to determine the network delay based on non-retransmission voice data packets when the retransmission function is enabled on the receiving end, that is, non-retransmission voice data packets are still processed according to the original logic. Since the delay of non-retransmission data packets is usually smaller than the delay of retransmission data packets, the impact of excessive voice data packet delay on cache delay can be avoided, and the problem of inappropriate voice delay for adult ears can be avoided.
[0075] By including the target condition that it is a retransmission data packet and the delay meets the delay condition, it is realized that in the scenario where the retransmission function is turned on at the receiving end, the network delay is determined according to the retransmission data packet that meets the delay condition, and the restriction of the retransmission data packet used to determine the network delay is realized by meeting the delay condition, so that the retransmission data packet that meets the delay condition can increase the cache delay, while the retransmission data packet that does not meet the delay condition cannot increase the cache delay, that is, for the retransmission data packet, an additional control mechanism needs to be added. Because under the retransmission function, the receiving end determines in time that the lost voice data packet can arrive at the playback retransmission, and then sends a retransmission request for the voice data packet, so increasing the cache delay can increase the retransmission recovery rate, thereby improving the voice quality. Therefore, by selecting some retransmission data packets to be included in the calculation of network delay, it not only satisfies the retransmission recovery of some lost packets and achieves the improvement of sound quality, but also controls the growth of cache delay to a certain extent, realizes the compromise between delay and sound quality, and improves the effect of users listening to audio in the case of high packet loss and weak network.
[0076] It should be noted that the present application does not limit the specific method for determining the delay of the voice data packet. By way of example, the delay of the voice data packet can be determined based on the timestamp of the voice data packet.
[0077] The delay condition can be flexibly implemented according to the requirements. Exemplarily, the delay condition includes: the delay is less than a first duration threshold, and / or the delay is greater than the first duration threshold and less than a second duration threshold, and the second duration threshold is greater than the first duration threshold.
[0078] By including the delay condition that the delay is less than the first duration threshold, it is achieved that the network delay can be determined based on the retransmitted voice data packets with a delay less than the first duration threshold, so that the voice data packets with a delay less than the first duration threshold can be used to increase the cache delay. Among them, the first duration threshold can be flexibly implemented according to demand. Exemplarily, the first duration threshold can be a preset value, and the first duration threshold can be set with reference to the maximum voice delay acceptable to the human ear and / or the maximum voice delay expected by the platform. The first duration threshold can be, for example, 200 milliseconds (ms).
[0079] Specifically, the retransmitted voice data packets with a delay less than the first duration threshold will increase the network delay because their delay is larger than the delay of the non-retransmitted voice data packets. However, since their delay value is within an acceptable range, the network delay is updated, thereby increasing the cache delay, so that as many lost voice data packets as possible have sufficient time to be recovered through retransmission, and the voice quality is also improved.
[0080] By presetting the condition that the delay is greater than the first duration threshold and less than the second duration threshold, it is achieved that the network delay can be determined based on the retransmitted voice data packets with a delay greater than the first duration threshold and less than the second duration threshold, so that the voice data packets with a delay greater than the first duration threshold and less than the second duration threshold can be used to increase the cache delay. Among them, the second duration threshold can be flexibly implemented according to demand. Exemplarily, the second duration threshold can be determined based on the currently cached voice data packets. Exemplarily, the second duration threshold can be equal to the product of the target duration and a preset coefficient, the target duration represents the duration that the currently cached voice data packet can be played, and the preset coefficient is greater than 0 and less than 1. Among them, the preset coefficient can be 0.8, for example.
[0081] Since the more voice data packets currently cached, the longer the currently cached voice data packets can be played, the voice data packet delay greater than the first time threshold and less than the second time threshold can indicate that the currently cached voice data packets can still wait for a while and a longer delay can be allowed. Therefore, the cache delay can be adjusted according to the retransmitted voice data packets whose delay is greater than the first time threshold and less than the second time threshold, which is beneficial to further improve the voice quality.
[0082] Specifically, when the delay of the retransmitted data packet is greater than the first delay threshold, the cache delay needs to be adaptively adjusted. If the network is very poor, the cache delay can only increase, but the second duration threshold can control the dynamic slow increase. Through the second delay threshold, if the delay of the retransmitted data packet is less than the second delay threshold, the network delay is updated to increase the cache delay slightly; conversely, when the delay of the retransmitted data packet is greater than the second delay threshold, if the network delay is updated, its value may increase significantly, making the cache data consumption slower, so the network delay can be maintained unchanged at this time.
[0083] Through the delay condition, when the function is turned on and the delay of voice data packets is large, the growth of cache delay can be controlled adaptively and will not grow too much. However, as many lost voice data packets as possible can be recovered through retransmission, greatly improving voice quality.
[0084] Exemplarily, the network delay can be determined according to the voice data packet a through the following steps A to D, wherein the voice data packet a is the aforementioned voice data packet that meets the target condition.
[0085] Step A, calculating the arrival interval of voice data packet a.
[0086] For example, after receiving voice data packet a, the inter-arrival time (Iat) of voice data packet a is calculated based on its timestamp and sequence number, that is, how many data packets are delayed. For example, the Iat value of the data packet arriving in advance is 0, the Iat value of the data packet arriving in order is 1, and the Iat value of the data packet arriving late is 2. The maximum value of Iat can be set to 64.
[0087] Step B: generating a probability distribution of the arrival interval according to the arrival interval of the voice data packet a.
[0088] For example, the probability distribution of Iat in [0, 64] can be obtained.
[0089] Step C, based on the probability distribution, obtain the arrival interval whose cumulative probability meets a certain probability threshold, denoted as B.
[0090] The probability threshold may be, for example, 95%. For example, assuming that the probability that Iat is 0 is 70%, the probability that Iat is 1 is 15%, the probability that Iat is 2 is 10%, the probability that Iat is 3 is 5%, and the probability threshold is equal to 95%, then the Iat value that the cumulative probability satisfies the probability threshold is equal to 2, that is, B is equal to 2.
[0091] Step D: Perform peak detection based on the probability distribution and the preset interval to determine the peak value of the arrival interval.
[0092] Here, the peak value of the arrival interval is, for example, the Iat peak value.
[0093] Step E: obtain the network delay according to B and the peak value of the arrival interval.
[0094] Among them, the larger value between B and the peak value can be used as the network delay.
[0095] Step 502: Determine a buffering delay of a data packet according to the network delay, so as to buffer the voice data packet received from the transmitting end based on the buffering delay.
[0096] In this step, for example, the cache delay can be determined according to the network delay through the following steps F to G.
[0097] Step F, determining a determination factor corresponding to the network delay.
[0098] Step G: obtaining a cache delay according to the determination factor.
[0099] Specifically, the cache delay can be defined as L, and the factor f can be determined. The cache delay can satisfy the following formula (1).
[0100] L(n)=f×L(n-1)+(1-f)×x; Formula (1)
[0101] Wherein, L(n) represents the current buffer delay, L(n-1) represents the last buffer delay, and x represents the duration of the currently buffered voice data packet that can be played. The determination factor f is determined according to the B value, and the relationship between the value of f and the B value can be shown in Table 1 below, for example.
[0102] Table 1
[0103] B value 0、1 2、3 4、5、6、7 >7 f-value fraction 251 / 256 252 / 256 253 / 256 254 / 256 f value decimal representation 0.980 0.984 0.988 0.992
[0104] Step 503: Control the playing of the buffered voice data packet according to the buffer delay and the network delay.
[0105] In this step, the buffered voice data packets include voice data packets used to calculate network delay and voice data packets not used to calculate network delay. That is, all voice data packets from the sender need to be buffered. It should be noted that the specific method of putting the voice data packets into the buffer area is not limited in the embodiment of the present application. For example, the voice data packets can be put into the buffer area in sequence according to the order in which the voice data packets are received.
[0106] Specifically, the playback of cached voice data packets can be controlled according to the relationship between the cache delay and the network delay to increase or decrease the number of currently cached voice data packets, thereby increasing or decreasing the actual delay caused by the cache, so that the actual delay is close to the ideal delay.
[0107] Exemplarily, step 503 may specifically include the following steps H to J.
[0108] Step H: Determine the maximum delay and minimum delay allowed in the normal playback mode according to the network delay.
[0109] Step I: controlling the play mode of the cached voice data packet according to the relationship between the cache delay, the maximum delay and the minimum delay.
[0110] Step J, controlling the playing of the voice data packets in the buffer area according to the target playing mode.
[0111] Among them, the relationship between the maximum delay, the minimum delay, the cache delay and the play mode can be shown in the following Table 2, for example.
[0112] Table 2
[0113]
[0114] Among them, H represents the maximum delay, L represents the minimum delay, Blo represents the network delay, and Blc represents the cache delay.
[0115] Optionally, before step 503, it may also include: when the retransmission function is turned on, determining whether the currently cached voice data packet meets the playback condition for the retransmission function; if the playback condition is not met, pausing the playback of the cached voice data packet; if the playback condition is met, executing step 504.
[0116] The playback conditions can be used to further control the playback of the cached voice data packets. Specifically, when the currently cached voice data packets meet the playback conditions for the retransmission function, the playback of the cached voice data packets is controlled according to the cache delay and the network delay; when the currently cached voice data packets do not meet the playback conditions for the retransmission function, the playback of the voice data packets is paused. Based on this, the playback conditions can avoid the problems caused by playing the cached voice data packets in the scenario where the retransmission function is turned on and the currently cached voice data packets do not meet the playback conditions for the retransmission function.
[0117] Exemplarily, the playing condition includes any one of the following: the maximum cache duration of the currently cached voice data packets is greater than or equal to the cache duration threshold, the total number of received voice data packets is greater than or equal to the first number threshold, or the number of currently cached voice data packets is greater than or equal to the second number threshold. Based on this, the playing condition can avoid the problem caused by playing the cached voice data packets in the scenario where the retransmission function is turned on and the currently cached voice data packets are too few. Among them, the cache duration threshold can be understood as the maximum duration allowed for pause, and the cache duration threshold can be a preset value.
[0118] Specifically, due to the retransmission function, the receiving end determines in time that the lost voice data packet can be retransmitted before it sends a retransmission request for the voice data packet. Therefore, when the retransmission function is turned on and the current cached voice data packets are too few, if the cached voice data packets are not paused, many retransmission requests for voice data packets will be discarded, and the packet loss recovery rate will be low, resulting in poor voice quality. By pausing the playback when the retransmission function is turned on and the current cached voice data packets are too few, more retransmission requests can be effective, the packet loss recovery rate can be increased, and the voice quality can be improved. Among them, the packet loss recovery rate refers to the ratio of valid retransmission packets that arrive to lost data packets.
[0119] By having the playback conditions include the retransmission function being turned on and the total number of received voice data packets being less than the first number threshold, it is possible to control and quickly increase the cache delay by pausing playback within a period of time at the beginning of a call.
[0120] Among them, the first quantity threshold and the second quantity threshold can be the same, and the first quantity threshold and / or the second quantity threshold can be a preset value; or, the first quantity threshold and / or the second quantity threshold are determined according to the receiving rate of the voice data packet and the cache duration threshold. By determining the first quantity threshold and / or the second quantity threshold according to the receiving rate and the cache duration threshold, the value of the quantity threshold can be more in line with the usage scenario. For example, assuming that the receiving rate is 20ms / piece and the cache duration threshold is 300ms, the first quantity threshold can be 15, that is, packet decoding can be started when the 16th voice data arrives, and caching 15 voice data packets is equivalent to pausing for 300ms.
[0121] In actual applications, a shorter playback pause does not affect the original call experience, but the playback pause can greatly increase the packet loss recovery rate during the pause period, thereby improving the voice quality.
[0122] In this embodiment, by calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end that meet the target conditions, and determining the cache delay of the data packet according to the network delay, it is achieved that the network delay is calculated based on the voice data packet only when the voice data packet from the sending end meets the target conditions, avoiding the problem of inappropriate cache delay determined according to the actual network delay between the receiving end and the sending end, so that the determined cache delay can meet the scene requirements, thereby improving the user's audio listening experience.
[0123] In the scenario where the retransmission function is turned on and the target conditions include the delay being less than the first duration threshold and the delay being greater than the first duration threshold and less than the second duration threshold, and the playback conditions include the retransmission function being turned on and the total number of received voice data packets being less than the first number threshold, the comparative experimental results are as follows:
[0124] In an environment with a packet loss rate of 40%, after optimization, compared with before optimization and without the retransmission function, the latency increased by 230ms, but the Mean Opinion Score (MOS) value increased by 1.27 from 1.87 to 3.14, and the sound quality was significantly improved; after optimization, compared with before optimization and with the retransmission function enabled, the MOS value only decreased by 0.32 from 3.46, and the sound quality did not deteriorate much, but the latency was reduced by 170ms; the playback was paused within the first N voice data packets, and the delay was quickly increased to allow the retransmission request to take effect, thereby improving the packet loss recovery rate, which increased the packet loss recovery rate in the first ten seconds by about 20%, and the result was almost close to 1.
[0125] Figure 6 This is a flow chart of a live broadcast processing method provided in an embodiment of the present application. The execution subject of this embodiment may be Figure 1 The receiving end 13 in the embodiment may be a processor in the receiving end 13. Figure 6 As shown, the method of this embodiment may include:
[0126] Step 601, when the retransmission function is turned on, based on part of the voice data packets from the sending end, calculate the current network delay between the receiving end and the sending end;
[0127] Step 602, determining a buffering delay of a data packet according to the network delay, so as to buffer the voice data packet received from the transmitting end based on the buffering delay;
[0128] Step 603: Control the playing of the cached voice data packet according to the cache delay and the network delay.
[0129] It should be noted that, for the specific method of determining the network delay, the buffer delay, and controlling the playback of the buffered voice data packets according to the network delay and the buffer delay, please refer to the relevant description of the aforementioned embodiment, which will not be repeated here.
[0130] In this embodiment, by calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end when the retransmission function is turned on, determining the cache delay of the data packets according to the network delay, caching the voice data packets received from the sending end based on the cache delay, and controlling the playback of the cached voice data packets according to the cache delay and the network delay, the receiving end calculates the network delay based on part of the voice data packets from the sending end, avoiding the problem of excessive delay during live broadcasting due to excessive cache delay determined according to the actual network delay between the receiving end and the sending end in the scenario where the retransmission function is turned on, thereby improving the performance of live broadcasting.
[0131] Figure 7 A schematic diagram of the structure of a speech processing device provided in an embodiment of the present application; Figure 6 As shown, this embodiment provides a speech processing device, which can execute the above-mentioned speech processing method. Specifically, the speech processing device may include:
[0132] A network delay module 71, configured to calculate the current network delay between the receiving end and the sending end based on a portion of the voice data packets from the sending end;
[0133] The buffer delay module 72 is used to determine the buffer delay of the data packet according to the network delay, so as to buffer the voice data packet received from the sending end based on the buffer delay.
[0134] Optionally, the network delay module 71 is specifically configured to calculate the current network delay between the receiving end and the sending end based on a portion of voice data packets from the sending end that meet the target condition.
[0135] Optionally, the target conditions include: it is a non-retransmitted data packet, and / or it is a retransmitted data packet and the delay satisfies a delay condition.
[0136] Optionally, the delay condition includes: the delay is less than a first duration threshold, and / or the delay is greater than the first duration threshold and less than a second duration threshold, and the second duration threshold is greater than the first duration threshold.
[0137] Optionally, the first duration threshold is a preset value.
[0138] Optionally, the second duration threshold is determined according to currently cached voice data packets.
[0139] Optionally, the second duration threshold is equal to the product of a target duration and a preset coefficient, the target duration represents the duration for which the currently cached voice data packet can be played, and the preset coefficient is greater than 0 and less than 1.
[0140] Optionally, the device further includes: a play control module, configured to control the play of the cached voice data packet according to the cache delay and the network delay.
[0141] Optionally, the device further includes: a judgment module and a pause module;
[0142] The judging module is used to judge whether the currently cached voice data packet meets the playing condition for the retransmission function when the retransmission function is turned on;
[0143] The pause module is used to pause the playback of the buffered voice data packet if the playback condition is not met;
[0144] The playback control module is specifically used to control the playback of the cached voice data packet according to the cache delay and the network delay if the playback condition is met.
[0145] Optionally, the playback condition includes any one of the following:
[0146] The maximum cache duration of the currently cached voice data packets is greater than or equal to the cache duration threshold, the total number of received voice data packets is greater than or equal to the first number threshold, or the number of currently cached voice data packets is greater than or equal to the second number threshold.
[0147] Optionally, the first quantity threshold and / or the second quantity threshold is determined according to a receiving rate of voice data packets and the cache duration threshold.
[0148] Figure 7 The device shown can perform Figure 4-Figure 5 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 4-Figure 5 The implementation process and technical effects of this technical solution refer to Figure 4-Figure 5 The description in the illustrated embodiment will not be repeated here.
[0149] In one possible implementation, Figure 7 The structure of the speech processing device shown can be implemented as a receiving end. Figure 8 As shown, the receiving end may include: a processor 81 and a memory 82. The memory 82 is used to store the processor 81 and the memory 82 to support the receiving end to execute the above Figure 4-Figure 5 In the illustrated embodiment, the processor 81 is configured to execute the program stored in the memory 82 .
[0150] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the processor 71, the following steps can be implemented:
[0151] Calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end;
[0152] According to the network delay, a cache delay of the data packet is determined, so as to cache the voice data packet received from the sending end based on the cache delay. According to the network delay, a cache delay is determined, so as to cache the voice data packet from the sending end based on the cache delay.
[0153] Optionally, the processor 81 is also used to execute the aforementioned Figure 4-Figure 5 All or part of the steps in the illustrated embodiments.
[0154] The structure of the receiving end may also include a communication interface 83 for the receiving end to communicate with other devices or communication networks.
[0155] Fig. 9 A schematic diagram of the structure of a live broadcast processing device provided in an embodiment of the present application; Figure 6As shown, this embodiment provides a voice processing device, which can execute the above-mentioned live broadcast processing method. Specifically, the live broadcast processing device may include:
[0156] A network delay module 91, configured to calculate the current network delay between the receiving end and the sending end based on a portion of the voice data packets from the sending end when the retransmission function is enabled;
[0157] A cache delay module 92, configured to determine a cache delay of a data packet according to the network delay, so as to cache the voice data packet received from the transmitting end based on the cache delay;
[0158] The playing control module 93 is used to control the playing of the buffered voice data packet according to the buffering delay and the network delay.
[0159] Optionally, the network delay module 91 is specifically configured to calculate the current network delay between the receiving end and the sending end based on a portion of voice data packets from the sending end that meet the target condition.
[0160] Optionally, the target conditions include: it is a non-retransmitted data packet, and / or it is a retransmitted data packet and the delay satisfies a delay condition.
[0161] Optionally, the delay condition includes: the delay is less than a first duration threshold, and / or the delay is greater than the first duration threshold and less than a second duration threshold, and the second duration threshold is greater than the first duration threshold.
[0162] Optionally, the first duration threshold is a preset value.
[0163] Optionally, the second duration threshold is determined according to currently cached voice data packets.
[0164] Optionally, the second duration threshold is equal to the product of a target duration and a preset coefficient, the target duration represents the duration for which the currently cached voice data packet can be played, and the preset coefficient is greater than 0 and less than 1.
[0165] Optionally, the device further includes: a judgment module and a pause module;
[0166] The judging module is used to judge whether the currently cached voice data packet meets the playing condition for the retransmission function when the retransmission function is turned on;
[0167] The pause module is used to pause the playback of the buffered voice data packet if the playback condition is not met;
[0168] The play control module 93 is specifically configured to control the play of the buffered voice data packet according to the buffer delay and the network delay if the play condition is met.
[0169] Optionally, the playback condition includes any one of the following:
[0170] The maximum cache duration of the currently cached voice data packets is greater than or equal to the cache duration threshold, the total number of received voice data packets is greater than or equal to the first number threshold, or the number of currently cached voice data packets is greater than or equal to the second number threshold.
[0171] Optionally, the first quantity threshold and / or the second quantity threshold is determined according to a receiving rate of voice data packets and the cache duration threshold.
[0172] Fig. 9 The device shown can perform Figure 6 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 6 The implementation process and technical effects of this technical solution refer to Fig. 9 The description in the illustrated embodiment will not be repeated here.
[0173] In one possible implementation, Fig. 9 The structure of the speech processing device shown can be implemented as a receiving end. Fig.10 As shown, the receiving end may include: a processor 101 and a memory 102. The memory 102 is used to store the data to support the receiving end to execute the above Figure 6 In the illustrated embodiment, the processor 101 is configured to execute the program stored in the memory 102 .
[0174] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the processor 71, the following steps can be implemented:
[0175] When the retransmission function is enabled, calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end;
[0176] Determining a buffering delay of a data packet according to the network delay, so as to buffer the voice data packet received from the transmitting end based on the buffering delay;
[0177] The playing of the buffered voice data packet is controlled according to the buffer delay and the network delay.
[0178] Optionally, the processor 101 is further configured to execute the aforementioned Figure 6 All or part of the steps in the illustrated embodiments.
[0179] The structure of the receiving end may further include a communication interface 103 for the receiving end to communicate with other devices or a communication network.
[0180] In addition, the present invention also provides a speech processing system, including: a sending end and Figure 8 The receiving end shown in FIG.
[0181] The present application also provides a live broadcast processing system, including: a transmitting end and Fig.10 The receiving end shown in FIG.
[0182] The present application also provides a computer storage medium for storing computer software instructions used by the terminal, which includes instructions for executing the above Figure 4-Figure 5 The procedures involved in the speech processing method in the method embodiment shown.
[0183] The present application also provides a computer storage medium for storing computer software instructions used by the terminal, which includes instructions for executing the above Figure 6 The program involved in the live broadcast processing method in the method embodiment shown.
[0184] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0185] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on this understanding, the above technical solution is essentially or the part that contributes to the traditional technology can be embodied in the form of a computer product, and the present application can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0186] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0187] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0188] These computer program instructions may also be loaded onto a computer or other programmable device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0189] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0190] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0191] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0192] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A speech processing method, applied to a receiving end, the receiving end comprising a NetEQ module, the method being specifically applied to the NetEQ module, comprising: When the retransmission function is turned on, the current network delay between the receiving end and the sending end is calculated based on part of the voice data packets from the sending end, the part of the voice data packets includes non-retransmission data packets and retransmission data packets that meet the delay condition, but does not include retransmission data packets that do not meet the delay condition, and the delay condition includes: the delay is less than a first duration threshold, and / or the delay is greater than the first duration threshold and less than a second duration threshold, and the second duration threshold is greater than the first duration threshold; According to the network delay, a buffering delay of the data packet is determined, so as to buffer the voice data packet received from the sending end based on the buffering delay.
2. According to the method of claim 1, the second duration threshold is determined according to the currently cached voice data packets.
3. According to the method of claim 2, the second duration threshold is equal to the product of the target duration and a preset coefficient, the target duration represents the duration for which the currently cached voice data packet can be played, and the preset coefficient is greater than 0 and less than 1.
4. A live broadcast processing method, applied to a receiving end, comprising: When the retransmission function is turned on, the current network delay between the receiving end and the sending end is calculated based on part of the voice data packets from the sending end, the part of the voice data packets includes non-retransmission data packets and retransmission data packets that meet the delay condition, but does not include retransmission data packets that do not meet the delay condition, and the delay condition includes: the delay is less than a first duration threshold, and / or the delay is greater than the first duration threshold and less than a second duration threshold, and the second duration threshold is greater than the first duration threshold; Determining a buffering delay of a data packet according to the network delay, so as to buffer the voice data packet received from the transmitting end based on the buffering delay; The playing of the buffered voice data packet is controlled according to the buffer delay and the network delay.
5. The method according to claim 4, before controlling the playing of the cached voice data packet according to the cache delay and the network delay, further comprises: When the retransmission function is enabled, determining whether the currently cached voice data packet meets the playback condition for the retransmission function; If the playing condition is not met, pausing the playing of the buffered voice data packet; If the playing condition is met, the step of controlling the playing of the cached voice data packet according to the cache delay and the network delay is performed.
6. The method according to claim 5, wherein the playback condition comprises any one of the following: The maximum cache duration of the currently cached voice data packets is greater than or equal to the cache duration threshold, the total number of received voice data packets is greater than or equal to the first number threshold, or the number of currently cached voice data packets is greater than or equal to the second number threshold.
7. The method according to claim 6, wherein the first quantity threshold and / or the second quantity threshold is determined according to a receiving rate of voice data packets and the buffering time threshold.
8. A speech processing device, applied to a receiving end, the receiving end comprising a NetEQ module, the device being specifically applied to the NetEQ module, comprising: A network delay module, for calculating the current network delay between the receiving end and the sending end based on part of the voice data packets from the sending end when the retransmission function is turned on, wherein the part of the voice data packets includes non-retransmission data packets and retransmission data packets that meet the delay condition, but does not include retransmission data packets that do not meet the delay condition, wherein the delay condition includes: the delay is less than a first duration threshold, and / or the delay is greater than the first duration threshold and less than a second duration threshold, and the second duration threshold is greater than the first duration threshold; The buffer delay module is used to determine the buffer delay of the data packet according to the network delay, so as to buffer the voice data packet received from the sending end based on the buffer delay.
9. A live broadcast processing device, comprising: A network delay module, for calculating the current network delay between a receiving end and the sending end based on part of the voice data packets from the sending end when the retransmission function is turned on, wherein the part of the voice data packets includes non-retransmission data packets and retransmission data packets that meet the delay condition, but does not include retransmission data packets that do not meet the delay condition, wherein the delay condition includes: the delay is less than a first duration threshold, and / or the delay is greater than the first duration threshold and less than a second duration threshold, and the second duration threshold is greater than the first duration threshold; A cache delay module, used to determine a cache delay of a data packet according to the network delay, so as to cache the voice data packet received from the sending end based on the cache delay; The playing control module is used to control the playing of the buffered voice data packet according to the buffering delay and the network delay.
10. A receiving end, comprising: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method as described in any one of claims 1 to 3.
11. A receiving end, comprising: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method as described in any one of claims 4 to 7.
12. A speech processing system, comprising: A sending end and a receiving end as described in claim 10, wherein the sending end is used to send a voice data packet to the receiving end.
13. A live broadcast processing system, comprising: A transmitting end and a receiving end as described in claim 11, wherein the transmitting end is used to send a voice data packet to the receiving end.
