CN113037431A - Embedded audio data transmission method and system - Google Patents

Embedded audio data transmission method and system Download PDF

Info

Publication number
CN113037431A
CN113037431A CN202110121093.3A CN202110121093A CN113037431A CN 113037431 A CN113037431 A CN 113037431A CN 202110121093 A CN202110121093 A CN 202110121093A CN 113037431 A CN113037431 A CN 113037431A
Authority
CN
China
Prior art keywords
data packet
udp protocol
protocol data
embedded audio
udp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110121093.3A
Other languages
Chinese (zh)
Inventor
李天驰
孙悦
饶鑫炎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dianmao Technology Co Ltd
Original Assignee
Shenzhen Dianmao Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dianmao Technology Co Ltd filed Critical Shenzhen Dianmao Technology Co Ltd
Priority to CN202110121093.3A priority Critical patent/CN113037431A/en
Publication of CN113037431A publication Critical patent/CN113037431A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/009Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location arrangements specific to transmitters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0091Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location arrangements specific to receivers, e.g. format detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Abstract

The invention discloses a method for transmitting embedded audio data, which comprises the following steps: encoding the embedded audio data into a corresponding UDP protocol data packet; inserting corresponding redundant data into the UDP protocol data packet based on a forward error correction mechanism; and sending the UDP protocol data packet inserted with the redundant data to a receiving end based on the UDP protocol. The invention also discloses a system for embedded audio data transmission, which comprises: the UDP encoding module is used for encoding the embedded audio data into corresponding UDP protocol data packets; the redundancy processing module is used for inserting corresponding redundancy data into the UDP protocol data packet based on a forward error correction mechanism; and the UDP sending module is used for sending the UDP protocol data packet inserted with the redundant data to the receiving end based on the UDP protocol. The embodiment of the invention improves the transmission quality of the audio data.

Description

