CN110113342A - Voice communication method and equipment under 2G network - Google Patents

Voice communication method and equipment under 2G network Download PDF

Info

Publication number
CN110113342A
CN110113342A CN201910389199.4A CN201910389199A CN110113342A CN 110113342 A CN110113342 A CN 110113342A CN 201910389199 A CN201910389199 A CN 201910389199A CN 110113342 A CN110113342 A CN 110113342A
Authority
CN
China
Prior art keywords
data packets
binary data
voice
serial number
compressed
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
CN201910389199.4A
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.)
Zhen Ten Information Technology (shanghai) Co Ltd
Original Assignee
Zhen Ten Information Technology (shanghai) 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 Zhen Ten Information Technology (shanghai) Co Ltd filed Critical Zhen Ten Information Technology (shanghai) Co Ltd
Priority to CN201910389199.4A priority Critical patent/CN110113342A/en
Publication of CN110113342A publication Critical patent/CN110113342A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • 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/04Protocols for data compression, e.g. ROHC
    • 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/163In-band adaptation of TCP data exchange; In-band control procedures
    • 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/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The object of the present invention is to provide the voice communication methods and equipment under a kind of 2G network, it is recorded by sending device and generates each customized binary system voice data parcel and compress, solve the problems, such as low bandwidth servant's voice transfer, realization can pass in record, accelerate transmission speed.Voice data parcel is compressed and is sorted, and indicates serial number, is transmitted several times by 2G network to server.Server parses the packet header of compressed binary data packets, by serial number successively by compressed binary data packets transparent transmission other end receiving device, since from recording to transparent transmission, again to reception, whole band serial number solves the problems, such as voice packet random ordering.Equipment whole process of the invention uses transmission and reception voice parcel under 2G network, network load is low, it is simple to unpack treatment process, can be effectively reduced power consumption be able to achieve under 2G network quickly, transmit voice in real time, solve the problems, such as voice transfer timeliness and voice random ordering problem, realize that the voice between equipment mutually passes, allowing voice mutually to chat can be commercial in 2G equipment.

Description

