A weak network countermeasure method and related device

By obtaining network status and computing resource information, the appropriate weak network countermeasures and encoding methods are determined, which solves the problem of poor audio transmission quality in weak network scenarios and improves the stability of audio transmission and user experience.

CN118473603BActive Publication Date: 2024-09-10IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410945379.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-10
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

In weak network scenarios, audio stuttering, loss, and voice changes often occur in real-time audio and video communications. It is difficult for existing technologies to effectively improve audio transmission quality and user experience.

Method used

By obtaining the network status parameters and the computing resource information of the receiving device, the appropriate weak network countermeasures and encoding methods are determined, a redundant strategy or a combined countermeasures strategy is adopted, and an appropriate encoding method is selected to encode and transmit the audio data.

Benefits of technology

It effectively improves the quality and user experience of real-time audio transmission in weak network scenarios, and improves the stability and reliability of audio data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118473603B
    Figure CN118473603B
Patent Text Reader

Abstract

The present application discloses a weak network confrontation method and related devices, which relate to the field of communication technology. The weak network confrontation method includes: obtaining the current network state parameters and obtaining the current computing resource information of the receiving end device; determining the target weak network confrontation strategy from several weak network confrontation strategies according to the network state parameters, and the several weak network confrontation strategies include a redundant strategy and a combined confrontation strategy, and the combined confrontation strategy is a combination of a redundant strategy and a retransmission strategy; determining the target encoding method from several encoding methods according to the current computing resource information, and the several encoding methods include a first encoding method, a second encoding method and a combined encoding method, and the combined encoding method is a combination of the first encoding method and the second encoding method; encoding and transmitting audio data according to the target weak network confrontation strategy and the target encoding method. The weak network confrontation method disclosed in the present application can effectively improve the quality and user experience of real-time audio transmission in weak network scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a weak network countermeasure method and related devices. Background Art

[0002] In the Internet era, real-time audio and video communication technology has greatly reduced the space for communication, made up for the distance in space, and promoted the development of society. The Internet network environment is ever-changing, and there are many uncertainties, such as backbone network congestion, radio physical obstacles, radio interference, etc., that is, network communication has weak network scenarios.

[0003] The existence of weak network in network communication may cause audio freeze, audio loss, audio distortion, etc. in real-time audio and video communication. Since real-time audio and video communication scenarios require high audio fluency, weak network countermeasure technology for audio is crucial. How to effectively counter weak network to improve the quality of real-time audio transmission and user experience is an urgent problem to be solved. Summary of the invention

[0004] In view of this, the present application provides a weak network countermeasure method and related devices, which are used to improve the quality and user experience of real-time audio transmission in weak network scenarios. The technical solution is as follows:

[0005] A first aspect of the present application provides a weak network countermeasure method, which is applied to a transmitting end device. The weak network countermeasure method includes:

[0006] Obtain the current network status parameters and the current computing resource information of the receiving device;

[0007] Determining a target weak network countermeasure strategy from a plurality of weak network countermeasure strategies according to the current network state parameter, wherein the plurality of weak network countermeasure strategies include a redundancy strategy and a combined countermeasure strategy, and the combined countermeasure strategy is a combination of a redundancy strategy and a retransmission strategy;

[0008] Determining a target encoding method from among several encoding methods according to the current computing resource information, wherein the several encoding methods include a first encoding method, a second encoding method, and a combined encoding method, the combined encoding method is a combination of the first encoding method and the second encoding method, the computation amount of the first encoding method is less than the computation amount of the second encoding method, and the encoding compression ratio of the second encoding method is greater than the encoding compression ratio of the first encoding method;

[0009] The audio data is encoded and transmitted according to the target weak network countermeasure strategy and the target encoding method.

[0010] In a possible implementation, the obtaining of the current network status parameter includes:

[0011] Get the current round trip delay and / or the current packet loss rate;

[0012] According to the current network status parameters, a target weak network countermeasure strategy is determined from several weak network countermeasure strategies, including:

[0013] According to the current round-trip delay and / or the current packet loss rate, a target weak network countermeasure strategy is determined from several weak network countermeasure strategies.

[0014] In a possible implementation, the obtaining current computing resource information of the receiving end device includes:

[0015] Receiving the current available computing resource amount or current computing resource level fed back by the receiving end device;

[0016] Among them, the current computing resource level is used to indicate the current abundance of available computing resources of the receiving device. The current computing resource level is one of the first level, the second level, and the third level. The first level is higher than the second level, and the second level is higher than the third level. The higher the level, the more abundant the available computing resources.

[0017] In a possible implementation, a target weak network countermeasure strategy is determined from several weak network countermeasure strategies according to the current round-trip delay and the current packet loss rate, including:

[0018] If the current round-trip delay is less than or equal to the preset round-trip delay threshold, and the current packet loss rate is less than or equal to the preset packet loss rate threshold, determining that the target weak network countermeasure strategy is the combined countermeasure strategy;

[0019] If the current round-trip delay is greater than a preset round-trip delay threshold, and / or the current packet loss rate is greater than a preset packet loss rate threshold, the target weak network countermeasure strategy is determined to be the redundant strategy.

[0020] In a possible implementation, determining a target encoding method from among several encoding methods according to the current computing resource information includes:

[0021] If the currently available computing resource amount is less than or equal to a preset first resource threshold, or the current computing resource level is the third level, determining the target encoding mode to be the first encoding mode;