Embedded audio data transmission method and system
Technical Field
The invention relates to the technical field of audio transmission, in particular to a method and a system for embedded audio data transmission.
Background
In network programming, for the transmission of important data such as video, audio and the like, a TCP protocol is generally selected for transmission, which can ensure that the data is not lost, because a data packet feedback retransmission mechanism is provided in the TCP protocol, if a data packet is not successfully transmitted, a retry is continuously performed to ensure that the data packet is always reached. The above mechanism can cause the delay of the whole data transmission under the condition of a bad network, i.e. a weak network, and seriously affect the service processing of the receiving party, especially the problems of serious delay and poor effect when receiving audio data.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method and a system for transmitting embedded audio data, which solve the problem that the transmission blocking delay cannot occur under the condition of a weak network and simultaneously solve the problem of data transmission quality when audio data is transmitted under the weak network through a UDP (user Datagram protocol) protocol and an FEC (forward error correction) mechanism.
In order to solve the above problem, the present invention provides a method for embedded audio data transmission, where the method includes:
encoding the embedded audio data into a corresponding UDP protocol data packet;
inserting corresponding redundant data into the UDP protocol data packet based on a forward error correction mechanism;
and sending the UDP protocol data packet inserted with the redundant data to a receiving end based on the UDP protocol.
The method further comprises the following steps:
and the receiving end judges whether the UDP protocol data packet inserted with the redundant data has a packet loss phenomenon, and if the packet loss phenomenon is judged to exist, the lost data packet is recovered based on the FEC module.
After encoding the embedded audio data into the corresponding UDP protocol data packet, the method further comprises:
and generating a corresponding redundant data packet based on the UDP protocol data packet.
The inserting the corresponding redundant data in the UDP protocol data packet based on a forward error correction mechanism includes:
extracting a first redundant data packet corresponding to a first UDP protocol data packet;
and inserting the first redundant data packet into the corresponding second UDP protocol data packet, wherein the first UDP protocol data packet is sent to a receiving end before the second UDP protocol data packet.
Correspondingly, the invention also provides an embedded audio data transmission system, which comprises:
the UDP encoding module is used for encoding the embedded audio data into corresponding UDP protocol data packets;
the redundancy processing module is used for inserting corresponding redundancy data into the UDP protocol data packet based on a forward error correction mechanism;
and the UDP sending module is used for sending the UDP protocol data packet inserted with the redundant data to the receiving end based on the UDP protocol.
The system further comprises:
and the receiving end is used for judging whether the UDP protocol data packet inserted with the redundant data has a packet loss phenomenon or not, and if the packet loss phenomenon is judged to exist, recovering the lost data packet based on the FEC module.
The system further comprises: and the redundancy generating module is used for generating the corresponding redundancy data packet based on the UDP protocol data packet.
The redundancy processing module is used for extracting a first redundancy data packet corresponding to a first UDP protocol data packet; and inserting the first redundant data packet into the corresponding second UDP protocol data packet, wherein the first UDP protocol data packet is sent to a receiving end before the second UDP protocol data packet.
In the embodiment of the invention, when audio data is transmitted, a UDP protocol is used for transmitting, and because the UDP protocol data transmission has no automatic retransmission mechanism, the condition of transmission blocking delay can not occur under the condition of a weak network, the whole data transmission delay can not be caused, in addition, the UDP has packet loss with certain probability under the weak network, the corresponding redundant data is inserted by using an open source FEC forward error correction mechanism, so that the lost audio data packet can be recovered at a receiver, the phenomenon of packet loss can not be caused when the audio data is transmitted under the weak network, and the transmission quality of the audio data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a method of embedded audio data transmission in an embodiment of the invention;
fig. 2 is a schematic diagram of a transmitting end transmitting data to a receiving end in an embodiment of the present invention;
fig. 3 is a schematic diagram of a system structure of embedded audio data transmission in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embedded audio data transmission method provided by the embodiment of the invention encodes the embedded audio data into a corresponding UDP protocol data packet; inserting corresponding redundant data into the UDP protocol data packet based on a forward error correction mechanism; and sending the UDP protocol data packet inserted with the redundant data to a receiving end based on the UDP protocol.
The UDP Protocol is a User Datagram Protocol, i.e., User Datagram Protocol, and Forward Error Correction is also called Forward Error Correction (FEC) and is a method for increasing the reliability of data communication. In a one-way communication channel, once an error is found, its receiver will not be entitled to a transmission again. FEC is a method of transmitting redundant information using data that will allow a receiver to reconstruct the data when an error occurs in the transmission.
Specifically, fig. 1 shows a flowchart of a method for transmitting embedded audio data in the embodiment of the present invention, which specifically includes:
s11, encoding the embedded audio data into a corresponding UDP protocol data packet;
s12, generating a corresponding redundant data packet based on the UDP protocol data packet;
s13, inserting corresponding redundant data in the UDP protocol data packet based on a forward error correction mechanism;
specifically, the inserting the corresponding redundant data into the UDP protocol data packet based on the forward error correction mechanism includes: extracting a first redundant data packet corresponding to a first UDP protocol data packet; and inserting the first redundant data packet into the corresponding second UDP protocol data packet, wherein the first UDP protocol data packet is sent to a receiving end before the second UDP protocol data packet.
Fig. 2 shows a schematic diagram of transmitting data from a transmitting end to a receiving end in an embodiment of the present invention, where data is first transmitted using UDP, and then the transmitting end inserts some redundant data into FEC before transmitting a data packet to transmit, and if a packet loss occurs under a weak network, a receiving end uses the redundant data packet to recover the lost data packet, so as to solve the problems of packet transmission delay, packet loss and the like under the weak network.
S14, sending the UDP protocol data packet inserted with the redundant data to a receiving end based on the UDP protocol;
s15, the receiving end judges whether the UDP protocol data packet inserted with the redundant data has a packet loss phenomenon, if the packet loss phenomenon is judged to exist, the S16 is entered, otherwise, the S17 is entered;
s16, recovering the lost data packet based on the FEC module;
and S17, decoding the received UDP protocol data packet.
Specifically, fig. 3 shows a schematic structural diagram of a system for embedded audio data transmission in an embodiment of the present invention, where the system includes:
the UDP encoding module is used for encoding the embedded audio data into corresponding UDP protocol data packets;
the redundancy processing module is used for inserting corresponding redundancy data into the UDP protocol data packet based on a forward error correction mechanism;
and the UDP sending module is used for sending the UDP protocol data packet inserted with the redundant data to the receiving end based on the UDP protocol.
Specifically, the receiving end is configured to determine whether a packet loss phenomenon exists in the UDP protocol data packet into which the redundant data is inserted, and recover the lost data packet based on the FEC forward error correction module if the packet loss phenomenon is determined to exist.
And the redundancy generating module is used for generating the corresponding redundancy data packet based on the UDP protocol data packet.
The redundancy processing module is used for extracting a first redundancy data packet corresponding to a first UDP protocol data packet; and inserting the first redundant data packet into the corresponding second UDP protocol data packet, wherein the first UDP protocol data packet is sent to a receiving end before the second UDP protocol data packet.
In summary, when audio data is transmitted, a UDP protocol is used for transmission, and since there is no automatic retransmission mechanism for UDP protocol data transmission, a situation of transmission blocking delay cannot occur in a weak network, which does not result in a whole data transmission delay, and in addition, UDP has a packet loss with a certain probability in the weak network, corresponding redundant data is inserted by using an open-source FEC forward error correction mechanism, so that a receiver can recover a lost audio data packet, which ensures that the packet loss phenomenon does not occur in the audio data transmission in the weak network, and improves the transmission quality of the audio data.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are described herein by using specific embodiments, and the description of the above embodiments is only used to help understand the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method of embedded audio data transmission, the method comprising:
encoding the embedded audio data into a corresponding UDP protocol data packet;
inserting corresponding redundant data into the UDP protocol data packet based on a forward error correction mechanism;
and sending the UDP protocol data packet inserted with the redundant data to a receiving end based on the UDP protocol.
2. The method of embedded audio data transmission according to claim 1, further comprising:
and the receiving end judges whether the UDP protocol data packet inserted with the redundant data has a packet loss phenomenon, and if the packet loss phenomenon is judged to exist, the lost data packet is recovered based on the FEC module.
3. The method for embedded audio data transmission according to claim 2, wherein said encoding the embedded audio data into the corresponding UDP protocol data packet further comprises:
and generating a corresponding redundant data packet based on the UDP protocol data packet.
4. The method for embedded audio data transmission according to claim 3, wherein said inserting the corresponding redundancy data in the UDP protocol data packet based on a forward error correction mechanism comprises:
extracting a first redundant data packet corresponding to a first UDP protocol data packet;
and inserting the first redundant data packet into the corresponding second UDP protocol data packet, wherein the first UDP protocol data packet is sent to a receiving end before the second UDP protocol data packet.
5. A system for embedded audio data transmission, the system comprising:
the UDP encoding module is used for encoding the embedded audio data into corresponding UDP protocol data packets;
the redundancy processing module is used for inserting corresponding redundancy data into the UDP protocol data packet based on a forward error correction mechanism;
and the UDP sending module is used for sending the UDP protocol data packet inserted with the redundant data to the receiving end based on the UDP protocol.
6. The system for embedded audio data transmission according to claim 5, wherein the system further comprises:
and the receiving end is used for judging whether the UDP protocol data packet inserted with the redundant data has a packet loss phenomenon or not, and if the packet loss phenomenon is judged to exist, recovering the lost data packet based on the FEC module.
7. The system for embedded audio data transmission according to claim 6, wherein the system further comprises: and the redundancy generating module is used for generating the corresponding redundancy data packet based on the UDP protocol data packet.
8. The embedded audio data transmission system of claim 7, wherein the redundancy processing module is configured to extract a first redundancy data packet corresponding to a first UDP protocol data packet; and inserting the first redundant data packet into the corresponding second UDP protocol data packet, wherein the first UDP protocol data packet is sent to a receiving end before the second UDP protocol data packet.
CN202110121093.3A 2021-01-28 2021-01-28 Embedded audio data transmission method and system Pending CN113037431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110121093.3A CN113037431A (en) 2021-01-28 2021-01-28 Embedded audio data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110121093.3A CN113037431A (en) 2021-01-28 2021-01-28 Embedded audio data transmission method and system

