[go: up one dir, main page]

CN100388824C - Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System - Google Patents

Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System Download PDF

Info

Publication number
CN100388824C
CN100388824C CNB2005100328445A CN200510032844A CN100388824C CN 100388824 C CN100388824 C CN 100388824C CN B2005100328445 A CNB2005100328445 A CN B2005100328445A CN 200510032844 A CN200510032844 A CN 200510032844A CN 100388824 C CN100388824 C CN 100388824C
Authority
CN
China
Prior art keywords
frame
bits
identification
rate
demodulator
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
CNB2005100328445A
Other languages
Chinese (zh)
Other versions
CN1805565A (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 CNB2005100328445A priority Critical patent/CN100388824C/en
Publication of CN1805565A publication Critical patent/CN1805565A/en
Application granted granted Critical
Publication of CN100388824C publication Critical patent/CN100388824C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Digital Transmission Methods That Use Modulated Carrier Waves (AREA)

Abstract

一种对不连续发送制式下的自适应多速率语音编码的译码方法,包括A1)根据接收端解调器输出的信噪比SNR;A2)计算门限值T并对解调器输出的软判决数据模式比特IM_D(n)限幅为IM_D(n)’;A3)将待译码帧的类型识别模式中的一个IM负极性化为IM’;A4)将限幅后的含有N个比特的IM_D(n)’的一部分或全部与该帧对应的模式IM’的数据的一部分或全部进行相关运算,计算出相关度R;A5)如果R>=T,则确定解调器输出的帧与待译码帧具有相同的类型;否则用另一个负极性化处理的识别模式IM‘回到步骤A4),直到全部识别模式都计算过且相关度R小于门限值T则确定解调器输出的帧与所用模式IM对应的帧类型无关。利用本发明的译码方法,可以在GSM系统中,有效地从被干扰的数据中识别出连续发送制式下的自适应多速率语音编码的帧类型。A decoding method for adaptive multi-rate speech coding under the discontinuous transmission system, including A1) according to the signal-to-noise ratio SNR output by the demodulator at the receiving end; A2) calculating the threshold value T and outputting the demodulator The soft-decision data mode bit IM_D(n) is limited to IM_D(n)'; A3) negatively polarizes one IM in the type identification mode of the frame to be decoded into IM'; A4) contains N A part or all of the IM_D(n)' of the bit is correlated with a part or all of the data of the pattern IM' corresponding to the frame, and the correlation R is calculated; A5) if R>=T, then determine the output of the demodulator The frame has the same type as the frame to be decoded; otherwise, use another negatively polarized identification mode IM' to return to step A4), until all identification modes have been calculated and the correlation R is less than the threshold value T, then determine the demodulation The frame output by the converter is independent of the frame type corresponding to the mode IM used. By using the decoding method of the invention, the frame type of the adaptive multi-rate speech coding under the continuous transmission system can be effectively identified from the interfered data in the GSM system.

Description

对不连续发送制式下的自适应多速率语音编码的译码方法 Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System

技术领域 technical field

本发明涉及通信技术,具体涉及一种在GSM系统中对不连续发送制式下的自适应多速率语音编码的译码方法。The invention relates to communication technology, in particular to a decoding method for adaptive multi-rate speech coding under the discontinuous transmission system in the GSM system.

背景技术 Background technique

全球移动通信系统(Global system for Mobile communication,以下简称为“GSM”)在其发展到PHASE II后,提供了一种新的语音编解码方式,即自适应多速率语音编码(Adaptive Muti-Rate speech codec,以下简称“AMR”),这种语音编码的业务类型,可根据无线环境来动态改变语音编码速率和信道编码速率,AMR编码器根据信道类型如全速率或半速率信道,实时选择多种码率中的一种,从而达到语音编码和信道编码的最优组合以满足瞬时的无线信道条件和本地容量需求。AMR提供了从4.75kbits/s到12.2kbits/s的8种码率选择。对于一般的语音帧,有卷积编码来实现FEC(前向纠错码)。而在不连续发送制式(discontinuous transmission,以下简称DTX)时,有些特殊的帧并没有FEC,如何对这些帧进行译码,协议中并没有相关描述,因此,也就无法在DTX中实现对AMR的译码。After the Global system for Mobile communication (hereinafter referred to as "GSM") developed to PHASE II, it provided a new voice codec method, that is, Adaptive Multi-Rate Speech Coding (Adaptive Muti-Rate speech coding) codec, hereinafter referred to as "AMR"), this type of speech coding service can dynamically change the speech coding rate and channel coding rate according to the wireless environment. One of the code rates, so as to achieve the optimal combination of speech coding and channel coding to meet the instantaneous wireless channel conditions and local capacity requirements. AMR provides 8 bit rate options from 4.75kbits/s to 12.2kbits/s. For general speech frames, there is convolutional coding to implement FEC (Forward Error Correction Code). In discontinuous transmission (hereinafter referred to as DTX), some special frames do not have FEC. How to decode these frames is not described in the protocol. Therefore, it is impossible to implement AMR in DTX. decoding.

