CN102104448B - Method and device for detecting code rate of speech frame - Google Patents

Method and device for detecting code rate of speech frame Download PDF

Info

Publication number
CN102104448B
CN102104448B CN 201110070742 CN201110070742A CN102104448B CN 102104448 B CN102104448 B CN 102104448B CN 201110070742 CN201110070742 CN 201110070742 CN 201110070742 A CN201110070742 A CN 201110070742A CN 102104448 B CN102104448 B CN 102104448B
Authority
CN
China
Prior art keywords
frame
rate
constantly
code
cmi
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.)
Active
Application number
CN 201110070742
Other languages
Chinese (zh)
Other versions
CN102104448A (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 CN 201110070742 priority Critical patent/CN102104448B/en
Priority to CN201310131559.3A priority patent/CN103259622B/en
Publication of CN102104448A publication Critical patent/CN102104448A/en
Application granted granted Critical
Publication of CN102104448B publication Critical patent/CN102104448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method and device for detecting the code rate of a speech frame. The speech frame comprises a CMI time frame and a CMR time frame, and the CMI time frame and the CMR time frame are alternated. The method comprises the following steps: receiving the CMI time frame, wherein the CMI time frame is composed of ic codes and coded data of recursive systematic convolution codes (RSC); carrying out soft decoding on the ic codes to obtain code word decision in the sense of maximum likelihood (ML); obtaining degree of reliability in accordance with the code word decision; and determining the code rate of the speech frame based on the degree of reliability. In the method for detecting the code rate of the speech frame, the ic codes are not subjected to simple decoding, the ic soft decision decoding is used to obtain the degree of reliability of ML decoding results, and the code rate of the speech frame is determined by the degree of reliability. Although the channel quality is poorer, the reliability and the accuracy of the decoding results can be improved.

Description

Detect the method and apparatus of the code rate of speech frame
Technical field
The embodiment of the invention relates to wireless communication field, and more specifically, relates to the method and apparatus of the code rate that detects speech frame.
Background technology
According to 3GPP(3rd Generation Partnership Proiect; Third generation partnership project) agreement 45.003 regulations, GSM(Global System for Mobile Communications; Global system for mobile communications) AMR-NB(Adaptive Muti-Rate Narrow Band; When the arrowband rate adaptation) rate adaptation is opened, BTS(Base Transceiver Station; Base transceiver station) the ascending voice frame that receives is divided into CMI and the CMR moment, can be called CMI constantly frame and CMR moment frame at two frames that constantly receive.CMI and CMR constantly frame alternately occur, and constantly need to detect code rate at CMI, and CMR continues to use CMI code rate constantly constantly.This agreement provides coding in the band, so that the non-data-signal such as control signal and data are transmitted together.In CMI moment frame, 2 bit rate collection SEQ.XFER become 8 bits (AFS:Adaptive Full Rate Speech; The self adaptation full-speed voice) or 4 bits (AHS:Adaptive HalfRate Speech; The self adaptation half-rate speech) code word is called the ic code to them here.Form such as following table 1 and table 2:
Table 1:AFS coded format
The code word of 8 bit ic codes RSC speech frame coded data
Table 2:AHS coded format
The code word of 4 bit ic codes RSC speech frame coded data
Wherein RSC represents recursive systematic convolutional code (Recursive Systematic ConvolutionalCodes).
CMI generally deciphers ic first after constantly receiving data.Decode results is the index of rate set, then concentrates from speed and finds out corresponding speed.With this speed speech frame coded data is afterwards made corresponding channel decoding.Suppose that rate set is for { 0,2,4,7} is corresponding to speed { 4.75k, 5.9k, 7.4k, 12.2k}.If decode results is 3, the speech frame rates testing result is exactly " 4 " so.Then use speed 4(7.4k) corresponding RSC code does channel decoding to the speech frame coded data.
The data format of the CMR moment frame that CMR receives constantly is also the same with upper table, but ic code word wherein is other implications, the code rate of speech data after not representing.Frame is identical constantly with previous CMI for the code rate of agreement regulation CMR moment frame.
Prior art is deciphered the ic code that CMI constantly comprises in the frame, obtains the sequence number of rate set, and with the indicated speed of this sequence number in the rate set as present frame rate detection result, i.e. the code rate of this CMI moment frame.CMR continues to use CMI code rate constantly constantly.
The RSC code of the low code check of AMR low-bit-rate speech coding data utilization is encoded.When channel quality was relatively poor, if rate detection is correct, vocoded data still may be by correct decoding so.But actual conditions are that ic code protection is inadequate, so that the rate detection error probability is larger, cause vocoded data to be deciphered by mistake, thereby cause lost speech frames.Here the ic code that has only utilized agreement to provide is not done rate detection with other any supplementarys, when channel quality is relatively poor, detects poor-performing.And CMR constantly frame continues to use the constantly speed of frame of a CMI, and constantly frame detection of CMI makes mistakes and can cause next CMR moment frame also to be made mistakes so, and a mistake is exactly 2 frames.
Therefore, when channel quality was relatively poor, it is larger that the ic bit rate detects error probability, causes the voice number encoder according to by wrong decoding, causes lost speech frames.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus that detects the code rate of speech frame.
According to an aspect, the embodiment of the invention provides a kind of method that detects the code rate of speech frame, wherein this speech frame comprises CMI alternately constantly frame and CMR moment frame, and the method comprises: receive constantly frame of CMI, this CMI constantly frame comprises ic code and RSC coded data; The ic code is carried out soft decoding, obtain the codeword decision under the maximum likelihood meaning; Obtain degree of reiability according to codeword decision; Determine the code rate of speech frame based on degree of reiability.
According on the other hand, the embodiment of the invention provides a kind of method that detects the code rate of speech frame, wherein this speech frame comprises CMI alternately constantly frame and CMR moment frame, and the method comprises: receive constantly frame of CMI, this CMI constantly frame comprises ic code and RSC coded data; According to previous CMI frame or the CMR CMI that receives of the reliable rate estimates of the frame present rate of frame constantly constantly constantly; When estimated present rate is low rate, based on the system bits in the RSC coded data, determines whether and to distinguish the low rate in the AFS rate set; When determining to distinguish the low rate in the AFS rate set, with the low rate distinguished as code rate.
According on the other hand, the embodiment of the invention provides a kind of method that detects the code rate of speech frame, and wherein this speech frame comprises constantly frame and CMR frame constantly of CMI alternately, and the method comprises: receive constantly frame of CMR, this CMR constantly frame comprises the RSC coded data; According to previous CMI frame or the CMR CMR that receives of the reliable rate estimates of the frame present rate of frame constantly constantly constantly; When estimated present rate is low rate, based on the system bits in the RSC coded data, determines whether and to distinguish the low rate in the AFS rate set; When determining to distinguish the low rate in the AFS rate set, with the low rate distinguished as code rate.
According on the other hand, the embodiment of the invention provides a kind of equipment that detects the code rate of speech frame, and wherein this speech frame comprises CMI alternately constantly frame and CMR moment frame, and this equipment comprises: receiving element, be used for receiving constantly frame of CMI, this CMI constantly frame comprises ic code and RSC coded data; Decoding unit is used for the ic code is carried out soft decoding, obtains the codeword decision under the maximum likelihood meaning; Metric element is used for obtaining degree of reiability according to codeword decision; Determining unit is for the code rate of determining speech frame based on degree of reiability.
According on the other hand, the embodiment of the invention provides a kind of equipment that detects the code rate of speech frame, and wherein this speech frame comprises CMI alternately constantly frame and CMR moment frame, and this equipment comprises: receiving element, be used for receiving constantly frame of CMI, this CMI constantly frame comprises ic code and RSC coded data; Estimation unit is used for frame or the CMR CMI that receives of the reliable rate estimates of the frame present rate of frame constantly constantly constantly according to previous CMI; Discrimination unit is used for based on the system bits in the RSC coded data, determining whether and distinguishing the low rate in the AFS rate set when estimated present rate is low rate; Determining unit is used for when determining to distinguish the low rate of AFS rate set, with the low rate distinguished as code rate.
According on the other hand, the embodiment of the invention provides a kind of equipment that detects the code rate of speech frame, and wherein this speech frame comprises CMI alternately constantly frame and CMR moment frame, and this equipment comprises: receiving element, be used for receiving constantly frame of CMR, this CMR constantly frame comprises the RSC coded data; Estimation unit is used for frame or the CMR CMR that receives of the reliable rate estimates of the frame present rate of frame constantly constantly constantly according to previous CMI; Discrimination unit is used for based on the system bits in the RSC coded data, determining whether and distinguishing the low rate in the AFS rate set when estimated present rate is low rate; Determining unit is used for when determining to distinguish the low rate of AFS rate set, with the low rate distinguished as code rate.
The method of the code rate of the detection speech frame of the embodiment of the invention is not that the ic code is simply deciphered, and obtain maximum-likelihood decoding result's degree of reiability by the ic Soft decision decoding, and determine the code rate of speech frame by degree of reiability, even when channel quality is relatively poor, also can improve reliability and the accuracy of decode results.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow diagram according to the code rate detection method of the speech frame of the embodiment of the invention;
Fig. 2 is the schematic flow diagram according to the code rate detection method of the speech frame of the embodiment of the invention;
Fig. 3 is the schematic flow diagram according to the method for the low rate of the differentiation rate set of the embodiment of the invention;
Fig. 4 is the schematic flow diagram according to the code rate detection method of the speech frame of the embodiment of the invention;
Fig. 5 is the schematic flow diagram according to the code rate detection method of the speech frame of the embodiment of the invention;
Fig. 6 is the schematic flow diagram according to the code rate detection method of the speech frame of the embodiment of the invention;
Fig. 7 is the schematic flow diagram according to the code rate detection method of the speech frame of the embodiment of the invention;
Fig. 8 is the schematic flow diagram according to the example of the code rate detection method of the embodiment of the invention;
Fig. 9 is the schematic block diagram according to the equipment of the code rate of the detection speech frame of the embodiment of the invention;
Figure 10 is the schematic block diagram according to the equipment of the code rate of the detection speech frame of the embodiment of the invention;
Figure 11 is the schematic block diagram according to the equipment of the code rate of the detection speech frame of the embodiment of the invention;
Figure 12 is the schematic block diagram according to the equipment of the code rate of the detection speech frame of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The ic bit rate detects the larger problem of error probability when channel quality is relatively poor in the prior art, the embodiment of the invention one of can be in the following manner or the combination between them, improves reliability and accuracy that code rate detects: the maximum-likelihood decoding result's that the ic Soft decision decoding obtains degree of reiability method; Utilize RSC coded data system bits characteristic, the low rate in the AFS rate set is distinguished; Utilize the constantly reliable Rate decision result of previous CMI or CMR to estimate current time speed.
Fig. 1 is the schematic flow diagram according to the method 100 of the code rate of the detection speech frame of the embodiment of the invention.As mentioned above, speech frame comprises CMI alternately constantly frame and CMR moment frame.
As shown in Figure 1, at S110, receive constantly frame of CMI.Wherein as above shown in the table 1, this CMI constantly frame comprises ic code and RSC coded data.
Then at S120, the ic code is carried out soft decoding, obtain the codeword decision under the maximum likelihood meaning.Can obtain codeword decision by existing maximum likelihood soft decoding.Codeword decision can comprise the optimum code word under the maximum likelihood meaning, also may further include corresponding suboptimum code word.The soft value that receives in the soft value sequence can represent the likelihood logarithm ratio, and namely this bit is that 0 probability P (0) is 1 probability P (1) divided by this bit, then gets take 2 logarithms the end of as: Log 2[P (0)/P (1)].
Obtain after the codeword decision, at S130, obtain degree of reiability according to codeword decision.The embodiment of the invention can obtain degree of reiability in several ways.For example, in the situation that consider the path optimum, can calculate and receive soft value sequence and the dot product (the first dot product) of optimum code word and the dot product (the second dot product) of the soft value sequence of reception and suboptimum code word, and with the difference between the first dot product and the second dot product as degree of reiability.Difference between two dot products is larger, and namely degree of reiability is larger, and then decode results is more reliable.The degree of reiability that the embodiment of the invention adopts is not limited to these examples, as long as it can represent the reliability of decode results.For example, can also adopt the average BER(Bit Error of bit Rate; Bit error rate) as degree of reiability, this degree of reiability is that mean value with soft value absolute value is as tolerance.
Obtain then can at S140, determine the code rate of speech frame based on this degree of reiability after the degree of reiability.For example, when degree of reiability is higher than a certain predetermined threshold, can determine that the corresponding speed of above-mentioned optimum code word is the code rate of this CMI moment frame.
Like this, the code rate detection method 100 of the embodiment of the invention is not that the ic code is simply deciphered, and obtain maximum-likelihood decoding result's degree of reiability by the ic Soft decision decoding, and determine the code rate of speech frame by degree of reiability, even when channel quality is relatively poor, also can improve reliability and the accuracy of decode results.
According to one embodiment of present invention, above-mentioned detection method capable of being combined 100 and utilize previous CMI or the constantly reliable Rate decision result of CMR estimates the method for current time speed.Fig. 2 is the schematic flow diagram of method 200 of code rate of detection speech frame that an embodiment of such combination is shown.
The method 200 of Fig. 2 can be for CMI moment frame.As shown in Figure 2, the S220 of method 200 and S230 can be respectively with reference to S120 and S130 in the method 100 of figure 1.That is, among the S220 of method 200, the ic code is carried out soft decoding, obtain the codeword decision under the maximum likelihood meaning.Then at S230, obtain degree of reiability according to codeword decision.
Method 200 adopts the mode that degree of reiability and thresholding are compared.At S240, determine whether degree of reiability is higher than predetermined threshold.When if definite degree of reiability is higher than thresholding among the S240 (branch's "Yes"), then at S250, with the code rate of the corresponding speed of optimum code word in the codeword decision as this CMI moment frame, detection is finished.
Otherwise, when if definite degree of reiability is less than or equal to thresholding among the S240 (branch's "No"), then at S260, according to previous CMI constantly frame or CMR constantly the CMI that receives of the reliable rate estimates of frame the present rate of frame is as its code rate constantly, detection is finished.The general smoothing filter that exists channel quality of AMR rate adaptation algorithm, and agreement regulation code rate can not be striden the factors such as speed adjustment, (previous CMI constantly frame or CMR constantly the speed of frame) is identical so that the speed of the speech frame that the current speech frame rates that receives probably receives constantly with previous CMI in the practical application, or identical with adjacent speed in its rate set.Utilize this characteristic, present rate can be estimated with the speed of previous frame.
Like this, method 200 can be utilized speed corresponding to optimum code word or previous reliable Rate decision result, and as the coding rate testing result, all the simple decoded result than ic code has higher accuracy and reliability.
Fig. 3 is the schematic flow diagram according to the method 300 of the code rate of the detection speech frame of the embodiment of the invention.As mentioned above, speech frame comprises CMI alternately constantly frame and CMR moment frame.
Method 300 is for CMI moment frame, on the basis of utilization according to the speed of the current C MI moment frame of the reliable rate estimates of previous CMI moment frame or CMR moment frame, further combined with RSC coded data system bits characteristic, low rate in the AFS rate set is distinguished, obtained more reliable code rate testing result.
At the S310 of method 300, receive constantly frame of CMI, as above shown in the table 1, this CMI constantly frame comprises ic code and RSC coded data.At S320 according to previous CMI frame or the CMR CMI that receives of the reliable rate estimates of the frame present rate of frame (CMI that is just detecting at present is frame constantly) constantly constantly constantly.
Then at S330, when estimated present rate is low rate, when present rate more may be for low rate, then based on the system bits in the RSC coded data, determines whether and to distinguish the low rate in the AFS rate set in other words.For example, when the code rate that constantly detects as a upper CMI is low rate (for example, 4.75k or 5.9k etc.), because the speed adjustment has certain stability, probably with before speed is identical for the present rate of current C MI moment frame, so can think that current C MI moment frame may be in low rate.In the situation that channel quality is relatively poor, low rate can be used manyly.When the AFS rate set is selected, general totally 4 speed, low 2 speed adopt 2 among 4.75k ~ 6.7k.Illustrated AMR rate set for example 0,2,4,7}, corresponding to 4.75k, and 5.9k, 7.4k, 12.2k}, low rate is exactly 4.75k and 5.9k so.2 system bits are arranged behind these low rate codings, are the redundancy encoding positions of the input data before the coding.For example, for low rate 4.75k, according to 3GPP TS(TechnicalSpecification; Technical specification) 45.003, carry out the coded data that the RSC coding produces 5 bits from 1 bit input data, the 4th, 5 of this coded data is the redundancy encoding of 1 bit input data, namely the bit on these two is got identical symbol.Therefore the 4th, 5 of the coded data corresponding with 4.75k is exactly " system bits " of these rate coding data, and all the other positions of this coded data are check digit.For example, for low rate 5.9k, carry out the coded data that the RSC coding produces 4 bits from 1 bit input data.The the 3rd, 4 of the coded data corresponding with 5.9k is system bits, and other positions are check digit.Even when channel quality is relatively poor, most of corresponding bit also can be got identical symbol in these system bits.And as mentioned above, the position corresponding to the system bits place of the different coding data of different low rates has more different.The embodiment of the invention can be utilized this system bits characteristic of RSC coded data, and the low rate in the AFS rate set is distinguished.
Fig. 4 illustrates the flow chart of an example of method (S330) of distinguishing the low rate of AFS rate set according to the embodiment of the invention.As shown in Figure 4, at S332, the system bits corresponding with the low rate in the AFS rate set in the comparison RSC coded data.For example, for speed 4.75k, comparison the 4th, 5 of coded data; For 5.9k, comparison the 3rd, 4 of coded data.
Because above-mentioned position characteristic and the redundancy properties of system bits, if observe according to correct speed, the number of times that 2 system potential energies are compared can be obviously more.In other words, according to the example that provides above, if the successful number of times of the 4th, 5 of coded data comparison is obviously more, then can distinguish this coded data corresponding to the low rate of 4.75k.Otherwise, if the successful number of times of the 3rd, 4 of coded data comparison is obviously more, then can distinguish this coded data corresponding to the low rate of 5.9k.
Therefore, at S334, the successful number of times of register system position comparison.Counter can be set, the comparison number of success of the corresponding system position of each low rate is counted.Then at S336, then can according to the successful number of times of system bits comparison, determine whether and to distinguish low rate.For example, can adopt and predetermined threshold mode relatively.According to top example, when the 4th, 5 the successful number of times of comparison of coded data reaches this thresholding, then to determine can distinguish low rate, the low rate of distinguishing is 4.75k.Otherwise, when the 3rd, 4 the successful number of times of comparison of coded data reaches this thresholding, then also determine can distinguish low rate, but the low rate that distinguish this moment is 5.9k.
After corresponding thresholding was set like this, if can make differentiation to low rate, the differentiation result who then obtains can be very reliable.
Get back to Fig. 3, then at the S340 of method 300, when determining to distinguish the low rate in the AFS rate set, with the low rate distinguished as code rate.
Method 300 according to the detection code rate of the embodiment of the invention, utilize the system bits characteristic of RSC coded data, low rate in the AFS rate set is distinguished, and the low rate of distinguishing is defined as the constantly code rate of frame of current C MI, even when channel quality is relatively poor, also can improve reliability and the accuracy of decode results.
The embodiment of the invention can also constitutional diagram 1 method 100 and the method 300 of Fig. 3, further improve the quality of decode results.Fig. 5 is the schematic flow diagram of the code rate detection method 500 of combination.Method 500 is for the CMI that comprises ic code and RSC coded data frame constantly, needs 2 low rates in the AFS rate set to satisfy the constraint of said system position characteristic.
The S510 of method 500 is similar to the S120 of Fig. 1, and the ic code is carried out soft decoding, obtains the codeword decision under the maximum likelihood meaning.S515 is similar to the S320 of Fig. 3, according to previous CMI frame or the CMR CMI that just detecting at present of the reliable rate estimates of the frame present rate of frame constantly constantly constantly.
At S520, method 500 judges that estimated present rate more may be two-forty or low rate.When being judged as present rate among the S520 more may be for two-forty the time (branch's "Yes"), then at S525, the optimum code word in the codeword decision that obtains with the maximum likelihood soft decoding is as the current C MI code rate of frame constantly, and detection is finished.Two-forty general proxy is channel quality preferably, and the result that adopt the ic soft decoding this moment so that detection accuracy is suitable with the baseline performance, can not introduce negative gain as testing result.
On the other hand, if S520 is judged as present rate more may be for low rate the time (branch's "No"), then method 500 forwards S530 to.S530 is similar to the S330 among Fig. 3, based on the system bits in the RSC coded data, the low rate in the AFS rate set is distinguished.Then at S535, can judgement make differentiation.
Be judged as in S535 in the time of distinguishing in the low rate of AFS rate set (branch's "Yes"), the low rate of distinguishing is defined as the constantly code rate of frame of current C MI, detection is finished.
On the other hand, when S535 is judged as (branch's "No") can not distinguish the time, then method 500 forwards S545 to, the degree of reiability of the method 200(ic code by Fig. 2) detect code rate.Subsequent process S545, S550, S555, S560 can be identical with the S230-S260 of Fig. 2, with optimum code word or the present rate by previous rate estimates as the current C MI code rate of frame constantly.For avoiding repetition, repeat no more.
The method 500 of the embodiment of the invention is utilized RSC coded data system bits characteristic, can distinguish the low rate in the AFS rate set, if can make differentiation, then distinguishes the result very credible.Under the relatively poor scene of channel quality, low rate is used more, and the method 500 is used together in conjunction with ic soft decoding degree of reiability, so that rate detection accuracy and reliability have further improved.And at channel quality preferably in the situation, 500 of the methods of the embodiment of the invention result of ic soft decoding like this so that detection accuracy is suitable with the baseline performance, can not introduce negative gain.
Replacedly, can make amendment to method 500, further consider the situation that channel quality degenerates fast.Fig. 6 is the schematic flow diagram that amended code rate detection method 600 is shown.S510-S520 in the method 500 of the S610-S620 of method 600 and S630-S660 and Fig. 5 and S530-S560 are corresponding respectively, for avoiding repetition, repeat no more.
In method 600, different from the S525 of Fig. 5, when in S620, judging more (branch's "Yes") may be for two-forty the time, then forward S625 to, the degree of reiability of the method 200(ic code by Fig. 2) detect code rate.Subsequent process S625, S670, S675, S680 can be identical with the S230-S260 of Fig. 2, with optimum code word or the present rate by previous rate estimates as the current C MI code rate of frame constantly.For avoiding repetition, repeat no more.
Generally in S620, judge when present rate more may be for two-forty, illustrate that channel quality is better.But the situation that exists channel quality to degenerate fast subsequently causes ic soft decoding error probability higher.Method 600 according to the embodiment of the invention is considered this kind situation, so introduce ic soft decoding degree of reiability, utilizes previous rate estimates present rate, in the situation that the channel sudden change obtains more reliable rate detection result.
Method 300 recited above is mainly in CMI frame constantly.The embodiment of the invention also can be applied to constantly frame of CMR similarly.Fig. 7 is the schematic flow diagram according to the method 700 of the code rate of the detection speech frame of the embodiment of the invention.As mentioned above, speech frame comprises CMI alternately constantly frame and CMR moment frame.
Method 700 is for CMR moment frame, on the basis of utilization according to the speed of the current C MR moment frame of the reliable rate estimates of previous CMI moment frame or CMR moment frame, further combined with RSC coded data system bits characteristic, low rate in the AFS rate set is distinguished, obtained more reliable code rate testing result.
At the S710 of method 700, receive constantly frame of CMR, as above shown in the table 2, this CMR constantly frame comprises the RSC coded data.CMR constantly frame also can comprise own ic code, but the presentation code speed not of the ic code in the CMR moment frame.
Then at S720 according to previous CMI frame or the CMR CMR that receives of the reliable rate estimates of the frame present rate of frame (CMR that is just detecting at present is frame constantly) constantly constantly constantly.
Then at S730, when estimated present rate is low rate, when present rate more may be for low rate, then based on the system bits in the RSC coded data, determines whether and to distinguish the low rate in the AFS rate set in other words.The S330 that S730 can be similar to Fig. 3 carries out.
Then at the S740 of method 700, when determining to distinguish the low rate in the AFS rate set, with the low rate distinguished as the current C MR code rate of frame constantly.
Method 700 according to the detection code rate of the embodiment of the invention, utilize the system bits characteristic of RSC coded data, low rate in the AFS rate set is distinguished, and the low rate of distinguishing is defined as the constantly code rate of frame of current C MR, even when channel quality is relatively poor, also can improve reliability and the accuracy of decode results.And the method 700 of the embodiment of the invention detects the code rate of CMR moment frame separately, rather than simply continues to use the constantly code rate of frame of last CMI.Therefore, even in the situation that constantly frame detection of it previous CMI makes mistakes, current CMR still may detect correct constantly.Like this, improved the constantly detection accuracy of frame of CMR, reduced continuous 2 frames and detected the situation of makeing mistakes.
Fig. 8 illustrates to detect the constantly schematic flow diagram of an object lesson 800 of the method for the code rate of frame of CMR.As shown in Figure 8, the S815 of method 800 is corresponding to the S720 of Fig. 7, according to previous CMI frame or the CMR CMR that receives of the reliable rate estimates of the frame present rate of frame (CMR that is just detecting at present is frame constantly) constantly constantly constantly.
At S820, method 800 judges that estimated present rate more may be two-forty or low rate.When being judged as present rate among the S820 more may be for two-forty the time (branch's "Yes"), expression channel quality this moment is better, and then at S825, the present rate that will estimate in S815 is defined as the constantly code rate of frame of current C MR.
On the other hand, if S820 is judged as present rate more may be for low rate the time (branch's "No"), then method 800 forwards S830 to.S830 is similar to the S730 among Fig. 7, based on the system bits in the RSC coded data low rate in the AFS rate set is distinguished.Then judge at S735 and can make differentiation.
Be judged as in S835 in the time of distinguishing in the low rate of AFS rate set (branch's "Yes"), the low rate of distinguishing is defined as the constantly code rate of frame of current C MI, detection is finished.
On the other hand, when S835 is judged as (branch's "No") can not distinguish the time, then method 800 forwards S845 to.S845 and S825 are similar, and the present rate that will estimate in S815 is defined as the constantly code rate of frame of current C MR.
Therefore, even in the situation that it previous CMI constantly frame detect and make mistakes, guarantee also that according to the method 800 of the embodiment of the invention current CMR still may detect constantly correct.Like this, improved the constantly detection accuracy of frame of CMR, reduced continuous 2 frames and detected the situation of makeing mistakes.
Method 700 and 800 according to the embodiment of the invention also can make up foregoing method 100-600 use, each CMI moment frame and CMR moment frame is all detected, thereby improve the quality of the code rate detection of whole speech frame.
The equipment of code rate that can be by detecting speech frame is realized the embodiment of the invention.Fig. 9 is the schematic block diagram according to the equipment 900 of the code rate of the detection speech frame of the embodiment of the invention.As mentioned above, speech frame comprises CMI alternately constantly frame and CMR moment frame.
As shown in Figure 9, equipment 900 comprises: receiving element 910, be used for receiving constantly frame of CMI, and this CMI constantly frame comprises ic code and RSC coded data; Decoding unit 920 is used for the ic code is carried out soft decoding, obtains the codeword decision under the maximum likelihood meaning; Metric element 930 is used for obtaining degree of reiability according to codeword decision; Determining unit 940 is for the code rate of determining speech frame based on degree of reiability.Can carry out respectively each process of said method 100 according to each assembly of the equipment 900 of the embodiment of the invention, for avoiding repetition, repeat no more.For example, metric element 930 can be used for calculating the first dot product that receives soft value sequence and optimum code word, calculates the second dot product that receives soft value sequence and suboptimum code word, and with the difference of the first dot product and the second dot product as degree of reiability.
In addition, determining unit 940 can be used for when degree of reiability is equal to or less than thresholding, according to previous CMI constantly frame or CMR constantly the CMI that receives of the reliable rate estimates of frame constantly the present rate of frame as the current C MI code rate of frame constantly.
Like this, the code rate checkout equipment 900 of the embodiment of the invention is not that the ic code is simply deciphered, and obtain maximum-likelihood decoding result's degree of reiability by the ic Soft decision decoding, and determine the code rate of speech frame by degree of reiability, even when channel quality is relatively poor, also can improve reliability and the accuracy of decode results.
Figure 10 is the schematic block diagram according to the equipment 1000 of the code rate of the detection speech frame of the embodiment of the invention.As mentioned above, speech frame comprises CMI alternately constantly frame and CMR moment frame.
As shown in figure 10, equipment 1000 comprises: receiving element 1010, be used for receiving constantly frame of CMI, and this CMI constantly frame comprises ic code and RSC coded data; Estimation unit 1020 is used for frame or the CMR CMI that receives of the reliable rate estimates of the frame present rate of frame constantly constantly constantly according to previous CMI; Discrimination unit 1030 is used for based on the system bits in the RSC coded data, determining whether and distinguishing the low rate in the AFS rate set when estimated present rate is low rate; Determining unit 1040 is used for when determining to distinguish the low rate of AFS rate set, with the low rate distinguished as the current C MI code rate of frame constantly.Can carry out respectively each process of said method 300 according to each assembly of the equipment 1000 of the embodiment of the invention, for avoiding repetition, repeat no more.For example, discrimination unit 1030 is used for the comparison RSC coded data system bits corresponding with the low rate in the AFS rate set, and successful number of times is compared in the register system position, and determines whether and can distinguish low rate according to the successful number of times of system bits comparison.
Equipment 1000 according to the detection code rate of the embodiment of the invention, utilize the system bits characteristic of RSC coded data, low rate in the AFS rate set is distinguished, and the low rate of distinguishing is defined as the constantly code rate of frame of current C MI, even when channel quality is relatively poor, also can improve reliability and the accuracy of decode results.
Code rate checkout equipment 900 and 1000 uses capable of being combined according to the embodiment of the invention.Figure 11 shows the schematic block diagram according to the equipment 1100 of the code rate of the detection speech frame of the embodiment of the invention.As mentioned above, speech frame comprises CMI alternately constantly frame and CMR moment frame.
As shown in figure 11, equipment 1100 can comprise receiving element 1010, estimation unit 1020 and the discrimination unit 1030 of equipment 1000 among Figure 10.
Equipment 1100 also comprises determining unit 1140.This determining unit 1140 comprises the function of the determining unit 1040 of equipment 1000, namely be used for when determining to distinguish the low rate of AFS rate set, with the low rate distinguished as the current C MI code rate of frame constantly.。
In addition, equipment 1100 also can comprise decoding unit 920 and the metric element 930 in the equipment 900 of Fig. 9.Decoding unit 920 is used for the ic code is carried out soft decoding, obtains the codeword decision under the maximum likelihood meaning, and metric element 930 is used for obtaining degree of reiability according to codeword decision.
In the case, determining unit 1140 also is used for determining based on degree of reiability the code rate of speech frame.
Like this, code rate checkout equipment 1100 according to the embodiment of the invention can be carried out said method 500 and 600, utilizes RSC coded data system bits characteristic, can distinguish the low rate in the AFS rate set, if can make differentiation, then distinguish the result very credible.Under the relatively poor scene of channel quality, low rate is used more, and this equipment 1100 uses together in conjunction with ic soft decoding degree of reiability, so that rate detection accuracy and reliability have further improved.
Figure 12 is the schematic block diagram according to the equipment 1200 of the code rate of the detection speech frame of the embodiment of the invention.As mentioned above, speech frame comprises CMI alternately constantly frame and CMR moment frame.As shown in figure 12, equipment 1200 comprises: receiving element 1210, be used for receiving constantly frame of CMR, and this CMR constantly frame comprises the RSC coded data; Estimation unit 1220 is used for frame or the CMR CMR that receives of the reliable rate estimates of the frame present rate of frame constantly constantly constantly according to previous CMI; Discrimination unit 1230 is used for based on the system bits in the RSC coded data, determining whether and distinguishing the low rate in the AFS rate set when estimated present rate is low rate; Determining unit 1240 is used for when determining to distinguish the low rate of AFS rate set, with the low rate distinguished as the current C MR code rate of frame constantly.Each assembly according to the equipment 1200 of the embodiment of the invention can be carried out respectively each process of said method 700 and 800, for avoiding repetition, repeats no more.For example, discrimination unit 1230 is used for the comparison RSC coded data system bits corresponding with the low rate in the AFS rate set, and successful number of times is compared in the register system position, and determines whether and can distinguish low rate according to the successful number of times of system bits comparison.When determining unit 1240 also is used in estimated present rate and is two-forty or when determining to distinguish the low rate in the AFS rate set, the present rate that estimation unit 1220 is estimated is as the current C MR code rate of frame constantly.
According to the equipment 1200 of the detection code rate of the embodiment of the invention, separately to CMR constantly the code rate of frame detect, rather than simply continue to use the constantly code rate of frame of last CMI.Therefore, even in the situation that constantly frame detection of it previous CMI makes mistakes, current CMR still may detect correct constantly.Like this, improved the constantly detection accuracy of frame of CMR, reduced continuous 2 frames and detected the situation of makeing mistakes.
Equipment 1200 according to the embodiment of the invention also can make up foregoing equipment 900-1100 use, each CMI moment frame and CMR moment frame is all detected, thereby improve the quality of the code rate detection of whole speech frame.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, composition and the step of each example described in general manner according to function in the above description.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
Although illustrated and described some embodiments of the present invention, it will be understood by those skilled in the art that without departing from the principles and spirit of the present invention, can carry out various modifications to these embodiment, such modification should fall within the scope of the present invention.

Claims (5)

1. a method that detects the code rate of speech frame is characterized in that, described speech frame comprises code rate indication CMI moment frame and code rate request CMR moment frame alternately, and described method comprises:
Receive constantly frame of CMI, described CMI constantly frame comprises ic code and recursive system convolution RSC coded data;
Described ic code is carried out soft decoding, obtain the codeword decision under the maximum likelihood meaning;
Obtain degree of reiability according to described codeword decision;
Determine the code rate of speech frame based on described degree of reiability;
Wherein, described codeword decision comprises optimum code word and the suboptimum code word under the maximum likelihood meaning,
Describedly obtain degree of reiability according to described codeword decision and comprise: calculate the first dot product that receives soft value sequence and described optimum code word, calculate the second dot product of the soft value sequence of described reception and described suboptimum code word, and with the difference of described the first dot product and the second dot product as described degree of reiability.
2. the method for claim 1 is characterized in that, describedly determines that based on described degree of reiability the code rate of speech frame comprises:
When described degree of reiability is higher than thresholding, determine that the corresponding speed of described optimum code word is as described code rate.
3. the method for claim 1 is characterized in that, determines that based on described degree of reiability the code rate of speech frame comprises:
When described degree of reiability is equal to or less than thresholding, according to previous CMI constantly frame or CMR constantly the CMI that receives of the reliable rate estimates of frame constantly the present rate of frame as described code rate.
4. an equipment that detects the code rate of speech frame is characterized in that, described speech frame comprises code rate indication CMI moment frame and code rate request CMR moment frame alternately, and described equipment comprises:
Receiving element is used for receiving constantly frame of CMI, and described CMI constantly frame comprises ic code and recursive system convolution RSC coded data;
Decoding unit is used for described ic code is carried out soft decoding, obtains the codeword decision under the maximum likelihood meaning;
Metric element is used for obtaining degree of reiability according to described codeword decision;
Determining unit is for the code rate of determining speech frame based on described degree of reiability;
Wherein, described codeword decision comprises optimum code word and the suboptimum code word under the maximum likelihood meaning, described metric element specifically is used for calculating the first dot product that receives soft value sequence and described optimum code word, calculate the second dot product of the soft value sequence of described reception and described suboptimum code word, and with the difference of described the first dot product and the second dot product as described degree of reiability.
5. equipment as claimed in claim 4, it is characterized in that, described determining unit is used for when described degree of reiability is equal to or less than thresholding, according to previous CMI constantly frame or CMR constantly the present rate of the CMI moment frame that receives of the reliable rate estimates of frame as described code rate.
CN 201110070742 2011-03-23 2011-03-23 Method and device for detecting code rate of speech frame Active CN102104448B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201110070742 CN102104448B (en) 2011-03-23 2011-03-23 Method and device for detecting code rate of speech frame
CN201310131559.3A CN103259622B (en) 2011-03-23 2011-03-23 The method and apparatus of the code rate of detection speech frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110070742 CN102104448B (en) 2011-03-23 2011-03-23 Method and device for detecting code rate of speech frame

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201310131559.3A Division CN103259622B (en) 2011-03-23 2011-03-23 The method and apparatus of the code rate of detection speech frame

Publications (2)

Publication Number Publication Date
CN102104448A CN102104448A (en) 2011-06-22
CN102104448B true CN102104448B (en) 2013-04-24

Family

ID=44157002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110070742 Active CN102104448B (en) 2011-03-23 2011-03-23 Method and device for detecting code rate of speech frame

Country Status (1)

Country Link
CN (1) CN102104448B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10756846B2 (en) * 2017-03-16 2020-08-25 Qualcomm Incorporated Distributed feedback architecture for polar decoding
CN107742140B (en) * 2017-11-08 2020-07-28 重庆西南集成电路设计有限责任公司 Intelligent identity information identification method based on RFID technology
CN110189473B (en) * 2019-04-08 2021-07-06 全球能源互联网研究院有限公司 Credibility measurement authentication interaction method and device of charging control system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991977A (en) * 2005-12-29 2007-07-04 Ut斯达康通讯有限公司 Voice coding rate confirming method for radio communication
CN101521558A (en) * 2008-03-01 2009-09-02 华为技术有限公司 Self-adaptive multi-speed speed and phase adjusting method and device therefor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572090B (en) * 2008-04-30 2013-03-20 向为 Self-adapting multi-rate narrowband coding method and coder

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991977A (en) * 2005-12-29 2007-07-04 Ut斯达康通讯有限公司 Voice coding rate confirming method for radio communication
CN101521558A (en) * 2008-03-01 2009-09-02 华为技术有限公司 Self-adaptive multi-speed speed and phase adjusting method and device therefor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3GPP.Technical Specification Group GSM/EDGE,Radio Access Network,Channel coding.《3GPP TS 45.003 v9.0.0》.2009,第3.9.4.4节,第3.10.7.4节. *

Also Published As

Publication number Publication date
CN102104448A (en) 2011-06-22

Similar Documents

Publication Publication Date Title
JP3553547B2 (en) Apparatus and method for detecting data rate in mobile communication system
CN102281123B (en) Method for detecting the validity of downlink control information, decoder and baseband receiver for performing same
US20100097955A1 (en) Rate determination
WO2007103399A2 (en) Scrubber brush with sleeve and brush mandrel
RU2009129948A (en) SELECTING THE DIRECT CORRECTION CODE OF ERRORS AND CODE SPEED BASED ON THE PACKAGE SIZE
JP2002164871A (en) Decoding device and decoding method
JP2007525095A (en) Method, apparatus, and system used in control of transmission output during wireless communication
CN102104448B (en) Method and device for detecting code rate of speech frame
US20070153693A1 (en) Transport format detecting apparatus and method
JP4989723B2 (en) Method and apparatus for blind transport format detection using discontinuous transmission (DTX) detection
KR20090039033A (en) Method and apparatus for decoding in portable communication system
CN109525367B (en) Error detection and adaptive error correction method based on LoRa coding and decoding mechanism
US7861137B2 (en) System for identifying localized burst errors
US20070234189A1 (en) System and method for reducing false alarm in the presence of random signals
US8019615B2 (en) Method and system for decoding GSM speech data using redundancy
CN103259622A (en) Method and device for detecting voice frame code rate
CN103746773A (en) Method and system for correcting errors of decoded data by using UMTS (Universal Mobile Telecommunications System) receiver
CN109286533B (en) Error checking method and device for voice data packet, storage medium and terminal
US10097213B2 (en) System and method for improved decoding using identified recurring side information
CN108242979A (en) Interpretation method, device, spectrum detector and storage medium
CN104509017A (en) Improved blind transport format detection depending on the conditions of reception of the signal
US6952463B2 (en) Method of blind transport format detection based on power transition
EP1387516A1 (en) Blind transport format detection in spread spectrum receivers
US7434117B1 (en) Method and apparatus of determining bad frame indication for speech service in a wireless communication system
JP3979266B2 (en) Blind rate detection device, decoding device, communication device, blind rate detection method and decoding method

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