[0022] If the currently available computing resource amount is greater than a preset first resource threshold and less than a preset second resource threshold, or the current computing resource level is the second level, determining that the target encoding mode is the combined encoding mode, and the second resource threshold is greater than the first resource threshold;

[0023] If the currently available computing resource amount is greater than or equal to a preset second resource threshold, or the current computing resource level is the first level, the target encoding mode is determined to be the second encoding mode.

[0024] In a possible implementation, encoding the audio data according to the target weak network countermeasure strategy and the target encoding method includes:

[0025] Determining a coding strategy according to the target weak network countermeasure strategy and the target coding method;

[0026] The audio data is encoded according to the encoding strategy.

[0027] In a possible implementation, determining the encoding strategy according to the target weak network countermeasure strategy and the target encoding mode includes:

[0028] When the target weak network confrontation strategy is the combined confrontation strategy:

[0029] If the target encoding mode is the first encoding mode, determining the encoding strategy is to use the first encoding mode to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data;

[0030] If the target encoding mode is the combined encoding mode, determining the encoding strategy to use the first encoding mode to encode the non-redundant audio data, and use the second encoding mode to encode both the redundant audio data and the retransmitted audio data;

[0031] If the target encoding mode is the second encoding mode, the encoding strategy is determined to use the second encoding mode to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data.

[0032] In a possible implementation, determining the encoding strategy according to the target weak network countermeasure strategy and the target encoding mode includes:

[0033] When the target weak network countermeasure strategy is the redundant strategy:

[0034] If the target encoding mode is the first encoding mode, determining the encoding strategy is to encode both the non-redundant audio data and the redundant audio data using the first encoding mode;

[0035] If the target encoding mode is the combined encoding mode, determining the encoding strategy to use the first encoding mode to encode the non-redundant audio data and the second encoding mode to encode the redundant audio data;

[0036] If the target encoding method is the second encoding method, the encoding strategy is determined to encode both the non-redundant audio data and the redundant audio data using the second encoding method.

[0037] A second aspect of the present application provides a weak network countermeasure device, including: a network state parameter acquisition module, a computing resource acquisition module, a weak network countermeasure strategy determination module, a coding method determination module, and a coding transmission module;

[0038] The network status parameter acquisition module is used to obtain the current network status parameters;

[0039] The computing resource acquisition module is used to obtain current computing resource information of the receiving end device;

[0040] The weak network confrontation strategy determination module is used to determine a target weak network confrontation strategy from a plurality of weak network confrontation strategies according to the current network state parameters, wherein the plurality of weak network confrontation strategies include a redundant strategy and a combined confrontation strategy, and the combined confrontation strategy is a combination of a redundant strategy and a retransmission strategy;

[0041] The encoding mode determination module is used to determine a target encoding mode from a plurality of encoding modes according to the current computing resource information, wherein the plurality of encoding modes include a first encoding mode, a second encoding mode, and a combined encoding mode, the combined encoding mode is a combination of the first encoding mode and the second encoding mode, the computation amount of the first encoding mode is less than the computation amount of the second encoding mode, and the encoding compression ratio of the second encoding mode is greater than the encoding compression ratio of the first encoding mode;

[0042] The encoding and transmission module is used to encode and transmit the audio data according to the target weak network countermeasure strategy and the target encoding method.

[0043] A third aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0044] The memory is used to store computer programs;

[0045] The processor is used to execute the computer program so that the electronic device can implement the steps of any one of the above-mentioned weak network countermeasure methods.

[0046] A fourth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the steps of any one of the above-mentioned weak network countermeasure methods.

[0047] A fifth aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the steps of any one of the above-mentioned weak network countermeasure methods.

[0048] By means of the above technical scheme, the weak network confrontation method provided by the present application first obtains the current network state parameters and the current computing resource information of the receiving device, and then determines the target weak network confrontation strategy from several weak network confrontation strategies according to the current network state parameters, and then determines the target encoding method from several encoding methods according to the current computing resource information of the receiving device, and finally encodes and transmits the audio data according to the target weak network confrontation strategy and the target encoding method. The weak network confrontation method provided by the present application can determine the weak network confrontation strategy adapted to the current network state according to the current network state parameters, and can determine the encoding method adapted to the computing resource situation of the receiving device according to the current computing resource information of the receiving device, and then, can encode and transmit the audio data according to the determined weak network confrontation strategy and encoding method, and the weak network confrontation method provided by the present application can effectively improve the quality and user experience of real-time audio transmission in weak network scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0050] Figure 1 A schematic diagram of a hardware structure of a terminal provided in an embodiment of the present application;

[0051] Figure 2 A schematic diagram of a weak network countermeasure method provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of the format of an RTCP packet provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of a redundancy strategy provided in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of the structure of a weak network countermeasure device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0056] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0057] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0058] The weak network countermeasure method provided in the present application can be applied to a terminal, which can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not impose any restrictions on this.

[0059] Figure 1 An optional hardware structure diagram of a terminal is shown.

[0060] refer to Figure 1 As shown, the terminal may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 1 This is merely an example of a terminal and does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or a combination of certain components, or different components.

[0061] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the terminal. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0062] The display unit 140 may be used to display information input by a user or information provided to a user, various menus of the terminal, an interactive interface, file display, and / or playback of any multimedia file.

[0063] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.

[0064] The processor 170 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire terminal. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal and processes data, thereby controlling the terminal as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.

[0065] Among them, the memory 120 can be used to store software codes related to the weak network countermeasure method, the processor 170 can call the software codes stored in the memory 120, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to implement corresponding functions.