按照GSM协议,AMR中没有FEC但需要识别的特殊的帧有9种:全速率SID_UPDATE、全速率SID_FIRST帧、全速率ON_SET帧、半速率SID_UPDATE帧、半速率SID_UPDATE_INH帧、半速率SID_FIRST_P1、半速率SID_FIRST_P2帧、半速率SID_FIRST_INH帧、半速率ONSET帧。在发送上述9种全速率、半速率的这些DTX帧时,包含一个IM(识别模式)如下表所示。According to the GSM protocol, there are 9 special frames that need to be identified without FEC in AMR: full-rate SID_UPDATE, full-rate SID_FIRST frame, full-rate ON_SET frame, half-rate SID_UPDATE frame, half-rate SID_UPDATE_INH frame, half-rate SID_FIRST_P1, half-rate SID_FIRST_P2 frame, half-rate SID_FIRST_INH frame, half-rate ONSET frame. When sending these DTX frames of the above 9 kinds of full rate and half rate, an IM (identification mode) is included as shown in the table below.

  帧类型frame type 识别模式(IM)Identification Mode (IM)   全速率SID_UPDATEFull rate SID_UPDATE 0,1,0,0,1,1,1,1,0  重复至212比特0, 1, 0, 0, 1, 1, 1, 1, 0 Repeat to 212 bits   全速率SID_FIRST帧Full rate SID_FIRST frame 0,1,0,0,1,1,1,1,0  重复至212比特0, 1, 0, 0, 1, 1, 1, 1, 0 Repeat to 212 bits   全速率ON_SET帧Full rate ON_SET frame ic1 重复至228bitic1 Repeat to 228bit   半速率SID_UPDATE帧Half-rate SID_UPDATE frames 1,0,1,1,0,0,0,0,1  重复至212比特1, 0, 1, 1, 0, 0, 0, 0, 1 Repeat to 212 bits   半速率SID_UPDATE_INH帧Half-rate SID_UPDATE_INH frames 0,1,0,0,1,1,1,1,0  重复至212bit0, 1, 0, 0, 1, 1, 1, 1, 0 repeat to 212bit   半速率SID_FIRST_P1Half rate SID_FIRST_P1 0,1,0,0,1,1,1,1,0  重复至212比特0, 1, 0, 0, 1, 1, 1, 1, 0 Repeat to 212 bits   半速率SID_FIRST_P2帧Half-rate SID_FIRST_P2 frames ic 重复至114比特ic repeated to 114 bits   半速率SID_FIRST_INH帧Half-rate SID_FIRST_INH frames 1,0,1,1,0,0,0,0,1  重复至212比特1, 0, 1, 1, 0, 0, 0, 0, 1 Repeat to 212 bits   半速率ONSET帧Half-rate ONSET frame ic1 重复至114bitic1 Repeat to 114bit

由于编码的缘故,实际在译码的时候,对于SID_UPDATE_INH,SID_FIRST_INH来说,其识别模式已经变为1,1,1,0,0,1,0,1,1,0,0,0,1,1,0,1,0,0和0,0,0,1,1,0,1,0,0,1,1,1,0,0,1,0,1,1;表中的ic和ic1是指下面的4种16bit模式之一,用16进制将4种16位的识别模式分别表示为:0x530f,0x3eb8,0x8863,0xe5d4,例如0x530f表示识别模式为0,1,0,1,0,0,1,1,0,0,0,0,1,1,1,1,对表中ic和ic1表示的帧需要进行4次匹配找最大值。无论采用哪种模式,所面临的技术问题是一样的,都需要从被噪声干扰的数据中识别出原先的数据格式。现有技术没有提供对这些帧类型的识别或译码的解决方案。Due to encoding, when actually decoding, for SID_UPDATE_INH and SID_FIRST_INH, its recognition mode has become 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1 , 1, 0, 1, 0, 0 and 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1; in the table ic and ic1 refer to one of the following four 16-bit modes. The four 16-bit identification modes are expressed in hexadecimal: 0x530f, 0x3eb8, 0x8863, 0xe5d4. For example, 0x530f indicates that the identification mode is 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, for the frames represented by ic and ic1 in the table, it needs to perform 4 matches to find the maximum value. No matter which mode is adopted, the technical problem faced is the same, and the original data format needs to be identified from the data disturbed by noise. The prior art does not provide a solution for the identification or decoding of these frame types.

发明内容 Contents of the invention

本发明要解决的技术问题在于如何从接收端解调器输出的数据译码出发送方实际发送的帧的类型是以下帧类型的哪一种:全速率SID_UPDATE、全速率SID_FIRST帧、全速率ON_SET帧、半速率SID_UPDATE帧、半速率SID_UPDATE_INH帧、半速率SID_FIRST_P1、半速率SID_FIRST_P2帧、半速率SID_FIRST_INH帧、半速率ONSET帧。换言之,本发明的目的是提供一种对不连续发送制式下的自适应多速率语音编码的译码方法。The technical problem to be solved by the present invention is how to decode the data output from the demodulator at the receiving end to find out which of the following frame types the frame type actually sent by the sender is: full rate SID_UPDATE, full rate SID_FIRST frame, full rate ON_SET frame, half-rate SID_UPDATE frame, half-rate SID_UPDATE_INH frame, half-rate SID_FIRST_P1, half-rate SID_FIRST_P2 frame, half-rate SID_FIRST_INH frame, half-rate ONSET frame. In other words, the object of the present invention is to provide a decoding method for adaptive multi-rate speech coding under the discontinuous transmission system.

