Summary of the invention
The purpose of the embodiment of the invention is: a kind of voice coding disposal route and device, tone decoding disposal route and device, communication system are provided; Reduce the required bit number of positional information of code frequency spectral coefficient; Thereby encode more spectral coefficient, to improve the recovery quality of receiving end to frequency-region signal.
A kind of voice coding disposal route that the embodiment of the invention provides comprises:
The M that selecting range is bigger in frequency domain subband to be encoded is to spectral coefficient, and M is the right quantity of spectral coefficient to be encoded, and M is the integer greater than zero;
To M to spectral coefficient; Confirm each one of them spectral coefficient absolute location information in said frequency domain subband respectively to spectral coefficient; With each to the relative position information of the said relatively absolute position of another spectral coefficient of spectral coefficient and said M amplitude and symbol to each spectral coefficient in the spectral coefficient;
M is encoded to position, amplitude and the symbolic information of spectral coefficient, and said position comprises said absolute position and said relative position.
A kind of tone decoding disposal route that the embodiment of the invention provides comprises:
Receive data code flow;
Said data code flow is decoded; Obtain position, amplitude and the symbolic information of M to spectral coefficient; The positional information of every pair of spectral coefficient comprises the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of the said relatively absolute position of another spectral coefficient;
Respectively according to each to absolute position and the relative position information of spectral coefficient in said frequency domain subband, confirm the absolute position of said relative position in said frequency domain subband;
Utilize absolute position, amplitude and the symbolic information of each spectral coefficient, recover said frequency domain subband.
A kind of voice coding treating apparatus that the embodiment of the invention provides comprises:
First receiver module is used to receive frequency-region signal, and this frequency-region signal comprises a plurality of frequency domain subbands;
Select module, be used for selecting range is bigger in frequency domain subband to be encoded M to spectral coefficient, M is the right quantity of spectral coefficient to be encoded, and M be greater than zero integer;
First determination module; Be used for to each spectral coefficient; Confirm each one of them spectral coefficient absolute position in said frequency domain subband respectively to spectral coefficient; Each is to the relative position of the said relatively absolute position of another spectral coefficient of spectral coefficient and said M amplitude and the symbol to each spectral coefficient in the spectral coefficient;
Coding module is used for M is encoded to position, amplitude and the symbolic information of spectral coefficient, and said position comprises said absolute position and said relative position.
A kind of tone decoding treating apparatus that the embodiment of the invention provides comprises:
Second receiver module is used to receive data code flow;
Decoder module; Be used for said data code flow is decoded; Obtain position, amplitude and the symbolic information of M to spectral coefficient; The positional information of every pair of spectral coefficient comprises the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of the said relatively absolute position of another spectral coefficient;
Second determination module is used for respectively according to each absolute position and the relative position information of spectral coefficient in said frequency domain subband confirmed the absolute position of said relative position in said frequency domain subband;
Recover module, be used to utilize absolute position, amplitude and the symbolic information of each spectral coefficient, recover said frequency domain subband.
A kind of communication system that the embodiment of the invention provides, voice coding treating apparatus and tone decoding treating apparatus, said voice coding treating apparatus is used to receive frequency-region signal, and this frequency-region signal comprises a plurality of frequency domain subbands; The M that selecting range is bigger in frequency domain subband to be encoded is to spectral coefficient, and M is the right quantity of spectral coefficient to be encoded, and M is the integer greater than zero; To each to spectral coefficient; Confirm each one of them spectral coefficient absolute position in said frequency domain subband respectively to spectral coefficient; Each is to the relative position of the said relatively absolute position of another spectral coefficient of spectral coefficient and said M amplitude and the symbol to each spectral coefficient in the spectral coefficient; M is encoded to position, amplitude and the symbolic information of spectral coefficient, generate data code flow, and send to said tone decoding treating apparatus, said position comprises said absolute position and said relative position;
Said tone decoding treating apparatus is used to receive said data code flow; Said data code flow is decoded; Obtain position, amplitude and the symbolic information of M to spectral coefficient; The positional information of every pair of spectral coefficient comprises the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of the said relatively absolute position of another spectral coefficient; Respectively according to each to absolute position and the relative position information of spectral coefficient in said frequency domain subband, confirm the absolute position of said relative position in said frequency domain subband; Utilize absolute position, amplitude and the symbolic information of each spectral coefficient, recover said frequency domain subband.
The code processing method that provides based on the above embodiment of the present invention and device, decoding processing method and device, communication system; Can the digram coding spectral coefficient, like this, only need absolute position to a spectral coefficient in the every pair of spectral coefficient of encoding; And the relative position of another spectral coefficient is encoded; Because the bit number that relative position information takies is less than absolute location information, has just reduced the required bit number of positional information of this spectral coefficient of encoding, thereby has reduced the bit number that each spectral coefficient of encoding on average takies; Under the certain situation of transmitting terminal scrambler available bit number; Just the more spectral coefficient of can encoding improves the data code flow of transmitting terminal coding output, and then improves the recovery quality of receiving end to frequency-region signal.
Through accompanying drawing and embodiment, technical scheme of the present invention is done further detailed description below.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
For the stronger spectral coefficient of the spectral coefficient in the spectrum signal, particularly harmonic wave property, the spectral coefficient of energy larger part occurs often in pairs.As shown in Figure 3, be the distribution schematic diagram of spectral coefficient in the frequency domain subband.When prior art is carried out sinusoidal coding to spectral coefficient, just, search the bigger spectral coefficient of some amplitudes and its parameter of encoding, comprising: its absolute position, amplitude and symbolic information in the frequency domain subband according to the size of spectral coefficient amplitude.Owing to do not consider the relation between the spectral coefficient, all need take equal bit number to the coding of each spectral coefficient absolute position, thereby take more bit number.Under the certain situation of transmitting terminal scrambler available bit number and since the coding absolute location information need take more bit number, the spectral coefficient number of codified seldom, the signal quality that makes receiving end recover is relatively poor.In the embodiment of the invention, made full use of the relation of the paired appearance between the spectral coefficient, the frequency coefficient of paired appearance has been carried out digram coding; Like this, to every pair of spectral coefficient, the absolute location information of one of them spectral coefficient of only need encoding; Relative position information with relative this spectral coefficient of another spectral coefficient; Because relative position information lacks than the bit number that absolute location information takies, thereby has saved the required bit number that takies of coding site information, has at scrambler under the situation of identical available bit number; Just can be than the prior art more spectral coefficient of encoding; Thereby improve the data code flow of transmitting terminal coding output,, and then improve the recovery quality of receiving end frequency-region signal especially for the stronger signal of harmonic wave property.
Fig. 4 is the process flow diagram of an embodiment of code processing method of the present invention.As shown in Figure 4, the code processing method of this embodiment may further comprise the steps:
Step 201, the M that selecting range is bigger in frequency domain subband to be encoded is to spectral coefficient.Wherein, M is the right quantity of spectral coefficient to be encoded, and M is the integer greater than zero.
Step 202; To M to spectral coefficient; Confirm each one of them spectral coefficient absolute location information in the frequency domain subband respectively to spectral coefficient; With each relative position information to relative this absolute position of another spectral coefficient of spectral coefficient, and M is to the amplitude and the symbol of each spectral coefficient in the spectral coefficient.Wherein, also promptly a spectral coefficient is right for a pair of spectral coefficient.
Step 203 is encoded to position, amplitude and the symbolic information of spectral coefficient to M, and position wherein comprises absolute position and the relative position of above-mentioned M to spectral coefficient.
Encode through step 203, obtain data code flow after, can send to receiving end.
Below with the coding 2M sine pulse, also promptly: spectral coefficient, be example, technique effect of the present invention is described.Suppose in frequency domain subband to be encoded, to select 2M the spectral coefficient that amplitude is bigger, need encode this 2M spectral coefficient.The absolute location information of a sine pulse of coding takies X bit (bits), other sine pulse information of encoding, and for example: amplitude and symbolic information take Ybits.According to prior art, need (X+Y) bits sine pulse of encoding.Like this, 2M sine pulse of coding needs 2M* (X+Y) bits.The code processing method that adopts the embodiment of the invention to provide, in each offset of sinusoidal pulse one still encodes to its absolute location information, and to another sine pulse, then its relative position information is encoded.The relative position difference of supposing a pair of sine pulse is N, and like this, the coding of relative position information need take log
2(2N), encoding a pair of sine pulse need (X+Y+log
2(2N)+Y) bits.Work as log
2(2N)<and during X, adopt the code processing method of the embodiment of the invention, just can take less bit number than prior art, can save bit number, the bit number of saving is (X-log
2(2N)).Like this, just can utilize other more sine pulse of saved bits of encoded, thereby improve the data code flow of transmitting terminal coding output, and then improve the recovery quality of receiving end frequency-region signal.Because sine pulse occurs in pairs, generally, N=1, like this, the relative position information of encoding only need take needs 1bit, needs 5bits to compare with absolute location information of prior art coding, just can save 4bits.
According to one embodiment of present invention, can confirm the quantity M that spectral coefficient to be encoded is right according to the available bit number of transmitting terminal scrambler.Particularly, can be according to the required bit number of each spectral coefficient of independent coding, confirm the quantity Q of spectral coefficient of the available bit number codified of scrambler, if Q is an even number, M=0.5*Q; If Q is an odd number, M=0.5* (Q-1).To spectral coefficient, can carry out sinusoidal coding for the M that determines by Q through flow process embodiment illustrated in fig. 4.If available bit number is greater than the coding M bit number used to position, amplitude and the symbolic information of spectral coefficient; Then to coding M in the available bit number to spectral coefficient after remaining bit number; Again the definite right quantity of spectral coefficient that can encode, the spectral coefficient that other amplitude of continuation selection respective numbers is bigger in the frequency domain subband is right.And adopt flow process embodiment illustrated in fig. 4, encode.Perhaps; To in the available bit number coding M to spectral coefficient after remaining bit number; The quantity of the spectral coefficient of confirming again to encode continues to select the bigger spectral coefficient of other amplitude of respective numbers in frequency domain subband to be encoded, and to the parameter of the spectral coefficient that continues to select; Comprise: the absolute position in subband to be encoded, amplitude and symbolic information, encode.
In addition, also can confirm the right quantity M of spectral coefficient of the available bit number codified of transmitting terminal scrambler, and encode through flow process embodiment illustrated in fig. 4 according to the required bit number of every pair of spectral coefficient of average coding.If the available bit number of scrambler is greater than the coding M bit number required to spectral coefficient; Then to coding M in the available bit number to spectral coefficient after remaining bit number; The quantity of the spectral coefficient of confirming again to encode continues to select the bigger spectral coefficient of other amplitude in frequency domain subband to be encoded, and to the parameter of the spectral coefficient that continues to select; Comprise: the absolute position in subband to be encoded, amplitude and symbolic information, encode.
Fig. 5 is the process flow diagram of another embodiment of code processing method of the present invention.As shown in Figure 5, the code processing method of this embodiment may further comprise the steps:
Step 301, the L that selecting range is bigger in frequency domain subband to be encoded is to spectral coefficient.Wherein, L is the integer greater than M, and M is the right quantity of spectral coefficient to be encoded in the frequency domain subband to be encoded, and M is the integer greater than zero.
Step 302 is confirmed L spectral coefficient centering, and amplitude is all greater than right quantity P of the spectral coefficient of predetermined threshold value and the numerical values recited of M.If P is greater than M, execution in step 303.If P equals M, execution in step 304.If P is less than M, execution in step 305.
Step 303, amplitude all greater than the P of predetermined threshold value to spectral coefficient in, select M right with the less spectral coefficient of less amplitude difference or ratio to by a relatively large margin, execution in step 307 then.
Step 304, directly with P to spectral coefficient to right as a M to be encoded spectral coefficient, execution in step 307.
Step 305 selects the bigger spectral coefficient of a plurality of amplitudes right in the frequency domain subband again, up to amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value greater than M.
Predetermined threshold value wherein specifically can be an empirical value; Amplitude all greater than the P of predetermined threshold value to spectral coefficient in; Select M right with the less spectral coefficient of less amplitude difference or ratio to by a relatively large margin; Be to have a spectral coefficient too small, thereby influence the decoding of receiving end demoder for fear of the spectral coefficient centering of selecting.If in step 305; In the whole frequency domain subband amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value less than M; Then can reduce this predetermined threshold value gradually; And execution in step 302, in frequency domain subband to be encoded amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value more than or equal to M.
Step 306, amplitude all greater than the P of predetermined threshold value to spectral coefficient in, select M right with the less spectral coefficient of less amplitude difference or ratio to by a relatively large margin, execution in step 307 then.
Step 307; Each spectral coefficient to M spectral coefficient centering is right; Confirm the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of relative this absolute position of another spectral coefficient respectively, and the amplitude of each spectral coefficient and symbol.
Step 308 is encoded to position, amplitude and the symbolic information of spectral coefficient to M.
Below through an instantiation above-mentioned embodiment shown in Figure 5 is described.Suppose to have in the frequency domain subband to be encoded 64 spectral coefficients, 64 spectral coefficients are divided into odd number and two tracks of even number, 32 spectral coefficients are arranged in each track.Can at first in the even number track, search the maximum spectral coefficient of 4 amplitudes; Then respectively the maximum spectral coefficient of 4 amplitudes+/-the N position searches a spectral coefficient that amplitude is bigger again; Because the characteristic that spectral coefficient occurs in pairs; The bigger spectral coefficient of this relative amplitude is at the odd number track, and N=1.4 pairs of spectral coefficients like this, have just been searched.From 4 pairs of spectral coefficients, selecting range all greater than the P of predetermined threshold value to spectral coefficient, suppose P=4.Ask for respectively in every pair of spectral coefficient by a relatively large margin and more by a small margin ratio, 2 pairs of less spectral coefficients of correlative value are encoded.Spectral coefficient on the dual numbers track is respectively with its absolute location information of 5bits coding, with its symbolic information of 1bit coding.And for the spectral coefficient on the odd number track, respectively with the relative position information of another spectral coefficient that occurs in pairs on its phase dual numbers track of 1bit coding, with its symbolic information of 2bit coding.At this moment, 4 shared 5*2+1*2+3=15bits of spectral coefficient.Wherein, 5*2 is the required bit number of absolute location information of spectral coefficient on the coding even number track; 1*2 is the required bit number of relative position information of spectral coefficient on the coding odd number track; Because spectral coefficient adopts the absolute position on the even number track, only need symbolic information with a spectral coefficient of 1bit coding, the symbolic information of another spectral coefficient can obtain according to the sequencing of its coding site in the frequency domain subband.Spectral coefficient adopts relative position on the odd number track, and the required bit number of symbolic information of spectral coefficient is 2bits on the coding odd number track, and therefore, the bit number that the symbolic information of spectral coefficient needs altogether on coding even number track and the odd number track is 3bits.Compared with prior art, can save 7bits and come again relatively large spectral coefficient of other amplitude of odd encoder.
In the embodiment shown in fig. 5; Each any one or multiple factor during minimum radius requires with amplitude peak ratio in threshold value and the frequency domain subband of amplitude ratio in to spectral coefficient that the value of L can search for the algorithm complex of spectral coefficient according to scrambler in the frequency domain subband, be provided with in advance confirms, also can be definite with reference to other factor.
Fig. 6 is the process flow diagram of another embodiment of code processing method of the present invention.As shown in Figure 6, the code processing method of this embodiment may further comprise the steps:
Step 401,2M bigger spectral coefficient of selecting range in frequency domain subband to be encoded.Wherein, M is the right quantity of spectral coefficient to be encoded, and M is the integer greater than zero.
Step 402, according to the sequence of positions in the frequency domain subband that 2M spectral coefficient is right as a spectral coefficient in twos, form M to spectral coefficient, the relative position difference between the every pair of spectral coefficient is in the N scope, and N be the integer of setting in advance.
Step 403, right to each spectral coefficient, confirm the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of relative this absolute position of another spectral coefficient respectively, and the amplitude of each spectral coefficient and symbol.
Step 404 is encoded to position, amplitude and the symbolic information of spectral coefficient to M.
In the step 401 of embodiment shown in Figure 6; Specifically can in frequency domain subband to be encoded, select not form mutually spectral coefficient M spectral coefficient right, that amplitude is bigger earlier; Be in the scope of N apart from M spectral coefficient relative position difference respectively then, selecting M bigger spectral coefficient of other M amplitude again.Also can be according to the order in said frequency domain subband; In frequency domain subband to be encoded, select the bigger spectral coefficient of first amplitude earlier; And be in the scope of N in the spectral coefficient relative position difference bigger apart from this amplitude; Select second spectral coefficient that amplitude is bigger, right with first spectral coefficient composition spectral coefficient; And then select the 3rd the bigger spectral coefficient of amplitude, and and be in the scope of N in the spectral coefficient relative position difference bigger apart from this amplitude, select the 4th the bigger spectral coefficient of amplitude, to form spectral coefficient right with the 3rd spectral coefficient; And the like, select 2M-1 the spectral coefficient that amplitude is bigger, and be in the scope of N in the spectral coefficient relative position difference bigger apart from this amplitude, select 2M the spectral coefficient that amplitude is bigger, to form spectral coefficient right with 2M-1 spectral coefficient.Perhaps, also can adopt alternate manner to select to form 2M the spectral coefficient of M to spectral coefficient.
Fig. 7 is the process flow diagram of another embodiment of code processing method of the present invention.As shown in Figure 7, the code processing method of this embodiment may further comprise the steps:
Step 501 is selected M the spectral coefficient that amplitude is bigger in the odd number track in frequency domain subband to be encoded.Wherein, M is the right quantity of spectral coefficient to be encoded, and M is the integer greater than zero.
Step 502 is closed on the position of the bigger spectral coefficient of M amplitude respectively in the even number track, select the bigger spectral coefficient of an other M amplitude.What is called is closed on the position of the bigger spectral coefficient of M amplitude, is meant respectively relative position difference with the bigger spectral coefficient of M amplitude in the N scope, and N is the integer that is provided with in advance.
Step 503, with M the spectral coefficient that amplitude is bigger, respectively with the bigger spectral coefficient of an other M amplitude in the spectral coefficient that closes on right as a spectral coefficient in twos, form M to spectral coefficient.
Step 504, right to each spectral coefficient, confirm the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of relative this absolute position of another spectral coefficient respectively, and the amplitude of each spectral coefficient and symbol.
Step 505 is encoded to position, amplitude and the symbolic information of spectral coefficient to M.
In addition; Also can in the even number track in the frequency domain subband, select M the spectral coefficient that amplitude is bigger; In the odd number track, close on the position of the bigger spectral coefficient of M amplitude respectively, select the bigger spectral coefficient of an other M amplitude, M the spectral coefficient that amplitude is bigger; Respectively with the bigger spectral coefficient of an other M amplitude in the spectral coefficient that closes on right as a spectral coefficient in twos, form M to spectral coefficient.Afterwards, through step 504-505, realize the sinusoidal coding right to spectral coefficient.
Below through an instantiation embodiment shown in Figure 7 is described.Suppose to have in the frequency domain subband to be encoded 64 spectral coefficients, 64 spectral coefficients are divided into odd number and two tracks of even number, 32 spectral coefficients are arranged in each track.Can at first in the even number track, search the maximum spectral coefficient of M amplitude, suppose: M=2.Search a spectral coefficient that relative amplitude is bigger respectively in the maximum spectral coefficient N position of each amplitude that distance searches then; Because the characteristic that spectral coefficient occurs in pairs; The bigger spectral coefficient of this relative amplitude is at the odd number track, and N=1, specifically can be with reference to figure 3.Like this, search 4 spectral coefficients altogether, at this moment, the spectral coefficient on the dual numbers track is respectively with its absolute location information of 5bits coding.And for the spectral coefficient on the odd number track, respectively with the relative position information of another spectral coefficient that occurs in pairs on its phase dual numbers track of 1bit coding.At this moment, the positional information of 4 spectral coefficients that coding is chosen, shared 5*2+1*2=12bits, the coding method of prior art relatively, coding site information can be saved 8bits.Further; If the amplitude of every pair of spectral coefficient will choosing with symbolic information as a waveform; The method that adopts gain-wave vector to quantize quantizes, owing to this method symbol and amplitude are done as a whole, coded identification information separately; Coded identification information also can save 2bits with respect to prior art.The 8+2=10bits that employing saves, relatively large spectral coefficient of other amplitude of odd encoder again, like this, just than relatively large spectral coefficient of amplitude of prior art odd encoder.
In the flow process of above-mentioned each embodiment of code processing method; When M is encoded to position, amplitude and the symbolic information of spectral coefficient; Specifically can encode to the positional information of spectral coefficient to M, and respectively that each spectral coefficient is right amplitude and symbolic information be as a sine pulse waveform, the offset of sinusoidal pulse waveform is carried out vector quantization; Further reduce the required bit number of coding, improve code efficiency.Particularly, can adopt gain-wave vector quantization method offset of sinusoidal pulse waveform to carry out vector quantization.
In addition; When M is encoded to position, amplitude and the symbolic information of spectral coefficient; Also can encode to the positional information of spectral coefficient to M; And the amplitude and the symbolic information of a plurality of adjacent frequency domain subband intermediate frequency spectrum coefficients united vector quantization, and further reduce the required bit number of coding, improve code efficiency.
Suppose the frequency-region signal of a broad of coding, 224 spectral coefficients are arranged in the frequency-region signal, scrambler has 77 bit numbers and can use.224 spectral coefficients are divided into 4 frequency domain subbands, and first three subband has 64 spectral coefficients respectively, and the 4th frequency domain subband has 32 spectral coefficients.Coding method according to prior art; In first frequency domain subband and second frequency domain subband; Search 4 spectral coefficients that amplitude is bigger respectively; In the 3rd frequency domain subband and the 4th frequency domain subband, search a spectral coefficient that amplitude is bigger respectively; The absolute position and the symbolic information of first frequency domain subband and second frequency domain subband of encoding needs 5*4+2=22bits respectively, and the absolute position and the symbolic information of encode the 3rd frequency domain subband and the 4th frequency domain subband need 5+6+1=12bits altogether, and 10 amplitude informations are united vector quantization with three vectors of 3 dimensions/7 bits, 3 dimension/7 bits and 4 dimensions/7 bits respectively.The above-mentioned spectral coefficient of then encoding needs 22+22+12+7*3=77bits altogether.
And the coding method that provides according to the embodiment of the invention; Can be in first frequency domain subband and second frequency domain subband; Hunt out two pairs and an independent spectral coefficient respectively; Because the digram coding method of the embodiment of the invention, can be used for independent spectral coefficient of odd encoder so that each frequency domain subband can save bit.The paired spectral coefficient that hunts out is encoded with the method that gain-wave vector quantizes; Each frequency domain subband needs 5*2+1*2+6=18bits respectively; Wherein, 6 for wave vector quantizes required bit number, and first frequency domain subband and second frequency domain subband also need 6bits that wave shape gain is encoded.In order further to improve code efficiency, the amplitude of the independent spectral coefficient that hunts out respectively in two frequency domain subbands is united vector quantization with 2 n dimensional vector ns.Like this, two frequency domain subbands are carried out combined coding, the bit number that each frequency domain subband is saved is unified to be used, and two the independent spectral coefficients of encoding need 5*2+1*2+5=17bits.Certainly, also can be with two other spectral coefficient parameters of frequency domain subband combined coding.In addition, the combination of frequency domain sub-band coding also is not limited in two frequency domain subbands, can be three or multifrequency territory subband combined coding more.In the 3rd frequency domain subband and the 4th frequency domain subband; Search a spectral coefficient that amplitude is bigger respectively; Utilize the coding method of prior art that its positional information and symbolic information are encoded; Amplitude information is united vector quantization with the vector of one 2 dimension; Need 6+5+1*2+5=18bits; Wherein, 6,5,1*2,5 is respectively the required bit number of the 3rd of the positional information of the required bit number of the positional information of the 3rd frequency domain subband intermediate frequency spectrum coefficient of coding, the 4th frequency domain subband intermediate frequency spectrum coefficient of coding required bit number, coding and the symbolic information of the 4th frequency domain subband intermediate frequency spectrum coefficient, unites the required bit number of amplitude information of the 3rd of vector quantization and the 4th frequency domain subband intermediate frequency spectrum coefficient.The above-mentioned spectral coefficient of then encoding needs 18+18+6+17+18=77bits altogether; Identical with prior art; But than 2 independent frequency coefficients in first frequency domain subband of prior art odd encoder and second the frequency domain subband, simultaneously also odd encoder the symbolic information of the spectral coefficient in the 4th frequency domain subband.
After the code processing method of above-mentioned each embodiment of employing the present invention is numbered frequency-region signal, can send the data code flow that coding obtains to receiving end, decode accordingly by receiving end.As shown in Figure 8, be the process flow diagram of an embodiment of decoding processing method of the present invention, it may further comprise the steps:
Step 601 receives data code flow.
Step 602; The data code stream is decoded; Obtain position, amplitude and the symbolic information of M to spectral coefficient; The positional information of every pair of spectral coefficient comprises the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of relative this absolute position of another spectral coefficient.
Step 603, respectively according to each to absolute position and the relative position information of spectral coefficient in the frequency domain subband, confirm the absolute position of relative position in the frequency domain subband.
Step 604 is utilized absolute position, amplitude and the symbolic information of each spectral coefficient, recovers the frequency domain subband.
Fig. 9 is the structural representation of an embodiment of code processing apparatus of the present invention, and the code processing apparatus of this embodiment can be used for realizing the flow process of above-mentioned each the code processing method embodiment of the present invention.As shown in Figure 9, the code processing apparatus of this embodiment comprises first receiver module 701, selects module 702, first determination module 703 and coding module 704.Wherein, first receiver module 701 is used to receive frequency-region signal, and this frequency-region signal comprises a plurality of frequency domain subbands.Select module 702 to be used in each frequency domain subband to be encoded of the frequency-region signal that first receiver module 701 receives, the bigger M of selecting range is to spectral coefficient.Wherein, M is the right quantity of spectral coefficient to be encoded, and M is the integer greater than zero.First determination module 703 be used for to select that module 702 selects each to spectral coefficient; Confirm each one of them spectral coefficient absolute position in the frequency domain subband respectively to spectral coefficient; With M to another spectral coefficient in the spectral coefficient relatively relative position of this absolute position and the amplitude and the symbol of each spectral coefficient.Coding module 704 is used for the M that first determination module 703 is confirmed is encoded to position, amplitude and the symbolic information of spectral coefficient, forms the data code flow that sends to receiving end, and position wherein comprises said absolute position and said relative position.
Figure 10 is the structural representation of another embodiment of code processing apparatus of the present invention.The code processing apparatus of this embodiment can be used for the flow process that realizes that the present invention is embodiment illustrated in fig. 5, compares with embodiment shown in Figure 9, among this embodiment, selects module 702 to comprise first selected cell 801, comparing unit 802 and second selected cell 803.Wherein, First selected cell 801 is used in each frequency domain subband to be encoded of the frequency-region signal that first receiver module 701 receives; The bigger L of selecting range is to spectral coefficient; L is the integer greater than M, and according to the indication of second selected cell 803, in frequency domain subband to be encoded, selects the bigger spectral coefficient of a plurality of amplitudes right again.Comparing unit 802 is used for L the spectral coefficient centering that comparison first selected cell 801 is selected, amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value whether greater than M.Second selected cell 803 is used for the comparative result according to comparing unit 802; In amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value during greater than M; Amplitude all greater than the P of predetermined threshold value to spectral coefficient in, select M right with the less spectral coefficient of less amplitude difference or ratio to by a relatively large margin; When amplitude all equals M greater than the right quantity P of the spectral coefficient of predetermined threshold value, directly with P to spectral coefficient to right as a M to be encoded spectral coefficient; In amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value during less than M; Indicate first selected cell 801 in the frequency domain subband, to select the bigger spectral coefficient of a plurality of amplitudes right again; Up to amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value greater than M; And amplitude all greater than the P of predetermined threshold value to spectral coefficient in, select M right with the less spectral coefficient of less amplitude difference or ratio to by a relatively large margin.
Figure 11 is the structural representation of another embodiment of code processing apparatus of the present invention.The code processing apparatus of this embodiment can be used for the flow process that realizes that the present invention is embodiment illustrated in fig. 6, compares with embodiment shown in Figure 9, among this embodiment, selects module 702 to comprise the 3rd selected cell 804 and first assembled unit 805.Wherein, the 3rd selected cell 804 is used in each frequency domain subband to be encoded of the frequency-region signal that first receiver module 701 receives, 2M the spectral coefficient that selecting range is bigger.First assembled unit 805 is used for according to the sequence of positions in the frequency domain subband; 2M the spectral coefficient that the 3rd selected cell 804 is selected is right as a spectral coefficient in twos; Form M to spectral coefficient, the relative position difference between the every pair of spectral coefficient is in the N scope, and N be the integer of setting in advance.
Figure 12 is the structural representation of another embodiment of code processing apparatus of the present invention.The code processing apparatus of this embodiment can be used for the flow process that realizes that the present invention is embodiment illustrated in fig. 7, compares with embodiment shown in Figure 9, among this embodiment, selects module 702 to comprise the 4th selected cell 806 and second assembled unit 807.The 4th selected cell 806 is used for selecting in the odd number track in the frequency domain subband to be encoded of the frequency-region signal that first receiver module 701 receives M the spectral coefficient that amplitude is bigger; In the even number track, close on the position of the bigger spectral coefficient of M amplitude respectively, select the bigger spectral coefficient of an other M amplitude; Perhaps; Select M the spectral coefficient that amplitude is bigger in the even number track in the frequency domain subband to be encoded in the frequency-region signal that first receiver module 701 receives; In the odd number track, close on the position of the bigger spectral coefficient of M amplitude respectively, select the bigger spectral coefficient of an other M amplitude.Second assembled unit 807 is used for M the spectral coefficient that amplitude is bigger that the 4th selected cell 806 is selected, respectively with the bigger spectral coefficient of an other M amplitude in the spectral coefficient that closes on right as a spectral coefficient in twos, form M to spectral coefficient.
According to one embodiment of present invention; At Fig. 9 of the present invention to above-mentioned each code processing apparatus embodiment shown in Figure 12; Coding module 704 can be encoded to the positional information of spectral coefficient to M; And respectively that each spectral coefficient is right amplitude and symbolic information be as a sine pulse waveform, and the offset of sinusoidal pulse waveform is carried out vector quantization.Particularly, can adopt gain-wave vector quantization method offset of sinusoidal pulse waveform to carry out vector quantization.
According to another embodiment of the invention; At Fig. 9 of the present invention to above-mentioned each code processing apparatus embodiment shown in Figure 12; Coding module 704 can be encoded to the positional information of spectral coefficient to M, and the amplitude and the symbolic information of a plurality of adjacent frequency domain subband intermediate frequency spectrum coefficients in the frequency-region signal are united vector quantization.
Figure 13 is the structural representation of an embodiment of decoding processing device of the present invention.The decoding processing device of this embodiment can be used for adopting Fig. 9 to carry out corresponding decoding processing to the data code flow that each code processing apparatus coding shown in Figure 12 obtains, and realization is like the above-mentioned flow process embodiment illustrated in fig. 8 of the present invention.Shown in figure 13, the decoding processing device of this embodiment comprises second receiver module 901, decoder module 902, second determination module 903 and recovers module 904.Wherein, second receiver module 901 is used to receive data code flow.Decoder module 902 is used for the data code flow that second receiver module 901 receives is decoded; Obtain position, amplitude and the symbolic information of M to spectral coefficient; Wherein, The positional information of every pair of spectral coefficient comprises the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of relative this absolute position of another spectral coefficient.Second determination module 903 is used for respectively according to the decoded result of decoder module 902, and each confirms the absolute position of relative position in the frequency domain subband to the absolute position and the relative position information of spectral coefficient in the frequency domain subband.Recover absolute position, amplitude and symbolic information that module 904 is used to utilize each spectral coefficient that second determination module 903 confirms, recover the frequency domain subband.
A kind of communication system that the embodiment of the invention provides comprises code processing apparatus and decoding processing device.Wherein, code processing apparatus is used to receive frequency-region signal, and this frequency-region signal comprises a plurality of frequency domain subbands; The M that selecting range is bigger in frequency domain subband to be encoded is to spectral coefficient, and M is the right quantity of spectral coefficient to be encoded, and M is the integer greater than zero; To each to spectral coefficient; Confirm each one of them spectral coefficient absolute position in the frequency domain subband respectively to spectral coefficient; Each to another spectral coefficient of spectral coefficient relatively relative position and the M of this absolute position to the amplitude and the symbol of each spectral coefficient in the spectral coefficient; M is encoded to position, amplitude and the symbolic information of spectral coefficient, generate data code flow, and send to decoding processing device, position wherein comprises absolute position and the relative position of above-mentioned M to spectral coefficient.Particularly, this code processing apparatus can adopt Fig. 9 of the present invention to arbitrary code processing apparatus embodiment realization shown in Figure 12.
Decoding processing device is used for the data code flow that the received code treating apparatus sends; The data code stream is decoded; Obtain position, amplitude and the symbolic information of M to spectral coefficient; The positional information of every pair of spectral coefficient comprises the absolute location information of one of them spectral coefficient in the frequency domain subband and the relative position information of relative this absolute position of another spectral coefficient; Respectively according to each to absolute position and the relative position information of spectral coefficient in the frequency domain subband, confirm the absolute position of relative position in the frequency domain subband; Utilize absolute position, amplitude and the symbolic information of each spectral coefficient, recover the frequency domain subband.Particularly, this decoding processing device can adopt the present invention decoding processing device embodiment shown in Figure 13 to realize.
Communication system embodiment according to the present invention, the code processing apparatus L that specifically selecting range is bigger in frequency domain subband to be encoded is to spectral coefficient, and L is the integer greater than M, and in the frequency domain subband, selects the bigger spectral coefficient of a plurality of amplitudes right again; L spectral coefficient centering relatively, amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value whether greater than M; According to the comparative result of comparing unit, in amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value during greater than M, amplitude all greater than the P of predetermined threshold value to spectral coefficient in, select M right with the less spectral coefficient of less amplitude difference or ratio to by a relatively large margin; When amplitude all equals M greater than the right quantity P of the spectral coefficient of predetermined threshold value, directly with P to spectral coefficient to right as a M to be encoded spectral coefficient; In amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value during less than M; In the frequency domain subband, select the bigger spectral coefficient of a plurality of amplitudes right again; Up to amplitude all greater than the right quantity P of the spectral coefficient of predetermined threshold value greater than M; And amplitude all greater than the P of predetermined threshold value to spectral coefficient in, select M right with the less spectral coefficient of less amplitude difference or ratio to by a relatively large margin.Particularly, this code processing apparatus can adopt the present invention code processing apparatus embodiment shown in Figure 10 to realize.
Another embodiment of communication system according to the present invention, code processing apparatus 2M the spectral coefficient that specifically selecting range is bigger in the frequency domain subband; According to the order in the frequency domain subband, 2M spectral coefficient is right as a spectral coefficient in twos, form M to spectral coefficient, the relative position difference between the every pair of spectral coefficient is in the N scope, and N be the integer of setting in advance.Particularly, this code processing apparatus can adopt the present invention code processing apparatus embodiment shown in Figure 11 to realize.
Another embodiment of communication system according to the present invention; Code processing apparatus is specifically selected M the spectral coefficient that amplitude is bigger in the odd number track in frequency domain subband to be encoded; In the even number track, close on the position of the bigger spectral coefficient of M amplitude respectively; Select the bigger spectral coefficient of an other M amplitude, perhaps, select M the spectral coefficient that amplitude is bigger in the even number track in frequency domain subband to be encoded; In the odd number track, close on the position of the bigger spectral coefficient of M amplitude respectively, select the bigger spectral coefficient of an other M amplitude; With M the spectral coefficient that amplitude is bigger, respectively with the bigger spectral coefficient of an other M amplitude in the spectral coefficient that closes on right as a spectral coefficient in twos, form M to spectral coefficient.Particularly, this code processing apparatus can adopt the present invention code processing apparatus embodiment shown in Figure 12 to realize.
Another embodiment of communication system according to the present invention; Code processing apparatus is specifically encoded to the positional information of spectral coefficient to M; And respectively that each spectral coefficient is right amplitude and symbolic information be as a sine pulse waveform, and the offset of sinusoidal pulse waveform is carried out vector quantization.Particularly, can adopt gain-wave vector quantization method offset of sinusoidal pulse waveform to carry out vector quantization.
Also embodiment of communication system according to the present invention, code processing apparatus is specifically encoded to the positional information of spectral coefficient to M, and the amplitude and the symbolic information of a plurality of adjacent frequency domain subband intermediate frequency spectrum coefficients in the frequency-region signal are united vector quantization.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Embodiment of the invention digram coding spectral coefficient like this, only needs the absolute position to a spectral coefficient in the every pair of spectral coefficient of encoding; And the relative position of another spectral coefficient is encoded; Because the bit number that relative position information takies is less than absolute location information, has just reduced the required bit number of positional information of this spectral coefficient of encoding, thereby has reduced the bit number that each spectral coefficient of encoding on average takies; Under the certain situation of transmitting terminal scrambler available bit number; Just the more spectral coefficient of can encoding improves the data code flow of transmitting terminal coding output, and then improves the recovery quality of receiving end to frequency-region signal.
It should be noted last that: above embodiment is only in order to explaining technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is specified with reference to above-mentioned preferred embodiment; Those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to spirit and the scope that replacement does not break away from technical scheme of the present invention.