CN101394228B - Method for restoring time alignment note, signal source decoding method, apparatus and system - Google Patents

Method for restoring time alignment note, signal source decoding method, apparatus and system Download PDF

Info

Publication number
CN101394228B
CN101394228B CN200710154115.6A CN200710154115A CN101394228B CN 101394228 B CN101394228 B CN 101394228B CN 200710154115 A CN200710154115 A CN 200710154115A CN 101394228 B CN101394228 B CN 101394228B
Authority
CN
China
Prior art keywords
frame
time
quiet indication
indication frame
source decoding
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.)
Expired - Fee Related
Application number
CN200710154115.6A
Other languages
Chinese (zh)
Other versions
CN101394228A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200710154115.6A priority Critical patent/CN101394228B/en
Priority to PCT/CN2008/072387 priority patent/WO2009036704A1/en
Publication of CN101394228A publication Critical patent/CN101394228A/en
Application granted granted Critical
Publication of CN101394228B publication Critical patent/CN101394228B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method for restoring a time unifying mark, which comprises the following steps: reading a data frame from the voice packet of a real-time transport protocol; assigning the time alignment mark of a mute indicating frame to zero, if that the current data frame belongs to a mute indicating frame and the previous frame thereof at a preset time interval belongs to a voice frame is confirmed; and assigning the time alignment mark of a mute indicating frame to one, if that the current data frame belongs to a mute indicating frame and no data frame is received before the mute indicating frame at the preset time interval is confirmed. The embodiment of the invention further discloses a simplified method for restoring a time unifying mark, a method for simplifying the source-decoding, and a method for source-decoding, and provides a media gate-way and a system for source-decoding. The embodiment of the invention restores a time unifying mark in the voice packet of the real-time transport protocol and applies the time unifying mark in source decoding.

Description