本发明上述技术问题这样解决,构造一种对不连续发送制式下的自适应多速率语音编码的译码方法,包括以下步骤:The above-mentioned technical problem of the present invention is solved like this, constructs a kind of decoding method to the self-adaptive multi-rate speech coding under discontinuous transmission system, comprises the following steps:

A1)根据接收端解调器输出的信噪比SNR,计算门限值T;A1) Calculate the threshold value T according to the signal-to-noise ratio SNR output by the demodulator at the receiving end;

A2)根据所述信噪比SNR对解调器输出的软判决数据模式比特IM_D(n)限幅为IM_D(n)’;A2) according to the signal-to-noise ratio SNR, the soft-decision data mode bit IM_D(n) limit of the demodulator output is IM_D(n)';

A3)将待译码帧类型的识别模式IM中的一个负极性化为IM’;A3) Negatively polarize one of the identification modes IM of the frame type to be decoded into IM';

A4)将限幅后的含有N个比特的IM_D(n)’的一部分或全部与IM’的数据的一部分或全部进行相关运算,计算出相关度R;A4) A part or all of the IM_D(n)' containing N bits after the clipping is correlated with a part or all of the data of IM', and the correlation degree R is calculated;

A5)如果R>=T,则确定解调器输出的帧类型与待译码帧具有相同的类型;否则用另一个负极性化处理的识别模式IM’回到步骤A4),直到全部识别模式都计算过且相关度R小于门限值T则确定解调器输出的帧与所用模式IM对应的帧类型无关。A5) If R>=T, then determine that the frame type that the demodulator outputs has the same type as the frame to be decoded; Otherwise, return to step A4) with another identification mode IM' of negative polarization processing, until all identification modes If both are calculated and the correlation degree R is smaller than the threshold value T, it is determined that the frame output by the demodulator has nothing to do with the frame type corresponding to the mode IM used.

其中,将待译码帧类型的识别模式IM负极性化为IM’,是对组成IM的每个比特进行比特“0”变为“1”、“1”变为“-1”的转换,得到负极性识别模式IM’。Wherein, the negative polarity of the identification mode IM of the frame type to be decoded is changed to IM', which is to convert the bit "0" into "1" and "1" into "-1" for each bit of the IM, The negative polarity recognition pattern IM' is obtained.

其中,根据接收端解调器输出的信噪比SNR计算门限值T包括以下步骤:Wherein, calculating the threshold value T according to the signal-to-noise ratio SNR output by the demodulator at the receiving end includes the following steps:

1)计算SNR对应的可靠度p1) Calculate the reliability p corresponding to the SNR

p=10SNR/20/17p=10 SNR/20 /17

2)对计算出的可靠度p进行限幅,即超过0.25时取0.25;2) Limit the calculated reliability p, that is, take 0.25 when it exceeds 0.25;

3)根据可靠度p和IM_D(n)的位数N计算门限T=N*p*127。3) Calculate the threshold T=N*p*127 according to the reliability p and the number of bits N of IM_D(n).

其中,根据所述信噪比SNR对解调器输出的软判决数据模式比特IM_D(n)限幅为IM_D(n)’,包括以下步骤:Wherein, according to the signal-to-noise ratio SNR, the soft-decision data mode bit IM_D(n) clipping of the demodulator output is IM_D(n)', comprising the following steps:

1)设置允许幅度的最高值抖动Δ=p*128;1) Set the highest value jitter of the allowable range Δ=p*128;

2)如果IM_D(n)>128+Δ,调整IM_D(n)’=128+Δ;2) If IM_D(n)>128+Δ, adjust IM_D(n)'=128+Δ;

3)如果IM_D(n)<128-Δ,调整IM_D(n)’=128-Δ,其中p是SNR对应的可靠度。3) If IM_D(n)<128-Δ, adjust IM_D(n)'=128-Δ, where p is the reliability corresponding to SNR.

其中,所述相关运算为乘法运算。Wherein, the correlation operation is a multiplication operation.

在上述方法中,预先将信噪比SNR与门限值T的对应关系计算并存储在一个表内,每次通过SNR查找该表得到门限值T。In the above method, the corresponding relationship between the signal-to-noise ratio SNR and the threshold value T is calculated and stored in a table in advance, and the threshold value T is obtained by looking up the table through the SNR each time.

在上述方法中,所述类型识别模式包括以下九种:In the above method, the type identification modes include the following nine types:

1)全速率SID_UPDATE帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;1) The identification mode of the full-rate SID_UPDATE frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

2)全速率SID_FIRST帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;2) The identification mode of the full-rate SID_FIRST frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

3)全速率ON_SET帧有四种识别模式,分别由0x530f、0x3eb8、0x8863或0xe5d4重复至228比特而成;3) The full-rate ON_SET frame has four identification modes, which are formed by repeating 0x530f, 0x3eb8, 0x8863 or 0xe5d4 to 228 bits;

4)半速率SID_UPDATE帧的识别模式为1,0,1,1,0,0,0,0,1重复至212比特;4) The identification pattern of the half-rate SID_UPDATE frame is 1, 0, 1, 1, 0, 0, 0, 0, 1 repeated to 212 bits;