[0066] The radio frequency unit 110 (optional) can be used to receive and send information or receive and send signals during a call. For example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the radio frequency unit 110 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LowNoiseAmplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General PacketRadio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.

[0067] In the embodiment of the present application, the radio frequency unit 110 can send data to other devices, and can also receive data sent by other devices. It should be understood that the radio frequency unit 110 is optional, and can be replaced by other communication interfaces, such as a network port.

[0068] The terminal also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0069] The terminal also includes an external interface 180, which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal to communicate with other devices, or to connect a charger to charge the terminal.

[0070] Although not shown, the terminal may further include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which will not be described in detail here.

[0071] It should be understood that the processor 202 in the above-mentioned terminal can be a hardware circuit (such as an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a general-purpose processor, a digital signal processor (DSP), a microprocessor or a microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.

[0072] Next, the weak network countermeasure method provided by the present application is introduced through the following embodiments.

[0073] See also Figure 2 , shows a schematic flow chart of a weak network countermeasure method provided in an embodiment of the present application, the weak network countermeasure method can be applied to a transmitting end device, and the weak network countermeasure method may include:

[0074] Step S201: Acquire current network status parameters and obtain current computing resource information of the receiving device.

[0075] The current network status parameter is a parameter that can characterize the current network status.

[0076] The network status parameters in this embodiment may include round-trip time (RTT) and / or packet loss rate. The round-trip time refers to the total delay from the start of data transmission at the sender to the receipt of confirmation from the receiver at the sender, and the packet loss rate refers to the percentage of data packets lost during network transmission to the total number of transmitted data packets. The round-trip time and packet loss rate are important parameters for measuring network performance.

[0077] In this embodiment, the process of obtaining the current computing resource information of the receiving end device may include: receiving the current available computing resource amount or the current computing resource level fed back from the receiving end device.

[0078] Among them, the current computing resource level is used to indicate the current abundance of available computing resources of the receiving end device, and the current computing resource level is one of the first level, the second level, and the third level. It should be noted that the first level is higher than the second level, and the second level is higher than the third level. The first level is used to indicate that the available computing resources of the receiving end device are very abundant, the second level is used to indicate that the available computing resources of the receiving end device are relatively abundant, and the third level is used to indicate that the available computing resources of the receiving end device are scarce, that is, the higher the computing resource level, the higher the abundance of available computing resources.

[0079] In one possible implementation, the receiving device may periodically feed back its current available computing resource amount to the transmitting device; in another possible implementation, the receiving device may periodically feed back its current computing resource level to the transmitting device.

[0080] In one possible implementation, the receiving device may feed back the current computing resource information (e.g., the current available computing resource amount or the current computing resource level) to the sending device based on the RTCP packet. Figure 3 , shows a schematic diagram of the format of the RTCP packet, Figure 3 The data field in is the current computing resource information of the receiving device.

[0081] The receiving device sends an RTCP packet carrying its own current computing resource information to the sending device. After receiving the RTCP packet from the receiving device, the sending device obtains the current computing resource information of the receiving device from the data field of the RTCP packet.

[0082] Step S202: Determine a target weak network countermeasure strategy from among several weak network countermeasure strategies according to current network status parameters.

[0083] Among them, several weak network countermeasure strategies include a redundancy strategy and a combined countermeasure strategy, and the combined countermeasure strategy is a combination of a redundancy strategy and a retransmission strategy.

[0084] The redundancy strategy refers to adding additional information to the data to be sent. This additional information is used to detect and correct errors in the transmission process in a timely manner. For example, Figure 4 As shown, when data packet 6 is sent, data packets 1 to 5 are sent together (data packets 1 to 5 are redundant data), when data packet 7 is sent, data packets 2 to 6 are sent together (data packets 2 to 6 are redundant data), and when data packet 8 is sent, data packets 3 to 7 are sent together (data packets 3 to 7 are redundant data).

[0085] The retransmission strategy refers to retransmitting the lost data when the sent data is lost. For example, after the sending end device sends data packet 5, if it does not receive the confirmation information of data packet 5 within the set time, it will retransmit data packet 5.

[0086] Step S203: Determine a target encoding method from among several encoding methods according to current computing resource information of the receiving end device.

[0087] The plurality of encoding modes include a first encoding mode, a second encoding mode and a combined encoding mode, and the combined encoding mode is a combination of the first encoding mode and the second encoding mode.

[0088] It should be noted that the computational complexity of the first encoding method is smaller than that of the second encoding method, and the encoding compression ratio of the second encoding method is larger than that of the first encoding method (the bit rate of the second encoding method is smaller than the bit rate of the first encoding method).

[0089] The first encoding method can be a traditional encoding method, such as waveform encoding (sampling and quantizing the time domain waveform), parameter encoding (establishing a mathematical model based on the human vocal mechanism, and then compressing the audio data), etc. The second encoding method can be a deep learning-based encoding method (using a neural network to encode the audio data into a latent vector, and using the neural network at the receiving end to restore it to audio data).

[0090] Step S204: Encode and transmit the audio data according to the target weak network countermeasure strategy and target encoding method.

[0091] The weak network confrontation method provided in the embodiment of the present application first obtains the current network state parameters and the current computing resource information of the receiving device, then determines the target weak network confrontation strategy from several weak network confrontation strategies according to the current network state parameters, then determines the target encoding method from several encoding methods according to the current computing resource information of the receiving device, and finally encodes and transmits the audio data according to the target weak network confrontation strategy and the target encoding method. The weak network confrontation method provided in the embodiment of the present application can determine the weak network confrontation strategy adapted to the current network state according to the current network state parameters, and can determine the encoding method adapted to the computing resource situation of the receiving device according to the current computing resource information of the receiving device, and then, can encode and transmit the audio data according to the determined weak network confrontation strategy and encoding method, and the weak network confrontation method provided in the embodiment of the present application can effectively improve the quality and user experience of real-time audio transmission in weak network scenarios.

[0092] In another embodiment of the present application, the specific implementation process of "step S202: determining a target weak network countermeasure strategy from several weak network countermeasure strategies according to current network status parameters" in the above embodiment is introduced.

[0093] There are multiple ways to implement the method of determining a target weak network countermeasure strategy from among several weak network countermeasure strategies according to the current network status parameters. The embodiments of the present application provide the following three implementation methods.

[0094] A first implementation method of determining a target weak network countermeasure strategy from among several weak network countermeasure strategies according to current network status parameters: determining a target weak network countermeasure strategy from among several weak network countermeasure strategies according to current round-trip delay.

[0095] Specifically, according to the current round-trip delay, the process of determining the target weak network countermeasure strategy from several weak network countermeasure strategies may include:

[0096] Step aa: If the current round-trip delay is less than or equal to the preset round-trip delay threshold, the target weak network confrontation strategy is determined to be a combined confrontation strategy.

[0097] If the current round-trip delay is less than or equal to the preset round-trip delay threshold (for example, 30ms), it means that the retransmission request delay is small and the retransmission cost is small. In this case, a combined countermeasure strategy can be adopted, that is, a combination of a retransmission strategy and a redundancy strategy. The redundancy strategy can adopt a light redundancy strategy. It should be noted that the light redundancy strategy refers to adding less redundant information.

[0098] Step ab: If the current round-trip delay is greater than the preset round-trip delay threshold, the target countermeasure strategy is determined to be a redundant strategy.

[0099] If the current round-trip delay is greater than the preset round-trip delay threshold (for example, 30ms), it means that the retransmission request delay is large and the retransmission cost is large, then a redundancy strategy can be adopted.

[0100] It should be noted that the above round-trip delay threshold of 30 ms is only an example. This embodiment does not limit the round-trip delay threshold to 30 ms. The round-trip delay threshold can be set according to actual application scenarios.

[0101] A second implementation method of determining a target weak network countermeasure strategy from among several weak network countermeasure strategies according to current network status parameters: determining a target weak network countermeasure strategy from among several weak network countermeasure strategies according to a current packet loss rate.

[0102] Specifically, according to the current packet loss rate, the process of determining the target weak network countermeasure strategy from several weak network countermeasure strategies may include:

[0103] Step ba: if the current packet loss rate is less than or equal to the preset packet loss rate threshold, determine that the target weak network countermeasure strategy is a combined countermeasure strategy.

[0104] If the current packet loss rate is less than or equal to the preset packet loss rate threshold (such as 15%), the retransmission cost is small, and a combined countermeasure strategy can be adopted, that is, a combination of a retransmission strategy and a redundancy strategy, wherein the redundancy strategy can adopt a light redundancy strategy.

[0105] Step bb: if the current packet loss rate is greater than a preset packet loss rate threshold, determine that the target weak network countermeasure strategy is a redundant strategy.

[0106] If the current packet loss rate is greater than the preset packet loss rate threshold (for example, 15%), the retransmission cost is high and a redundancy strategy can be adopted.

[0107] It should be noted that the above-mentioned packet loss rate threshold of 15% is only an example. This embodiment does not limit the packet loss rate threshold to 15%, and the packet loss rate threshold can be set according to actual application scenarios.

[0108] A third implementation method of determining a target weak network countermeasure strategy from among several weak network countermeasure strategies according to current network status parameters: determining a target weak network countermeasure strategy from among several weak network countermeasure strategies according to current round-trip delay and current packet loss rate.

[0109] Specifically, according to the current round-trip delay and the current packet loss rate, the process of determining the target weak network countermeasure strategy from several weak network countermeasure strategies may include:

[0110] Step ca: if the current round-trip delay is less than or equal to the preset round-trip delay threshold, and the current packet loss rate is less than or equal to the preset packet loss rate threshold, then determine that the target weak network countermeasure strategy is a combined countermeasure strategy.

[0111] If the current round-trip delay is less than or equal to the preset round-trip delay threshold, and the current packet loss rate is less than or equal to the preset packet loss rate threshold, the retransmission cost is small, and a combined countermeasure strategy can be adopted, that is, a combination of a retransmission strategy and a redundancy strategy, wherein the redundancy strategy can adopt a light redundancy strategy.

[0112] Step cb: If the current round-trip delay is greater than the preset round-trip delay threshold, and the current packet loss rate is greater than the preset packet loss rate threshold, then determine that the target weak network countermeasure strategy is a redundant strategy.

[0113] If the current round-trip delay is greater than the preset round-trip delay threshold, and the current packet loss rate is greater than the preset packet loss rate threshold, the retransmission cost is high and a redundancy strategy can be adopted.

[0114] It should be noted that when the packet loss rate is small and the round-trip delay is small, the retransmission strategy is a very effective strategy. However, when the round-trip delay is large or the packet loss rate is large, if the retransmission strategy is adopted, multiple repeated retransmissions may be performed, which will undoubtedly increase the network transmission cost and load. In view of this, this embodiment adopts a redundant strategy when the round-trip delay is large or the packet loss rate is large.

[0115] Generally, the larger the round-trip delay, the larger the packet loss rate. Conversely, the smaller the round-trip delay, the smaller the packet loss rate. However, sometimes the round-trip delay is larger and the packet loss rate is smaller, and sometimes the round-trip delay is smaller and the packet loss rate is larger. For these two situations, the target weak network countermeasure strategy can be determined as follows:

[0116] Step cc: If the current round-trip delay is less than or equal to the preset round-trip delay threshold, and the current packet loss rate is greater than the preset packet loss rate threshold, a redundancy strategy may be adopted.

[0117] Considering that the current packet loss rate is greater than the preset packet loss rate threshold and the retransmission cost is high, a redundancy strategy can be adopted.

[0118] Step cd: If the current round-trip delay is greater than the preset round-trip delay threshold, and the current packet loss rate is less than or equal to the preset packet loss rate threshold, a redundancy strategy may be adopted.

[0119] Considering that the current round-trip delay is greater than the preset round-trip delay threshold, the retransmission request delay is large and the retransmission cost is high, a redundancy strategy can be adopted.

[0120] In another embodiment of the present application, the implementation process of "step S203: determining a target encoding method from several encoding methods according to current computing resource information of a receiving end device" in the above embodiment is introduced.

[0121] According to the current computing resource information of the receiving end device, the process of determining the target encoding method from several encoding methods may include:

[0122] Step da: if the currently available computing resource amount is less than or equal to the preset first resource threshold, or the current computing resource level is the third level, then determine the target encoding mode to be the first encoding mode.

[0123] The current available computing resources are less than or equal to the preset first resource threshold, or the current computing resource level is the third level, indicating that the current computing resources of the receiving end device are scarce. In this case, a first encoding method with a smaller computing amount can be used, such as a traditional encoding method. It should be noted that since the computing amount of the first encoding method is smaller, the computing amount of the receiving end device for decoding the data encoded by the first encoding method is also smaller, and accordingly, the required computing resources are also smaller.

[0124] Step db: If the current available computing resource amount is greater than the preset first resource threshold and less than the preset second resource threshold, or the current computing resource level is the second level, then determine that the target encoding mode is a combined encoding mode.

[0125] The second resource threshold is greater than the first resource threshold.

[0126] The current amount of available computing resources is greater than the preset first resource threshold and less than the preset second resource threshold, or the current computing resource level is the second level, indicating that the current computing resources of the receiving device are relatively abundant. In this case, a combined encoding method can be used, that is, a combination of the first encoding method and the second encoding method.

[0127] Step dc: if the current available computing resource amount is greater than a preset second resource threshold, or the current computing resource level is the first level, then determine the target encoding mode to be the second encoding mode.

[0128] The current available computing resources are greater than the preset second resource threshold, or the current computing resource level is the first level, indicating that the computing resources of the receiving device are very abundant, and the second encoding method, such as the neural network-based encoding method, can be used. It should be noted that, considering that the encoding compression of the second encoding method is relatively large, the bandwidth required for transmitting data encoded by the second encoding method is relatively small, and the second encoding method can be used when the computing resources of the receiving device are very abundant.

[0129] After the target weak network countermeasure strategy and the target encoding method are determined, the audio data can be encoded and transmitted according to the target weak network countermeasure strategy and the target encoding method.

[0130] In another embodiment of the present invention, a process of encoding audio data according to a target weak network countermeasure strategy and a target encoding method is introduced.

[0131] According to the target weak network countermeasure strategy and the target encoding method, the process of encoding the audio data may include:

[0132] Step e1: Determine the encoding strategy according to the target weak network countermeasure strategy and the target encoding method.

[0133] When the target weak network countermeasure strategy is a combined countermeasure strategy (i.e., a combination of a redundancy strategy and a retransmission strategy), the coding strategy can be determined as follows:

[0134] Step e1-aa: If the target encoding mode is the first encoding mode, determine the encoding strategy to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data using the first encoding mode.

[0135] Assume that audio data packet 6 is to be sent. When audio data packet 6 is sent, audio data packet 4 and audio data packet 5 are attached. Then audio data packet 6 is non-redundant audio data, and audio data packet 4 and audio data packet 5 are redundant audio data.

[0136] Assume that audio data packets 4 to 6 are sent, and during the sending process, audio data packet 5 is lost and needs to be retransmitted, then audio data packet 5 is the retransmitted audio data.

[0137] Exemplarily, the current round-trip delay is less than or equal to a preset round-trip delay threshold, and the current packet loss rate is less than or equal to a preset packet loss rate threshold. A combined countermeasure strategy (i.e., a combination of a redundancy strategy and a retransmission strategy) can be adopted. Assuming that the computing resources of the receiving device are scarce based on the current computing resource information of the receiving device, a coding strategy based on the first coding method can be adopted, that is, non-redundant audio data, redundant audio data, and retransmitted audio data are all encoded using the first coding method.

[0138] Step e1-ab: If the target encoding mode is a combined encoding mode, the encoding strategy is determined to encode the non-redundant audio data using the first encoding mode, and encode the redundant audio data and the retransmitted audio data using the second encoding mode.

[0139] Exemplarily, the current round-trip delay is less than or equal to a preset round-trip delay threshold, and the current packet loss rate is less than or equal to a preset packet loss rate threshold. A combined countermeasure strategy (i.e., a combination of a redundancy strategy and a retransmission strategy) can be adopted. Assuming that the computing resources of the receiving device are relatively abundant based on the current computing resource information of the receiving device, a coding strategy based on the first coding method and the second coding method can be adopted. Specifically, the non-redundant audio data is encoded using the first coding method, and the redundant audio data and the retransmitted audio data are encoded using the second coding method.

[0140] Step e1-ac: if the target encoding mode is the second encoding mode, determine the encoding strategy to use the second encoding mode to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data.

[0141] Exemplarily, the current round-trip delay is less than or equal to the preset round-trip delay threshold, and the current packet loss rate is less than or equal to the preset packet loss rate threshold. A combined countermeasure strategy (i.e., a combination of a redundancy strategy and a retransmission strategy) can be adopted. Assuming that the computing resources of the receiving device are sufficient according to the current computing resource information of the receiving device, a coding strategy based on the second coding method can be adopted. Specifically, non-redundant audio data, redundant audio data and retransmitted audio data are all encoded using the second coding method.

[0142] When the target weak network countermeasure strategy is a redundant strategy, the encoding strategy can be determined as follows:

[0143] Step e1-ba: if the target encoding mode is the first encoding mode, determine the encoding strategy to encode both the non-redundant audio data and the redundant audio data using the first encoding mode.

[0144] Exemplarily, if the current round-trip delay is greater than a preset round-trip delay threshold, and / or the current packet loss rate is greater than a preset packet loss rate threshold, a redundancy strategy may be adopted. Assuming that the computing resources of the receiving device are scarce based on the current computing resource information of the receiving device, a coding strategy based on the first coding method may be adopted. Specifically, both non-redundant audio data and redundant audio data are encoded using the first coding method.

[0145] Step e1-bb: If the target encoding mode is a combined encoding mode, determine the encoding strategy as encoding the non-redundant audio data in the first encoding mode and encoding the redundant audio data in the second encoding mode.

[0146] Exemplarily, if the current round-trip delay is greater than a preset round-trip delay threshold, and / or the current packet loss rate is greater than a preset packet loss rate threshold, a redundancy strategy may be adopted. Assuming that the computing resources of the receiving device are sufficient based on the current computing resource information of the receiving device, a coding strategy based on the first coding method and the second coding method may be adopted. Specifically, the non-redundant audio data is encoded using the first coding method, and the redundant audio data is encoded using the second coding method.

[0147] Step e1-bc: If the target encoding mode is the second encoding mode, determine the encoding strategy to encode both the non-redundant audio data and the redundant audio data using the second encoding mode.

[0148] Exemplarily, if the current round-trip delay is greater than a preset round-trip delay threshold, and / or the current packet loss rate is greater than a preset packet loss rate threshold, a redundancy strategy may be adopted. Assuming that the computing resources of the receiving device are sufficient based on the current computing resource information of the receiving device, a coding strategy based on the second coding method may be adopted. Specifically, both non-redundant audio data and redundant audio data are encoded using the second coding method.

[0149] Step e2: Encode the audio data according to the determined encoding strategy.

[0150] The above describes the weak network countermeasure method provided by the embodiment of the present application. The following describes the device corresponding to the weak network countermeasure method.

[0151] See also Figure 5 , Figure 5 A structural schematic diagram of a weak network confrontation device provided in an embodiment of the present application, the weak network confrontation device may include: a network status parameter acquisition module 501, a computing resource acquisition module 502, a weak network confrontation strategy determination module 503, an encoding method determination module 504 and an encoding transmission module 505.

[0152] The network status parameter acquisition module 501 is used to acquire the current network status parameters.

[0153] The computing resource acquisition module 502 is used to acquire the current computing resource information of the receiving device.

[0154] The weak network countermeasure strategy determination module 503 is used to determine a target weak network countermeasure strategy from several weak network countermeasure strategies according to the current network state parameters.

[0155] Among them, several weak network countermeasure strategies include a redundancy strategy and a combined countermeasure strategy, and the combined countermeasure strategy is a combination of a redundancy strategy and a retransmission strategy.

[0156] The coding mode determination module 504 is used to determine a target coding mode from among several coding modes according to the current computing resource information of the receiving end device.

[0157] The plurality of encoding modes include a first encoding mode, a second encoding mode and a combined encoding mode, and the combined encoding mode is a combination of the first encoding mode and the second encoding mode.

[0158] It should be noted that the amount of calculation of the first encoding method is smaller than that of the second encoding method, and the encoding compression ratio of the second encoding method is larger than that of the first encoding method.

[0159] The encoding and transmission module 505 is used to encode and transmit the audio data according to the target weak network countermeasure strategy and the target encoding method.

[0160] In a possible implementation, when acquiring the current network state parameter, the network state parameter acquisition module 501 is specifically used to:

[0161] Get the current round trip delay and / or the current packet loss rate.

[0162] The weak network countermeasure strategy determination module 503 is specifically used to determine the target weak network countermeasure strategy from several weak network countermeasure strategies according to the current network state parameters:

[0163] According to the current round-trip delay and / or the current packet loss rate, a target weak network countermeasure strategy is determined from several weak network countermeasure strategies.

[0164] In a possible implementation, when the computing resource acquisition module 502 acquires the current computing resource information of the receiving device, it is specifically used to receive the current available computing resource amount or the current computing resource level from the receiving device.

[0165] Among them, the current computing resource level is used to indicate the current abundance of available computing resources of the receiving device. The current computing resource level is one of the first level, the second level, and the third level. The first level is higher than the second level, and the second level is higher than the third level. The higher the level, the more abundant the available computing resources.

[0166] In a possible implementation, the weak network countermeasure strategy determination module 503 is specifically used to determine the target weak network countermeasure strategy from several weak network countermeasure strategies according to the current round-trip delay and the current packet loss rate:

[0167] If the current round-trip delay is less than or equal to the preset round-trip delay threshold, and the current packet loss rate is less than or equal to the preset packet loss rate threshold, then determining that the target weak network countermeasure strategy is a combined countermeasure strategy;

[0168] If the current round-trip delay is greater than a preset round-trip delay threshold, and / or the current packet loss rate is greater than a preset packet loss rate threshold, the target weak network countermeasure strategy is determined to be a redundant strategy.

[0169] In a possible implementation, when the encoding mode determination module 504 determines the target encoding mode from a plurality of encoding modes according to the current computing resource information of the receiving end device, it is specifically used to:

[0170] If the current available computing resource amount of the receiving end device is less than or equal to the preset first resource threshold, or the current computing resource level is the third level, determining the target encoding mode to be the first encoding mode;

[0171] If the current available computing resource amount of the receiving end device is greater than a preset first resource threshold and less than a preset second resource threshold, or the current computing resource level is the second level, determining that the target encoding mode is a combined encoding mode, wherein the second resource threshold is greater than the first resource threshold;

[0172] If the current available computing resource amount of the receiving end device is greater than or equal to a preset second resource threshold, or the current computing resource level is the first level, the target encoding mode is determined to be the second encoding mode.

[0173] In a possible implementation, when encoding the audio data according to the target weak network countermeasure strategy and the target encoding method, the encoding transmission module 505 is specifically used to:

[0174] Determine the encoding strategy based on the target weak network countermeasure strategy and target encoding method;

[0175] Encode the audio data according to the encoding strategy.

[0176] In a possible implementation, when the coding transmission module 505 determines the coding strategy according to the target weak network countermeasure strategy and the target coding mode, it is specifically used to:

[0177] When the target weak network countermeasure strategy is a combined countermeasure strategy:

[0178] If the target encoding mode is the first encoding mode, determining the encoding strategy is to use the first encoding mode to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data;

[0179] If the target encoding mode is a combined encoding mode, determining the encoding strategy is to use the first encoding mode to encode the non-redundant audio data, and use the second encoding mode to encode the redundant audio data and the retransmitted audio data;

[0180] If the target encoding mode is the second encoding mode, the encoding strategy is determined to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data using the second encoding mode.

[0181] In a possible implementation, when the coding transmission module 505 determines the coding strategy according to the target weak network countermeasure strategy and the target coding mode, it is specifically used to:

[0182] When the target weak network countermeasure strategy is a redundant strategy:

[0183] If the target encoding mode is the first encoding mode, determining the encoding strategy is to use the first encoding mode to encode both the non-redundant audio data and the redundant audio data;

[0184] If the target encoding mode is a combined encoding mode, determining the encoding strategy is to use a first encoding mode to encode the non-redundant audio data and a second encoding mode to encode the redundant audio data;

[0185] If the target encoding mode is the second encoding mode, the encoding strategy is determined to encode both the non-redundant audio data and the redundant audio data using the second encoding mode.

[0186] The weak network countermeasure device provided in the embodiment of the present application can determine a weak network countermeasure strategy suitable for the current network state according to the current network state parameters after obtaining the current computing resource information of the receiving device, and can determine an encoding method suitable for the computing resource situation of the receiving device according to the current computing resource information of the receiving device. Then, the audio data can be encoded and transmitted according to the determined weak network countermeasure strategy and encoding method. The weak network countermeasure device provided in the embodiment of the present application can effectively improve the quality of real-time audio transmission and user experience in weak network scenarios.

[0187] An embodiment of the present application also provides an electronic device, which may include: at least one processor, at least one communication interface, at least one memory and at least one communication bus.

[0188] In the embodiment of the present application, the number of the processor, the communication interface, the memory, and the communication bus is at least one, and the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0189] The processor may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application;