Publications (1)

Publication Number Publication Date
CN113037431A true CN113037431A (en) 2021-06-25

Family

ID=76459407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110121093.3A Pending CN113037431A (en) 2021-01-28 2021-01-28 Embedded audio data transmission method and system

Country Status (1)

Country Link
CN (1) CN113037431A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809302A (en) * 2017-08-23 2018-03-16 银江股份有限公司 File metadata redundant transmission, method of reseptance and system under a kind of unreliable link
CN107818182A (en) * 2017-11-30 2018-03-20 安徽汇鑫电子有限公司 embedded audio network transmission monitoring device
CN109862440A (en) * 2019-02-22 2019-06-07 深圳市凯迪仕智能科技有限公司 Audio video transmission forward error correction, device, computer equipment and storage medium
CN109923809A (en) * 2016-08-01 2019-06-21 索尼互动娱乐有限责任公司 Forward error correction for stream data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109923809A (en) * 2016-08-01 2019-06-21 索尼互动娱乐有限责任公司 Forward error correction for stream data
CN107809302A (en) * 2017-08-23 2018-03-16 银江股份有限公司 File metadata redundant transmission, method of reseptance and system under a kind of unreliable link
CN107818182A (en) * 2017-11-30 2018-03-20 安徽汇鑫电子有限公司 embedded audio network transmission monitoring device
CN109862440A (en) * 2019-02-22 2019-06-07 深圳市凯迪仕智能科技有限公司 Audio video transmission forward error correction, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US7206280B1 (en) Method and apparatus for asynchronous incremental redundancy reception in a communication system
US8526513B2 (en) Method and apparatus for transmitting data, and communication system
JP2002190793A (en) Communication method, communication equipment and communication system using the communication equipment
WO2010057400A1 (en) Method, recording terminal, server and system for restoring media file recording error
CN105681342A (en) Anti-error code method and system of multi-channel video conference system based on H264
US10630426B2 (en) Redundancy information for a packet data portion
CN110557677A (en) Video transmission method and device
CN113114526B (en) Data transmission method and device based on sub-packet interference prevention
CN112350803B (en) Data packet transmission method, device and system, electronic equipment and storage medium
KR100860770B1 (en) Method and apparatus for reliable multicasting/broadcasting over wireless environment
EP1708404A1 (en) Method and apparatus for error recovery performed at the access node of a core network
CN112995685A (en) Data transmitting method and device, data receiving method and device, medium and equipment
US10389384B2 (en) Data communication method and apparatus using forward error correction
CN110545161A (en) multimedia data real-time transmission method with redundancy
CN101662339B (en) Method and device for verifying data recovered by forward error correction
US9667756B2 (en) Apparatus and method for transmitting/receiving data in communication system
CN113037431A (en) Embedded audio data transmission method and system
CN109756468B (en) Data packet repairing method, base station and computer readable storage medium
CN116318545A (en) Video data transmission method, device, equipment and storage medium
US9276606B2 (en) Correction data
CN109005011B (en) Data transmission method and system for underwater acoustic network and readable storage medium
CN114567799B (en) Video stream data transmission method and device, storage medium and electronic equipment
JPH10308932A (en) Data transmitting method/device
US11068334B2 (en) Method and system for enhancing communication reliability when multiple corrupted frames are received
CN115883682A (en) Data transmission method and device based on HTTP2 protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210625

RJ01 Rejection of invention patent application after publication