Recovery time alignment mark method, the methods, devices and systems of source decoding
Technical field
The present invention relates to the mobile communication technology field, particularly relate to the method for alignment mark recovery time, the methods, devices and systems of source decoding.
Background technology
At GSM (Global System for Mobile Communications, global system for mobile communications) A interface (Ainterface) IPization (Internet Protocol, Internet Protocol) after, BSC (base station controller, base station controller) can directly carry out the IP encapsulation and send core net to compressed voice.Core net is responsible for processing the relevant affairs of all many encoding and decoding, the encoding and decoding conversion after comprising coding/decoding negotiation and consulting unsuccessfully, and finish the exchange of packets of voice.This scheme can take full advantage of the characteristic of Soft core net, by supporting TrFO (Transcoder Free Operation, Transcoder Free Operation), can promote voice quality, reduce the use of TC (Transcoder, transcoder) resource, save the transmission bandwidth on the A interface, also simplified simultaneously the design of BSS (Base Station Subsystem, base station sub-system).
As shown in Figure 1, the protocol stack of user's face of--base station sub-system--media gateway that is travelling carriage, full name and connotation thereof that English is wherein write a Chinese character in simplified form are:
PAYLOAD, the expression data load;
PPP (Point-to-Point Protocol), peer-peer protocol;
MAC (Medium Access Control), medium access control;
UDP (User Datagram Protocol), User Datagram Protoco (UDP);
IP (Internet Protocol), Internet Protocol
RTP (Real-time Transfer Protocol) RTP.
In order to communicate with one another smoothly between the network equipment that different manufacturers are produced, usually in these equipment, adopt the RTP (Real Time Transport Protocol, RTP) of standard to encapsulate speech data.For example, for EFR (Enhanced Full Rate, enhanced full rate)/FR (FULL RATE, full rate)/HR (HALF RATE, half rate) speech data, can adopt 3GPP TS 101318 agreements to encapsulate.For the byte-aligned of the voice that make encapsulation, agreement regulation: for the EFR speech data, before payload data, increased by 1100 of 4 bytes; For the FR speech data, 1101 of 4 bytes before payload data, have been increased; And for the HR speech data, because data own are all alignd, therefore just do not increase extra byte.Because Real-time Transport Protocol itself only guarantees the transmission of real time data, can not provide reliable transfer mechanism for transmitting in order packet, and flow control or congestion control are not provided yet.According to the regulation of standard Real-time Transport Protocol, also need input parameter TAF (Time Align Flag) to come SID (Silence Descriptor, quiet indication) frame is carried out source decoding in the agreement specified standard source encoding and decoding algorithm.Have many algorithms to carry out source decoding to the SID frame, in these different algorithms, it is different equaling the processing method that 1 SID frame and TAF value equal 0 SID frame for the value of TAF.
But, regulation according to existing standard Real-time Transport Protocol, the TAF value is not delivered to the media gateway of carrying out source decoding from the base station, there is not the meeting of TAF value so that be affected for the tone decoding process of quiet indication frame, speech quality behind reduction MGW (MEDIA GATEWAY, the media gateway) tone decoding.
Summary of the invention
In view of this, the purpose of the one or more embodiment of the present invention is to provide the method for alignment mark recovery time, the methods, devices and systems of source decoding, makes it possible to can to carry out the time unifying sign to the quiet indication frame in the voice packet that adopts the Real-time Transport Protocol encapsulation after A interface IPization and recovers.
For addressing the above problem, the embodiment of the invention provides the method for a kind of recovery time of alignment mark, comprises step:
Read data frame from the RTP voice packet;
If determine that the current data frame type is quiet indication frame, and the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, is 0 with described quiet indication frame time alignment mark assignment then,
If determine that the current data frame type is quiet indication frame, and before described quiet indication frame, do not receive Frame within a predetermined period of time, be 1 with described quiet indication frame time alignment mark assignment then.
The embodiment of the invention also provide a kind of simplification recovery time alignment mark method, comprise step:
Read data frame from the RTP voice packet;
If determine that the current data frame type is quiet indication frame in the RTP voice packet, and the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, be 0 with described quiet indication frame time alignment mark assignment then, if determine that the current data frame type is quiet indication frame in the RTP voice packet, and not receiving Frame within a predetermined period of time before described quiet indication frame, is 1 with described quiet indication frame time alignment mark assignment then.
The embodiment of the invention also provides a kind of method of simplifying source decoding, comprises step:
Read data frame from the RTP voice packet;
If determine that the current data frame type is quiet indication frame in the RTP voice packet, and the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, be 0 with described quiet indication frame time alignment mark assignment then, if determine that the current data frame type is quiet indication frame in the RTP voice packet, and not receiving Frame within a predetermined period of time before described quiet indication frame, is 1 with described quiet indication frame time alignment mark assignment then;
According to described time unifying sign described quiet indication frame is carried out source decoding.
The embodiment of the invention also provides a kind of method of source decoding, comprises step:
Read data frame from the RTP voice packet;
If the current data frame type is quiet indication frame, and the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, is 0 with described quiet indication frame time alignment mark assignment then,
If the current data frame type is quiet indication frame, and not receiving Frame within a predetermined period of time before described quiet indication frame, is 1 with described quiet indication frame time alignment mark assignment then;
According to described time unifying sign described quiet indication frame is carried out source decoding.
Embodiments of the invention also provide a kind of media gateway of source decoding, comprising:
The Frame reading unit is used for: from RTP voice packet read data frame and transmission;
Quiet indication frame determining unit, with described Frame reading unit, source decoding unit and the coupling of traffic frame type determining unit, be used for: determine whether the current data frame type is quiet indication frame after receiving described Frame, if, described quiet indication frame is delivered to described source decoding unit, generate and determine instruction and deliver to described traffic frame type determining unit;
Traffic frame type determining unit with alignment mark element coupling recovery time, is used for: according to the definite data frame type of receiving within a predetermined period of time of described definite instruction,
If the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, generate and compose 0 instruction and deliver to alignment mark unit recovery time,
If before described quiet indication frame, do not receive Frame within a predetermined period of time, generate and compose 1 instruction and deliver to alignment mark unit recovery time;
Recovery time the alignment mark unit, with described source decoding element coupling, be used for: be 0 according to composing 0 instruction with described quiet indication frame time alignment mark assignment, be 1 according to composing 1 instruction with described quiet indication frame time alignment mark assignment, and described time unifying sign 0 or 1 is delivered to described source decoding unit;
The source decoding unit is used for: according to described time unifying sign described quiet indication frame is carried out source decoding.
Embodiments of the invention also provide a kind of system of source decoding, comprising:
Media gateway and base station,
Described base station is used for: the data encapsulation that travelling carriage is sent is the RTP voice packet and delivers to described media gateway;
Described media gateway is used for: from RTP voice packet read data frame, determines whether the current data frame type is quiet indication frame, if so, then determines the data frame type receive within a predetermined period of time,
If the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, be 0 with the time unifying sign assignment of described quiet indication frame, if before described quiet indication frame, do not receive Frame within a predetermined period of time, be 1 with the time unifying sign assignment of described quiet indication frame
Carry out source decoding according to described time unifying sign 0 or 1 pair of described quiet indication frame.
Compared with prior art, the embodiment of the invention has the following advantages:
Processing through technique scheme, the quiet indication frame time alignment mark that is not sent to media gateway from travelling carriage is transferred to the process of base station just has been resumed, can decipher quiet indication frame for different time unifying signs for follow-up source decoding process, reduce the speech damage that causes because the TAF parameter is inaccurate, improved the speech quality of IPization.
Description of drawings
Fig. 1 is the schematic diagram of protocol stack of user's face of travelling carriage-base station sub-system-media gateway;
Fig. 2 is through the data flow schematic diagram of base station sub-system to media gateway from travelling carriage;
Fig. 3 is the flow chart of an embodiment of method of alignment mark recovery time of the present invention;
Fig. 4 is the flow chart of another embodiment of method of alignment mark recovery time of the present invention;
Fig. 5 is the sequential chart of the traffic frame received of media gateway;
Fig. 6 is the flow chart of an embodiment of the method for source decoding of the present invention;
Fig. 7 is the block diagram of an embodiment of the gateway of source decoding of the present invention;
Fig. 8 is the block diagram of an embodiment of the system of source decoding of the present invention;
Fig. 9 is the block diagram of another embodiment of the system of source decoding of the present invention.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the embodiment of the invention is done further and to be elaborated.
In each embodiment of the present invention and in the application's the specification various piece, traffic frame comprises SP frame and SID frame, and the SP frame is exactly speech frame, the SID frame is exactly quiet indication frame, TAF is exactly the time unifying sign, and what the time unifying sign of SID frame had is 1, and what have is 0.To use Chinese or English writing a Chinese character in simplified form be that convenience in order to refer to and to explain is required different local.
As shown in Figure 2, be through the data flow schematic diagram of base station sub-system to media gateway from travelling carriage.According to 3GPP (Three Generation Partnership Project, the third generation mobile collaborative project) regulation of 46.031 agreements, in the situation that the upstream discontinuous radiation pattern is opened, although travelling carriage can produce continuous SP frame and SID frame by the source encoding and decoding module, but it is not to send these all frames to eating dishes without rice or wine, but only sends the frame of following three types:
1) speech frame (all frames marked with SP=1, the frame of all signs " SP=1 ", SP frame);
2) first SID frame behind the SP frame, its TAF=0 (the first one with SP=0after one or more frames with SP=1 quiet indication frame of first " SP=0 " after the speech frame of one or more signs " SP=1 ", its time alignment mark TAF=0);
3) the SID frame of TAF=1 (tho se marked with SP=0and aligned with the SACCH multiframe structure as described in 45.008, sign " SP=0 " and the frame that aligns with the slow associated control channel multi-frame structure of regulation in 45.008 agreements, the quiet indication frame of time unifying sign TAF=1), per two time unifyings are masked as 480 milliseconds of 1 quiet indication frame periods.The cycle of SACCH multi-frame wherein is 480 milliseconds according to the agreement regulation.
After the RTP encapsulation of above-mentioned these three kinds of data through base station sub-system, with these three kinds of data encapsulation RTP voice packet that is the RTP standard code, three kinds of above-mentioned Frames have been comprised in the voice packet, be above-mentioned TAF=1 or the quiet indication frame of TAF=0, and speech frame, its length all is 20 milliseconds.
The These characteristics of the Frame that the movement-based platform sends the invention discloses following each embodiment:
As shown in Figure 3, be the embodiment of method of alignment mark recovery time of the present invention, comprise step:
S301, media gateway read data frame from the RTP voice packet;
S302, media gateway judge whether the current data frame type is quiet indication frame in the RTP voice packet, if so, enters step S302, otherwise, process ends;
S303, described media gateway are judged the data frame type of receiving within a predetermined period of time, if the data frame type of receiving first within a predetermined period of time is speech frame, then enter step S304, do not receive within a predetermined period of time Frame, then enter step S305, predetermined amount of time in this step can arrange according to the needs of practice, also can arrange according to the characteristics of the length of speech frame and quiet indication frame data.The length of these two Frames all is 20 milliseconds in existing agreement, therefore, and in a preferred embodiment can be with 20 milliseconds of length as predetermined amount of time.Do like this efficient and the accuracy rate that are conducive to improve judgement.Other length also is fine, and this variation does not exceed protection scope of the present invention;
S304, described media gateway are 0 with described quiet indication frame time alignment mark assignment then;
S305, described media gateway are 1 with described quiet indication frame time alignment mark assignment then.
By above step, media gateway is recovered the time unifying sign of the quiet indication frame that RTP is not brought from base station sub-system.
As shown in Figure 4, disclose a kind of technical scheme that obtains quiet indication frame, the invention provides another embodiment of the method for alignment mark recovery time, comprised step:
S401, BSS base station sub-system (Base Station Subsystem) are after having received the speech frame that travelling carriage is uploaded, and the speech frame that described travelling carriage is uploaded is encapsulated as the RTP voice packet;
After base station sub-system is received the SID frame of speech frame, first SID frame behind the speech frame and TAF=1 that travelling carriage sends, these Frames are encapsulated, process is: base station sub-system is carried out user's face frame format conversion, and the data transaction of the TRAU form that described travelling carriage is sent becomes the voice packet of RTP form;
S402, base station sub-system send described RTP voice packet to media gateway;
S403, media gateway judge whether the current data frame type is quiet indication frame in the RTP voice packet, if so, enters step S404, otherwise, process ends;
The process that determines whether quiet indication frame wherein can be:
Media gateway judges that current traffic frame is SP frame or SID frame.In the encryption algorithm of the FR that GSM standard is stipulated, the SP frame of each traffic frame and the length of SID frame are 260bits.But the effective value in the SP frame is normally different with effective value quantity in the SID frame.In the SP frame, its effective value is exactly 260bits; In the SID frame, its effective value is then far less than 260bits.Therefore, in the SID frame, can fixedly fill in 0 or 1 (different coded systems is different, depends on the needs of coded system itself) in the place of invalid value.Therefore, receiving terminal only need to detect the value constant whether on these fixed positions of present frame.If what the value on these fixed positions of present frame was constant is 0, or constant be 1 (different coded systems is different, depends on the needs of coded system itself), can judge that this frame is the SID frame.On the contrary, if not being 0 consistently or being 1 consistently, just can judge that this frame is the SP frame.Similar with the FR encryption algorithm, also can distinguish SP frame and SID frame in EFR, HR encryption algorithm with similar method;
S404, described media gateway are judged the data frame type of receiving within a predetermined period of time, if the data frame type of receiving first within a predetermined period of time is speech frame, then enter step S405, do not receive within a predetermined period of time then to enter step S406 by Frame.Predetermined amount of time in this step can arrange according to the needs of practice, also can arrange according to the characteristics of the length of speech frame and quiet indication frame data.The length of these two Frames all is 20 milliseconds in existing agreement, therefore, and in a preferred embodiment can be with 20 milliseconds of length as predetermined amount of time.Do like this efficient and the accuracy rate that are conducive to improve judgement.Other length also is fine, and this variation does not exceed protection scope of the present invention;
S405, described media gateway are 0 with described quiet indication frame time alignment mark assignment then;
S406, described media gateway are 1 with described quiet indication frame time alignment mark assignment then.
Through the processing procedure of above-described embodiment, the quiet indication frame time alignment mark that is not sent to media gateway from travelling carriage is transferred to the process of base station just has been resumed.TAF after the recovery can decipher quiet indication frame for different time unifying signs for follow-up source decoding process, reduced the speech damage that causes because the TAF parameter is inaccurate, improved the speech quality after the A interface IPization.
As shown in Figure 5, it is the sequential chart of the traffic frame received of media gateway, can see, according to the time interval of Real-time Transport Protocol prescribed by standard, the time interval between the SP frame of sign " SP=1 " and first SID frame of sign " SP=0 " is 20 milliseconds, the TAF=0 of first SID frame behind the SP frame, and the interval of the SID frame of each TAF=1 is 480 milliseconds.
Based on the These characteristics that data in the RTP voice packet distribute, if described predetermined amount of time is made as 20 milliseconds, then step S404 just can be in the embodiments of the invention:
S4041, media gateway record the 20 milliseconds of Frames received in every interval;
S4042, media gateway judge that the frame type of described frame is SP frame or SID frame,
If the Frame of receiving in current 20 milliseconds is the SP frame, think that so this frame is the SID frame of TAF=0, if do not receive Frame in front 20 milliseconds, and this frame is a SID frame, think that so this frame is the SID frame of TAF=1, through above step, media gateway can recover the TAF value of the SID frame of not bringing the base station from the data of receiving.
Present embodiment above-mentioned recovery time alignment mark method, take full advantage of the following characteristics of RTP voice packet:
In the RTP voice packet, quiet indication frame first appearance, time unifying sign=0 20 milliseconds of appearance behind speech frame behind the speech frame of SP=1.
According to above-mentioned quantitative relation, present embodiment has obtained the innovation and creation of from RTP voice packet recovery time of alignment mark.Accordingly, media gateway has obtained its time alignment mark from voice packet, can be used for carrying out follow-up source decoding, and the accuracy rate of decoding improves greatly, has obtained higher-quality voice quality.
Wherein, on the basis of above-described embodiment, in order to improve the accuracy rate of alignment mark recovery time, be after 1 at step S406 with described time unifying sign assignment, can also comprise step:
The traffic frame that S407, media gateway are received in recording 20 milliseconds;
S408, media gateway judge that the frame type of described traffic frame is SP frame or SID frame:
If the Frame of receiving in current 20 milliseconds is the SP frame, think that so this frame is the SID frame of TAF=0, if do not receive Frame in front 20 milliseconds, and this frame is a SID frame, thinks that so this frame is the SID frame of TAF=1.
In step S4042 and among the step S408, for this judgement of frame type error is arranged, this be because:
If there are following special circumstances to occur, such as beginning to send traffic frame to base station sub-system when travelling carriage when, after the RTP encapsulation conversion through base station sub-system, because media gateway is only received several traffic frames few in number at this moment.If this moment, travelling carriage sent SP frame and first SID frame behind the described SP frame and then according to the regulation of agreement, and this SID frame aligns with the moment of the TAF=1 that eats dishes without rice or wine just, the method that provides according to present embodiment can be 0 with the time unifying sign assignment of a little these SID frames, thereby occurs and the inconsistent phenomenon of the moment of eating dishes without rice or wine to align.Originally the SID frame that is TAF=1 is missed the SID frame that is identified as TAF=0, and the SID frame that will originally need to use the TAF=1 sign to decipher in follow-up decode procedure is identified as the SID frame of TAF=0 and deciphers.But, because the appearance interval of the SID frame of TAF=1 is 480 milliseconds, recover if carry out the time unifying sign of repetition, will set up 480 milliseconds periodic relationship of the SID frame of TAF=1.According to this period-luminosity relation of 480 milliseconds, can check out that whether correct described time unifying sign recovers;
If do not receive Frame in front 20 milliseconds, and this frame is a SID frame, thinks that so this frame is the SID frame of TAF=1,
In like manner as seen, in step S4042 and among the step S408, for this judgement of frame type error is arranged, this be because:
If there are following special circumstances to occur, such as beginning to send traffic frame to base station sub-system when travelling carriage when, after the RTP encapsulation conversion through base station sub-system, because media gateway is only received several traffic frames few in number at this moment.If this moment, travelling carriage sent some SID frames behind SP frame and the described SP frame according to the regulation of agreement, and this SID frame is not to send in the moment of the TAF=1 that eats dishes without rice or wine, if these frame data are carried out source decoding, its TAF value should equal 0.If but because the interference of eating dishes without rice or wine, base station sub-system is processed the immediate SP frame in this SID frame front unsuccessfully just, causes media gateway not know that described SID frame also has a SP frame.According to aforesaid determination methods, it is the SID frame of TAF=1 that media gateway can be identified as this SID frame, thereby causes erroneous judgement disconnected.But the rapid foundation along with the periodic relationship of 480 milliseconds of back can reduce this possible recovery mistake very soon, and because this time is very short, affected frame number can be seldom, for the decoding quality influence also just seldom.
Wherein, in the practice process; the error in judgement that may exist in order to reduce such scheme; above-mentioned step S407, the S408 deterministic process can be according to the needs of technical scheme; ceaselessly repeat per 480 milliseconds detection identification; such benefit is to improve to greatest extent the accuracy rate of alignment mark recovery time, and the number of times of its repetition, frequency depend on the requirement of technical scheme itself, and this variation does not exceed protection scope of the present invention.
Through above step, media gateway has been recovered the time unifying sign of the quiet indication frame do not brought the base station from the data of receiving.
On the basis of above-described embodiment, in order to simplify the step of alignment mark recovery time, embodiment also provide a kind of simplification recovery time alignment mark method, comprise step:
Media gateway is read data frame from the RTP voice packet;
Media gateway judges whether the current data frame type is quiet indication frame in the RTP voice packet, if so, is 0 or 1 with the time unifying sign assignment of the described quiet indication frame received within a predetermined period of time.
The method of assignment can have multiple, for example: random assignment, the circulation assignment, with some loop cycle assignment that presets, perhaps different random assignment methods is in conjunction with different circulation assignment methods, etc.The variation of various assignment modes does not exceed protection scope of the present invention, all is will to determine the time unifying sign after the described quiet indication frame assignment.
Like this for follow-up source decoding process, if quiet indication frame is brought with fixing value 0 or 1, if inconsistent with original sign for described quiet indication frame assignment, decoding error will appear, reduction speech quality.But in the limit that speech quality allows, the user is acceptable.
With above-mentioned simplification recovery time alignment mark method adapt, the embodiment of the invention also discloses a kind of method of simplifying source decoding, comprise step:
Media gateway is read data frame from the RTP voice packet;
Media gateway judges whether the current data frame type is quiet indication frame in the RTP voice packet, if so, is 0 or 1 with the time unifying sign assignment of the described quiet indication frame received within a predetermined period of time;
Described media gateway is carried out source decoding according to described time unifying sign to described quiet indication frame.
The method of assignment can have multiple, for example: random assignment, the circulation assignment, with some loop cycle assignment that presets, perhaps different random assignment methods is in conjunction with different circulation assignment methods, etc.The variation of various assignment modes does not exceed protection scope of the present invention, all is will to determine the time unifying sign after the described quiet indication frame assignment.
Utilize this practicality example, be implemented in the limit that speech quality allows, realized for the time unifying sign assignment of quiet indication frame and carry out source decoding with simpler scheme.
As shown in Figure 6, for to above-mentioned recovery time alignment mark quiet indication frame carry out source decoding, the invention provides the embodiment of the method for source decoding behind the encapsulation voice, comprise step:
S601, media gateway read data frame from the RTP voice packet;
S602, media gateway determine whether the current data frame type is quiet indication frame in the RTP voice packet, if so, enters step S603, otherwise, process ends;
S603, the definite data frame type of receiving within a predetermined period of time of described media gateway if the data frame type of receiving first within a predetermined period of time is speech frame, then enter step S604, do not receive within a predetermined period of time then to enter step S605 by Frame;
S604, described media gateway are 0 with described quiet indication frame time alignment mark assignment then;
S605, described media gateway are 1 with described quiet indication frame time alignment mark assignment then;
S606, described media gateway are carried out source decoding according to the described time unifying sign after recovering to described quiet indication frame.
Through the processing procedure of above-described embodiment, the quiet indication frame time alignment mark that is not sent to media gateway from travelling carriage is transferred to the process of base station just has been resumed.And according to described time unifying sign, can in follow-up source decoding process, carry out source decoding to quiet indication frame, reduce the speech damage that causes because the TAF parameter is inaccurate, improve the speech quality of IP words.
Wherein, on the basis of above-described embodiment, according to the RTP voice packet in speech frame and the effective value quantity difference of quiet indication frame very large, whether constant by judging the value on its fixed position, can judge the type of current data frame, determine that specifically whether the current data frame type is that the method for quiet indication frame can comprise the steps:
Described media gateway is determined the value constant whether on the fixed position of present frame, if the value on the described fixed position is constant, then described present frame is quiet indication frame.
Through present embodiment, realized according to the different identifications for quiet indication frame of speech frame with quiet indication frame effective value quantity, and and then realized source decoding to described quiet indication frame.
Wherein, on the basis of above-described embodiment, periodicity characteristics based on data distribution in the RTP voice packet of aforementioned relevant embodiment analysis: as shown in Figure 5, it is the sequential chart of the traffic frame received of media gateway, can see, according to the time interval of Real-time Transport Protocol prescribed by standard, the time interval between the SP frame of sign " SP=1 " and first SID frame of sign " SP=0 " is 20 milliseconds, the TAF=0 of first SID frame behind the SP frame, and the interval of the SID frame of each TAF=1 is 480 milliseconds, has just obtained following embodiment:
The length of described predetermined amount of time is 20 milliseconds, if the current data frame type is quiet indication frame, then:
The type of the described Frame that media gateway is received in judging 20 milliseconds,
If the traffic frame type of receiving in 20 milliseconds is speech frame, think that this frame is that time unifying is masked as 0 quiet indication frame,
If do not receive traffic frame in 20 milliseconds, think that this frame is that time unifying is masked as 1 quiet indication frame;
Described media gateway is masked as 0 and be that 1 described quiet indication frame carries out source decoding to described time unifying.
Present embodiment above-mentioned recovery time alignment mark method, take full advantage of the following characteristics of RTP voice packet:
In the RTP voice packet, quiet indication frame first appearance, time unifying sign=0 20 milliseconds of appearance behind speech frame behind the speech frame of SP=1.
According to above-mentioned quantitative relation, present embodiment has obtained the innovation and creation of from RTP voice packet recovery time of alignment mark.Accordingly, media gateway has obtained its time alignment mark from voice packet, and carries out source decoding with this, has improved the accuracy rate of decoding, has obtained higher-quality voice quality.
Wherein, on the basis of above-described embodiment, in order to improve alignment mark and the accuracy rate of source decoding recovery time, be after 1 with described time unifying sign assignment, can also comprise step:
The traffic frame that S606, media gateway are received in recording 20 milliseconds;
S607, media gateway judge that the frame type of described traffic frame is SP frame or SID frame,
If the Frame of receiving in current 20 milliseconds is the SP frame, think that so this frame is the SID frame of TAF=0,
If do not receive Frame in front 20 milliseconds, and this frame is a SID frame, thinks that so this frame is the SID frame of TAF=1.
The above-mentioned Frame length of utilizing is that 20 milliseconds of time unifying signs that carry out repetition recover; can improve to greatest extent the accuracy rate of alignment mark recovery time; the number of times of its repetition, frequency depend on the requirement of technical scheme itself, and this variation does not exceed protection scope of the present invention.
As shown in Figure 7, for to above-mentioned recovery time alignment mark quiet indication frame carry out source decoding, the invention provides the embodiment of the media gateway of source decoding, comprising:
Frame reading unit 701 is used for: from RTP voice packet read data frame and transmission;
Quiet indication frame determining unit 702, with described Frame reading unit, source decoding unit and the coupling of traffic frame type determining unit, be used for: determine whether RTP voice packet current data frame type is quiet indication frame after receiving described Frame, if, described quiet indication frame is delivered to described source decoding unit 705, generate and determine instruction and deliver to described traffic frame type determining unit 703;
Traffic frame type determining unit 703 with alignment mark element coupling recovery time, is used for: according to the definite data frame type of receiving within a predetermined period of time of described definite instruction,
If the data frame type of receiving first within a predetermined period of time is speech frame, generate to compose 0 instruction and deliver to alignment mark unit 704 recovery time,
If do not receive within a predetermined period of time Frame, generate to compose 1 instruction and deliver to alignment mark unit 704 recovery time;
Recovery time, the alignment mark unit 704, with described source decoding element coupling, be used for: be 0 according to composing 0 instruction with described quiet indication frame time alignment mark assignment, be 1 according to composing 1 instruction with described quiet indication frame time alignment mark assignment, and described time unifying sign 0 or 1 is delivered to described source decoding unit 705;
Source decoding unit 705 is used for: according to described time unifying sign described quiet indication frame is carried out source decoding.
Processing procedure through above-described embodiment, the quiet indication frame time alignment mark that is not sent to media gateway from travelling carriage is transferred to the process of base station just has been resumed, and according to described time unifying sign, can in follow-up source decoding process, carry out source decoding to quiet indication frame, reduce the speech damage that causes because the TAF parameter is inaccurate, improved the speech quality of IPization.
Wherein, on the basis of above-described embodiment, according to the RTP voice packet in speech frame and quiet indication frame effective value quantity difference very large, by judging whether the value on its fixed position is constant, can obtain following embodiment:
Described quiet indication frame determining unit comprises: quiet indication frame determines that subelement and definite instruction send subelement,
Described quiet indication frame is determined subelement, be used for: judge the value constant whether on the fixed position of RTP voice packet current data frame, if so, then described quiet indication frame is delivered to the source decoding unit, generate the transmission instruction and deliver to definite instruction transmission subelement;
Described judgement is determined to send subelement, is used for: generate according to described transmission instruction and determine instruction and deliver to traffic frame type determining unit.
Through present embodiment, realized according to the different identifications for quiet indication frame of speech frame with quiet indication frame effective value quantity, and and then realized source decoding to described quiet indication frame.
Wherein, on the basis of above-described embodiment, periodicity characteristics based on data distribution in the RTP voice packet of aforementioned relevant embodiment analysis: as shown in Figure 5, it is the sequential chart of the traffic frame received of media gateway, can see, according to the time interval of Real-time Transport Protocol prescribed by standard, the time interval between the SP frame of sign " SP=1 " and first SID frame of sign " SP=0 " is 20 milliseconds, the TAF=0 of first SID frame behind the SP frame, and the length of the SID frame of each TAF=1 is 480 milliseconds, can be 20 milliseconds with the length of the described predetermined amount of time among above-mentioned each embodiment.
Present embodiment above-mentioned recovery time alignment mark method, take full advantage of the following characteristics of RTP voice packet:
In the RTP voice packet, quiet indication frame first appearance, time unifying sign=0 20 milliseconds of appearance behind speech frame behind the speech frame of SP=1.
According to above-mentioned quantitative relation, present embodiment has obtained the innovation and creation of from RTP voice packet recovery time of alignment mark.Accordingly, media gateway has obtained its time alignment mark from voice packet, and carries out source decoding with this, has improved the accuracy rate of decoding, has obtained higher-quality voice quality.
As shown in Figure 8, for to above-mentioned recovery time alignment mark quiet indication frame carry out source decoding, embodiments of the invention also provide a kind of system that encapsulates source decoding behind the voice, comprising:
Media gateway 801 and base station 802,
Described base station 802 is used for: the data encapsulation that travelling carriage is sent is the RTP voice packet and delivers to described media gateway;
Described media gateway 801 is used for: from RTP voice packet read data frame, determines whether the current data frame type is quiet indication frame in the RTP voice packet, if so, then determines the data frame type receive within a predetermined period of time,
If the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, be 0 with the time unifying sign assignment of described quiet indication frame, if before described quiet indication frame, do not receive Frame within a predetermined period of time, be 1 with the time unifying sign assignment of described quiet indication frame
Carry out source decoding according to described time unifying sign 0 or 1 pair of described quiet indication frame.
Processing procedure through above-described embodiment, the quiet indication frame time alignment mark that is not sent to media gateway from travelling carriage is transferred to the process of base station just has been resumed, and according to described time unifying sign, can in follow-up source decoding process, carry out source decoding to quiet indication frame, reduce the speech damage that causes because the TAF parameter is inaccurate, improved the speech quality of IP words.
Wherein, as shown in Figure 9, on the basis of above-described embodiment, according to the RTP voice packet in speech frame and quiet indication frame effective value quantity difference very large, by increase in media gateway the value judge on its fixed position whether the quiet indication frame of constant determine equipment, can obtain following embodiment:
Described media gateway also comprises: quiet indication frame is determined equipment 901,
Described quiet indication frame is determined equipment 901, is used for: determine the value constant whether on the fixed position of current described RTP voice packet present frame, if so, then with described frame as quiet indication frame.
Through present embodiment, realized according to the different identifications for quiet indication frame of speech frame with quiet indication frame effective value quantity, and and then realized source decoding to described quiet indication frame.
Because according to the time interval of Real-time Transport Protocol prescribed by standard, the time interval between the SP frame of sign " SP=1 " and first SID frame of sign " SP=0 " is 20 milliseconds, the TAF=0 of first SID frame behind the SP frame, and the length of the SID frame of each TAF=1 is 480 milliseconds, can be 20 milliseconds with the length of the described predetermined amount of time among above-mentioned each embodiment.If other needs of variation or technical scheme itself have occured the length of described each Frame of agreement regulation certainly, the length of described predetermined amount of time can adjust accordingly, and this variation does not exceed protection scope of the present invention.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode in a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
Above-described embodiment of the present invention does not consist of the restriction to protection range of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.