[0190] The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;

[0191] The memory stores a program, and the processor can call the program stored in the memory, and the program is used to implement the steps of the weak network countermeasure method provided in the above embodiment.

[0192] An embodiment of the present application also provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the steps of the weak network countermeasure method provided in the above embodiment.

[0193] An embodiment of the present application also provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the steps of the weak network countermeasure method provided in the above embodiment.

[0194] It should also be noted that the device embodiments described above are merely schematic, 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 over 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. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0195] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0196] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0197] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A weak network countermeasure method, characterized in that: Applied to the transmitting end device, the weak network countermeasure method includes: Obtain the current network status parameters and the current computing resource information of the receiving device; Determining a target weak network countermeasure strategy from a plurality of weak network countermeasure strategies according to the current network state parameter, wherein the plurality of weak network countermeasure strategies include a redundancy strategy and a combined countermeasure strategy, and the combined countermeasure strategy is a combination of a redundancy strategy and a retransmission strategy; Determining a target encoding method from among several encoding methods according to the current computing resource information, wherein the several encoding methods include a first encoding method, a second encoding method, and a combined encoding method, the combined encoding method is a combination of the first encoding method and the second encoding method, the computation amount of the first encoding method is less than the computation amount of the second encoding method, and the encoding compression ratio of the second encoding method is greater than the encoding compression ratio of the first encoding method; The audio data is encoded and transmitted according to the target weak network countermeasure strategy and the target encoding method.

