Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The process flow diagram of the data-encoding scheme that Fig. 1 provides for the embodiment of the present invention one.The executive agent of the method can be scrambler, and this scrambler can be positioned at mobile terminal or fixed terminal, also can be positioned at software terminal or hard terminal.It should be noted that the field that this method is applicable to all Adoption Network transmission data and the real-time of data, integrality are had relatively high expectations.As shown in Figure 1, the method comprises:
Step S11, obtains data to be encoded, and these data to be encoded comprise a plurality of Frames;
For example, data to be encoded include but not limited to: VoIP audio, video data or stream medium audio and video data or IPTV (Internet Protocol Television, TV broadcasting service based on IP agreement) audio, video data etc., also can comprise the data of other types.
Step S12, determine the important frame in the plurality of Frame, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
It should be noted that, important frame is for affecting the frame of speech quality subjective feeling.Particularly, important frame refers to the speech frame that can effectively improve voice communication quality, maybe can improve the speech frame that voice subjective assessment divides (MOS, Mean opinion Score).By determining important frame, can do suitable redundancy protecting to the important frame identifying.
Preferably, judge whether a plurality of Frames in data to be encoded are the foundation of important frame, at least can comprise the combination of one or more following modes: the amplitude size of Frame, the rank height of Frame, the frequency slope of Frame.The present embodiment can judge based on a kind of foundation the important frame of data to be encoded, as the independent size of the amplitude according to Frame, the rank of Frame or the frequency slope of Frame judge.
For example, if the amplitude of the Frame in data to be encoded is greater than first threshold, judge that it is important frame.First threshold can be determined according to test sample.Here, first threshold can be set to 10dB.
For example, if the rank of the Frame in data to be encoded is greater than Second Threshold, judge that it is important frame.Second Threshold can be determined according to test sample.The rank of Frame can be according to the Silk VAD(Voice Activity Detection of standard, and voice activation detects) algorithm calculates.Here, Second Threshold can be set to 1000.
For example, the frequency slope of the Frame in data to be encoded, within the scope of the frequency slope of voiceless sound, judges that it is important frame.The frequency slope of Frame can adopt the Silk vad algorithm of standard to calculate.The frequency slope of Frame is close to 0, and this Frame is non-speech frame; The frequency slope of Frame be larger on the occasion of, this Frame is voiced sound; The frequency slope of Frame is the negative value that absolute value is larger, and this Frame is voiceless sound.
It should be noted that, determined after the important frame of data to be encoded, other Frames of removing important frame in data to be encoded are non-important frame.
Step S13, determines redundancy strategy, and this redundancy strategy is used to indicate the mode of this important frame being carried out to redundancy;
For example, this redundancy strategy can carry out redundancy to all important frame, also can carry out redundancy to part important frame.
Particularly, this redundancy strategy comprises at least one in redundancy ratio, redundancy multiple.
For example, the redundancy ratio of important frame can require according to application type, bandwidth requirement, tonequality definite, and redundancy ratio can be the arbitrary value between 0~100%.Redundancy ratio is higher, and anti-dropout ability is larger.Such as, at VoIP class application type, WIFI(Wireless Fidelity, Wireless Fidelity)/3G(3G (Third Generation) Moblie technology)/2G(Generation Mobile Telecommunication System technology) network condition, tonequality require as reaching CS(Circuit Switched Domain, circuit commutative field) under the condition of the voice quality of territory phone, redundancy ratio can be set to 60%.
For example, redundancy multiple can be determined according to network packet loss rate.While being 10% such as network packet loss rate, redundancy multiple can be set to 1 times; When network packet loss rate is 20%, redundancy multiple can be set to 2 times of redundancies.The redundancy multiple of important frame is higher, higher to anti-dropout ability.The redundancy multiple of important frame is higher, higher to anti-dropout ability.
Step S14, encodes to these data to be encoded based on this redundancy strategy, obtains data to be transmitted, includes the redundant information of this important frame in this data to be transmitted.
For example, for non-important frame, can be according to voice medium form such as the standard of the speech signal coding of telephone bandwidth G.729(), default pulse code modulated (PCM) standard G.711() etc. encode; For important frame, can encode according to RFC 2198 (for the RTP load format of redundancy voice data, RTP Payload for Redundant Audio Data) form or similar form.
Wherein, the redundant information of important frame can be the copy of this important frame.
For example, current data frame is while needing the important frame of redundancy, Frame after current data frame is when coding, add and comprise the redundant information that this needs the important frame of redundancy, after present frame is lost in transmitting procedure, by the redundant information in the Frame after this current data frame, can reduce to present frame.
It should be noted that, after obtaining this data to be transmitted, this data to be transmitted can be sent by network.
As shown from the above technical solution, the present embodiment data to be encoded are when coding, only on affecting the important frame of speech quality subjective feeling in data to be encoded, carry out redundancy, this selectable redundancy strategy, can either effectively resist Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
Embodiment bis-
The process flow diagram of the data redundancy method that Fig. 2 provides for the embodiment of the present invention two.This method is determined the state of current network by first determining the packet loss (PLR, Packet Loss Rate) of network, when packet loss reaches the 3rd threshold value, just data to be encoded is encoded.Particularly, as shown in Figure 2, the method comprises:
Step S21, determines that network packet loss rate reaches the 3rd threshold value;
For example, utilize object gateway by RTCP(RTCP Real-time Transport Control Protocol, Real-time Transport Control Protocol) feedack, determine the packet loss of network, judge the state of network.When packet loss is greater than the 3rd threshold value, the congestion flag set of object gateway, when packet loss is not more than the 3rd threshold value, the idle marker set of object gateway.By obtaining corresponding set sign, whether the current state that can detect network is congestion state, when being blocked state, starts step below.The embodiment of the present invention, not as limit, in different application, can also judge whether congested by the length of monitoring jitter-buffer (jitter buffer).
Understandably, the present embodiment can start step below when having packet loss.
Step S22, obtains data to be encoded, and these data to be encoded comprise a plurality of Frames;
Step S23, determine the important frame in the plurality of Frame, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
Step S24, determines redundancy strategy, and this redundancy strategy is used to indicate the mode of this important frame being carried out to redundancy, and this redundancy strategy comprises at least one in redundancy ratio, redundancy multiple;
Step S25, encodes to these data to be encoded based on this redundancy strategy, obtains data to be transmitted, includes the redundant information of this important frame in this data to be transmitted.
Further, with reference to figure 2a, when this redundancy strategy comprises redundancy ratio, based on this redundancy strategy, these data to be encoded are encoded, comprising:
Step S511, determines the importance priority of important frame;
For example, according to the amplitude of this important frame, rank, frequency slope at least one, determine the importance priority of this important frame, wherein the amplitude of this important frame or rank or frequency slope are larger, and importance priority is higher.
Step S512, according to redundancy ratio and importance priority, determines the important frame that needs redundancy in this important frame;
Step S513, in the Frame after each needs the important frame of redundancy, adds this to need the redundant information of the important frame of redundancy.
Further, when this redundancy strategy comprises redundancy multiple, based on this redundancy strategy, these data to be encoded are encoded, comprising:
Predetermined number after each important frame according to frame in, add respectively the redundant information of corresponding important frame, this predetermined equates with this redundancy multiple.
It should be noted that, when redundancy multiple surpasses 2 times, certain Frame may comprise the redundant information of 2 above different Frames.
Further, with reference to figure 2b, when this redundancy strategy comprises redundancy ratio and redundancy multiple, based on this redundancy strategy, these data to be encoded are encoded, comprising:
Step S533, determines the importance priority of important frame;
Step S532, according to redundancy ratio and importance priority, determines the important frame that needs redundancy in this important frame;
Step S533, the predetermined number after each needs the important frame of redundancy according to frame in, add respectively the redundant information of the corresponding important frame that needs redundancy, this predetermined equates with this redundancy multiple.
For example, for non-important frame with without the important frame of redundancy, can be according to voice medium form such as G.729, G.711 etc. encoding; For the important frame that needs redundancy, can encode according to RFC 2198 (for the RTP load format of redundancy voice data, RTP Payload for Redundant Audio Data) form or similar RFC2198 form.
As shown from the above technical solution, the present embodiment only carries out redundancy, this selectable redundancy strategy to affecting the important frame of speech quality subjective feeling in data, can either effectively resist Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
Embodiment tri-
The process flow diagram of the data decoding method that Fig. 3 provides for the embodiment of the present invention three.The executive agent of the method can be demoder, and this demoder can be positioned at mobile terminal or fixed terminal, also can be positioned at software terminal or hard terminal.It should be noted that the field that this method is applicable to all Adoption Network transmission data and the real-time of data, integrality are had relatively high expectations.As shown in Figure 4, the method comprises:
Step S31, receive data to be decoded, these data to be decoded comprise a plurality of Frames, the redundant information that comprises important frame in these data to be decoded, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
Step S32, to this decoding data to be decoded, and reduces to the important frame of losing according to the important frame redundant information in these data to be decoded.
It should be noted that, step S32 is the reverse process of step S14 in embodiment mono-.
As shown from the above technical solution, the redundant information that includes the important frame that affects speech quality subjective feeling in the data to be decoded that the present embodiment receives, after important frame is lost like this, can reduce according to the redundant information of important frame, therefore this method can either effectively be resisted Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
Embodiment tetra-
The data communications method that Fig. 4 provides for the embodiment of the present invention four, the method comprises:
Step S41, obtains data to be encoded, and these data to be encoded comprise a plurality of Frames;
Step S42, determine the important frame in the plurality of Frame, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
Step S43, determines redundancy strategy, and this redundancy strategy is used to indicate the mode of this important frame being carried out to redundancy;
Step S44, encodes to these data to be encoded based on this redundancy strategy, obtains data to be transmitted, includes the redundant information of this important frame in this data to be transmitted;
Step S45, sends this data to be transmitted;
Step S46, receives this data to be transmitted;
For example, the send and receive of data to be transmitted can pass through GPRS(General Packet Radio Service, GPRS (General Packet Radio Service)), EDGE(Enhanced Data Rate for GSM Evolution, be enhanced data rates for gsm (global system for mobile communications) evolution technology), WCDMA(Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), CDMA2000, TD-SCDMA(time-division synchronous CDMA, TD SDMA), HSPA(High Speed Uplink Packet Access, high speed uplink downlink packet access technology), TD-LTE(Time Division-Long Term Evolution(timesharing Long Term Evolution), WIFI(IEEE standard 802.11(1999-07-015) WLAN medium access control (MAC) and physical layer specification) etc. multiple network realize.
Understandably, before sending data to be transmitted, first data to be transmitted is carried out to buffer memory; Receive after data to be transmitted, to the advanced row cache of data to be transmitted, then decode.
Step S47, decodes to the data to be transmitted receiving, and according to the important frame redundant information in this data to be transmitted, the important frame of losing is reduced.
For example, current data frame is while needing the important frame of redundancy, and a frame is below in when coding, and the redundant information that comprises present frame, after present frame is lost in transmitting procedure, can be reduced to present frame by the redundant information in a frame after this.
For example, if find that there is Frame, abandon, whether the Frame that judgement abandons is important frame, if when the Frame abandoning is not important frame, the Frame abandoning is not reduced, and abandoning in such cases affects voice quality subjective feeling hardly; When the Frame abandoning is important frame, judge the redundant information that whether contains this important frame abandoning in data to be transmitted, if had, the important frame that the redundant information of the important frame abandoning according to this abandons this is reduced, to guarantee voice quality.It should be noted that, if the Frame abandoning is important frame, and in data to be transmitted, do not comprise the redundant information of this important frame abandoning, the Frame abandoning is not reduced.Because this important frame abandoning is according to redundancy ratio-dependent, so abandoning of this important frame affects less on tonequality.
Illustrate below in this method and how to encode, decode.As Fig. 4 a to Fig. 4 d has shown redundancy ratio, be defined as 100%, redundancy multiple is defined as the code encoding/decoding mode of 1 times.What Fig. 4 a showed is the data before coding, and wherein Frame 1, Frame 4, Frame 5, Frame 6 are important frame, and Frame 2, Frame 3, Frame 6 are non-important frame (non-important frame is to remove the frame outside important frame in data to be encoded).What Fig. 4 b showed is the data after coding unit coding, and wherein, the redundant information that Frame 2 contains Frame 1, after Frame 1 is lost in transmitting procedure, can reduce by 2 pairs of Frames 1 of Frame; The redundant information that Frame 5 contains Frame 4, after Frame 4 is lost in transmitting procedure, can reduce by 5 pairs of Frames 4 of Frame; The redundant information that Frame 6 contains Frame 5, after Frame 5 is lost in transmitting procedure, can reduce by 6 pairs of Frames 5 of Frame.It should be noted that, if important frame is not lost in transmitting procedure, even if certain frame contains this redundant information of not losing important frame, also do not reduce.What Fig. 4 c showed is the data before decoding unit decodes, and wherein, oblique line frame table is shown in the frame of losing in transmitting procedure, and Frame 1, Frame 3, Frame 4 are lost in transmitting procedure.What Fig. 4 d showed is the data after decoding unit decodes, and wherein, because Frame 1 is lost, and therefore the redundant information that Frame 2 contains Frame 1 can reduce to Frame 1 by Frame 2; Frame 3 is lost in transmitting procedure, and because Frame 3 is not by redundancy, so Frame 3 cannot be reduced; The redundant information that Frame 5 contains Frame 4, therefore can reduce to Frame 4 by Frame 5; Frame 5 is not lost in transmitting procedure, even if the redundant information that Frame 6 contains Frame 5 is not reduced yet.In the present embodiment, although Frame 3 is lost, Frame 3 is non-important frame, affects hardly voice quality subjective feeling, and voice quality is unaffected.
It should be noted that, data to be encoded acquire from voice-input device, and decoded data playback is to voice-output device.
As shown from the above technical solution, the present embodiment only carries out redundancy, this selectable redundancy strategy to affecting the important frame of speech quality subjective feeling in data, can either effectively resist Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
Embodiment five
The data coding device that Fig. 5 provides for the embodiment of the present invention five, this device comprises:
Data to be encoded acquisition module 51, for obtaining data to be encoded, these data to be encoded comprise a plurality of Frames;
Data to be encoded acquisition module 51 realize obtain the step of data to be encoded can be referring to the step S11 in embodiment mono-.
Important frame determination module 52, for determining the important frame of the plurality of Frame, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
Important frame determination module 52 is realized and is determined that the step of the important frame in the plurality of Frame specifically can be referring to the step S12 in embodiment mono-.
Redundancy strategy determination module 53, for determining redundancy strategy, this redundancy strategy is used to indicate the mode of this important frame being carried out to redundancy;
Important frame determination module 53 is realized and is determined that the step of redundancy strategy specifically can be referring to the step S13 in embodiment mono-.
Coding module 54, for based on this redundancy strategy, these data to be encoded being encoded, obtains data to be transmitted, includes the redundant information of this important frame in this data to be transmitted.
Coding module 54 is realized the step of these data to be encoded being encoded based on this redundancy strategy specifically can be referring to the step S14 in embodiment mono-.
For example, these data to be encoded comprise VoIP audio, video data or stream medium audio and video data or IPTV audio, video data.
For example, this redundancy strategy comprises at least one in redundancy ratio, redundancy multiple.
As shown from the above technical solution, the present embodiment only carries out redundancy, this selectable redundancy strategy to affecting the important frame of speech quality subjective feeling in data, can either effectively resist Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
Embodiment six
The data coding device that Fig. 5 provides for the embodiment of the present invention five, this device comprises:
Network packet loss rate determination module 61, before obtaining data to be encoded at this data to be encoded acquisition module, determines that network packet loss rate reaches the 3rd threshold value;
Network packet loss rate determination module 61 realize determine that network packet loss rate reaches the step of the 3rd threshold value specifically can be referring to the step S21 in embodiment bis-.
Data to be encoded acquisition module 62, for obtaining data to be encoded, these data to be encoded comprise a plurality of Frames;
Data to be encoded acquisition module 62 realize obtain the step of data to be encoded specifically can be referring to the step S11 in embodiment mono-.
Important frame determination module 63, for determining the important frame of the plurality of Frame, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
Important frame determination module 63 is realized and is determined that the step of the important frame in the plurality of Frame specifically can be referring to the step S12 in embodiment mono-.
Redundancy strategy determination module 64, for determining redundancy strategy, this redundancy strategy is used to indicate the mode of this important frame being carried out to redundancy, and this redundancy strategy comprises at least one in redundancy ratio, redundancy multiple;
Redundancy strategy determination module 64 is realized and is determined that the step of redundancy strategy specifically can be referring to the step S14 in embodiment bis-.
Coding module 65, for based on this redundancy strategy, these data to be encoded being encoded, obtains data to be transmitted, includes the redundant information of this important frame in this data to be transmitted.
Coding module 65 is realized the step of these data to be encoded being encoded based on this redundancy strategy specifically can be referring to the step S15 in embodiment bis-.
Further, when this redundancy strategy comprises this redundancy ratio, with reference to figure 6a, this coding module 65 comprises:
Importance priority determining unit 651, for determining the importance priority of this important frame;
The step that importance priority determining unit 651 realizes the importance priority of determining this important frame specifically can be referring to the step S511 in embodiment bis-.
Redundancy important frame determining unit 652, for according to this redundancy ratio and this importance priority, determines the important frame that needs redundancy in all these important frame;
The step that redundancy important frame determining unit 652 realizes the importance priority of determining this important frame specifically can be referring to the step S512 in embodiment bis-.
The first processing unit 653, for need the Frame after the important frame of redundancy each this, adds this to need the redundant information of the important frame of redundancy.
The step that the first processing unit 653 is realized the importance priority of determining this important frame specifically can be referring to the step S513 in embodiment bis-.
Further, this importance priority determining unit 651 is according at least one of the amplitude of important frame, rank, frequency slope, determine the importance priority of this important frame, wherein the amplitude of this important frame or rank or frequency slope are larger, and importance priority is higher.
Further, when this redundancy strategy comprises this redundancy multiple, this coding module 65 comprises:
The second processing unit, according to frame, adds respectively the redundant information of this important frame for the predetermined number after each this important frame, and this predetermined equates with this redundancy multiple.
As shown from the above technical solution, the present embodiment only carries out redundancy, this selectable redundancy strategy to affecting the important frame of speech quality subjective feeling in data, can either effectively resist Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
In concrete embodiment, the device in earlier figures 5 and 6 can be computing machine 70, and as shown in Figure 7, it generally comprises the parts such as storer 71, processor 72, network interface 73.It will be understood by those skilled in the art that the structure shown in Fig. 7 does not form the restriction to this device, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.
Below in conjunction with Fig. 7, each component parts of computing machine 70 is carried out to concrete introduction:
Storer 71 can be used for storing software program and application module, and processor 72 is stored in software program and the application module of storer 71 by operation, thus various function application and the data processing of object computer 70.Storer 71 can mainly comprise storage program district and storage data field, wherein, and the application program that storage program district can storage operation system, at least one function is required etc.; The data that create according to the processing of computing machine 70 can be stored in storage data field.In addition, storer 71 can comprise high-speed RAM (Random Access Memory, random access memory), can also comprise nonvolatile memory (non-volatile memory), for example at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 72 is control centers of computing machine 70, utilizes the various piece of various interface and the whole computing machine of connection.
Particularly, processor 72 is by moving or carry out software program and/or the application module being stored in storer 71, and calls the data that are stored in storer 71, and processor 72 can be realized, by network interface 73, obtain data to be encoded, these data to be encoded comprise a plurality of Frames;
Determine the important frame in the plurality of Frame, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
Determine redundancy strategy, this redundancy strategy is used to indicate the mode of this important frame being carried out to redundancy;
Based on this redundancy strategy, these data to be encoded are encoded, obtain data to be transmitted, in this data to be transmitted, include the redundant information of this important frame.
Wherein, this redundancy strategy can comprise at least one in redundancy ratio, redundancy multiple.
Further, processor 72 can also be realized, and when this redundancy strategy comprises this redundancy ratio, based on this redundancy strategy, these data to be encoded is encoded, and comprising:
Determine the importance priority of this important frame;
According to this redundancy ratio and this importance priority, determine the important frame that needs redundancy in all these important frame;
Each this, need, in the Frame after the important frame of redundancy, to add this to need the redundant information of the important frame of redundancy.
Further, processor 72 can also be realized, and determines the importance priority of this important frame, comprising:
According to the amplitude of this important frame, rank, frequency slope at least one, determine the importance priority of this important frame, wherein the amplitude of this important frame or rank or frequency slope are larger, and importance priority is higher.
Further, processor 72 can also be realized, and when this redundancy strategy comprises this redundancy multiple, based on this redundancy strategy, these data to be encoded is encoded, and comprising:
Predetermined number after each this important frame according to frame in, add respectively the redundant information of this important frame, this predetermined equates with this redundancy multiple.
Further, processor 72 can also be realized, and before this obtains data to be encoded, determines that network packet loss rate reaches the 3rd threshold value.
Wherein, these data to be encoded include but not limited to: VoIP audio, video data or stream medium audio and video data or IPTV audio, video data.
Embodiment seven
The data deciphering device that Fig. 8 provides for the embodiment of the present invention seven, this device comprises:
Data reception module 81, be used for receiving data to be decoded, these data to be decoded comprise a plurality of Frames, the redundant information that comprises important frame in these data to be decoded, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
The step of data reception module 81 realization reception data to be decoded specifically can be referring to the step S31 in embodiment tri-.
Decoder module 82, for to this decoding data to be decoded, and reduces to the important frame of losing according to the important frame redundant information in these data to be decoded.
Decoder module 82 is realized specifically can be referring to the step S32 in embodiment tri-to the step of this decoding data to be decoded.
As shown from the above technical solution, the redundant information that includes the important frame that affects speech quality subjective feeling in the data to be decoded that the present embodiment receives, after important frame is lost like this, can reduce according to the redundant information of important frame, therefore this method can either effectively be resisted Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
In concrete embodiment, the device in earlier figures 8 can be computing machine 880, and as shown in Figure 8 a, it generally comprises the parts such as storer 881, processor 882, network interface 883.It will be understood by those skilled in the art that the structure shown in Fig. 8 a does not form the restriction to this device, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.
Below in conjunction with Fig. 8 a, each component parts of computing machine 880 is carried out to concrete introduction:
Storer 881 can be used for storing software program and application module, and processor 882 is stored in software program and the application module of storer 881 by operation, thus various function application and the data processing of object computer 880.Storer 881 can mainly comprise storage program district and storage data field, wherein, and the application program that storage program district can storage operation system, at least one function is required etc.; The data that create according to the processing of computing machine 880 can be stored in storage data field.In addition, storer 881 can comprise high-speed RAM (Random Access Memory, random access memory), can also comprise nonvolatile memory (non-volatile memory), for example at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 882 is control centers of computing machine 880, utilizes the various piece of various interface and the whole computing machine of connection.
Particularly, processor 882 is by moving or carry out software program and/or the application module being stored in storer 881, and call the data that are stored in storer 881, processor 882 can be realized, by network interface 883, receive data to be decoded, these data to be decoded comprise a plurality of Frames, the redundant information that comprises important frame in these data to be decoded, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, rank is greater than the Frame of Second Threshold, the Frame of frequency slope within the scope of the frequency slope of voiceless sound,
To this decoding data to be decoded, and according to the important frame redundant information in these data to be decoded, the important frame of losing is reduced.
Embodiment eight
The data communication system that Fig. 9 provides for the embodiment of the present invention eight, this system comprises:
Data to be encoded acquisition module 91, for obtaining data to be encoded, these data to be encoded comprise a plurality of Frames;
Important frame determination module 92, for determining the important frame of the plurality of Frame, this important frame comprises one or more in following Frame: amplitude is greater than the Frame of first threshold, Frame, the Frame of frequency slope within the scope of the frequency slope of voiceless sound that rank is greater than Second Threshold;
Redundancy strategy determination module 93, for determining redundancy strategy, this redundancy strategy is used to indicate the mode of this important frame being carried out to redundancy;
Coding module 94, for based on this redundancy strategy, these data to be encoded being encoded, obtains data to be transmitted, includes the redundant information of this important frame in this data to be transmitted;
Sending module 95, for sending this data to be transmitted;
Receiver module 96, for receiving this data to be transmitted;
Decoder module 97, for the data to be transmitted receiving is decoded, and reduces to the important frame of losing according to the important frame redundant information in this data to be transmitted.
In the present embodiment, data to be encoded acquisition module 91, important frame determination module 92, redundancy strategy determination module 93, coding module 94 and sending module 95 are transmitting terminal, and in specific implementation, this transmitting terminal can comprise computing machine and the transmitter in Fig. 7; Receiver module 96 and decoder module 97 are receiving end, and in specific implementation, this receiving end can comprise computing machine and the receiver in Fig. 8 a.Transmitting terminal and receiving end are not subject to the restriction of specific implementation, can be mobile terminal, desktop terminal, WEB(internet) various ways such as plug-in unit, the built-in terminal of Set Top Box.The network mode of terminal access can be GPRS(General Packet Radio Service, GPRS (General Packet Radio Service)), EDGE(Enhanced Data Rate for GSM Evolution, be enhanced data rates for gsm (global system for mobile communications) evolution technology), WCDMA(Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), CDMA2000, TD-SCDMA(time-division synchronous CDMA, TD SDMA), HSPA(High Speed Uplink Packet Access, high speed uplink downlink packet access technology), TD-LTE(Time Division-Long Term Evolution(timesharing Long Term Evolution), WIFI(IEEE standard 802.11(1999-07-015) WLAN medium access control (MAC) and physical layer specification) etc. various ways.
As shown from the above technical solution, the present embodiment only carries out redundancy, this selectable redundancy strategy to affecting the important frame of speech quality subjective feeling in data, can either effectively resist Network Packet Loss, ensure voice quality, can reduce traffic consumes again, reduce user's consumption.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.