Abstract:
A text-to-speech synthesis system receives digital code representative of characters from a local or remote source, and converts those character codes into speech. A set of allophone rules is contained in a memory and each incoming character set is matched with the proper character set to describe the sound of that particular character set. A microcontroller is dedicated to the comparison procedure which provides allophonic code when a match is made. The allophonic code is provided to a speech producing system which has a system microcontroller for controlling the retrieval, from a read-only memory, of digital signals representative of the individual allophone parameters. The addresses at which such allophone parameters are located are directly related to the allophonic code. A dedicated microcontroller concatenates the digital signals representative of the allophone parameters, including code indicating stress and intonation patterns for the allophones. An LPC speech synthesizer receives the digital signals and provides analog signals corresponding thereto to a loud speaker to produce speech-like sounds with stress and intonation.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     This invention pertains to electronic text-to-speech synthesizing a system and more particularly to systems that receives digital code such as ASCII representative of characters, determines an allophonic code for each incoming character set and sends such allophonic code to a speech producing system which decodes the allophonic code and assigns pitch for synthesizing, in an LPC speech synthesizer, speech-like sound, having unlimited vocabulary. 
     2. DESCRIPTION OF THE PRIOR ART 
     Waveform encoding and parameter encoding generally categorize the prior art techniques. Waveform encoding includes uncompressed digital data-pulse code modulation (PCM), delta modulation (DM), continuous variable slope delta modulation (CVSD) and a technique developed by Mozer (see U.S. Pat. No. 4,214,125). Parameter encoding includes channel vocoder, Formant synthesis, and linear predictive coding (LPC). 
     PCM involves converting a speech signal into digital information using an A/D converter. Digital information is stored in memory and played back through a D/A converter through a low-pass filter, amplifier and speaker. The advantage of this approach is its simplicity. Both A/D converters and D/A converters are available and relatively inexpensive. The problem involved is the amount of data storage required. Assuming a maximum frequency of 4K Hz, and further assuming each speech sample being represented by 8 to 12 bits, one second of speech requires 64K to 96K bits of memory. 
     DM is a technique for compressing the speech data by assuming that the analog-speech signal is either increasing or decreasing in amplitude. The speech signal is sampled at a rate of approximately 64,000 times per second. Each sample is then compared to the estimated value of the previous sample. If the first value is greater than the estimated value of the latter, then the slope of the signal generated by the model is positive. If not the slope is then negative. The magnitude of the slope is chosen such that it is at least as large as the maximum expected slope of the signal. 
     CVSD is a technique that is an extension of DM which is accomplished by allowing the slope of the generated signal to vary. The data rate in DM is typically in the order of 64K bits per second and in CVSD it is approximately 16K-32K bits per second. 
     The Mozer technique takes advantage of the periodicity of voiced speech waveform and the perceptual insensitivity to the phase information of the speech signal. Compressing the information in the speech waveform requires phase-angle adjustment to obtain a time-symmetrical pitch waveform which makes one-half of the waveform redundant; half period zeroing to eliminate relatively low-power segments of the waveform; digital compression using DM and repetition of pitch periods to eliminate redundant (or similar) speech segments. The data rate of this technique is approximately 2.4K bits per second. 
     In parameter encoding schemes, speech characteristics other than the original speech waveform are used in the analysis and synthesis. These characteristics are used to control the synthesis model to create an output speech signal which is similar to the original. The commonly used techniques attempt to describe the spectral response, the spectral peaks or the vocal tract. 
     The channel vocoder has a bank of band-pass filters which are designed so that the frequency range of the speech signal can be divided into relatively narrow frequency ranges. After the signal has been divided into the narrow bands the energy is detected and stored for each band. The production of the speech signal is accomplished by a bank of narrow band frequency generators, which correspond to the frequencies of the band-pass filters, controlled by pitch information extracted from the original speech signal. The signal amplitude of each of the frequency generators is determined by the energy of the original speech signal detected during the analysis. The data rate of the channel vocoder is typically in the order of 2.4K bits per second. 
     In formant synthesis, the short time frequency spectrum is analyzed to the extent that the spectral shape is recreated using the formant center frequencies, their band-widths and the pitch period as the inputs. The formants are the peaks in a frequency spectrum envelope. The data rate for formant synthesis is typically 500 bits per second. 
     Linear predictive coding (LPC) can best be described as a mathematical model of the human vocal tract. The parameters used to control the model represent the amount of energy delivered by the lungs (amplitude), the vibration of the vocal cords (pitch period and the voiced/unvoiced decision), and the shape of the vocal tract (reflection coefficients). In the prior art, LPC synthesis has been accomplished through computer simulation techniques. More recently, LPC synthesizers have been fabricated in a semiconductor, integrated circuit chip such as that described and claimed in U.S. Pat. No. 4,209,836 entitled &#34;Speech Synthesis Integrated Circuit Device&#34; and assigned to the assignee of this invention. 
     This invention is a combination of a speech construction technique and a speech synthesis technique. The prior art set out above involves synthesis techniques. 
     With respect to speech construction techniques, the library of available component sounds includes phonemes, allophones, diphones, demisyllables, morphs and combinations of these sounds. 
     Speech construction techniques involving phonemes are flexible techniques in the prior art. In English, there are 16 vowel phonemes and 24 consonant phonemes making a total of 40. Theoretically, any word or phrase desired should be capable of being constructed from these phonemes. However, when each phoneme is actually pronounced there are many minor variations that may occur between sounds, which may in turn modify the pronunciation of the phoneme. This inaccuracy in representing sounds causes difficulty in understanding the resulting speech produced by the synthesis device. 
     Another prior art construction technique involves the use of diphones. A diphone is defined as the sound that extends from the middle of one phoneme to the middle of the next phoneme. It is chosen as a component sound to reduce smoothing requirements between adjacent diphones. However, to encompass many of the coarticulation effects in English, a large inventory of diphones is usually required. The storage requirement is in the order of 250K bytes, with a computer required to handle the construction program. 
     Demisyllables have been used in the prior art as component sounds for speech construction. A syllable in any language may be divided into an initial demisyllable, final demisyllable and possible phonetic affixes. The initial demisyllable consists of any initial consonants and the transition into the vowel. The final demisyllable consists of the vowel and any co-final consonants. The phonetic affixes consist of all syllable-final non-core consonants. The prior art system requires a library of 841 initial and final demisyllables and 5 phonetic affixes. The memory requirement is in the order of 50K bytes. 
     A morph is the smallest unit of sound that has a meaning. In a prior art system, for unrestricted English text, a dictionary of 12,000 morphs was used which required approximately 600K bytes of memory. The speech generated is intelligible and quite natural but the memory requirement is prohibitive. 
     An allophone is a subset of a phoneme, which is modified by the environment in which it occurs. For example, the aspirated /p/ in &#34;push&#34; and the unaspirated /p/ in &#34;Spain&#34; are different allophones of the phoneme /p/. Thus, allophones are more accurate in representing sounds than phonemes. According to the present invention, 127 allophones are stored in 3,000 bytes of memory. The storage requirement is much less than the aforementioned system using diphones, demisyllables and morphs. 
     Text-to-speech synthesizer systems have been fabricated using phonemes and formant synthesis. This invention utilizes the flexibility of allophones coupled with LPC synthesis. 
     BREIF SUMMARY OF THE INVENTION 
     In this preferred embodiment, digital information in the form of ASCII code is serially entered into the system. The ASCII code may be entered from a local or remote terminal, a keyboard, a computer, etc. Of course, the particular code is simply a matter of choice and is not important to this invention. The character code is received by a microcontroller which interrogates a set of rules located in a read-only memory (ROM) to get a match for a particular character set. The rules are made up of characters which are dependent upon neighboring characters for the selection of allophonic codes. Each character set is compared with its appropriate rule character sets until a match is found. In this preferred embodiment, the information is set in the ROM in the form of ASCII code so that a direct comparison of ASCII code is made. When a match is found, the allophonic code corresponding to the matched allophone is retrieved. It is to be understood, however, that other sound components such as the aforementioned phonemes, diphones, demisyllables and morphs in coded forms are also contemplated for use with this LPC synthesizer. Furthermore, the allophonic code in this preferred embodiment is contemplated for use in other digital synthesizers as well as the LPC synthesizer of this preferred embodiment. 
     An allophone library is stored in a ROM. A microprocessor receives the allophonic code and addresses the ROM at the address corresponding to the particular allophonic code entered. An allophone, represented by its speech parameters, is retrieved from the ROM, followed by other allophones forming the words and phrases. A dedicated micro-controller is used for concatenating (stringing) the allophones to form the words and phrases. When stringing allophones, an interpolation frame of 25ms is created between allophones to smooth out sound transitions in LPC parameters. However, no interpolation is required when the voicing transition occurs. Energy is another parameter that must be smoothed. To obtain an overall smooth energy contour for the strung phrases, interpolation frames are usually created at both ends of the string with energy tapered toward zero. The smoothing technique described subsequently herein reduces the abrupt changes in sound which are usually perceived as pops, squeaks, squeals, etc. 
     Stress and intonation greatly contribute to the perceptual naturalness and contextual meaning of constructive speech. Stress means the emphasis of a certain syllable within a word, whereas intonation applies to the overall up-and-down patterns of pitch within a multi-syllable word, phrase or sentence. The contextual meaning of a sentence may be changed completely by assigning stress and intonation differently. Therefore, English does not sound natural if it is randomly intoned. The stress and intonation patterns which are a part of the speech construction technique herein contribute to the understandability and naturalness of the resulting speech. Stress and intonation are based on gradient pitch control of the stressed syllables preceding the primary stress of the phrase. All the secondary stress syllables of the sentence are thought of as lying along a line of pitch values tangent to the line of the pitch values of the unstressed syllables. The unstressed syllables lie on a mid-level line of pitch, with the stress syllables lying on a downward slanted tangent to produce an overall down drift sensation. The user is required to mark stressed syllables in the allophonic code. The stressed syllables then become the anchor point of the pitch patterns. A microprocessor automatically assigns the appropriate pitch values to the allophones which have been strung. 
     At this point, there exists an inventory of LPC parameters which have been strung together and designated in pitch as set out above. The LPC parameters are then sent to the speech synthesis device, which in this preferred embodiment is the device described in U.S. Pat. No. 4,209,836 mentioned earlier and which is incorporated herein by reference. The smoothing mentioned above is accomplished by circuitry on the synthesizer chip. The smoothing could also be accomplished through the microprocessor. 
     The principal object of this invention is to provide a text-to-speech system that has unlimited vocabulary in any language. 
     It is another object of this invention to provide an economic mechanism for producing speech-like sounds that are good in quality, with an unlimited vocabulary, from a textual code input. 
     Another object of this invention is to provide a text-to-speech system which is low cost in terms of storage and yet provides understandable synthetic speech. 
     It is still another object of this invention to provide a text-to-speech system which employs a digital, semiconductor integrated circuit LPC synthesizer in combination with concatenated sound input originated through text code to provide an unlimited vocabulary. 
     A further object of this invention is to provide a stress and intonation pattern to the input textual material so that the pitch is adjusted automatically according to a natural sounding intonation pattern at the output. 
     An all encompassing object of this invention is to provide a highly flexible, low cost text-to-speech system with the advantages of unlimited vocabulary and good speech quality. 
     These and other objects will be made evident in the detailed description that follows. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram of the inventive text-to-speech system. 
     FIGS. 2a-2p illustrate the allophone rules. 
     FIGS. 3a-3f form a flowchart illustrating the operation of the rules processor. 
     FIG. 4 is a block diagram of the speech producing system. 
     FIGS. 5a-5c form a description of the allophone library. 
     FIG. 6 illustrates the synthesizer frame bit content. 
     FIG. 7 ilustrates the allophone library bit content. 
     FIGS. 8a and 8b form a flowchart describing the operation of the microprocessor of the system. 
     FIGS. 9a-9i form a flowchart describing the intonation pattern structuring. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     FIG. 1 illustrates the text-to-speech system 10 having a 420 rules processor 17 with a digital character input (ASCII) for comparison to the rules 16 which are stored in a ROM. The rules processor 17 may be a Texas Instruments Incorporated Type TMCO420 microcomputer, for example, or any suitable signal processor. The rules ROM 16 may be a Texas Instruments Incorporated Type TMCO420 microcomputer, for example, or any suitable signal processor. The rules ROM 16 may be Texas Instruments Type TMS6100 (TMC350) voice synthesis memory which is a ROM internally organized as 16K×8 bits. 
     The allophonic code retrieved from rules ROM 16 is entered in the system 420 microprocessor 11 which is connected to control the stringer controller 13 and synthesizer 14. The output of synthesizer 14 is through speaker 15 which produces speech-like sounds in response to the input allophonic code. 
     The 356 stringer controller 13 may be a Texas Instruments Incorporated Type TMCO356 microcomputer, for example, or any suitable signal processor. Allophone library 12 may be a Texas Instruments Type TMS6100 ROM also. It may or may not be included because the TMC0356 microcomputer which may be employed as the stringer controller 13 has an internal ROM which may be used to contain the library. The 420 system midroprocessor 11 also may be a Texas Instruments Incorporated Type TMC0420 microcomputer. 
     Synthesizer 14 is fully described in previously mentioned U.S. Pat. No. 4,209,836. However, in addition, the 286 synthesizer 14 has the facility for selectively smoothing between allophones and has circuitry for providing a selection of speech rate which is not part of this invention. 
     FIGS. 2a-2p set out the allophone rules. For example, in the A rules [AW]b outputs the allophonic code for /AW3/ which is pronounced as the &#34;a&#34; in &#34;saw&#34;. Note that the &#34;A&#34; sounds are categorized in one group followed by the &#34;B&#34; sounds, etc. These are listed as &#34;A&#34; rules, &#34;B&#34; rules, &#34;C&#34; rules and so on. 
     FIGS. 3a-3f form the flowchart detailing the operation of the 420 rules processor 17 in searching the rules ROM 16 for each of the incoming digital characters. The appropriate allophonic code is retrieved and stress is assigned. 
     Referring first to FIG. 3a, the system is initialized, and the rule file is opened. The 420 rules processor 17 is thereby instructed to read information from the rules ROM 16 and to do the matching. The first character input (in ASCII) code in this preferred embodiment, is shifted to the right and then the first character is skipped. The first character is a space because of the shift to the right and is skipped so that when a comparison is made, it is noted that the neighboring character to the left of the next character is a space and the proper allophonic code can be assigned. Then the next character is read and the question &#34;end of text?&#34; is asked. If the answer is yes, the routine goes to &#34;STRESS&#34; on FIG. 3b. If the answer is no, the rules are read out until a match is made. Each rule contains the ASCII characters set to define an allophone and the corresponding allophonic code. When a match is made, the allophonic code is read out to &#34;STRESS&#34; of FIG. 3b, and the next character is obtained. 
     Coming in through &#34;STRESS&#34; on FIG. 3b, a pointer receives the beginning of the display buffer. The pointer also gets the beginning of the allophone buffer. Then the question &#34;?&#34; is asked. If the answer is true, &#34;?&#34; is deleted from queue 1 and it is determined whether the allophone starts with &#34;wh&#34;. If the answer is true, then a question bit flag is set. If the answer is &#34;no&#34;, the question bit flag is cleared. Then a reset word/phrase bit is set, and a reset allophone/allophone-bit flag is reset, followed by the beginning of the allophone buffer sent to the pointer. FIG. 3b, it is seen, is dedicated to concatenating the flags. 
     In FIG. 3c, the question is asked if the allophone=00. If the answer is false, a pointer is incremented until the allophone=00. When it does, it is determined whether the allophone number is less than 48 hexadecimal. If the answer is true, a vowel is indicated (as shown in the allophone library) and the last vowel gets the value of the pointer. If the answer is false, then the pointer is decremented becaus the first vowel received will actually be the last vowel. 
     The pointer receives the beginning of the allophone buffer and the primary receives a 1 with the vowel receiving a 0 in an initialization process. 
     In FIG. 3d, it is determined whether the allophone is a vowel. If the answer is true, then the vowel number is incremented by 1 and the next allophone is called. If the answer is false, it is then determined whether the allophone is a &#34; &#34;. If the answer is true, a primary stress is indicated and the code for &#34; &#34; must be eliminated from the assembly queue 1. Then the pointer is incremented and it is determined whether the next allophone is a &#34;&gt;&#34;. If the answer is true, &#34;&gt;&#34; is eliminated from queue 1 and it is indicated that the primary stress will be skipped to the next vowel. Therefore, the primary notation is incremented and the pointer is again incremented. If the answer is false, the primary is increased by the sum of primary+vowel to determine which vowel gets the primary stress. If it is determined that there is no &#34; &#34;, then no primary stress is indicated and it is determined whether the allophone is the end of frame. If the answer is false, the pointer is incremented and the routine shown in FIG. 3b is repeated. If it is an end of frame, then the primary is reset to 0 and it is determined as shown in FIG. 3e whether the last vowel receives the primary stress. If the answer is yes, then a vowel bit flag is set. If the answer is no, the vowel bit flag is not set. In either event, the information thus derived (overhead) is sent to queue 2 which is the speaking queue. Next, the pointer is set to the beginning of the allophone buffer. The secondary bit flag is initialized and then, in FIG. 3f, it is determined whether the allophone is a &#34;-&#34;, indicating a secondary stress. If the answer is true, then the &#34;-&#34; must be removed from queue 1 and the pointer is indexed. Next it is determined whether the following allophone is a &#34;&gt;&#34;, indicating that the next vowel is to receive the secondary stress. If the answer is true, then the code for &#34;&gt;&#34; must be deleted from queue 1 and the secondary flag is incremented by 1 and the question whether a skip is to be performed is again asked. If there is no skip, then it is determined whether the allophone is a vowel. If the answer is false, the pointer is incremented by 1 until a vowel is reached. If the answer is true, then the secondary stress flag is decremented by 1 and the question is asked whether the secondary is now equal to 0. If the answer is true, a secondary stress flag is set as indicated on FIG. 3f. If the answer is false, the pointer is incremented. 
     If it is indicated that the allophone is the end of the frame, then allophone buffer is down loaded to queue 2, the speaking queue. 
     FIG. 4 is a block diagram of the speech producing syste which has been described in association with FIG. 1. 
     FIGS. 5a through 5c illustrate the allophones within the allophone library 12. For example, allophone 18 is coded within ROM 12 as &#34;AW3&#34; which is pronounced as the &#34;a&#34; in the word &#34;saw&#34;. Allophone 80 is set in the ROM 12 as code corresponding to allophone &#34;GG&#34; which is pronounced as the &#34;g&#34; in the word &#34;bag&#34;. Pronunciation is given for all of the allophones stored in the allophone library 12. 
     Each allophone is made up of as many as 10 frames, the frames varying from four bits for a zero energy frame, to ten bits for a &#34;repeat frame&#34; to 28 bits for a &#34;unvoiced frame&#34; to 49 bits for a &#34;voiced frame&#34;. FIG. 6 illustrates this frame structure. A detailed description is present in previously mentioned U.S. Pat. No. 4,209,836. 
     In this preferred embodiment, the number of frames in a given allophone is determined by a well-known LPC analysis of a speaker&#39;s voice. That is, the analysis provides the breakdown of the frames required, the energy for each frame, and the reflection coefficients for each frame. This information is stored then to represent the allophone sounds set out in FIGS. 5a-5c. 
     Smoothing between certain allophones is accomplished by circuitry illustrated in FIGS. 7a and 7a (cont&#39;d) of U.S. Pat. No. 4,209,836. In FIGS. 7a and 7a (cont&#39;d), signal SLOW D is applied to parameter counter 513, which causes a frame width of 25 MS to be slowed to 50 MS. Interpolation (smoothing) is performed by the circuitry shown in FIGS. 9a, 9a (cont&#39;d), 9b, 9b (cont&#39;d) over a 50 MS period when signal SLOW D present and over a 25 MS period when signal SLOW D is absent. In the invention of U.S. Pat. No. 4,209,836, a switch was set to cause slow speech through signal SLOW D. All frames were lengthened in duration. 
     In the present invention, SLOW D is present only when the last frame in an allophone is indicated by a single bit in the frame. The actual interpolation (smoothing) circuitry and its operation are described in detail in U.S. Pat. No. 4,209,836. 
     FIG. 6 illustrates the bit formation of the allophone frame received by the 286 synthesizer 14. As shown, MSB the end of allophone (EOA) bit. When EOA=1, it is the last frame in the allophone. When EOA=0, it is not the last frame in the allophone. FIG. 6 illustrates a total of 50 bits (including EOA) for the voiced frame, 29 bits for the unvoiced frame, 11 bits for the repeat frame and 5 bits for the zero energy frame or the energy equals 15 frame. 
     FIG. 7 illustrates an allophone frame from the allophone library 12. F1-F5 are each one bit flags with F5 being the EOA bit which is transferred to the 286 synthesizer 14. The combination of flags F1 and F2 and the combination of flags F3 and F4 are shown in FIG.7 and the meaning of those combinations set out. 
     FIGS. 8a and 8b form a flowchart illustrating the details of control exerted by the 420 microprocessor 11 over, primarily, the 356 stringer 13. Beginning at &#34;word/phrase&#34;, the first-in, first-out (FIFO) register of the 356 stringer 13 is initialized to receive the allophonic code from 420 microprocessor 11. Next it is determined whether the incoming information is simply a word or a phrase. If it is simply a word, then the call routine is brought up to send flag information representative of allophones, the primary stress and which vowel is the last in the word. The number of allophones is set in a countdown register and the number of allophones is sent to the 356 stringer 13. 
     The primary stress to be given is sent, followed by the information as to which vowel is the last one in the word. Finally, a send 2 is called to send the entire 8 bits (7 bits allophone, 1 bit stress flag). It should be noted that the previous send routine involved sending only 4 bits. 
     A send 2 flag is set and a status command is sent to the 356 stringer 13. Then, if the 356 FIFO is ready to receive information, the FIFO is loaded. 
     Four bits are then sent from the 420 microprocessor 11 queue register to the FIFO of the 356 stringer 13. The queue is incremented and checked to determine whether it has been emptied. If it has been emptied, there is an error. -f it has not been emptied, then the send 2 flag is interrogated. If it is not set, then the routine returns to the send 2 call mentioned above. If the flag is set, then it is cleared and the next four bits are brought in to go through the same routine as indicated above. 
     When the return is made, an execute command is sent to the 356 stringer 13 after which a status command is sent. If the 356 stringer 13 is ready, a speak command is given. If it is not ready, the status command is again sent unti1 the stringer 13 is ready. Then the allophone is sent and the countdown register containing the number of allophones is decremented. If the countdown equals zero, the routine is again started at word/phrase. If the countdown is not equal to zero, then the send 2 routine is again called and the next allophone is brought with the procedure being repeated until the entire word has been completed. 
     If a phrase had been sent rather than a word, then and similar to the case of the single word, status flags are sent, and the call routine is sent, indicating first the number of words, then the primary stress, and then the base pitch and the delta pitch. At that point, the routine returns to word/phrase and is identical to that set out above. 
     FIGS. 9a-9i form a flowchart of the details of the control of the action of the 356 stringer 13 on the allophones. Beginning in FIG. 9a, the starting point is to &#34;read an allophone address&#34; and then to &#34;read a frame of allophone speech data&#34;. On path 31 to FIG. 9b, a decision block inquiring &#34;first frame of the allophone&#34; is reached. If the answer is &#34;yes&#34;, then it is necessary to decode the flags F1-F5. If the answer is &#34;no&#34;, then it is necessary to only decode flags F3, F4 and F5. As indicated above, flags F1 and F2 determine the nature of the allophone and need not be further decoded. After the decoding, in either case, a decision block is reached where it is necessary to determine whether F3 F4=00. If the answer is &#34;yes&#34; then the energy is 0 and a decision is made as to whether F5=1, indicating the last frame in the allophone. If the answer is yes, then the decision is reached as to whether it is the last allophone. If the answer is &#34;yes&#34;, the routine has ended. If F5 is not equal to 1, then E=0 is sent to the 286 synthesizer 14 and the next frame is brought in as indicated on FIG. 9a. If F5=1, and it is not the last allophone, then the information E=0 and F5=1 is sent to the 286 synthesizer 14 and the next allophone is called starting at the beginning of the routine. 
     If F3 F4 is not equal to 00, then it is determined whether F3 F4=01, indicating a 9 bit word because a repeat, using the same K parameters, is to follow. If the answer is &#34;no&#34;, then on path 32 to FIG. 6c, it is determined whether F3 F4=10, indicating 27 bits for an unvoiced frame. If the answer is &#34;yes&#34;, the first four bits are read as energy. Five bits for pitch are created as 0 and the next four bits are read as K1-K4. Then energy and pitch=0 and K1-K4 are sent to the 286 synthesizer 14. If F3 F4≠10, then F3 F4=11 indicating a voiced 48 bit frame and the first four bits are read as energy, the next five bits are created as pitch and the ten K parameters are read. 
     Turning to FIG. 9b, if it was determined that F3 F4=01, then on path 33 into FIG. 9c, the next four bits are read as energy, a five bit space is created for pitch and repeat (R)=1. At this point, if F3 F4=11 or if F3 F4=01, a pitch adjustment is to be made. The inquiry &#34;base pitch=0?&#34; is made. If the answer is &#34;yes&#34;, then the speech is a whisper and pitch is set to 0. At that point, energy and pitch=0 and K1 to K4 are sent to the 286 synthesizer 14. The next frame is brought in as indicated on FIG. 9a. 
     If the base pitch≠0, then a decision is made as to whether the delta pitch=0. If the answer is &#34;yes&#34;, then the pitch is made equal to the base pitch. The energy, and pitch equal to the monotone base pitch, and the parameters K1-K10 are sent to the 286 synthesizer 14 and the next frame is brought in. 
     If the delta pitch≠0, then on path 34 into FIG. 9d, it is determined whether F1 F2=00, indicating a vowel. If the answer is &#34;yes&#34;, then the question &#34;a primary in the phrase &#34; is asked. If the answer is &#34;no&#34; it is asked whether there is a secondary in the phrase. If the answer is &#34;no&#34;, then the vowel is unstressed and the question is asked &#34;is this vowel before the primary stress&#34;. If the answer is &#34;no&#34;, then on path 38 to FIG. 9e, the decision is made as to whether this is the last vowel. If the answer is &#34;no&#34;, then the decision is made as to whether it is a statement or a question type phrase. If the answer is that it is a statement, the decision is made to determine whether it is immediately after the primary stress. If the answer is &#34;no&#34;, then the pitch is made equal to the base pitch and on path 51 to FIG. 9i, it is seen that path 40 returns to FIG. 9g where it is indicated that all parameters are sent to the 286 synthesizer 14 for reading and another frame is brought in. This particular path was chosen because of its simplicity of explanation. The multitude of remaining paths shown illustrate in great detail the selection of pitch at the required points. 
     The assignment of descending or ascending base pitch is shown in FIG. 9h. Path 37 from FIG. 9d indicates that there is a primary stress in the particular string and if it is the last vowel, then it is determined whether the phrase is a question or statement. If it is a question, it is determined whether it is the first frame of the allophone. If the answer is &#34;yes&#34;, then pitch is assigned as indicated equal to BP+D-2. If it is a statement, and it is the first frame, then pitch is assigned as BP-D+2. 
     MODE OF OPERATION 
     The operation of this invention is primarily shown in FIGS. 3a-3f, 8a, 8b and 9a-9i. In broad terms, however, the text-to-speech synthesis system accepts ASCII code, looks up the appropriate allophonic code in the allophone rules, and assigns stress and pitch. The allophonic code is then received through the 420 microprocessor 11 shown in FIG. 1. The code received is related to an address in the allophone library 12. The code is sent by the 420 microprocessor 11 to 356 stringer 13 where the address is read and the allophone is brought out when handled as indicated in FIGS. 9a-9i. The basic control by the 420 microprocessor 11 in causing the action by the 356 stringer 13 is shown in FIGS. 8a and 8b. The 286 synthesizer 14 receives the allophone parameters from the 356 stringer 13 and forms an analog signal representative of the allophone to the speaker 15 which then provides speech-like sound. 
     This inventive speech producing system, in its preferred embodiment, describes an LPC synthesizer on an integrated circuit chip with LPC parameter inputs provided through allophones read from the allophonic library. It is of course contemplated that other waveform encoding types of code inputs may be used as inputs to a speech synthesizer. Also, the specific implementation shown herein is not to be considered as limiting. For example, a single computer could be used for the functions of the microcomputer, the allophone library, and the stringer of this invention without departing from its scope. The breadth and scope of this invention is limited only by the appended claims.