2. The weak network countermeasure method according to claim 1, characterized in that: The obtaining of current network status parameters includes: Get the current round trip delay and / or the current packet loss rate; Determining a target weak network countermeasure strategy from a plurality of weak network countermeasure strategies according to the current network state parameter includes: According to the current round-trip delay and / or the current packet loss rate, a target weak network countermeasure strategy is determined from several weak network countermeasure strategies.

3. The weak network countermeasure method according to claim 1, characterized in that: The obtaining of current computing resource information of the receiving end device includes: Receiving the current available computing resource amount or current computing resource level fed back by the receiving end device; Among them, the current computing resource level is used to indicate the current abundance of available computing resources of the receiving device. The current computing resource level is one of the first level, the second level, and the third level. The first level is higher than the second level, and the second level is higher than the third level. The higher the level, the more abundant the available computing resources.

4. The weak network countermeasure method according to claim 2, characterized in that: Determining a target weak network countermeasure strategy from several weak network countermeasure strategies according to the current round-trip delay and / or the current packet loss rate includes: If the current round-trip delay is less than or equal to the preset round-trip delay threshold, and the current packet loss rate is less than or equal to the preset packet loss rate threshold, determining that the target weak network countermeasure strategy is the combined countermeasure strategy; If the current round-trip delay is greater than a preset round-trip delay threshold, and / or the current packet loss rate is greater than a preset packet loss rate threshold, the target weak network countermeasure strategy is determined to be the redundant strategy.