5)半速率SID_UPDATE_INH帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;5) The identification mode of the half-rate SID_UPDATE_INH frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

6)半速率SID_FIRST_P1帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;6) The identification pattern of the half-rate SID_FIRST_P1 frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

7)半速率SID_FIRST_P2帧有四种识别模式,分别由0x530f、0x3eb8、0x8863或0xe5d4重复至114比特而成;7) The half-rate SID_FIRST_P2 frame has four identification modes, which are formed by repeating 0x530f, 0x3eb8, 0x8863 or 0xe5d4 to 114 bits;

8)半速率SID_FIRST_INH帧的识别模式为1,0,1,1,0,0,0,0,1重复至212比特;8) The identification pattern of the half-rate SID_FIRST_INH frame is 1, 0, 1, 1, 0, 0, 0, 0, 1 repeated to 212 bits;

9)半速率ONSET帧有四种识别模式,分别由0x530f、0x3eb8、0x8863或0xe5d4重复至114比特而成。9) The half-rate ONSET frame has four identification modes, which are formed by repeating 0x530f, 0x3eb8, 0x8863 or 0xe5d4 to 114 bits.

实施本发明提供的在GSM系统中译码AMR DTX帧的方法,能够实现在GSM中,有效地从被噪声污染的数据中识别出所用的AMR的DTX帧的类型。Implementing the method for decoding AMR DTX frames in the GSM system provided by the present invention can effectively identify the type of AMR DTX frames used in GSM from the data polluted by noise.

具体实施方式 Detailed ways

为说明本发明方法的识别或译码的对象,对本发明需要译码/识别的特殊帧及识别模式说明如下:In order to illustrate the object of identification or decoding of the method of the present invention, the special frames and identification modes that need decoding/recognition of the present invention are described as follows:

1)全速率SID_UPDATE帧,识别模式为0,1,0,0,1,1,1,1,0重复至212比特;1) Full rate SID_UPDATE frame, the identification pattern is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

2)全速率SID_FIRST帧,识别模式为0,1,0,0,1,1,1,1,0重复至212比特;2) Full rate SID_FIRST frame, the identification pattern is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

3)全速率ON_SET帧,四种模式之一,由0x530f或0x3eb8或0x8863或0xe5d4重复至228比特而成;3) Full-rate ON_SET frame, one of four modes, consisting of 0x530f or 0x3eb8 or 0x8863 or 0xe5d4 repeated to 228 bits;

4)半速率SID_UPDATE帧,识别模式为1,0,1,1,0,0,0,0,1重复至212比特;4) Half-rate SID_UPDATE frame, the identification pattern is 1, 0, 1, 1, 0, 0, 0, 0, 1 repeated to 212 bits;

5)半速率SID_UPDATE_INH帧,识别模式为0,1,0,0,1,1,1,1,0重复至212比特;5) Half-rate SID_UPDATE_INH frame, the identification pattern is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

6)半速率SID_FIRST_P1帧,识别模式为0,1,0,0,1,1,1,1,0重复至212比特;6) Half-rate SID_FIRST_P1 frame, the identification pattern is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits;

7)半速率SID_FIRST_P2帧,四种模式之一,由0x530f或0x3eb8或0x8863或0xe5d4重复全114比特而成;7) Half-rate SID_FIRST_P2 frame, one of four modes, consisting of 0x530f or 0x3eb8 or 0x8863 or 0xe5d4 repeating all 114 bits;

8)半速率SID_FIRST_INH帧,识别模式为1,0,1,1,0,0,0,0,1重复至212比特;8) Half-rate SID_FIRST_INH frame, the identification pattern is 1, 0, 1, 1, 0, 0, 0, 0, 1 repeated to 212 bits;

9)半速率ONSET帧,四种模式之一,由0x530f或0x3eb8或0x8863或0xe5d4重复至114比特而成。9) Half-rate ONSET frame, one of four modes, consisting of 0x530f or 0x3eb8 or 0x8863 or 0xe5d4 repeated to 114 bits.

需要注意的是,识别模式相同的帧,其放置位置不同,这里假定已经从正确位置提取了数据。It should be noted that frames with the same recognition pattern are placed in different positions, and it is assumed that the data has been extracted from the correct position.

下面对按照本发明方法对不连续发送的上述类型的帧进行识别或译码的各个步骤详细说明如下:Below, each step of identifying or decoding the above-mentioned frames of the discontinuous transmission according to the method of the present invention is described in detail as follows:

步骤1:根据接收端解调器输出的信噪比SNR,计算门限值T。Step 1: Calculate the threshold value T according to the signal-to-noise ratio (SNR) output by the demodulator at the receiving end.

本发明的判决门限与噪声是关联的,换言之,本发明依据不同的噪声,确定不同的门限,即在门限与噪声关联前提下,在上述9种特殊帧的接收端,解调器可以输出一个用分贝数表示的信噪比SNR,本发明方法确定门限的方法就是根据解调得到的信噪比SNR,计算在这个信噪比下的门限值T。其过程如下:The judgment threshold of the present invention is associated with the noise. In other words, the present invention determines different thresholds based on different noises, that is, under the premise that the threshold is associated with the noise, at the receiving end of the above nine special frames, the demodulator can output a The signal-to-noise ratio (SNR) expressed in decibels, the method of the present invention to determine the threshold is exactly to calculate the threshold value T under the signal-to-noise ratio (SNR) according to the signal-to-noise ratio (SNR) obtained by demodulation. The process is as follows:

