Summary of the invention
In view of the foregoing, the object of the present invention is to provide a kind of voice data transmission processing method and voice data transmission processor, can be at the inhomogeneous time-delay that in the IP transmission course, occurs at speech data, Data Receiving speed is non-constant or the data-bag lost problem is revised, and improves fidelity and the understanding property of speech data in the IP transmission course.
For achieving the above object, the present invention introduces a kind of voice data transmission processing method and voice data transmission processor of being realized by speech digit processor, voice data transmission system, microprocessor and software etc., it is characterized in that adopting following voice data transmission work of treatment method:
(1) sets speech syllable initial code time of reception parameter and speech syllable stop code time of reception parameter;
(2) the phonetic sampling speed of current speech digitized processing is encoded obtain the phonetic sampling rate code;
(3) starting point to the speech syllable of speech data is provided with the speech syllable initial code in phonetic coding is handled, terminating point at speech syllable is provided with the speech syllable stop code, each speech data is provided with the speech-sound data sequence sign indicating number sequentially, each syllable is provided with the speech syllable sequence code sequentially;
(4) speech syllable initial code, speech syllable stop code, speech data, speech-sound data sequence sign indicating number, speech syllable sequence code and current speech sampling rate sign indicating number are sent to receiving terminal;
(5) receiving terminal according to speech data between the speech syllable initial code, speech syllable stop code, speech syllable initial code and the speech syllable stop code that receive and current phonetic sampling rate code after, order that speech syllable initial code with same voice syllable sequence number and the speech data between the speech syllable stop code are indicated according to the speech-sound data sequence sign indicating number and the current pairing phonetic sampling speed of phonetic sampling rate code are carried out voice recovery processing;
(6) the speech data receiving terminal obtains allowing to receive the voice rate sign indicating number with current language data receiving velocity coding, and should allow reception voice rate sign indicating number to be sent to the speech data transmitting terminal, the speech data transmitting terminal allows to receive the sampling rate that voice rate sign indicating number is set the current speech digitized processing according to this;
(7) when speech data and speech-sound data sequence sign indicating number thereof are lost in transmission, it is the voice lines type function of variable that the pairing amplitude-frequency value of being received before and after the speech-sound data sequence sign indicating number of receiving terminal according to the speech data sign indicating number of losing of speech data is set up with the speech-sound data sequence sign indicating number, with the value of the speech-sound data sequence sign indicating number of losing the speech data correspondence, join in the corresponding sequence of speech data sign indicating number of reception as the speech data sign indicating number of repairing after drawing pairing amplitude-frequency value and give digitlization by the voice lines type function;
(8) when speech syllable initial code time of reception parameter is not received the speech syllable initial code in specified time, be judged to be when then finishing and receive the speech syllable initial code with the specified time of speech syllable initial code time of reception parameter, from receiving the speech syllable initial code, when speech syllable stop code time of reception parameter is not received the speech syllable stop code in specified time, be judged to be when then finishing and receive the speech syllable stop code with the specified time of speech syllable stop code time of reception parameter, when not receiving the speech syllable sequence code, the preceding speech syllable sequence code of once receiving is given behind the increasing or decreasing as current speech syllable sequence code, when not receiving the phonetic sampling rate code, with the preceding phonetic sampling rate code of once receiving as current phonetic sampling rate code.
Operation principle of the present invention is: in the IP of voice signal transmission course, adopted being stored after the speech data reception, and by identification to speech syllable, be respectively arranged with speech syllable initial code and speech syllable stop code before and after the complete speech data to each speech syllable, judge by reception speech syllable initial code and speech syllable stop code, confirm each syllable data receive whole after, according to the sampling rate in the voice digitization processing procedure speech data is recovered, then can eliminate the inhomogeneous time-delay of speech data in the IP transmission course, the problem of non-constant caused fidelity of speech data receiving velocity and the property understood decline, and adopted the sampling rate that the voice transmit leg is handled voice digitization to notify the voice recipient, the voice transfer rate notification voice transmit leg that the voice recipient allows voice-transmission system is so that the receiving-transmitting sides co-ordination guarantees that sampling rate is consistent with regeneration rate; Adopted in the present invention speech-sound data sequence sign indicating number, speech syllable sequence code have been set, be used for the integrality that receives data is judged the recipient, when appearance transmission data are substitute, then repaired, ascending order or the additional disappearance of descending part are pressed in the reparation of sequence code; Because modern technologies studies show that, can think in the regular hour, the amplitude-frequency variation characteristic of voice signal is linear, therefore when disappearance appears in the speech-sound data sequence sign indicating number of speech data and correspondence thereof, it is the voice lines type function of variable that employing is set up with the speech-sound data sequence sign indicating number for the basis the pairing amplitude-frequency value of the speech data sign indicating number that has received, voice amplitude-frequency signal to disappearance is inserted in the pairing position of speech-sound data sequence sign indicating number as the speech data sign indicating number of repairing to voice lines type function value and after carrying out digitlization according to its corresponding speech-sound data sequence sign indicating number, to alleviate owing to part speech data sign indicating number is lost the quality of voice transmission decline that brings.
Embodiment
Below be example explanation embodiments of the invention with the accompanying drawing:
Fig. 1 is that the voice data transmission processing method and the voice data transmission processor voice of one embodiment of the invention send main program figure, and wherein groundwork method and content are:
(1) system is initial, sets speech syllable initial code time of reception parameter and speech syllable stop code time of reception parameter;
(2) when not receiving that permission that the recipient sends receives the voice rate sign indicating number, the phonetic sampling speed of current speech digitized processing encoded obtains the phonetic sampling rate code; After receiving that permission that the recipient sends receives the voice rate sign indicating number, the pairing numerical value of this permissions reception voice rate sign indicating number encoded as the phonetic sampling speed of current speech digitized processing obtains the phonetic sampling rate code;
(3) starting point to the speech syllable of speech data is provided with the speech syllable initial code in phonetic coding is handled, terminating point at speech syllable is provided with the speech syllable stop code, each speech data is provided with the speech-sound data sequence sign indicating number sequentially, each syllable is provided with the speech syllable sequence code sequentially;
(4) with the receiving terminal transmission in the same way of speech syllable initial code, speech syllable stop code, speech data, speech-sound data sequence sign indicating number, speech syllable sequence code and current speech sampling rate sign indicating number one.
Fig. 2 is the voice data transmission processing method of one embodiment of the invention and the reception main program figure of voice data transmission processor, and wherein groundwork method and content are:
(1) receiving terminal according to speech data between the speech syllable initial code, speech syllable stop code, speech syllable initial code and the speech syllable stop code that receive and current phonetic sampling rate code after, speech syllable initial code with same voice syllable sequence number and the speech data between the speech syllable stop code are carried out voice recovery processing according to speech-sound data sequence sign indicating number and the current pairing phonetic sampling speed of phonetic sampling rate code;
(2) the speech data receiving terminal obtains allowing to receive the voice rate sign indicating number with current language data receiving velocity coding, and should allow reception voice rate sign indicating number to be sent to the speech data transmitting terminal, the speech data transmitting terminal allows to receive the sampling rate that voice rate sign indicating number is set the current speech digitized processing according to this;
(3) when speech data and speech-sound data sequence sign indicating number thereof are lost in transmission, it is the voice lines type function of variable that the pairing amplitude-frequency value of being received before and after the speech-sound data sequence sign indicating number of receiving terminal according to the speech data sign indicating number of losing of speech data is set up with the speech-sound data sequence sign indicating number, with the value of the speech-sound data sequence sign indicating number of losing the speech data correspondence, join in the corresponding sequence of speech data sign indicating number of reception as the speech data sign indicating number of repairing after drawing pairing amplitude-frequency value and give digitlization by the voice lines type function;
(4) when speech syllable initial code time of reception parameter is not received the speech syllable initial code in specified time, be judged to be when then finishing and receive the speech syllable initial code with the specified time of speech syllable initial code time of reception parameter, from receiving the speech syllable initial code, when speech syllable stop code time of reception parameter is not received the speech syllable stop code in specified time, be judged to be when then finishing and receive the speech syllable stop code with the specified time of speech syllable stop code time of reception parameter, when not receiving the speech syllable sequence code, the preceding speech syllable sequence code of once receiving is given behind the increasing or decreasing as current speech syllable sequence code, when not receiving the phonetic sampling rate code, with the preceding phonetic sampling rate code of once receiving as current phonetic sampling rate code.
Fig. 3 is the electrical schematic diagram of data communications processor in the voice data transmission processing method of one embodiment of the invention and the voice data transmission processor, and wherein: 1 is speech transmitting, adopts devices such as microphone, amplifier to constitute; 2 is the speech digit processor, adopts the digitization of speech signals processing module to constitute; 3 is delayer, the digital signal delayer that adopts digital circuit to constitute; 4 is speech coder, adopts conventional coder module; 5 is speech recognition device, adopts the monolithic sound identification module to constitute; 6 is microprocessor, adopts the monolithic computer module to constitute; 7 is voice receiver, adopts devices such as amplifier, loud speaker to constitute; 8 is the speech data reductor, and the digital signal that adopts the D/A switch device to realize is reduced to the circuit module of voice; 9 is the data buffer, adopts the routine data memory to constitute; 10 is data sink, adopts conventional digit signal receiver to constitute; The annexation of each device blocks is: the output of speech transmitting is connected with the input of speech recognition device, the operating state control end of speech recognition device and the identification signal output of speech recognition device are connected with one group of control signal input/output terminal of microprocessor, the input of delayer is connected with the speech data output of voice digitization processor, the output of delayer is connected with encoded speech data device input, speech data buffer input is connected with speech data receiver output, speech data buffer output is connected with speech data restorer input, language data process device operating state and control input/output terminal, delayer operating state and control input/output terminal, encoded speech data device operating state and control input/output terminal, speech data buffer operating state and control input/output terminal and speech data restorer operating state and control input/output terminal are connected with the microprocessor control signal input/output terminal respectively.
According to above-mentioned explanation and each functional module of illustrated arrangement, components and parts, join dependency device blocks, can finish enforcement of the present invention by above-mentioned workflow establishment Single Chip Microcomputer (SCM) program and method of work that the present invention introduced.
The present invention can also be in adopting following voice data transmission work of treatment method:
(1) sets voice paragraph initial code time of reception parameter and voice paragraph stop code time of reception parameter;
(2) starting point to each voice paragraph of speech data is provided with voice paragraph initial code in the voice digitization encoding process, at the terminating point of voice paragraph voice paragraph stop code is set, and each voice paragraph is provided with voice paragraph sequence code sequentially;
(3) voice paragraph initial code, voice paragraph stop code, voice paragraph sequence code are sent to receiving terminal;
(4) behind the speech data between the voice paragraph initial code, voice paragraph stop code, voice paragraph initial code and the voice paragraph stop code that receive of receiving terminal basis, voice paragraph initial code and the speech data between the voice paragraph stop code with same voice paragraph sequence number carried out voice recovery processing according to the pairing phonetic sampling speed of current phonetic sampling rate code;
(5) when voice paragraph initial code time of reception parameter is not received voice paragraph initial code in specified time, be judged to be when then finishing and receive voice paragraph initial code with the specified time of voice paragraph initial code time of reception parameter, from receiving voice paragraph initial code, do not receive voice paragraph stop code to voice paragraph stop code time of reception parameter in specified time, be judged to be when then finishing and receive voice paragraph stop code with the specified time of voice paragraph stop code time of reception parameter, when not receiving voice paragraph sequence code, the preceding voice paragraph sequence code of once receiving is given behind the increasing or decreasing as current voice paragraph sequence code.
Do like this and can more can improve the property understood of voice transfer in transmission so that the present invention is the complete transmission mode with the voice paragraph.
Voice data transmission processor in voice data transmission processing method of the present invention and the voice data transmission processor has a speech recognition device, a delayer, a speech data buffer, the output of speech transmitting is connected with the input of speech recognition device, the operating state control end of speech recognition device and the identification signal output of speech recognition device are connected with one group of control signal input/output terminal of microprocessor, the input of delayer is connected with the speech data output of voice digitization processor, the output of delayer is connected with encoded speech data device input, speech data buffer input is connected with speech data receiver output, speech data buffer output is connected with speech data restorer input, language data process device operating state and control input/output terminal, delayer operating state and control input/output terminal, encoded speech data device operating state and control input/output terminal, speech data buffer operating state and control input/output terminal and speech data restorer operating state and control input/output terminal are connected with the microprocessor control signal input/output terminal respectively; So just can realize method of work of the present invention.
The present invention can also be to the speech data of disappearance when revising, adopt the voice non-linearity function call with voice variation characteristic fall vacant the pairing amplitude-frequency value of aphasia sound data sequence code and give digitlization after join in the corresponding sequence of speech data sign indicating number of reception as the speech data sign indicating number of repairing; Like this can be so that when the part speech data lacks, impact littler to the fidelity of voice transfer and the property understood.
The present invention has introduced a kind of voice data transmission processing method and transmission processor of being realized by speech digit processor, voice data transmission system, microprocessor, software, speech recognition device, delayer, data buffer etc., having can be at the inhomogeneous time-delay that occurs in the IP transmission course at speech data, Data Receiving speed is non-constant or the data-bag lost problem is revised, and improves the fidelity of voice in the IP transmission course and the characteristics of the property understood.