The voice data processing method synchronous for information source voice data before vocoder
Technical field
The present invention relates to a kind of voice data processing methods synchronous for information source voice data before vocoder.
Background technique
Before vocoder information source voice data encryption be mobile voice coded communication important branch, relative to vocoder with
The channels voice of encryption and decryption encrypts between channel coding/decoding, and information source voice encryption is referred to as information source voice encryption before vocoder.Letter
The directly accredited source data synchronizing quality of the quality of source voice encryption influences.In mobile voice channel, by wireless channel and sound
Code device voice data simultaneously by wireless channel interference with it is vocoder compressed, so as to cause voice spectrum be distorted;Sampling clock
Shake or data throughput shake lead to speech sample step-out.Information source voice encryption is that encryption and decryption is realized in sound frequency range, synchronous
Signal also in sound frequency range, necessarily faces distorted signals;Speech sample step-out directly results in synchronism deviation or synchronous estimation is wrong
Accidentally.Above-mentioned two factor causes information source voice encryption in mobile communication to be difficult to realize accurately data synchronization, to directly affect
The quality of voice encryption communication.
Summary of the invention
It is an object of the invention to solve at least the above problems, and provide the advantages of at least will be described later.
It is a still further object of the present invention to provide at a kind of voice data synchronous for information source voice data before vocoder
Reason method, the disturbed problem which solve audio datas in transmission process.
In order to realize these purposes and other advantages according to the present invention, provide a kind of for information source voice before vocoder
The synchronous voice data processing method of data, comprising:
Cataloged procedure comprising:
Step 1, front device receive one group of audio data to be transmitted, wherein include to add in audio data to be transmitted
Close audio data;
Step 2 creates pseudorandom sequence using the multiple audio datas and formula (1) that are pre-stored in front device and (2)
SYN1 and single-tone sequence SYN2 is arranged,
The audio data of unencryption in audio data to be transmitted is replaced with pseudo-random sequence and single-tone sequence, constitutes transmission number
According to, wherein encrypted audio data is adjacent with single-tone sequence;
SYN1 (k)=cos (2*pi/8000)(k*k/2... (1), k=P..Q, P are to prestore several voice numbers in front device
According to i is the position in audio data to be transmitted at pseudo-random sequence SYN1
SYN2 (k ')=cos (f*k '/8000 2*pi ' *) ... (2), k '=0..M, f are single-tone sequence frequency, and M is certainly
So number, i ' are the position in audio data to be transmitted at pseudo-random sequence SYN2, and P is to prestore several voice numbers in front device
According to;
Decoding process comprising:
Step 1: receiving end receives one group of audio data, the pseudo-random sequence of the audio data received is calculated most
Big correlation R1(ti), if the maximum related value of pseudo-random sequence is greater than or equal to the pseudo-random sequence door being pre-stored in receiving end
Limit value SYN1_TH then determines that receiving end is received there are pseudo-random sequence in one group of audio data, and setting pseudo-random sequence is connecing
The P of the tonic train received0On position, according to P0=P1i+Delta1Correct pseudo-random sequence position, wherein P1iIt is revised
Position of the pseudo-random sequence on the tonic train received, Delta1For the first presetting correct value parameter of receiving end;
Step 2: in (P1i-Delta3, P1i+Delta4) range in, calculate single-tone sequence maximum related value R2(tj),
If the maximum related value R of single-tone sequence2(tj) be greater than or equal to the single-tone sequence threshold value SYN2_TH being pre-stored in receiving end, then
Essence tracking effective marker TRF is calculated in the range, if essence tracking effective marker TRF==1, determines that receiving end receives one
There are single-tone sequences in group audio data, according to P0=P2j+Delta2Determine single-tone sequence location, wherein P2jFor single-tone sequence
Position on the tonic train received, Delta2、Delta3And Delta4Be pre-stored for receiving end second and third and four repair
Positive value parameter determines that receiving end receives one in one group of audio data according to determining pseudo-random sequence and single-tone sequence
Encrypted audio position;
Step 3: at interval of (N-Delta in the audio data received5) a audio data, repeat the above steps one
And step 2, determine remaining encrypted audio data, Delta5For the 5th presetting corrected parameter of receiving end.
Preferably, described in the voice data processing method synchronous for information source voice data before vocoder
In step 1, if the maximum related value of pseudo-random sequence is less than the pseudo-random sequence threshold value SYN1_TH being pre-stored in receiving end,
Then determine that receiving end receives and pseudo-random sequence is not present in one group of audio data.
Preferably, described in the voice data processing method synchronous for information source voice data before vocoder
In step 2, if the maximum related value R of single-tone sequence2(tj) it is less than the single-tone sequence threshold value SYN2_ being pre-stored in receiving end
TH does not calculate essence tracking effective marker TRF then.
Preferably, described in the voice data processing method synchronous for information source voice data before vocoder
In step 2, if essence tracking effective marker TRF=0, determines that receiving end receives and single-tone sequence is not present in one group of audio data
Column.
Preferably, it in the voice data processing method synchronous for information source voice data before vocoder, also wraps
It includes:
Step 4: the corresponding correlation of previous group encrypted audio data is CR1k-1 if received in audio data,
It is P1k-1 receiving the position in audio data, the corresponding correlation of later group encrypted audio data is CR1k, is being connect
The position received in audio data is P1k, if CR1k > CR1k-1, corrects later group according to P1k=P1k-1+Delta6 and adds
Close audio data, Delta6 are the 6th presetting corrected parameter of receiving end.
The present invention is include at least the following beneficial effects: the first, pseudo-random sequence is located at sound frequency range, can smoothly pass through
All kinds of mobile vocoders;The second, SYN1 has good autocorrelation performance, even if can still obtain under complex jamming environment
It obtains and more accurately synchronizes;Third, SYN2 are single-tone sequence, are located at fundamental tone frequency range, can be good at passing through all kinds of mobile acoustic codes
Device can be implemented to correct, it is ensured that higher synchronization accuracy to the sync bit of SYN1.
Further advantage, target and feature of the invention will be partially reflected by the following instructions, and part will also be by this
The research and practice of invention and be understood by the person skilled in the art.
Specific embodiment
The present invention will be further described in detail below with reference to the embodiments, to enable those skilled in the art referring to specification
Text can be implemented accordingly.
It should be appreciated that such as " having ", "comprising" and " comprising " term used herein do not allot one or more
The presence or addition of a other elements or combinations thereof.
A kind of voice data processing method synchronous for information source voice data before vocoder, comprising:
Cataloged procedure comprising:
Step 1, front device receive one group of audio data to be transmitted, wherein include to add in audio data to be transmitted
Close audio data;
Step 2 creates pseudorandom sequence using the multiple audio datas and formula (1) that are pre-stored in front device and (2)
SYN1 and single-tone sequence SYN2 is arranged,
The audio data of unencryption in audio data to be transmitted is replaced with pseudo-random sequence and single-tone sequence, constitutes transmission number
According to, wherein encrypted audio data is adjacent with single-tone sequence;
SYN1 (k)=cos (2*pi/8000)(k*k/2... (1), k=P..Q, P are to prestore several voice numbers in front device
According to i is the position in audio data to be transmitted at pseudo-random sequence SYN1
SYN2 (k ')=cos (f*k '/8000 2*pi ' *) ... (2), k '=0..M, f are single-tone sequence frequency, and M is certainly
So number, i ' are the position in audio data to be transmitted at pseudo-random sequence SYN2, and P is to prestore several voice numbers in front device
According to;
Decoding process comprising:
Step 1: receiving end receives one group of audio data, the pseudo-random sequence of the audio data received is calculated most
Big correlation R1(ti), if the maximum related value of pseudo-random sequence is greater than or equal to the pseudo-random sequence door being pre-stored in receiving end
Limit value SYN1_TH then determines that receiving end is received there are pseudo-random sequence in one group of audio data, and setting pseudo-random sequence is connecing
The P of the tonic train received0On position, according to P0=P1i+Delta1Correct pseudo-random sequence position, wherein P1iIt is revised
Position of the pseudo-random sequence on the tonic train received, Delta1For the first presetting correct value parameter of receiving end;
If the maximum related value of pseudo-random sequence is less than the pseudo-random sequence threshold value SYN1_TH being pre-stored in receiving end,
Then determine that receiving end is received there is no pseudo-random sequence in one group of audio data, receiving end will receive one group of audio data and pass
It is defeated to next device or to filter out;
Step 2: in (P1i-Delta3, P1i+Delta4) range in, calculate single-tone sequence maximum related value R2(tj),
If the maximum related value R of single-tone sequence2(tj) be greater than or equal to the single-tone sequence threshold value SYN2_TH being pre-stored in receiving end, then
Essence tracking effective marker TRF is calculated in the range, if essence tracking effective marker TRF==1, determines that receiving end receives one
There are single-tone sequences in group audio data, according to P0=P2j+Delta2Determine single-tone sequence location, wherein P2jFor single-tone sequence
Position on the tonic train received, Delta2、Delta3And Delta4Be pre-stored for receiving end second and third and four repair
Positive value parameter determines that receiving end receives one in one group of audio data according to determining pseudo-random sequence and single-tone sequence
Encrypted audio position;
If the maximum related value R of single-tone sequence2(tj) it is less than the single-tone sequence threshold value SYN2_TH being pre-stored in receiving end,
Essence tracking effective marker TRF is not calculated then, receiving end will receive one group of audio data and be transferred to next device or filter out;
If essence tracking effective marker TRF=0, determines that receiving end receives and single-tone sequence is not present in one group of audio data
Column, receiving end will receive one group of audio data and be transferred to next device or filter out;
Step 3: at interval of (N-Delta in the audio data received5) a audio data, repeat the above steps one
And step 2, determine remaining encrypted audio data, Delta5For the 5th presetting corrected parameter of receiving end;
Step 4: the corresponding correlation of previous group encrypted audio data is CR if received in audio data1k-1,
It is P receiving the position in audio data1k-1, the corresponding correlation of later group encrypted audio data is CR1k, receiving
Position into audio data is P1kIf CR1k>CR1k-1, then according to P1k=P1k-1+Delta6Correct later group encrypted audio
Data, Delta6For the 6th presetting corrected parameter of receiving end.
Although the embodiments of the present invention have been disclosed as above, but its is not only in the description and the implementation listed
With it can be fully applied to various fields suitable for the present invention, for those skilled in the art, can be easily
Realize other modification, therefore without departing from the general concept defined in the claims and the equivalent scope, the present invention is simultaneously unlimited
In specific details and legend shown and described herein.