Claims (13)

  1. One kind recovery time alignment mark method, it is characterized in that, comprise step:
    Read data frame from the RTP voice packet;
    If determine that the current data frame type is quiet indication frame, and the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, is 0 with described quiet indication frame time alignment mark assignment then,
    If determine that the current data frame type is quiet indication frame, and before described quiet indication frame, do not receive Frame within a predetermined period of time, be 1 with described quiet indication frame time alignment mark assignment then.
  2. Recovery time as claimed in claim 1 alignment mark method, it is characterized in that described definite current data frame type is that quiet indication frame is specially:
    If the value on the fixed position of described current data frame is constant, then described current data frame type is quiet indication frame.
  3. Recovery time as claimed in claim 1 alignment mark method, it is characterized in that the length of described predetermined amount of time is 20 milliseconds.
  4. Recovery time as claimed in claim 1 alignment mark method, it is characterized in that, also comprise step:
    After complete to described quiet indication frame assignment, re-execute described from the RTP voice packet read data frame step.
  5. 5. the method for a source decoding is characterized in that, comprises step:
    Read data frame from the RTP voice packet;
    If the current data frame type is quiet indication frame, and the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, is 0 with described quiet indication frame time alignment mark assignment then,
    If the current data frame type is quiet indication frame, and not receiving Frame within a predetermined period of time before described quiet indication frame, is 1 with described quiet indication frame time alignment mark assignment then;
    According to described time unifying sign described quiet indication frame is carried out source decoding.
  6. 6. the method for source decoding as claimed in claim 5 is characterized in that, described definite current data frame type is that quiet indication frame is specially:
    If the value on the fixed position of described current data frame is constant, then described current data frame type is quiet indication frame.
  7. 7. the method for source decoding as claimed in claim 5 is characterized in that, the length of described predetermined amount of time is 20 milliseconds.
  8. 8. the media gateway of a source decoding is characterized in that, comprising:
    The Frame reading unit is used for: from RTP voice packet read data frame and transmission;
    Quiet indication frame determining unit, with described Frame reading unit, source decoding unit and the coupling of traffic frame type determining unit, be used for: determine whether the current data frame type is quiet indication frame after receiving described Frame, if, described quiet indication frame is delivered to described source decoding unit, generate and determine instruction and deliver to described traffic frame type determining unit;
    Traffic frame type determining unit with alignment mark element coupling recovery time, is used for: according to the definite data frame type of receiving within a predetermined period of time of described definite instruction,
    If the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, generate and compose 0 instruction and deliver to alignment mark unit recovery time,
    If before described quiet indication frame, do not receive Frame within a predetermined period of time, generate and compose 1 instruction and deliver to alignment mark unit recovery time;
    Recovery time the alignment mark unit, with described source decoding element coupling, be used for: be 0 according to composing 0 instruction with described quiet indication frame time alignment mark assignment, be 1 according to composing 1 instruction with described quiet indication frame time alignment mark assignment, and described time unifying sign 0 or 1 is delivered to described source decoding unit;
    The source decoding unit is used for: according to described time unifying sign described quiet indication frame is carried out source decoding.
  9. 9. the media gateway of source decoding as claimed in claim 8 is characterized in that, described quiet indication frame determining unit comprises: quiet indication frame determines that subelement and definite instruction send subelement,
    Described quiet indication frame is determined subelement, is used for: determine the value constant whether on the fixed position of described current data frame, if so, then described quiet indication frame is delivered to the source decoding unit, generate and send instruction and also deliver to and determine that instruction sends subelement;
    Described definite instruction sends subelement, is used for: generate according to described transmission instruction and determine instruction and deliver to traffic frame type determining unit.
  10. 10. the media gateway of source decoding as claimed in claim 8 is characterized in that, the length of described predetermined amount of time is 20 milliseconds.
  11. 11. the system of a source decoding is characterized in that, comprising:
    Such as claim 8 to 10 each described media gateway and base station,
    Described base station is used for: the data encapsulation that travelling carriage is sent is the RTP voice packet and delivers to described media gateway;
    Described media gateway is used for: from RTP voice packet read data frame, determines whether the current data frame type is quiet indication frame, if so, then determines the data frame type receive within a predetermined period of time,
    If the data frame type of the frame before described quiet indication frame is speech frame within a predetermined period of time, be 0 with the time unifying sign assignment of described quiet indication frame, if before described quiet indication frame, do not receive Frame within a predetermined period of time, be 1 with the time unifying sign assignment of described quiet indication frame
    Carry out source decoding according to described time unifying sign 0 or 1 pair of described quiet indication frame.
  12. 12. source decoding as claimed in claim 11 system, it is characterized in that described media gateway also comprises: quiet indication frame is determined equipment,
    Described quiet indication frame is determined equipment, is used for: determine the value constant whether on the fixed position of current described RTP voice packet present frame, if so, then with described frame as quiet indication frame.
  13. 13. source decoding as claimed in claim 11 system is characterized in that the length of described predetermined amount of time is 20 milliseconds.