1)计算SNR对应的可靠度(此可靠度认为SNR13dB时可靠度约为0.25):1) Calculate the reliability corresponding to SNR (this reliability is considered to be about 0.25 when SNR13dB):

p=10SNR/20/17p=10 SNR/20 /17

2)对计算出的可靠度p进行限幅,即p超过0.25时取0.25;2) Limit the calculated reliability p, that is, take 0.25 when p exceeds 0.25;

3)根据可靠度p计算门限T:3) Calculate the threshold T according to the reliability p:

T=N*p*127,N为计算的总比特数目T=N*p*127, N is the total number of bits calculated

在具体实现中,门限的计算也可预先计算SNR与门限之间的关系,设置成一个表,每次需要时,只要用解调输出的SNR作为索引去查这个表,就可以直接得到对应的门限T。这样可以减少计算发明的时间开销。In the specific implementation, the calculation of the threshold can also pre-calculate the relationship between the SNR and the threshold, and set it into a table. Every time it is needed, as long as the SNR of the demodulation output is used as an index to check this table, the corresponding Threshold T. This reduces the time overhead of computing inventions.

步骤2:计算相关度Step 2: Calculate Relevance

解调器输出有关帧的软判决数据,一般为一串8bit带符号整数,极性为负极性,-128表示发送符号最接近“1”,127表示发送符号最接近“0”,0表示为“1”和“0”等概;计算相关度的细节如下:The demodulator outputs the soft decision data of the frame, which is generally a string of 8-bit signed integers with negative polarity. -128 means that the transmitted symbol is closest to "1", 127 means that the transmitted symbol is closest to "0", and 0 means "1" and "0" are equally probable; the details of calculating the correlation are as follows:

2-1)对软判决数据模式IMD(n)进行限幅,即根据所述信噪比SNR对解调器输出的软判决数据模式比特IM_D(n)限幅为IM_D(n)’;具体假设允许幅度的最高值抖动为:Δ=p*1272-1) Limiting the soft decision data mode IMD(n), that is, limiting the soft decision data mode bit IM_D(n) output by the demodulator according to the signal-to-noise ratio SNR to IM_D(n)'; specifically Assume that the highest value jitter of the allowable amplitude is: Δ=p*127

如果IM_D(n)>128+Δ  IM_D(n)’=128+ΔIf IM_D(n)>128+Δ IM_D(n)’=128+Δ

如果IM_D(n)<128-Δ  IM_D(n)’=128-ΔIf IM_D(n)<128-Δ IM_D(n)’=128-Δ

否则不变,即IM_D(n)’=IM_D(n)。Otherwise, it remains unchanged, that is, IM_D(n)'=IM_D(n).

2-2)将待译码帧类型的识别模式IM负极性化为IM’,即将待译码帧类型的识别模式IM中的“1”变为“-1”,“0”变为“1”;2-2) Negatively polarize the identification mode IM of the frame type to be decoded into IM', that is, the "1" in the identification mode IM of the frame type to be decoded is changed to "-1", and "0" is changed to "1" ";

  2-3)将限幅后的含有N个比特的IM_D(n)’的一部分或全部与该帧对应的识别模式IM’的数据的一部分或全部(<=N个)进行相乘,作相关运算,计算出相关度R=IM_D(n)’*IM’;2-3) Multiply part or all of the IM_D(n)' containing N bits after clipping with part or all of the data of the identification mode IM' corresponding to the frame (<=N) for correlation Calculate the degree of correlation R=IM_D(n)'*IM';

步骤3:根据门限和相关度进行DTX帧类型的判决Step 3: Determine the DTX frame type according to the threshold and correlation

依据前面得到的相关度计算结果R和计算或查表得到的门限T进行比较判决,判决方法如下:如果R>=T,则判决为数据和所比较的模式匹配,从而可以确定该帧类型为和该模式对应的帧;否则判决为非,即该帧类型不太可能为所用模式IM对应的帧。Compare and judge according to the correlation calculation result R obtained above and the threshold T obtained by calculation or table lookup. The judgment method is as follows: if R>=T, it is judged that the data matches the compared pattern, so that the frame type can be determined as The frame corresponding to the mode; otherwise, the judgment is negative, that is, the frame type is unlikely to be the frame corresponding to the mode IM used.

以下说明一个基于本发明方法的通用译码的处理流程The following illustrates the processing flow of a general decoding based on the method of the present invention

1)预先将准备识别的IM进行负极性化处理,识别模式包括:1) Negatively polarize the IM to be identified in advance, and the identification modes include:

0,1,0,0,1,1,1,1,0;1,0,1,1,0,0,0,0,1;1,1,1,0,0,1,0,1,1,0,0,0,1,1,0,1,0,0;0,0,0,1,1,0,1,0,0,1,1,1,0,0,1,0,1,1;以及16进制表示的0x530f,0x3eb8,0x8863,0xe5d4。0, 1, 0, 0, 1, 1, 1, 1, 0; 1, 0, 1, 1, 0, 0, 0, 0, 1; 1, 1, 1, 0, 0, 1, 0, 1,1,0,0,0,1,1,0,1,0,0; 0,0,0,1,1,0,1,0,0,1,1,1,0,0, 1, 0, 1, 1; and 0x530f, 0x3eb8, 0x8863, 0xe5d4 in hexadecimal notation.

2)根据信噪比SNR查表,得到门限值T;2) Look up the table according to the signal-to-noise ratio SNR to obtain the threshold value T;

3)根据信噪比SNR,对来自解调器输出的软判决数据模式比特IM_D(n)进行限幅,限幅为IM_D(n)’;3) According to the signal-to-noise ratio SNR, limit the soft decision data mode bit IM_D(n) output from the demodulator, and the limit is IM_D(n)';

4)计算相关度R=IM_D(n)’*IM’;4) Calculate correlation R=IM_D(n)'*IM';

5)如果R≥T,判断当前IM对应的帧类型为输出数据的帧类型,结束译码程序;否则用另一个IM’回到步骤4),直到全部IM’都计算过,此时说明当前门限值情况下无法译码或识别。5) If R≥T, judge that the frame type corresponding to the current IM is the frame type of the output data, and end the decoding procedure; otherwise, use another IM' to return to step 4), until all IM's have been calculated, and at this time the current It cannot be decoded or recognized under the threshold value.

以下以发送的数据帧为全速率SID_UPDATE为例,说明上述处理流程对一个特定编码的译码过程示例。所假定的数据帧为全速率SID_UPDATE,其对应的识别模式IM为0,1,0,0,1,1,1,1,0重复至212比特;假定已经预先将全部9种识别模式IM进行负极性化处理并存储起来;假定收到的部分数据为9个比特模式IM_D(9),每个比特模式为带符号位8位的二进制数,以下用十进制表示IM_D(9)为:39  -28  49  26  -46  -43  -42  -31  36;Taking the sent data frame as a full-rate SID_UPDATE as an example, an example of the decoding process of a specific code in the above processing flow is described below. The assumed data frame is a full-rate SID_UPDATE, and its corresponding identification mode IM is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits; it is assumed that all 9 identification modes IM have been performed in advance Negatively polarized and stored; assuming that the received part of the data is 9 bit patterns IM_D (9), each bit pattern is a binary number with 8 bits of signed bits, and the following decimal representation of IM_D (9) is: 39 - 28 49 26 -46 -43 -42 -31 36;

假定解调器输出的信噪比SNR为10dB,根据公式计算出p=0.186,N=9(假定计算9比特),计算出门限T=213(取整数);Assuming that the signal-to-noise ratio SNR of the demodulator output is 10dB, calculate p=0.186 according to the formula, N=9 (assuming calculation of 9 bits), calculate the threshold T=213 (integer);

对模式比特IM_D(9)进行限幅如下:The mode bit IM_D(9) is limited as follows:

39->32 49->32 46->32 43->32 42->32 36->32,其余不变;39->32 49->32 46->32 43->32 42->32 36->32, the rest remain unchanged;

得到限位后的IM_D(9)’32  -28  32  26  -32-32-32-31 32IM_D(9)'32 -28 32 26 -32-32-32-31 32 after getting the limit

对识别模式IM负极性化为IM’=1,-1,1,1,-1,-1,-1,-1,1Negatively polarize the recognition mode IM to IM'=1, -1, 1, 1, -1, -1, -1, -1, 1

计算相关度RCalculate the correlation R

=IM_D(9)’*IM(9)’=IM_D(9)'*IM(9)'

=32*1-28*(-1)+32*1+26*1-32*(-1)-32*(-1)-32*(-1)-31*(-1)+32*1=32*1-28*(-1)+32*1+26*1-32*(-1)-32*(-1)-32*(-1)-31*(-1)+32* 1

=277=277

由于,R>T所以作出收到的帧类型为全速率SID_UPDATE帧的判断。Since R>T, it is judged that the received frame type is a full-rate SID_UPDATE frame.

Claims (7)