5. The weak network countermeasure method according to claim 3, characterized in that: The step of determining a target encoding method from among several encoding methods according to the current computing resource information includes: If the currently available computing resource amount is less than or equal to a preset first resource threshold, or the current computing resource level is the third level, determining the target encoding mode to be the first encoding mode; If the currently available computing resource amount is greater than a preset first resource threshold and less than a preset second resource threshold, or the current computing resource level is the second level, determining that the target encoding mode is the combined encoding mode, and the second resource threshold is greater than the first resource threshold; If the currently available computing resource amount is greater than or equal to a preset second resource threshold, or the current computing resource level is the first level, the target encoding mode is determined to be the second encoding mode.

6. The weak network countermeasure method according to claim 1, characterized in that: Encoding the audio data according to the target weak network countermeasure strategy and the target encoding method includes: Determining a coding strategy according to the target weak network countermeasure strategy and the target coding method; The audio data is encoded according to the encoding strategy.

7. The weak network countermeasure method according to claim 6, characterized in that: The determining of the encoding strategy according to the target weak network countermeasure strategy and the target encoding mode includes: When the target weak network confrontation strategy is the combined confrontation strategy: If the target encoding mode is the first encoding mode, determining the encoding strategy is to use the first encoding mode to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data; If the target encoding mode is the combined encoding mode, determining the encoding strategy to use the first encoding mode to encode the non-redundant audio data, and use the second encoding mode to encode both the redundant audio data and the retransmitted audio data; If the target encoding mode is the second encoding mode, the encoding strategy is determined to use the second encoding mode to encode the non-redundant audio data, the redundant audio data and the retransmitted audio data.