CN200710154115.6A 2007-09-17 2007-09-17 Method for restoring time alignment note, signal source decoding method, apparatus and system Expired - Fee Related CN101394228B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200710154115.6A CN101394228B (en) 2007-09-17 2007-09-17 Method for restoring time alignment note, signal source decoding method, apparatus and system
PCT/CN2008/072387 WO2009036704A1 (en) 2007-09-17 2008-09-17 The method for resuming the time alignment flag, and the information source encoding method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710154115.6A CN101394228B (en) 2007-09-17 2007-09-17 Method for restoring time alignment note, signal source decoding method, apparatus and system

Publications (2)

Publication Number Publication Date
CN101394228A CN101394228A (en) 2009-03-25
CN101394228B true CN101394228B (en) 2013-01-23

Family

ID=40467530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710154115.6A Expired - Fee Related CN101394228B (en) 2007-09-17 2007-09-17 Method for restoring time alignment note, signal source decoding method, apparatus and system

Country Status (2)

Country Link
CN (1) CN101394228B (en)
WO (1) WO2009036704A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448957B (en) * 2022-01-28 2024-03-29 上海小度技术有限公司 Audio data transmission method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1483257A (en) * 2000-01-10 2004-03-17 �����ɷ� Method and device for supporting adaptive multi rate (AMR) data in cdma communication system
US7046990B2 (en) * 1999-12-28 2006-05-16 Telecom Italia Lab S.P.A. Method for detecting access to controlled areas and related system
US7050439B1 (en) * 1997-12-31 2006-05-23 Nokia Networks Oy Method for performing discontinuous transmission in an asynchronous transfer mode

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7050439B1 (en) * 1997-12-31 2006-05-23 Nokia Networks Oy Method for performing discontinuous transmission in an asynchronous transfer mode
US7046990B2 (en) * 1999-12-28 2006-05-16 Telecom Italia Lab S.P.A. Method for detecting access to controlled areas and related system
CN1483257A (en) * 2000-01-10 2004-03-17 �����ɷ� Method and device for supporting adaptive multi rate (AMR) data in cdma communication system