1.一种对不连续发送制式下的自适应多速率语音编码的译码方法,其特征在于,包括以下步骤:1. a decoding method to adaptive multi-rate speech coding under the discontinuous transmission system, it is characterized in that, comprises the following steps: A1)根据接收端解调器输出的信噪比SNR,计算门限值T;A1) Calculate the threshold value T according to the signal-to-noise ratio SNR output by the demodulator at the receiving end; A2)根据所述信噪比SNR,对解调器输出的软判决数据模式比特IM_D(n)限幅为IM_D(n)’;A2) According to the signal-to-noise ratio SNR, the soft-decision data mode bit IM_D(n) limit output by the demodulator is IM_D(n)'; A3)将待译码帧的类型识别模式IM中的一个负极性化为IM’;A3) Negatively polarize one of the type identification modes IM of the frame to be decoded into IM'; A4)将限幅后的含有N个比特的IM_D(n)’的一部分或全部与IM’的数据的一部分或全部进行相关运算,计算出相关度R;A4) A part or all of the IM_D(n)' containing N bits after the clipping is correlated with a part or all of the data of IM', and the correlation degree R is calculated; A5)如果相关度R大于等于门限值T,则确定解调器输出的帧类型与待译码帧具有相同的类型,否则用另一个负极性化处理的识别模式IM’回到步骤A4),直到全部识别模式都计算过且相关度R小于门限值T则确定解调器输出的帧与所用模式IM对应的帧类型无关。A5) If the correlation degree R is greater than or equal to the threshold value T, then determine that the frame type output by the demodulator has the same type as the frame to be decoded, otherwise use another negatively polarized identification mode IM' to return to step A4) , until all the identification modes are calculated and the correlation R is less than the threshold value T, then it is determined that the frame output by the demodulator has nothing to do with the frame type corresponding to the mode IM used. 2.根据权利要求1所述方法,其特征在于,将待译码帧类型的识别模式IM负极性化为IM’的步骤,是对组成IM的每个比特进行比特“0”变为“1”、“1”变为“-1”的转换,得到负极性识别模式IM’。2. The method according to claim 1, characterized in that, the step of depolarizing the identification mode IM of the frame type to be decoded into IM' is to change the bit "0" to "1" for each bit forming IM ", "1" into "-1", and the negative polarity identification pattern IM' is obtained. 3.根据权利要求1所述方法,其特征在于,根据接收端解调器输出的信噪比SNR计算门限值T的步骤包括以下步骤:3. according to the described method of claim 1, it is characterized in that, the step of calculating threshold value T according to the signal-to-noise ratio SNR that receiver demodulator outputs comprises the following steps: 1)计算SNR对应的可靠度p1) Calculate the reliability p corresponding to the SNR p=10SNR/20/17p=10 SNR/20 /17 2)对计算出的可靠度p进行限幅,即超过0.25时取0.25;2) Limit the calculated reliability p, that is, take 0.25 when it exceeds 0.25; 3)根据可靠度p和IM_D(n)的位数N计算门限3) Calculate the threshold according to the reliability p and the number of digits N of IM_D(n) T=N*p*127。T=N*p*127. 4.根据权利要求1所述方法,其特征在于,根据所述信噪比SNR对解调器输出的软判决数据模式比特IM_D(n)限幅为IM_D(n)’的步骤,包括以下步骤:4. according to the described method of claim 1, it is characterized in that, the soft decision data mode bit IM_D (n) clipping of demodulator output is the step of IM_D (n) ' according to said signal-to-noise ratio SNR, comprising the following steps : 1)设置允许幅度的最高值抖动Δ=p*128;1) Set the highest value jitter of the allowable range Δ=p*128; 2)如果IM_D(n)>128+Δ,调整IM_D(n)’=128+Δ;2) If IM_D(n)>128+Δ, adjust IM_D(n)'=128+Δ; 3)如果IM_D(n)<128-Δ,调整IM_D(n)’=128-Δ,其中p是SNR对应的可靠度。3) If IM_D(n)<128-Δ, adjust IM_D(n)'=128-Δ, where p is the reliability corresponding to SNR. 5.根据权利要求1所述方法,其特征在于,所述相关运算为乘法运算。5. The method according to claim 1, wherein the correlation operation is a multiplication operation. 6.根据权利要求3所述方法,其特征在于,预先将信噪比SNR与门限值T的对应关系计算并存储在一个表内,每次通过SNR查找该表得到门限值T。6. The method according to claim 3, characterized in that the corresponding relationship between the signal-to-noise ratio (SNR) and the threshold value T is calculated and stored in a table in advance, and the threshold value T is obtained by looking up the table through the SNR each time. 7.根据权利要求1-6中任何一项所述方法,其特征在于,所述类型识别模式包括以下九种:7. The method according to any one of claims 1-6, wherein the type identification modes include the following nine types: 1)全速率SID_UPDATE帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;1) The identification mode of the full-rate SID_UPDATE frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits; 2)全速率SID_FIRST帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;2) The identification mode of the full-rate SID_FIRST frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits; 3)全速率ON_SET帧有四种识别模式,分别由0x530f、0x3eb8、0x8863或0xe5d4重复至228比特而成;3) The full-rate ON_SET frame has four identification modes, which are formed by repeating 0x530f, 0x3eb8, 0x8863 or 0xe5d4 to 228 bits; 4)半速率SID_UPDATE帧的识别模式为1,0,1,1,0,0,0,0,1重复至212比特;4) The identification pattern of the half-rate SID_UPDATE frame is 1, 0, 1, 1, 0, 0, 0, 0, 1 repeated to 212 bits; 5)半速率SID_UPDATE_INH帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;5) The identification mode of the half-rate SID_UPDATE_INH frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits; 6)半速率SID_FIRST_P1帧的识别模式为0,1,0,0,1,1,1,1,0重复至212比特;6) The identification pattern of the half-rate SID_FIRST_P1 frame is 0, 1, 0, 0, 1, 1, 1, 1, 0 repeated to 212 bits; 7)半速率SID_FIRST_P2帧有四种识别模式,分别由0x530f、0x3eb8、0x8863或0xe5d4重复至114比特而成;7) The half-rate SID_FIRST_P2 frame has four identification modes, which are formed by repeating 0x530f, 0x3eb8, 0x8863 or 0xe5d4 to 114 bits; 8)半速率SID_FIRST_INH帧的识别模式为1,0,1,1,0,0,0,0,1重复至212比特;8) The identification pattern of the half-rate SID_FIRST_INH frame is 1, 0, 1, 1, 0, 0, 0, 0, 1 repeated to 212 bits; 9)半速率ONSET帧有四种识别模式,分别由0x530f、0x3eb8、0x8863或0xe5d4重复至114比特而成。9) The half-rate ONSET frame has four identification modes, which are formed by repeating 0x530f, 0x3eb8, 0x8863 or 0xe5d4 to 114 bits.
CNB2005100328445A 2005-01-14 2005-01-14 Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System Expired - Fee Related CN100388824C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100328445A CN100388824C (en) 2005-01-14 2005-01-14 Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100328445A CN100388824C (en) 2005-01-14 2005-01-14 Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System