8. The weak network countermeasure method according to claim 6, characterized in that: The determining of the encoding strategy according to the target weak network countermeasure strategy and the target encoding mode includes: When the target weak network countermeasure strategy is the redundant strategy: If the target encoding mode is the first encoding mode, determining the encoding strategy to encode both the non-redundant audio data and the redundant audio data using the first encoding mode; If the target encoding mode is the combined encoding mode, determining the encoding strategy to use the first encoding mode to encode the non-redundant audio data and the second encoding mode to encode the redundant audio data; If the target encoding method is the second encoding method, the encoding strategy is determined to encode both the non-redundant audio data and the redundant audio data using the second encoding method.

9. A weak network countermeasure device, characterized in that: include: Network status parameter acquisition module, computing resource acquisition module, weak network countermeasure strategy determination module, encoding method determination module and encoding transmission module; The network status parameter acquisition module is used to obtain the current network status parameters; The computing resource acquisition module is used to obtain current computing resource information of the receiving end device; The weak network confrontation strategy determination module is used to determine a target weak network confrontation strategy from a plurality of weak network confrontation strategies according to the current network state parameters, wherein the plurality of weak network confrontation strategies include a redundant strategy and a combined confrontation strategy, and the combined confrontation strategy is a combination of a redundant strategy and a retransmission strategy; The encoding mode determination module is used to determine a target encoding mode from a plurality of encoding modes according to the current computing resource information, wherein the plurality of encoding modes include a first encoding mode, a second encoding mode, and a combined encoding mode, the combined encoding mode is a combination of the first encoding mode and the second encoding mode, the computation amount of the first encoding mode is less than the computation amount of the second encoding mode, and the encoding compression ratio of the second encoding mode is greater than the encoding compression ratio of the first encoding mode; The encoding and transmission module is used to encode and transmit the audio data according to the target weak network countermeasure strategy and the target encoding method.

10. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the steps of the weak network countermeasure method as described in any one of claims 1 to 8.

11. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the steps of the weak network countermeasure method as described in any one of claims 1 to 8.

12. A computer program product, characterized in that It includes computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the steps of the weak network countermeasure method as described in any one of claims 1 to 8.