Also Published As

Publication number Publication date
CN101394228A (en) 2009-03-25
WO2009036704A1 (en) 2009-03-26

Similar Documents

Publication Publication Date Title
FI114073B (en) Process and apparatus for generating a time-sensitive message in an adjustable delay channel
CN101300885B (en) Traffic generation during inactive user plane
US20050259687A1 (en) Method and apparatus for providing multiple quality of service levels in a wireless packet data services connection
CN102792648A (en) Congestion level indication with explicit congestion notification in communication systems
US7969902B2 (en) Tandem-free vocoder operations between non-compatible communication systems
WO2005125111A2 (en) Reducing backhaul bandwidth
KR101702047B1 (en) Recording communications
CN101335764B (en) Multi-frame synthesizing and parsing method and apparatus, multi-frame processing system
CN103581138A (en) Data transmission method and device
CN101426189B (en) Method and system for additional information transmission
CN101360264B (en) Data transmission method and apparatus based on IP Abis interface
CN101394228B (en) Method for restoring time alignment note, signal source decoding method, apparatus and system
JP2003513584A (en) Wide area wireless transmission method and apparatus
CN101925036B (en) Transmitting method, system and device of terminal high-level signaling
CN101500253A (en) Test system, apparatus and method for base station uplink transmission channel performance
US7149198B2 (en) System and method for voice processing and transporting in a protocol independent tandem free operation manner
CN101765148A (en) Data transmission method, equipment and system
CN101394224B (en) Service frame sending method and device
CN101365189B (en) Method and system implementing speech passing through in mobile network
CN101365186B (en) Uplink incontinuous speech transmission method and device for A interface based on IP bearing
JP2002541746A (en) Method and apparatus for transmitting data over a voice channel
CN101594692B (en) Method and system for quick calling establishment in IP ABIS
CN101351028B (en) Method and apparatus for down discontinuousness voice transmission base on IP Abis interface
CN102104845A (en) Additional information transmission method and device, and additional information receiving method and device
US8295283B2 (en) Method, system, and device for transmitting TRAU frame over a packet network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130123

Termination date: 20180917

CF01 Termination of patent right due to non-payment of annual fee