Voice communication method and equipment under 2G network
Technical field
The present invention relates to the voice communication methods and equipment under computer field more particularly to a kind of 2G network.
Background technique
Vehicles Collected from Market 2G equipment prevailing transmission text, the simple datas content such as instruction.Most of 2G equipment passes voice and needs Even WIFI just can ensure that the transmission of voice data is timely.The equipment for really passing voice using 2G network is actually rare, supports at present The equipment of voice transfer realize there are several types of:
1. the routine datas such as text, instruction use 2G, and connect WIFI when needing to pass voice;
2. a voice data changes into base64 text and is transmitted;
3. the customized whole packet transmission of binary system.
These conventional schemes have many limitations and problem:
The mode of scheme 1 first, transmission voice is limited to WIFI, not flexible, high to hardware and network requirement, cannot be at any time Transmission voice everywhere;
Voice is changed into File Transfer by the mode of scheme 2, and transmission backpack body is excessive, and transmission is unstable, and efficiency of transmission is not high. It is difficult to realize timely, quick sound transmission course;
The mode of scheme 3, whole packet transmission or unavoidable backpack body are excessive, transmit unstable problem, and when voice Length requires, and cannot record too long, and otherwise backpack body is huge, and 2G network is difficult to carry, and the whole excessive transmission decompression processing of packet is difficult, if Standby power consumption is also high.
Summary of the invention
It is an object of the present invention to provide the voice communication methods and equipment under a kind of 2G network.
According to an aspect of the invention, there is provided the voice communication method under a kind of 2G network, this method comprises:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system voice data less than preset threshold Packet;
Serial number is put on into the packet header of each binary data packets with the playing sequence correspondence of the voice recording, and will be each A binary data packets compression;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the service Device.
Further, in the above method, the preset threshold is 64Kb.
Further, in the above method, by the TCP long connection, by with serial number by each compressed two into Data packet processed is sent to after the server, further includes:
It checks whether from the server and receives the corresponding ACK confirmation character of each compressed binary data packets, The compressed binary data packets for not receiving corresponding ACK confirmation character are resend into the server.
According to an aspect of the present invention, the voice communication method under a kind of 2G network of server end is additionally provided, In, this method comprises:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by institute It states sending device to be sequentially split to form the voice recording of acquisition, each binary system VoP is less than preset threshold, each It include the corresponding serial number of playing sequence according to the voice recording in the packet header of binary data packets;
The serial number in the packet header of each compressed binary data packets is parsed, by the TCP long connection, by the sequence Number each compressed binary data packets are successively sent to receiving device.
Further, in the above method, the preset threshold is 64Kb.
Further, it in the above method, after the compressed binary data packets of sending device reception, also wraps It includes:
Check whether each of receive compressed binary data packets from the sending device succeeds,
If success, Xiang Suoshu sending device sends the corresponding ACK of each compressed binary data packets and confirms character;
If unsuccessful, failed compressed binary data packets are received again from sending device reception.
According to an aspect of the present invention, the voice communication method under a kind of 2G network at receiving device end is additionally provided, Wherein, this method comprises:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each Compressed binary system VoP, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system VoP is less than preset threshold, includes the playing sequence according to the voice recording in the packet header of each binary data packets Corresponding serial number;
Each compressed binary data packets are decompressed, and it is corresponding to extract to parse the packet header of each binary data packets Each binary data packets are sequentially formed whole packet by the serial number and played out after locally decoding by serial number.
Further, in the above method, the preset threshold is 64Kb.
According to an aspect of the present invention, a kind of equipment based on calculating is additionally provided, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system voice data less than preset threshold Packet;
Serial number is put on into the packet header of each binary data packets with the playing sequence correspondence of the voice recording, and will be each A binary data packets compression;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the service Device.
According to an aspect of the present invention, a kind of computer readable storage medium is additionally provided, computer is stored thereon with Executable instruction, wherein the computer executable instructions make processor when being executed by processor:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system voice data less than preset threshold Packet;
Serial number is put on into the packet header of each binary data packets with the playing sequence correspondence of the voice recording, and will be each A binary data packets compression;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the service Device.
According to an aspect of the present invention, a kind of equipment based on calculating is additionally provided, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by institute It states sending device to be sequentially split to form the voice recording of acquisition, each binary system VoP is less than preset threshold, each It include the corresponding serial number of playing sequence according to the voice recording in the packet header of binary data packets;
The serial number in the packet header of each compressed binary data packets is parsed, by the TCP long connection, by the sequence Number each compressed binary data packets are successively sent to receiving device.
According to an aspect of the present invention, a kind of computer readable storage medium is additionally provided, computer is stored thereon with Executable instruction, wherein the computer executable instructions make processor when being executed by processor:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by institute It states sending device to be sequentially split to form the voice recording of acquisition, each binary system VoP is less than preset threshold, each It include the corresponding serial number of playing sequence according to the voice recording in the packet header of binary data packets;
The serial number in the packet header of each compressed binary data packets is parsed, by the TCP long connection, by the sequence Number each compressed binary data packets are successively sent to receiving device.
According to an aspect of the present invention, a kind of equipment based on calculating is additionally provided, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each Compressed binary system VoP, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system VoP is less than preset threshold, includes the playing sequence according to the voice recording in the packet header of each binary data packets Corresponding serial number;
Each compressed binary data packets are decompressed, and it is corresponding to extract to parse the packet header of each binary data packets Each binary data packets are sequentially formed whole packet by the serial number and played out after locally decoding by serial number.
According to an aspect of the present invention, a kind of computer readable storage medium is additionally provided, computer is stored thereon with Executable instruction, wherein the computer executable instructions make processor when being executed by processor:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each Compressed binary system VoP, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system VoP is less than preset threshold, includes the playing sequence according to the voice recording in the packet header of each binary data packets Corresponding serial number;
Each compressed binary data packets are decompressed, and it is corresponding to extract to parse the packet header of each binary data packets Each binary data packets are sequentially formed whole packet by the serial number and played out after locally decoding by serial number.
Compared with prior art, sending device (device on the left side in Fig. 1) and server (server) establish TCP long company It connects, sending device end records and generates each customized binary system voice data parcel and compress, and solves low bandwidth servant voice Transmission problem, realization can pass in record, accelerate transmission speed.Voice data parcel is compressed and is sorted, and indicates serial number, passes through 2G net Network is transmitted several times to server end.Receiving device (device on the right in Fig. 1) establishes TCP long company with server (server) It connects, server end parses the packet header of compressed binary data packets, successively that compressed binary data packets are saturating by serial number Pass other end receiving device.Receiving device decompresses binary data packets, and parses the packet header of binary data packets, forms by serial number Whole packet simultaneously plays out after locally decoding, and primary complete voice communication course is completed, due to from recording to transparent transmission again to connecing It receives, whole band serial number can solve voice packet random ordering problem.Equipment whole process of the invention uses transmission and reception language under 2G network Sound parcel, network load is low, and unpacking treatment process is simple, and power consumption can be effectively reduced and be able to achieve under 2G network quick, real-time pass Defeated voice solves the problems, such as voice transfer timeliness and voice random ordering problem, realizes that the voice between equipment mutually passes, voice is allowed mutually to chat It can be commercial in 2G equipment.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the schematic diagram of voice communication method and equipment under 2G network according to an embodiment of the invention;
Fig. 2 shows the binary system group packet figures of the individual voice Packet of one embodiment of the invention.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
Present invention is further described in detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or more Processor (CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or Any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computer Readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As shown in Figure 1, the present invention provides a kind of language under the 2G network of sending device end (device on the left side in Fig. 1) Sound communication means, which comprises
Step S11 acquires voice recording, the voice recording is sequentially divided into multiple binary systems less than preset threshold VoP;
Step S12 puts on serial number to the packet header of each binary data packets with the playing sequence correspondence of the voice recording In, and each binary data packets are compressed;
Step S13 establishes TCP long connection with server;
The binary data packets that serial number is had after each compression are sent to by step S14 by the TCP long connection The server (server).
Here, sending device (device on the left side in Fig. 1) and server (server) establish TCP long connection, transmission is set Standby end records and generates each customized binary system voice data parcel and compress, and solves the problems, such as low bandwidth servant's voice transfer, Realizing can pass in record, accelerate transmission speed.Voice data parcel is compressed and is sorted, and indicates serial number, is repeatedly passed by 2G network Transport to server end.Receiving device (device on the right in Fig. 1) establishes TCP long connection, server with server (server) End parses the packet header of compressed binary data packets, by serial number successively by compressed another termination of binary data packets transparent transmission Receiving unit.Receiving device decompresses binary data packets, and parses the packet header of binary data packets, by the whole packet of serial number composition and at this Ground plays out after decoding, and once complete voice communication course is completed, since from recording to transparent transmission, again to reception, whole process is with sequence Number, it can solve voice packet random ordering problem.Equipment whole process of the invention uses transmission and reception voice parcel, network under 2G network Load it is low, unpack treatment process it is simple, can be effectively reduced power consumption be able to achieve under 2G network quickly, transmit voice in real time, solve Voice transfer timeliness problem and voice random ordering problem realize that the voice between equipment mutually passes, and allowing voice mutually to chat can be in 2G equipment Upper commercialization.
It is of the invention in one embodiment of voice communication method under the 2G network at sending device end, the preset threshold is 64Kb。
Here, individual voice Packet size is no more than 64Kb, being further ensured that can pass in record, accelerate transmission speed Degree.
The binary system group packet figure of individual voice Packet can be as shown in Fig. 2, packet header byte identifies packet size, length, mesh Marking device ID (receiving device ID) and packet serial number, backpack body are compress speech data.
It is of the invention in one embodiment of voice communication method under the 2G network at sending device end, step S13 passes through institute State TCP long connection, by with serial number each compressed binary data packets are sent to the server after, also wrap It includes:
Step S14 checks whether that receive the corresponding ACK of each compressed binary data packets from the server true It reads symbol, the compressed binary data packets that will do not receive corresponding ACK confirmation character resend to the server.
Here, sending device end can check the ACK flag for the TCP that server is sent, it is such as not received by ACK flag, Then sending device end can trigger retransmits to server, to reduce network packet loss rate.
As shown in Figure 1, the present invention provides a kind of voice communication method under the 2G network of server end (server), institute The method of stating includes:
Step S21 establishes TCP long connection with sending device (device on the left side in Fig. 1);
Step S22 receives each compressed binary data packets from the sending device, wherein binary system voice number The voice recording of acquisition is sequentially split to form by the sending device according to packet, each binary system VoP is less than default threshold It is worth, includes the corresponding serial number of playing sequence according to the voice recording in the packet header of each binary data packets;
Step S23 parses the serial number in the packet header of each compressed binary data packets, by the TCP long connection, Each compressed binary data packets are successively sent to receiving device by the serial number.
Here, sending device (device on the left side in Fig. 1) and server (server) establish TCP long connection, transmission is set Standby end records and generates each customized binary system voice data parcel and compress, and solves the problems, such as low bandwidth servant's voice transfer, Realizing can pass in record, accelerate transmission speed.Voice data parcel is compressed and is sorted, and indicates serial number, is repeatedly passed by 2G network Transport to server end.Receiving device (device on the right in Fig. 1) establishes TCP long connection, server with server (server) End parses the packet header of compressed binary data packets, by serial number successively by compressed another termination of binary data packets transparent transmission Receiving unit.Receiving device decompresses binary data packets, and parses the packet header of binary data packets, by the whole packet of serial number composition and at this Ground plays out after decoding, and once complete voice communication course is completed, since from recording to transparent transmission, again to reception, whole process is with sequence Number, it can solve voice packet random ordering problem.Equipment whole process of the invention uses transmission and reception voice parcel, network under 2G network Load it is low, unpack treatment process it is simple, can be effectively reduced power consumption be able to achieve under 2G network quickly, transmit voice in real time, solve Voice transfer timeliness problem and voice random ordering problem realize that the voice between equipment mutually passes, and allowing voice mutually to chat can be in 2G equipment Upper commercialization.
It is of the invention in one embodiment of voice communication method under the 2G network at sending device end, the preset threshold is 64Kb。
Here, individual voice Packet size is no more than 64Kb, being further ensured that can pass in record, accelerate transmission speed Degree.
The binary system group packet figure of individual voice Packet can be as shown in Fig. 2, packet header byte identifies packet size, length, mesh Marking device ID (receiving device ID) and packet serial number, backpack body are compress speech data.
It is of the invention in one embodiment of voice communication method under the 2G network at sending device end, step S22, from described Sending device receives after compressed binary data packets, further includes:
Check whether each of receive compressed binary data packets from the sending device succeeds,
If success, Xiang Suoshu sending device sends the corresponding ACK of each compressed binary data packets and confirms character;
If unsuccessful, failed compressed binary data packets are received again from sending device reception.
Here, sending device end can check the ACK flag for the TCP that server is sent, it is such as not received by ACK flag, Then sending device end can trigger retransmits to the server, to reduce network packet loss rate.
As shown in Figure 1, the present invention provides a kind of language under the 2G network of receiving device end (device on the right in Fig. 1) Sound communication means, which comprises
Step S31 establishes TCP long connection with server (server);
Step S32 receives each compressed binary data packets from the server by the TCP long connection, In, each compressed binary system VoP, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, often A binary system VoP is less than preset threshold, includes according to the voice recording in the packet header of each binary data packets The corresponding serial number of playing sequence;
Step S33 decompresses each compressed binary data packets, and parses the packet header of each binary data packets to mention Corresponding serial number is taken, each binary data packets are sequentially formed into whole packet by the serial number and is played out after locally decoding.
Here, sending device (device on the left side in Fig. 1) and server (server) establish TCP long connection, transmission is set Standby end records and generates each customized binary system voice data parcel and compress, and solves the problems, such as low bandwidth servant's voice transfer, Realizing can pass in record, accelerate transmission speed.Voice data parcel is compressed and is sorted, and indicates serial number, is repeatedly passed by 2G network Transport to server end.Receiving device (device on the right in Fig. 1) establishes TCP long connection, server with server (server) End parses the packet header of compressed binary data packets, by serial number successively by compressed another termination of binary data packets transparent transmission Receiving unit.Receiving device decompresses binary data packets, and parses the packet header of binary data packets, by the whole packet of serial number composition and at this Ground plays out after decoding, and once complete voice communication course is completed, since from recording to transparent transmission, again to reception, whole process is with sequence Number, it can solve voice packet random ordering problem.Equipment whole process of the invention uses transmission and reception voice parcel, network under 2G network Load it is low, unpack treatment process it is simple, can be effectively reduced power consumption be able to achieve under 2G network quickly, transmit voice in real time, solve Voice transfer timeliness problem and voice random ordering problem realize that the voice between equipment mutually passes, and allowing voice mutually to chat can be in 2G equipment Upper commercialization.
It is of the invention in one embodiment of voice communication method under the 2G network at sending device end, the preset threshold is 64Kb。
Here, individual voice Packet size is no more than 64Kb, being further ensured that can pass in record, accelerate transmission speed Degree.
The binary system group packet figure of individual voice Packet can be as shown in Fig. 2, packet header byte identifies packet size, length, mesh Marking device ID (receiving device ID) and packet serial number, backpack body are compress speech data.
According to an aspect of the present invention, a kind of equipment based on calculating is additionally provided, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system voice data less than preset threshold Packet;
Serial number is put on into the packet header of each binary data packets with the playing sequence correspondence of the voice recording, and will be each A binary data packets compression;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the service Device.
According to an aspect of the present invention, a kind of computer readable storage medium is additionally provided, computer is stored thereon with Executable instruction, wherein the computer executable instructions make processor when being executed by processor:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system voice data less than preset threshold Packet;
Serial number is put on into the packet header of each binary data packets with the playing sequence correspondence of the voice recording, and will be each A binary data packets compression;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the service Device.
According to an aspect of the present invention, a kind of equipment based on calculating is additionally provided, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by institute It states sending device to be sequentially split to form the voice recording of acquisition, each binary system VoP is less than preset threshold, each It include the corresponding serial number of playing sequence according to the voice recording in the packet header of binary data packets;
The serial number in the packet header of each compressed binary data packets is parsed, by the TCP long connection, by the sequence Number each compressed binary data packets are successively sent to receiving device.
According to an aspect of the present invention, a kind of computer readable storage medium is additionally provided, computer is stored thereon with Executable instruction, wherein the computer executable instructions make processor when being executed by processor:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by institute It states sending device to be sequentially split to form the voice recording of acquisition, each binary system VoP is less than preset threshold, each It include the corresponding serial number of playing sequence according to the voice recording in the packet header of binary data packets;
The serial number in the packet header of each compressed binary data packets is parsed, by the TCP long connection, by the sequence Number each compressed binary data packets are successively sent to receiving device.
According to an aspect of the present invention, a kind of equipment based on calculating is additionally provided, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each Compressed binary system VoP, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system VoP is less than preset threshold, includes the playing sequence according to the voice recording in the packet header of each binary data packets Corresponding serial number;
Each compressed binary data packets are decompressed, and it is corresponding to extract to parse the packet header of each binary data packets Each binary data packets are sequentially formed whole packet by the serial number and played out after locally decoding by serial number.
According to an aspect of the present invention, a kind of computer readable storage medium is additionally provided, computer is stored thereon with Executable instruction, wherein the computer executable instructions make processor when being executed by processor:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each Compressed binary system VoP, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system VoP is less than preset threshold, includes the playing sequence according to the voice recording in the packet header of each binary data packets Corresponding serial number;
Each compressed binary data packets are decompressed, and it is corresponding to extract to parse the packet header of each binary data packets Each binary data packets are sequentially formed whole packet by the serial number and played out after locally decoding by serial number.
The detailed content of each equipment and storage medium embodiment of the invention, for details, reference can be made to the correspondences of each method embodiment Part, here, repeating no more.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, software program of the invention can be executed to implement the above steps or functions by processor.Similarly, of the invention Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, Magnetic or optical driver or floppy disc and similar devices.In addition, some of the steps or functions of the present invention may be implemented in hardware, example Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the invention can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the method for the present invention and/or technical solution. And the program instruction of method of the invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, according to one embodiment of present invention including a device, which includes using Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to When enabling by processor execution, method and/or skill of the device operation based on aforementioned multiple embodiments according to the present invention are triggered Art scheme.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table Show title, and does not indicate any particular order.

Claims (14)

1. the voice communication method under a kind of 2G network at sending device end, wherein this method comprises:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system VoPs less than preset threshold;
Serial number is put on into the packet header of each binary data packets with the playing sequence of voice recording correspondence, and by each two The compression of binary data packet;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the server.
2. according to the method described in claim 1, wherein, the preset threshold is 64Kb.
3. according to the method described in claim 1, wherein, by the TCP long connection, by with serial number will be after each compression Binary data packets be sent to after the server, further includes:
It checks whether from the server and receives the corresponding ACK confirmation character of each compressed binary data packets, it will not The compressed binary data packets for receiving corresponding ACK confirmation character resend to the server.
4. the voice communication method under a kind of 2G network of server end, wherein this method comprises:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by the hair Send equipment to be sequentially split to form the voice recording of acquisition, each binary system VoP be less than preset threshold, each two into It include the corresponding serial number of playing sequence according to the voice recording in the packet header of data packet processed;
Parse the serial number in the packet header of each compressed binary data packets, by the TCP long connection, by the serial number according to It is secondary that each compressed binary data packets are sent to receiving device.
5. according to the method described in claim 4, wherein, the preset threshold is 64Kb.
6. according to the method described in claim 4, wherein, from the sending device receive compressed binary data packets it Afterwards, further includes:
Check whether each of receive compressed binary data packets from the sending device succeeds,
If success, Xiang Suoshu sending device sends the corresponding ACK of each compressed binary data packets and confirms character;
If unsuccessful, failed compressed binary data packets are received again from sending device reception.
7. the voice communication method under a kind of 2G network at receiving device end, wherein this method comprises:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each compression Binary system VoP afterwards, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system voice Data packet is less than preset threshold, includes the playing sequence correspondence according to the voice recording in the packet header of each binary data packets Serial number;
Each compressed binary data packets are decompressed, and parse the packet header of each binary data packets to extract corresponding sequence Number, each binary data packets are sequentially formed into whole packet by the serial number and are played out after locally decoding.
8. according to the method described in claim 7, wherein, the preset threshold is 64Kb.
9. a kind of equipment based on calculating, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system VoPs less than preset threshold;
Serial number is put on into the packet header of each binary data packets with the playing sequence of voice recording correspondence, and by each two The compression of binary data packet;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the server.
10. a kind of computer readable storage medium, is stored thereon with computer executable instructions, wherein the computer is executable Instruction makes the processor when being executed by processor:
Voice recording is acquired, the voice recording is sequentially divided into multiple binary system VoPs less than preset threshold;
Serial number is put on into the packet header of each binary data packets with the playing sequence of voice recording correspondence, and by each two The compression of binary data packet;
TCP long connection is established with server;
By the TCP long connection, the binary data packets that serial number is had after each compression are sent to the server.
11. a kind of equipment based on calculating, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by the hair Send equipment to be sequentially split to form the voice recording of acquisition, each binary system VoP be less than preset threshold, each two into It include the corresponding serial number of playing sequence according to the voice recording in the packet header of data packet processed;
Parse the serial number in the packet header of each compressed binary data packets, by the TCP long connection, by the serial number according to It is secondary that each compressed binary data packets are sent to receiving device.
12. a kind of computer readable storage medium, is stored thereon with computer executable instructions, wherein the computer is executable Instruction makes the processor when being executed by processor:
TCP long connection is established with sending device;
Each compressed binary data packets are received from the sending device, wherein binary system VoP is by the hair Send equipment to be sequentially split to form the voice recording of acquisition, each binary system VoP be less than preset threshold, each two into It include the corresponding serial number of playing sequence according to the voice recording in the packet header of data packet processed;
Parse the serial number in the packet header of each compressed binary data packets, by the TCP long connection, by the serial number according to It is secondary that each compressed binary data packets are sent to receiving device.
13. a kind of equipment based on calculating, wherein include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each compression Binary system VoP afterwards, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system voice Data packet is less than preset threshold, includes the playing sequence correspondence according to the voice recording in the packet header of each binary data packets Serial number;
Each compressed binary data packets are decompressed, and parse the packet header of each binary data packets to extract corresponding sequence Number, each binary data packets are sequentially formed into whole packet by the serial number and are played out after locally decoding.
14. a kind of computer readable storage medium, is stored thereon with computer executable instructions, wherein the computer is executable Instruction makes the processor when being executed by processor:
TCP long connection is established with server;
By the TCP long connection, each compressed binary data packets are received from the server, wherein each compression Binary system VoP afterwards, which is sequentially divided the voice recording of acquisition by sending device, to be compressed, each binary system voice Data packet is less than preset threshold, includes the playing sequence correspondence according to the voice recording in the packet header of each binary data packets Serial number;
Each compressed binary data packets are decompressed, and parse the packet header of each binary data packets to extract corresponding sequence Number, each binary data packets are sequentially formed into whole packet by the serial number and are played out after locally decoding.
CN201910389199.4A 2019-05-10 2019-05-10 Voice communication method and equipment under 2G network Pending CN110113342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910389199.4A CN110113342A (en) 2019-05-10 2019-05-10 Voice communication method and equipment under 2G network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910389199.4A CN110113342A (en) 2019-05-10 2019-05-10 Voice communication method and equipment under 2G network

Publications (1)

Publication Number Publication Date
CN110113342A true CN110113342A (en) 2019-08-09

Family

ID=67489373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910389199.4A Pending CN110113342A (en) 2019-05-10 2019-05-10 Voice communication method and equipment under 2G network

Country Status (1)

Country Link
CN (1) CN110113342A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006087676A2 (en) * 2005-02-18 2006-08-24 Koninklijke Philips Electronics N.V. Method of multiplexing auxiliary data in an audio/video stream
CN103841002A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Method and terminal for voice transmission, voice server and voice transmission system
CN104616652A (en) * 2015-01-13 2015-05-13 小米科技有限责任公司 Voice transmission method and device
CN108880993A (en) * 2018-07-02 2018-11-23 广东小天才科技有限公司 Voice instant messaging method, system and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006087676A2 (en) * 2005-02-18 2006-08-24 Koninklijke Philips Electronics N.V. Method of multiplexing auxiliary data in an audio/video stream
CN103841002A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Method and terminal for voice transmission, voice server and voice transmission system
CN104616652A (en) * 2015-01-13 2015-05-13 小米科技有限责任公司 Voice transmission method and device
CN108880993A (en) * 2018-07-02 2018-11-23 广东小天才科技有限公司 Voice instant messaging method, system and mobile terminal

Similar Documents

Publication Publication Date Title
WO2016197804A1 (en) Method and device for compressing data packet
KR20190057818A (en) Priority-based MQTT System and method to provide Differentiated IoT Services
CN106713415B (en) A kind of data transmission method and system
CN104572966A (en) Zip file unzipping method and device
CN108063769A (en) A kind of implementation method of content service, device and content delivery network node
CN112887429A (en) Data transmission method and device, electronic equipment and storage medium
CN103973778A (en) Information pushing method and device
CN114221909B (en) Data transmission method, device, terminal and storage medium
CN111510390A (en) Insertion and use of application or radio information in network data packet headers
WO2015168840A1 (en) Data processing method and apparatus
US20100146112A1 (en) Efficient communication techniques
CN108738007B (en) Audio transmission method, equipment and system
CN109587082A (en) A kind of asynchronous repeater system of message based on (SuSE) Linux OS and method
CN112202939A (en) Method, device and storage medium for compressing and decompressing IP address and transmitting and receiving message
CN110136712A (en) Realize the method and device of intelligent sound AI function
CN107483952A (en) A kind of method, apparatus and system of jpeg image decompression
CN101420392B (en) Method and customer terminal for instant communication customer terminal displaying pop-up window
CN110113342A (en) Voice communication method and equipment under 2G network
CN103873443A (en) Information processing method, local proxy server and network proxy server
CN106302093A (en) A kind of communication means, system and server
CN105610544B (en) A kind of voice data transmission method and device
CN115643310B (en) Method, device and system for compressing data
CN109584889B (en) Audio transmission method and device and storage medium
CN110545556B (en) MAC CE, information sending method, information receiving method and communication equipment
CN103139528B (en) The processing method of a kind of audio, video data and device

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: 20190809

RJ01 Rejection of invention patent application after publication