CN100346390C - Method for compiling variable voice signal - Google Patents

Method for compiling variable voice signal Download PDF

Info

Publication number
CN100346390C
CN100346390C CNB031440061A CN03144006A CN100346390C CN 100346390 C CN100346390 C CN 100346390C CN B031440061 A CNB031440061 A CN B031440061A CN 03144006 A CN03144006 A CN 03144006A CN 100346390 C CN100346390 C CN 100346390C
Authority
CN
China
Prior art keywords
voice signal
variable voice
segmentation
compiling
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB031440061A
Other languages
Chinese (zh)
Other versions
CN1571014A (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 CNB031440061A priority Critical patent/CN100346390C/en
Publication of CN1571014A publication Critical patent/CN1571014A/en
Application granted granted Critical
Publication of CN100346390C publication Critical patent/CN100346390C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The present invention a method for compiling variable voice signals. The present invention comprises the steps that variable voice signals to be compiled are segmented; variable voice signal units in each segment are individually compiled to form sequences of the variable voice signal units; the sequences of the variable voice signal units are merged, and corresponding voice signal code sequences are searched in corresponding tables of the variable voice signal units and voice signal codes; the voice signal code sequences are output, and thus, compiling results of the variable voice signals are obtained. The present invention can be used to extract a variable voice signal compiling method from a voice signal platform so that the increase and decrease of the variable voice signal compiling method is not achieved any more by the changes of the voice signal platform. Therefore, the present invention has the advantages of flexible use and convenient operation.

Description

The method of variable voice signal compiling
Technical field
The present invention relates to audio signal processing technique, relate to a kind of method of variable voice signal compiling specifically.
Background technology
In telecommunication service, especially in intelligent network, through regular meeting's processes voice signals, such as to user's play service menu, newspaper amount of money or the like.The voice signal that wherein has can be not different because of user's difference, dial such as anyone and all can hear " hello, welcomes to use 200 calling card services, please import your card number and finish by # " at 200 o'clock; Voice platform is for this voice signal, and general needs a voice signal numbering just passable.The voice signal that has then can change according to condition is different, and for example when inquiring about the remaining sum of 200 cards, if card is gone up when also having 50 yuan, the voice signal of hearing is " your remaining sum is 50 yuan "; If when also having 45.5 yuan on the card, the voice signal of hearing is " your remaining sum is 45 yuan five jiaos ".This moment, the voice signal platform was except speech signal coding, also need a content of waiting to compile the variable voice signal, and the Compilation Method of this variable voice signal, in this example, " variable voice signal to be compiled " is exactly 50 or 45.5, and " Compilation Method " is exactly the compiling of the Chinese amount of money.
In the voice signal platform in the Compilation Method of above-mentioned variable voice signal, prior art is directly to realize by function processing module, promptly directly call the function processing module corresponding, thereby carry out the compiling of numeral to voice signal with it according to the Chinese amount of money (promptly 50 or 45.5).
Obviously, there are many deficiencies in the Compilation Method of above-mentioned existing variable voice signal, for example increases if desired at every turn or changes a kind of compiling rule, just needs voice signal platform of upgrading, uses very inconvenience.
Summary of the invention
The present invention proposes a kind of method of variable voice signal compiling, to solve the very inconvenient problem of upgrading or change system that exists in the prior art.
For this reason, the invention provides following technical scheme:
A kind of method of variable voice signal compiling comprises following steps:
A, variable voice signal that will be to be compiled are made staging treating, and the variable voice signal is divided into a plurality of unit;
B, each voice signal unit is compiled one by one, and form the sequence of variable voice signal element;
The sequence of c, the above-mentioned plural variable voice signal element of merging, and in the corresponding tables of unit and speech signal coding, search the corresponding speech signal coded sequence;
D, with the output of this speech signal coding sequence, promptly obtain the compiling result of described variable voice signal.
Wherein, described variable voice signal that will be to be compiled carries out staging treating and more specifically is meant: according to the starting point of segmentation foundation and segmentation, variable voice signal to be compiled is carried out segmentation.
Wherein, staging treating among the described step a specifically comprises: wait to compile the variable voice signal and carry out staging treating at least one time described according to the starting point of selectable segmentation foundation and segmentation, during staging treating more than carrying out once, back time staging treating is to carry out on the basis of last time segmentation result.
The mode that in the segmentation each unit of variable voice signal is compiled one by one among the described step b is meant and adopts independent compilation of this byte and back byte to compile and mend behind the given content a kind of in the compiling together.
The sequence of section variable voice signal unit comprises one or both of prefix, suffix.
If the variable voice signal element of segmentation does not exist or for empty, then the sequence of this section variable voice signal unit of Xing Chenging is a default value; If the unit of the variable voice signal of segmentation had continuous 0 o'clock, can adopt the mode that merges compiling or separately compile, under default situation, follow the configuration on upper strata, after merging is finished, do not compile in the foremost of the content element of the variable voice signal of segmentation and all backmost 0.
Merge among the described step c sequence as a result after the sequence of this variable voice signal element also comprise segmentation according to the content of correspondence, prefix, suffix a kind of, two or three.Sequence as a result after the sequence of this variable voice signal element does not exist or for empty, the sequence as a result after then merging is a default value if merge.
1, to the not influence of existing voice signal platform interface, the present invention is the improvement on the variable voice signal compiling of the voice signal platform implementation method own, for the requirement of input parameter and as broad as long in the past, therefore all be that content to be compiled adds Compilation Method, other that use the voice signal platform used without any influence.
2, use flexibly, easy to operate; To compile from the voice signal platform among the present invention and extract separately, and make the voice signal platform under the situation of not upgrading, to revise existing compiling rule flexibly, realize various newly-increased compiling rules.
Describe the present invention in detail below in conjunction with the drawings and specific embodiments.
Description of drawings
Fig. 1 is the process flow diagram of the method for variable voice signal compiling of the present invention;
Specific implementation
Relate to the compiling of Chinese amount of money voice signal in the intelligent network through regular meeting, support ten million yuan the Chinese amount of money below with maximum, as the example that is compiled as of " 12; 345,678.90 ", before introducing; the corresponding tables of unit and speech signal coding once is described earlier, as shown in the table:
Table 1
The content element speech signal coding
0 00000000
1 00000001
......
10 00000010
11 00000011
......
20 00000020
......
100 00000100
......
Unit 00010001
Angle 00010002
Divide 00010003
......
The compiling of variable voice signal will be compiled into the variable voice signal combination of unit exactly.Last table 1 is the basis of variable voice signal compiling, through the whole process of variable voice signal compiling.
Present embodiment comprises the steps:
The first, variable voice signal that will be to be compiled carries out staging treating, and the variable voice signal is divided into a plurality of unit.
Particularly be meant:, variable voice signal to be compiled is carried out segmentation according to the starting point of segmentation foundation and segmentation; Determine that promptly the segmentation foundation is a radix point ". ", and the starting point of segmentation is the first, according to the starting point of this segmentation foundation and segmentation, variable voice signal to be compiled is carried out segmentation; Be about to " 12,345,678.90 " and be divided into two sections of " 12,345,678 ", " 90 ".
When this step staging treating, also first section " 12,345,678 " are carried out nested staging treating, it is meant again and according to the starting point of segmentation foundation and segmentation variable voice signal to be compiled is carried out segmentation; Determine that the segmentation foundation is 4 bytes of every section content word joint number this moment, and the starting point of segmentation is the position, end, is about to " 12,345,678 " and is divided into two sections of " 1234 ", " 5678 ".And second section " 90 " are not made nested staging treating.
The second, each section variable voice signal unit is compiled one by one, form the sequence of variable voice signal element.Wherein, the sequence of the section variable voice signal unit of formation also comprises one or both of prefix, suffix.
" 1234 ", " 5678 ", " 90 " byte-by-byte are successively compiled, Bian Yi compile mode is meant to search in the corresponding tables of unit and speech signal coding whether corresponding unit is arranged one by one, present embodiment specifically comprises three kinds of modes: first kind is the independent compilation of this byte, promptly do not need to consider other conditions, only in the corresponding tables of unit and speech signal coding, search with the content of this byte; Second kind is to compile together with the back byte, be about to N combination of bytes of this byte and back together after, search in the corresponding tables of unit and speech signal coding, if can find corresponding unit after the combination this moment, then the N of a back byte does not just need to have compiled again again; The third is to compile after mending given content, promptly after this byte, fill given content after, in the corresponding tables of unit and speech signal coding, search again.
1, to the compiling of " 1234 " byte-by-byte, be Right Aligns with this content setting;
For first byte " 1 ", its prefix does not exist, and current byte is not 0 o'clock, and the suffix content is " thousand ", to its compile mode that adopts is: this byte independent compilation mode, the sequence of this variable voice signal element are " 1 "+" thousand ".
For second byte " 2 ", its prefix does not exist, and suffix does not exist yet, and to its compile mode that adopts is: compile after mending given content, mend " 00 ", the sequence of this variable voice signal element is " 200 ".
For the 3rd byte " 3 ", its prefix does not exist, and suffix does not exist yet, and to its compile mode that adopts is: compile after mending given content, mend " 0 ", the sequence of this variable voice signal element is " 30 ".
For nybble " 4 ", its prefix does not exist, and suffix does not exist yet, and to its compile mode that adopts is: this byte independent compilation mode, the sequence of this variable voice signal element is " 4 ".
2, to the compiling of " 5678 " byte-by-byte, be Right Aligns with this content setting;
For first byte " 5 ", its prefix does not exist, and current byte content is not 0 o'clock, and suffix is " thousand ", to its compile mode that adopts is: this byte independent compilation mode, the sequence of this variable voice signal element are " 5 "+" thousand ".
For second byte " 6 ", its prefix does not exist, and suffix does not exist yet, and to its compile mode that adopts is: compile after mending given content, mend " 00 ", the sequence of this variable voice signal element is " 600 ".
For the 3rd byte " 7 ", its prefix does not exist, and suffix does not exist yet, and to its compile mode that adopts is: compile after mending given content, mend " 0 ", the sequence of this variable voice signal element is " 70 ".
For nybble " 8 ", its prefix does not exist, and suffix does not exist yet, and to its compile mode that adopts is: this byte independent compilation mode, the sequence of this variable voice signal element is " 8 ".
3, to the compiling of " 90 " byte-by-byte, be left-justify with this content setting;
If the unit of the variable voice signal of segmentation had continuous 0 o'clock, can adopt the mode that merges compiling or separately compile, under default situation, follow the configuration on upper strata, after merging is finished, do not compile in the foremost of the unit of the variable voice signal of segmentation and all backmost 0.
For first byte " 9 ", its prefix content does not exist, and current byte content is not 0 o'clock, and the suffix content is " angle ", to its compile mode that adopts is: this byte independent compilation mode, the sequence of this variable voice signal element are " 9 "+" angle ".
For second byte " 0 ", do not compile in the foremost of the unit of the variable voice signal of segmentation and all backmost 0.The sequence of this variable voice signal element is empty.
Three, the sequence that merges this variable voice signal element, and in the corresponding tables of unit and speech signal coding, search the corresponding speech signal coded sequence.Wherein merge sequence as a result after the sequence of this variable voice signal element also comprise segmentation according to the content of correspondence, prefix, suffix a kind of, two or three.
At first " 1234 " and " 5678 " are merged, segmentation at that time is according to being byte length 4, and corresponding content is empty, and the prefix content of " 1234 " does not exist, because of this section content is not 0, so the suffix content is " ten thousand "; The prefix content of " 5678 " does not exist, and the suffix content does not exist yet, and the sequence as a result after the sequence of this merging variable voice signal element is " 1, thousand, 200,30,4, ten thousand, 5, thousand, 600,70,8 ".
Secondly " 12345678 ", " 90 " are merged, segmentation at that time is according to being radix point ". ", and corresponding content is not for existing, and the prefix content of " 12345678 " does not exist, and because of this section content is not 0, the suffix content is " unit "; And the prefix content of " 90 " does not exist, and the suffix content does not exist yet, and its amalgamation result sequence is " 9, angle ".So the sequence as a result that finally merges after the sequence of this variable voice signal element is: " 1, thousand, 200,30,4, ten thousand, 5, thousand, 600,70,8, unit, 9, angle ".
At last, in table 1, search the corresponding speech signal coded sequence according to the sequence as a result after the above-mentioned merging, be: " 00000001,00020003,00000200,00000030,00000004,00020004,00000005,00020003,00000600,00000070,00000008,00010001,00000009,00010002 ".
Four,, promptly obtain the compiling result of described variable voice signal with this speech signal coding sequence output.
That is: carry out playback output by the voice signal platform.

Claims (10)

1, a kind of method of variable voice signal compiling is characterized in that this method comprises following steps:
A, variable voice signal that will be to be compiled are made staging treating, and the variable voice signal is divided into a plurality of unit;
B, each voice signal unit is compiled one by one, and form the sequence of variable voice signal element;
The sequence of c, the above-mentioned a plurality of variable voice signal elements of merging, and in the corresponding tables of unit and speech signal coding, search the corresponding speech signal coded sequence;
D, with the output of this speech signal coding sequence, promptly obtain the compiling result of described variable voice signal.
2, the method for a kind of variable voice signal compiling as claimed in claim 1 is characterized in that described step a more specifically is meant: according to the starting point of segmentation foundation and segmentation, variable voice signal to be compiled is carried out segmentation.
3, the method for a kind of variable voice signal compiling as claimed in claim 2, it is characterized in that, staging treating among the described step a specifically comprises: wait to compile the variable voice signal and carry out staging treating at least one time described according to the starting point of selectable segmentation foundation and segmentation, during staging treating more than carrying out once, back time staging treating is to carry out on the basis of last time segmentation result.
4, the method for a kind of variable voice signal compiling as claimed in claim 3 is characterized in that, the segmentation among the described step a is according to the byte number that is meant separator or every segment unit, and the starting point of segmentation is meant first place, position, end or wherein one.
5, the method that compiles as the described any variable voice signal of claim 1-4, it is characterized in that the mode that in the described step b segmentation variable voice signal element is compiled one by one is meant and adopts independent compilation of this byte and back byte to compile and mend behind the given content a kind of in the compiling together.
6, the method for a kind of variable voice signal compiling as claimed in claim 1 is characterized in that, if the variable voice signal element of segmentation does not exist or for empty, then the sequence of this section variable voice signal unit of Xing Chenging is a default value among the described step b.
7, as the method for claim 3 or 4 described a kind of variable voice signals compilings, it is characterized in that, if the variable voice signal element of segmentation among the described step b had continuous 0 o'clock, can adopt the mode that merges compiling or separately compile, under default situation, follow the configuration on upper strata, after merging is finished, do not compile in the foremost of the variable voice unit of segmentation and all backmost 0.
8, the method for a kind of variable voice signal compiling as claimed in claim 5 is characterized in that the sequence of the section variable voice signal unit that forms among the described step b also comprises one or both of prefix, suffix.
9, the method for a kind of variable voice signal compiling as claimed in claim 1 is characterized in that, sequence as a result after the sequence of this variable voice signal element does not exist or for empty, the sequence as a result after then merging is a default value if merge among the described step c.
10, the method for a kind of variable voice signal compiling as claimed in claim 1, it is characterized in that, merge among the described step c sequence as a result after the sequence of this variable voice signal element also comprise segmentation according to the content of correspondence, prefix, suffix a kind of, two or three.
CNB031440061A 2003-07-25 2003-07-25 Method for compiling variable voice signal Expired - Fee Related CN100346390C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031440061A CN100346390C (en) 2003-07-25 2003-07-25 Method for compiling variable voice signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031440061A CN100346390C (en) 2003-07-25 2003-07-25 Method for compiling variable voice signal

Publications (2)

Publication Number Publication Date
CN1571014A CN1571014A (en) 2005-01-26
CN100346390C true CN100346390C (en) 2007-10-31

Family

ID=34471320

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031440061A Expired - Fee Related CN100346390C (en) 2003-07-25 2003-07-25 Method for compiling variable voice signal

Country Status (1)

Country Link
CN (1) CN100346390C (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1159240A (en) * 1995-06-02 1997-09-10 菲利浦电子有限公司 Device for generating coded speech items in vehicle
US5740319A (en) * 1993-11-24 1998-04-14 Texas Instruments Incorporated Prosodic number string synthesis
CN1378155A (en) * 2001-04-04 2002-11-06 英业达股份有限公司 Method and system using speech to broadcast electronic mail

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5740319A (en) * 1993-11-24 1998-04-14 Texas Instruments Incorporated Prosodic number string synthesis
CN1159240A (en) * 1995-06-02 1997-09-10 菲利浦电子有限公司 Device for generating coded speech items in vehicle
CN1378155A (en) * 2001-04-04 2002-11-06 英业达股份有限公司 Method and system using speech to broadcast electronic mail

Also Published As

Publication number Publication date
CN1571014A (en) 2005-01-26

Similar Documents

Publication Publication Date Title
CN102687404B (en) Data value occurrence information for data compression
CN1257621A (en) Method and apparatus for lossless digital data compression
CN1758680A (en) Method for permutation and displaying number of mobile communication terminal
CN1300468A (en) Segmentation mechanism for a block encoder
CN1868127A (en) Data compression system and method
CN1874357A (en) Method for generating id symbol
CN100346390C (en) Method for compiling variable voice signal
CN101055593A (en) Tibetan web page and its code identification method
CN1492359A (en) Automatic state machine searching and matching method of multiple key words
CN1786884A (en) Apparatus for improving key identification accuracy in terminal of requiring multi-keys and method thereof
CN1265558C (en) A schematic diagram inspection method for hardware design
CN101043353A (en) Process for improving data-handling efficiency of network management system
CN1658513A (en) Arithmetic coding decoding method implemented by table look-up
CN1645750A (en) Coding and decoding method for variable long code
CN1145267C (en) High-efficiency convolution coding method
CN1885316A (en) Data information encoding method
CN1377193A (en) Multi-speech prompting method for intelligent network
CN1882008A (en) Method for realizing supplementary service attribute arrangement
CN1549574A (en) Telephone bill data processing method and apparatus
CN1662063A (en) Method for decoding codes in variable lengths
CN1859385A (en) Method and device for realizing SDII/SONET mixed application
CN1115780C (en) Bit quasi-shifting D/A converter
CN1119887C (en) Automatic distribution method of session mark for network equipment
CN1381972A (en) Method for inquiring packet data protocol related information by mobile user
CN1399461A (en) Quick calling-searching method for IP telephone

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

Granted publication date: 20071031

Termination date: 20120725