Publications (2)

Publication Number Publication Date
CN1805565A CN1805565A (en) 2006-07-19
CN100388824C true CN100388824C (en) 2008-05-14

Family

ID=36867351

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100328445A Expired - Fee Related CN100388824C (en) 2005-01-14 2005-01-14 Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System

Country Status (1)

Country Link
CN (1) CN100388824C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394225B (en) * 2007-09-17 2013-06-05 华为技术有限公司 Method and device for speech transmission
CN101609682B (en) * 2008-06-16 2012-08-08 向为 Encoder and method for self adapting to discontinuous transmission of multi-rate wideband
CN101609683B (en) * 2008-06-16 2012-08-08 向为 Encoder and method for self adapting to discontinuous transmission of multi-rate narrowband
WO2012162870A1 (en) * 2011-05-27 2012-12-06 富士通株式会社 Apparatus and method for joint decoding, method, apparatus and receiver for necessity judgment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020012330A1 (en) * 2000-06-29 2002-01-31 Serguei Glazko System and method for DTX frame detection
CN1398126A (en) * 2001-07-18 2003-02-19 华为技术有限公司 Method for implementing multi-language coding-decoding in universal mobile communication system
US20040006462A1 (en) * 2002-07-03 2004-01-08 Johnson Phillip Marc System and method for robustly detecting voice and DTX modes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020012330A1 (en) * 2000-06-29 2002-01-31 Serguei Glazko System and method for DTX frame detection
CN1398126A (en) * 2001-07-18 2003-02-19 华为技术有限公司 Method for implementing multi-language coding-decoding in universal mobile communication system
US20040006462A1 (en) * 2002-07-03 2004-01-08 Johnson Phillip Marc System and method for robustly detecting voice and DTX modes

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Digital cellular telecommunications system (Phase2+),Discontinuous Transmission (DTX)for Adaptive Multi-Rate(AMR) speech traffic channel. ETSI.ETSI TS 101 707 V7.5.0. 2000 *
基于静音检测的ITU.G.729算法. 郑洪英,郭东辉,黄国和,陈彩生.厦门大学学报,第41卷第4期. 2002 *

Also Published As

Publication number Publication date
CN1805565A (en) 2006-07-19

Similar Documents

Publication Publication Date Title
EP0669026B1 (en) Method and apparatus for erasing bad frames of information in a communication system
US8713414B2 (en) Method and apparatus for soft information transfer between constituent processor circuits in a soft-value processing apparatus
DE60129945D1 (en) DECODING SYSTEM AND METHOD FOR DIGITAL COMMUNICATION
WO2006126501A1 (en) Reception quality estimating apparatus, wireless communication system, and reception quality estimating method
JP2000516415A (en) Decoder using soft information output to minimize error rate
CA2341420C (en) Data transmission method, data transmission system, sending device and receiving device
WO2000013321A1 (en) Dynamically changing forward error correction and automatic request for repetition
JP2008535323A (en) Signal modulation format type detection
CN101689972B (en) Method and apparatus for indicating a temporary block flow using piggybacked ACK/NACK fields
US6732321B2 (en) Method, apparatus, and article of manufacture for error detection and channel management in a communication system
JPH10126387A (en) Bit error rate measurement device using Viterbi decoder
CN100388824C (en) Decoding Method for Adaptive Multi-Rate Speech Coding in Discontinuous Transmission System
CN105188075B (en) Voice quality optimization method and device, terminal
US6004028A (en) Device and method for receiving and reconstructing signals with improved perceived signal quality
AU2001294308B2 (en) Apparatus and method for detecting transmitting rate of turbo decoder
US6915474B2 (en) Turbo decoding apparatus and decoding iteration count controlling method in turbo decoding
JP5287711B2 (en) Demodulation method
JP4287778B2 (en) Communication quality determination apparatus and communication quality determination method
CN102104448B (en) Method and device for detecting coding rate of speech frames
JP2002501328A (en) Method and apparatus for coding, decoding and transmitting information using source control channel decoding
JP2008054235A (en) Modulation method determination device, reception device, modulation method determination method, and modulation method determination program
JP3285090B2 (en) Digital data decoder
CN1190090C (en) Method for judging phonetic frame effectiveness and correctness
CN111601342A (en) A bit error-based recovery method for erroneous data packets in low-speed wireless personal area networks
CN1129262C (en) Method for distributing number of code bits to signal sources or channels

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080514

Termination date: 20170114