Abstract:
According to the present invention, a voice synthesis apparatus for analyzing characters including a symbol character and for outputting the characters by voice synthesis, includes: a first detection module that detects a paragraph section having a repetition of a plurality of kinds of a symbol based on a character column in one line; and a voice synthesis module for performing voice synthesis for a rest of character column deleting the symbol character column interval from the character line.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    1. Field of the Invention  
           [0002]    The present invention relates to a text-to-speech synthesis apparatus, which inputs a text composed of a mixture of “HIRAGANA” and “KATAKANA” Chinese characters including a symbol such as a word, and composition, which then converts the input text into voice. More particularly, the present invention relates to processing symbols incorporated in a text.  
           [0003]    2. Description of the Related Art  
           [0004]    [0004]FIG. 8 is a constitution diagram of a conventional text-to-speech synthesis apparatus. Conventionally, the text-to-speech synthesis includes a text analysis unit  803  and a speech-synthesis-by-rule unit (parameter generator  805  and voice synthesis unit  806 ).  
           [0005]    When a character column is input into a preprocessor  802 , a character not to be read is deleted and an analysis unit (one sentence) is cut, and the sentence is output to a text analysis unit  803 . In the text analysis unit  803 , the sentence is decomposed into words by referring to a word dictionary  804 ; pronunciation, accent type of each word, and intonation of phrase are determined, and a phonetic symbol with a prosodic symbol (Interlanguage) is output. The speech-synthesis-by-rule unit includes a parameter generator  805  and a voice synthesis unit  806 , and speech synthesis is performed based on the Interlanguage.  
           [0006]    In the parameter generator  805 , a voice segment addresses in a voice segment dictionary  807  are selected, and pitch patterns, phoneme duration, pause length, amplitude, and the like are set.  
           [0007]    In the voice synthesis unit  806 , voice segment data corresponding to phonetic symbols are selected from voice segment dictionary  807 , and voice segments are combined/changed to allow voice synthesis processing in accordance with a parameter determined in the parameter generator  805 .  
           [0008]    A text includes not only a general symbol including the end of a section of a word, a postpositional word and a phrase, a punctuation mark showing an end of a section, and a colon/or semi colon showing apposition/exemplary but also various symbols such as an interval, a bracket, a scientific symbol, a unit symbol, a rule and a special symbol. When all kinds of symbols in input text are spoken, it is useful for the particular application such as collation check. However, when these symbols are spoken, the sounds of the symbols irritate users in general use.  
           [0009]    However, a conventional synthesis apparatus provides an operation mode to read a symbol, and also provides an operation mode not to read aloud the symbol, in order to be capable of selecting the mode. In a normal operation the mode is set not to read aloud a symbol character. In a preprocessor  802  of FIG. 8, a symbol character in a text is detected. The symbol is deleted and then the text is analyzed when the operation is set so as to not read the symbol.  
           [0010]    On the other hand, there is a case where read the symbol is not limited and the symbol character should be spoken as the symbol. In that case, the continuous symbol is used as a paragraph section line as an expression often used in a general text such as “-----”. If a symbol column in this case is output by voice such as ┌hyphen, hyphen, hyphen, . . . ┘ per one character, this further irritates users.  
           [0011]    A module to judge a plurality of successive symbols in a preprocessor and a countermeasure is taken as disclosed in, for example, Japanese Laid Open publication No. 9-016196. Countermeasure is that the N or more number of symbols, even if read the symbol is set, is output as another reading, a sign tone, a voiceless part, a different speed, sound quality, and a synthesis tone of sound volume, which are listened to without any feeling.  
           [0012]    In recent years, voice quality of a text-to-speech synthesis apparatus has rapidly improved, and voice guidance in car navigation and voice auto information guide systems have become more common. The ability to read aloud electric mail is one of the main applications. Electronic mail has expressions such as a visual variety of intensions or appearances arising from recent rapid use.  
           [0013]    A simple description such as a line of asterisks (*) or hyphens (-) is not used for a paragraph section line but various descriptions are used as shown in a table 1. Descriptions shown in table 1 are just one example, however, in all examples, detection is not possible in a conventional manner to judge same symbol repetition. There is a problem that reads aloud all symbols in one line, or one part of a symbol in a line as the symbol, is spoken.  
                             TABLE 1                       No.   Expression&#39;s example of paragraph section line                                1                     2                     3                     4                     5                     6                     7                     8                     9                     10                     11                                
 
         SUMMARY OF THE INVENTION  
         [0014]    Therefore, it is an object of the present invention to provide a voice synthesis apparatus in which text converted into synthesis voice can be easily listened to in a case where a text in which a symbol character column has multiple descriptions as a paragraph section line etc.  
           [0015]    According to the present invention, a voice synthesis apparatus for analyzing characters including a symbol character and for outputting the characters by voice synthesis, includes:  
           [0016]    a first detection module that detects a paragraph section having repetition of a plurality of kinds of a symbol based on a character column in one line; and  
           [0017]    a voice synthesis module for performing voice synthesis for a rest of character column deleting the symbol character column interval from the character line.  
           [0018]    According to the present invention, a voice synthesis apparatus analyzing characters including a symbol character and outputting characters by voice synthesized, in which a first detection module that detects symmetry of a row of symbol character columns is included and when the detection module detects, the symbol character column interval for rest of character columns in which symmetry of the row of symbol character columns is deleted from the line is synthesized by voice.  
           [0019]    According to the present invention, a voice synthesis apparatus in which the first detection module detects symmetry of a row of symbol character columns, in addition to this, a symbol character column interval composed of the symbol column to be deleted when a predetermined symmetry shaped symbol is identified and a pair of symbol shaped symbols is at a symmetrical position. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0020]    [0020]FIG. 1 is a block diagram showing a constitution of a voice synthesis apparatus in an embodiment of the present invention.  
         [0021]    [0021]FIG. 2 is a flowchart showing a flow of a processing in a first embodiment of a preprocessor  102 .  
         [0022]    [0022]FIG. 3 is a flowchart showing a flow of a processing at S 16  in FIG. 2.  
         [0023]    [0023]FIG. 4 is a flowchart showing a flow of a processing in a second embodiment of the preprocessor  102 .  
         [0024]    [0024]FIG. 5 is a flowchart showing a symmetry pattern judgment processing at S 46  in FIG. 4.  
         [0025]    [0025]FIG. 6 is a model diagram showing a processing content of FIG. 5.  
         [0026]    [0026]FIG. 7 is a flowchart showing a processing content at S 46  in a third embodiment of the preprocessor  102 .  
         [0027]    [0027]FIG. 8 is a constitution diagram a conventional text-to-speech synthesis apparatus.  
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0028]    The invention will now be described based on preferred embodiments, which do not intend to limit the scope of the present invention, but rather to exemplify the invention. All of the features and the combinations thereof described in the embodiments are not necessarily essential to the invention.  
         [0029]    [0029]FIG. 1 shows a constitution diagram of a voice synthesis apparatus (Text-to-speech synthesis apparatus) in an embodiment of the present invention. The voice synthesis apparatus includes a preprocessor  102  in which text is input, a symbol read setting information holder  103 , a text analysis unit  104 , a word dictionary  105 , a parameter generator  106 , a voice synthesis unit  107 , and a voice segment dictionary  108 .  
         [0030]    [0030]FIGS. 2 and 3 are flowcharts explaining a flow of a processing in a first embodiment of the preprocessor  102 . The symbol read setting information holder  103  holds set information on whether operation modes are to read a symbol or not to read it. A symbol not to be read is deleted, character column pattern repetition is detected and the detected pattern is deleted based on set information of the symbol read setting information holder  103  in the preprocessor  102 .  
         [0031]    A constitution of a processing block right after the text analysis unit  104  may have a function and constitution similar to a conventional text-to-speech synthesis apparatus (See FIG. 8). The text analysis unit  104  receives a text from preprocessor  102  in which a processing for the symbol is finished, the word dictionary  105  is referred and a morphological analysis is performed and pronunciation and accent are assigned and intonation are determined and a phonetic symbol with a prosodic symbol (Interlanguage) is output. The parameter generator  106  determines an address in a voice segment dictionary  108  of a voice segment to be used for synthesis, based on Interlanguage and sets a pitch frequency pattern, a duration of each phonem, or an amplitude. Various synthesis methods can be applied in a voice synthesis unit  107  and a pitch synchronous overlap add method (PSOLA) can be used.  
         [0032]    A particular processing of the preprocessor  102  will be described referring to FIGS.  1  to  3 . Each of the characters input into the preprocessor is checked from the start. Firstly, whether or not the character is a symbol marking an end of a sentence is judged at step  11  (S 11 ). The end of a sentence is judged by ┌∘ (Stop)┘ ┌. (period)┘ ┌? (question mark)┘, and the like. When the symbol marking an end of sentence is detected, a character column thereto is sent to the text analysis unit  104  as an analysis unit. Repeated processing of S 12  in front is performed until the symbol marking the end of sentence is detected.  
         [0033]    A kind of character is judged at S 12 . Judgment of character type is easily available in a range of a character code. There is an example in which not only a row of symbol characters but also a row of alphabets as a paragraph section line are used in a recent text. The alphabet may also be added as a kind of extra characters, however, whether or not the symbol character is judged in this embodiment. If the kind of characters is not the symbol character, a pointer proceeds to a next character at S 13  and returns to S 11 .  
         [0034]    If the kind of characters is the symbol character at S 12 , the pointer proceeds to S 14 , and whether an operation mode of a text-to-speech synthesis apparatus is the operation mode to read aloud the symbol, or the operation mode not to read aloud the symbol, is judged referring to the symbol read setting information holder  103 . The operation mode not to read aloud the symbol and the operation mode to read aloud the symbol are included as an operation style of the voice synthesis apparatus. Preferably, consideration is given to not read all symbols in the mode where the symbol is not read. The constitution is considerable so as to read a special symbol, the symbol, which should read, for example, ┌%┘ ┌+┘ ┌−┘ ┌=┘ etc. However, the preprocessor  102  constituted as not to read the symbol in set not to read of the present embodiment.  
         [0035]    If judgment S 14  is set not to read the symbol, the symbol character is deleted at S 15  and one space in all character columns in front of the deleted symbol character is deleted, and the processor returns to S 11 .  
         [0036]    When the symbol character is detected and when it is judged the operation mode of the voice synthesis apparatus is set to read the symbol, it is judged how to process the symbol and the symbol character columns ahead at S 16 .  
         [0037]    A plurality of continuous symbol character column patterns are detected at S 16  and when the symbol character column patterns constitutes a paragraph section line by a row of symbols, the symbol column is deleted from input character column data so that the symbol column is not read even if an operation mode is the operation mode set to read the symbol.  
         [0038]    A processing content at S 16  is shown in detail in FIG. 3. The amount of characters that constitute a pattern varies in repeated pattern judgment. A pattern in which two characters are repeated is used as an example in Nos. 1 to 8 of a table 1. A pattern in which three characters are repeated is used in No. 11. A pattern is constituted by a unit of five characters in Nos. 9 and 10. A pattern constitution is checked while the number of characters that constitutes the pattern is sequentially incremented from a low number in a pattern repeated judgment.  
         [0039]    At S 21 , an initial value N of the number of pattern characters is given. If N is 1, this is equal to continuously checking the same symbol. N=1 including the same symbol is given as an initial value.  
         [0040]    At S 22 , a character column for a N-character from a character position in front of the N-character is matched with a character column for the N character from a first character position where the symbol is detected and whether or not the pattern is repeated is judged. When patterns are inconsistent; it is judged that N character is not repeated, processing goes to S 23  and one character of the number of pattern characters is increased, the processing returns to S 22  and matching is retried. Since an increase in the number of characters for matching without limitation does not make sense, N max  of an upper limitation is provided for the number of pattern characters. In a general text, most of the repetition patterns can be detected if approximately five characters are provided for N max  of an upper limitation. Therefore, whether or not the number of pattern characters to be checked exceeds N max  of an upper limitation is judged at S 24 . When the number of pattern characters exceeds N max  of an upper limitation, it is judged that there is no pattern repetition in a character column where it starts from the symbol character and a processing such as deletion of a character is not performed, a character position pointer proceeds to S 25 , and then the processing returns to S 11  in FIG. 2.  
         [0041]    The character column pattern matched at S 22  is consistent and when it is judged that there is a repeat pattern, matching each N character is repeated at S 26  and the whole of the interval that is repeated at three times or more is extracted. Finally, if the character column pattern is not consistent, it will not always finish at a part where a paragraph section line is consistent. After a pattern of ┌▪□□□□┘ is repeated five times as shown in the example of No. 9 in the table 1, one of ┌▪┘ is ranged. The ┌▪┘ obviously constitutes ┌Part┘ a symbol column in front of ┌▪┘ ahead and does not exist by itself. Since the length of a paragraph section line is adjusted at an end of the pattern, the part of repeated pattern is often used. In front of S 27 , the part of the character column pattern that has been detected prior is matched and thereby precision of detection of the paragraph section line interval is improved.  
         [0042]    In particular, matching is repeated while the number of characters is decreased per one character until the number of pattern characters N becomes 0 at S 27  to S 29 . During repetition, whether an interval exists where only the start end part of the pattern is consistent is checked, and an interval repeating the character column pattern including the number of ends of a pattern of an end of a symbol column is detected.  
         [0043]    At S 30 , a character column pattern interval detected like this is considered as the paragraph section line and the interval is excluded from an object to be read, therefore, all of the character column is deleted; a character column right after the column that has been deleted is deleted and then the processing returns to S 11  in FIG. 2.  
         [0044]    In the present embodiment, the pattern is deleted unconditionally for simplification if the pattern is repeated at least once (repeat twice), however, it can also easily be realized to judge by providing a limiting rule such that the pattern is deleted if the pattern is repeated, for example, three times or more; if pattern length is long, the pattern is deleted even if the pattern is repeated twice; the pattern is not deleted twice if the pattern is short.  
         [0045]    As described above, in the first embodiment, the voice synthesis apparatus analyzing the character column mixing the symbol character and reading the analyzed character column by synthesized voice includes a module removing a paragraph section character column for detecting a plurality of continuous symbol character column patterns that are detected from the character column, considering an interval repeating the symbol character column pattern as a paragraph section character column and removing a character column interval and then sending the text to the text analysis. Thereby, even if in an expression type repeating the pattern not continuous of the same symbol, a character is not read per a character and there is no confusion when listening to synthesis sound.  
         [0046]    In a second embodiment of the preprocessor  102 , a constitution is provided. The constitution can be suited for a description style of a symmetry row of the symbol characters such as in table 2 in which a pattern is not continuous of the same symbol and does not repeat the same character column pattern. Although the description style in Table 2 is an example, which is often described in the text, a symbol column described here is not consistent with repetition of the character column pattern in the first embodiment. In any of examples, the symmetry pattern of the symbol exists between general character columns, which is not the symbol.  
                   TABLE 2                       No.   Expression&#39;s example of paragraph section line                   1              To user currently use ┌ifstation┘                  2              - Hot news -                  3              !Big sale at end of year!                             
 
         [0047]    [0047]FIG. 4 is a flowchart that shows a processing flow in a second embodiment of the advanced processor  102 . At S 46 , a symmetry pattern is judged rather than judgment of a repeat of a character column pattern at S 16  in FIG. 2. A whole constitution is similar to a constitution in the first embodiment and at S 41  to S 45 , and S 47 , the processings, which are the same as the processings S 12  to S 15 , and S 17  are respectively performed, therefore these descriptions are omitted.  
         [0048]    [0048]FIG. 5 shows a judgment processing flow of a symmetry pattern at S 46 . To judge symmetry, end of the pattern prior to judgment, it is necessary to detect the end of the pattern. Firstly, an end of a line (return) is detected at S 51  in FIG. 5. A reason for detecting a return is that in most of the cases a paragraph section line generally constitutes one line. The end of the pattern may, of course, be judged with high precision in consideration of a case where a character column exists in the same line after the symmetry pattern, however, this is very a rare case and only return judgment can achieve a sufficient function.  
         [0049]    After the end of the pattern is detected at S 51 , character positions at both ends to be matched are set at S 52 . An initial value, needless to say, are a position (Start end) where the symbol character is first detected and a character (Terminal end) just before return is performed. A character at a character position B is matched with a character position E at S 53  and whether or not the characters are consistent is checked. If the characters are consistent, pointers at the character positions of both ends are respectively moved towards inside one character at S 55  and are coincided again. The characters of the start end and the terminal end are matched per one character until the character position pointers of the start end and the terminal end are consistent and crossed.  
         [0050]    After the pointers are looped out at a point where matching is not consistent at S 53  or at a point where the character position pointers of the start end and the terminal end are consistent and crossed at S 56  and the consistent interval, that is, the symmetry interval is deleted, the processing returns to S 41  in FIG. 4.  
         [0051]    Processing of the character position pointers are different between at a point where matching is not consistent at S 53  and at a point where the character position pointers of the start end and the terminal end are consistent and crossed at S 56 .  
         [0052]    When character matching at S 53  is inconsistent and are looped out, the delete interval becomes an interval where characters are decreased per one character since the consistent character positions (symmetry is confirmed) are respectively positions where prior to one character of the terminal end and one character in front of the start end from the current character positions at S 54 .  
         [0053]    On the other hand, at S 56  when characters are looped out, all characters are deleted from the start end to the terminal end since symmetry of the whole check interval is confirmed. FIG. 6 model-shows a processing content in FIG. 5.  
         [0054]    In the second embodiment, it is constituted that a pattern is judged as the symmetry pattern if at least one character of the patterns of both ends is consistency in order to be simplified. However, there is a case where consistent of only one character accidentally exist in the text, therefore, preferably it is desirable that the pattern is judged as the symmetry pattern by counting the number of consistent characters and consistency of the preset number of characters or more (e.g., two characters or more).  
         [0055]    Although only symmetry pattern judgment is performed at S 46  in FIG. 4, symmetry pattern judgment and judgment repeating the character column pattern in the first embodiment is not an exclusive relation. It may, of course, be constituted so that judgment repeating the character column pattern is added and both the symmetry and repeat pattern are detected at the same time. In that case, there is a possibility that the natures of the patterns, which are originally symmetry are lost prior to symmetry detection by detecting repeat pattern and deleting the character column. Therefore, the symmetry is judged in advance and sequentially repeat pattern is judged.  
         [0056]    As described above, in the second embodiment, since a module is provided, the symbol is not read per one character in expression in an introduction line used in the text and thereby there is no confusion by listening to synthesis sound. The module deletes the character column for a symmetry interval when checking the symmetry of a symbol column before writing letters for the symbol.  
         [0057]    In a third embodiment of the preprocessor  102 , a symmetry shape character is discriminated and the character is processed the same as symmetry in judgment of a row of the symbol character symmetry. FIG. 7 is a flowchart showing a processing flow of a (see S 46  in FIG. 4) of symbol pattern judgment in the present embodiment. It is constituted that a count processing of the number of consistent characters described as a preferable example in the embodiment of FIG. 2 is added. An example of Table 3 shows an example In which characters are added to the symmetry pattern and the characters are processed.  
                   TABLE 3                       No.   Expression&#39;s example of paragraph section line                   1              - Hot news -                  2              !Big sale at end of year!                  3              Information                             
 
         [0058]    Firstly, an end of a line (return) is detected and the end is detected at S 71 . Secondly, a character position B (start end) and a character position E (terminal end) of both ends to be matched and a counter of the consistent number of characters L are initially set at S 72 . Consistency or inconsistency for the characters of character position B and character position E is judged at S 73 . When the characters of the character position B and the character position E are consistent in judgment at S 73 , the processing goes to S 79  to move the character position pointers inside, similar to the second embodiment after the number of consistent characters is totaled at S 78 . In contrast, even if a comparison is not consistent at S 73 , the possibility of a symmetry shape character is checked after S 74 .  
         [0059]    An example of the symmetry shape character is shown in Table 4. It is reasonable that when these characters are used in a row of symmetry, the characters are processed as the same characters in a case.  
               TABLE 4                           Example of symmetry shape symbol character column                                            
 
         [0060]    A kind of symmetry shape character is prepared as a table in the present embodiment (T 71 ); whether or not the characters are symmetry shape characters is judged at S 74  referring to the table; and if the characters are the symmetry shape characters, an attempt is made to compare the characters with the corresponding symmetry shape characters at S 75 . If the symmetry shape characters are consistent, it is considered that the characters are coincide even if the characters are originally different and the processing goes to total of the number of consistent characters at S 78 . When the corresponding characters do not exist at any of S 74  and S 75  or when the characters are not consistent, similar to the second embodiment, it is considered that consistency is interrupted and a character column up to just before the character is deleted as the symmetry pattern. However, the number of consistent characters is evaluated at S 76  before the character is deleted.  
         [0061]    As aforementioned, since there is a possibility of a case where a few characters are accidentally consistent, a threshold value L min  of the number of consistent characters is provided and evaluated. It is judged that there is a character column pattern of a row of symmetry only when consistency to exceed the threshold value L min  is confirmed, an L character is deleted from a start end B at S 77 , and the L character is deleted from the terminal end E.  
         [0062]    As described above, in the third embodiment, when the characters are completely consistent, a symmetry shaped character is identified and corresponding symmetry shaped characters exist at symmetrical positions in judgment of the symmetry pattern, a module in which it is provided that the characters are consistent. Thereby, a description, such as in Table 3, is visually considered as the symmetry pattern of the text that can be discriminated even if the characters are not consistent. Therefore, the symbol is not read per one character in a description expression and there is no confusion by listening to synthesis sound.  
         [0063]    Although the present invention has been described by way of exemplary embodiments, it should be understood that many changes and substitutions may be made by those skilled in the art without departing from the spirit and the scope of the present invention which is defined only by the appended claims. Although the symbol character is described as an object in the present embodiments 1 and 2, there is a case where an alphabet and another characters are aligned and are symbolly used. A kind of character to be objected is enlarged and can be matched.