VOICE ENCODER AND SYNTHESIZER

Abstract: A very small, very flexible, high-quality, linear predictive vocoder has been implemented with commercially available integrated circuit. This fully digital realization is based on a distributed signal processing architecture employing three commercial Signal Processing Interface (SPI) single chip microcomputers. One SPI implements a linear predictive speech analyzer (18), a second implements a pitch analyzer (20), while the third implements the excitation generator and synthesizer (28).

Description: VOICE ENCODER AND SYNTHESIZER Technical Field This invention relates to speech technology and, in particular, digital encoding techniques and methods for synthesizing speech. Background of the Invention The U.S. Government has rights to this in¬ vention pursuant to Contract AF19(628)-76-C-0002 awarded by the U.S. Air Force. Attention is directed to an article by one of the inventors herein, E. M. Hofstetter, and P. E. Blankenship ert a_l_. , entitled "Vocoder Implementations on the Lincoln Digital Voice Terminal" Proc. of EASCON 1975, Washington, D. C. (Sept. 1975), in which various methods of compressing speech bandwidth are described. Attention is also directed to an article by Hofstetter e_t_al_. entitled "Microprocessor Realization of a Linear Predictive Vocoder" Lincoln Laboratory Technical Note 1976-37 (Sept. 1976), in which a dedicated microprocessor for linear pred.ict.ive coding of speech is describe.d. Both of these articles are incorporated herein by refer¬ ence. The principal method of transmitting speech electronically up until the present has been via an analog signal proportional to speech pressure on a transducer * such as a microphone. Although electronic devices for bandwidth compression have been known since 1939 and many algorithms for digitally encoding speech have been proposed since the 1960's only with the ex- -^-T Q- OMPI expotentially decreasing cost of digital electronic technologies of the past fifteen years has a low-cost, low-power, compact, reliable vocoder implementation been foreseeable. Of the various methods for encoding speech, one preferred method is linear predictive coding (LPC) For a seminal description of this technique see J. D. Markel H. Gray, Jr. Linear Prediction of Speech (Springer-Verlag, N.T. 1967). Essentially, LPC seeks to model the vocal tract as a time varying linear all-pole filter by using very short, weighted segments of speech to form autocorrelation coefficients. From the coefficients, the critical frequency poles of the filter are estimated using recursion analysis. In addition to modeling the vocal tract as a filter, a voice encoder must also determine the pitch period and voicing state of the vocal cords. One method of doing this is the Gold Method, described by M. L. Malpass in an article entitled "The Gold Pitch Detector in a Real Time Environment" Proc. of EASCON 1975 (Sept. 1975), also incorporated herein by reference. See also, generally B. Gold, "Description of a Computer Program for Pitch Detection", Fourth International Congress on Acoustics, Copenhagen, August 21-28, 1962 and B. Gold, "Note on Buzz-Hiss- Detection" , J. Acoust. Soc. Amer. 36, 1659-1661 (1964). For communication processing purposes, the encoding techniques described above must also be per¬ formed in the opposite direction in order to synthesize speech. There exists a need for voice encoders and synthesizers (hereinafter "vocoders") in many communi¬ cation and related areas. Bandwidth compression is one obvious advantage. Digital speech signals can also be O PI coupled to encryption devices to insure private, secure communications of government defense, industrial and fin¬ ancial data. Moreover, data entry by vocal systems, pri¬ vate or not, represents a significant improvement over key punching in many appl i cat ' ions . Additionally, voice authenti cation and vocal control of automated processes will also depend upon high quality vocoders. Likewise, vocoders may find significant use in entertainment, educational , and business applications. Thus, there exists a need for high quality vocoder preferably vocoders which are low cost and manufacturable from stock electronic components, such as standard signal processing chips. Summary of the Invention We have developed a very compact, flexible, fully digital, full duplex 2.4 kilobit per second, linear pre¬ dictive coding vocoder using only commercially available devices. A total of 16 integrated circuits " Snd 4 discrete component carriers are used occupying 18 square inches and dissipating 5.5 watts of power. In one preferred embodiment the design is a distributed signal processing architecture based on three Nippon Electric Company Signal Processing Int face (SPI) yPD77 ' 20 16-bit, 250 ns cycle time signal processi single-chip microcomputers and an Intel 8085 8-bit micro- computer for control and communications tasks. Extreme flexibility is achieved by exploiting the microprogrammed nature of the design. Initialization options are downloaded from the Intel 8085 to the three SPI chips at run-time to choose linear predictive model order (less than 16), analysis and synthesis frame size, spe sampling frequency, speech input and output coding for- O PI mats (linear or y-255 law) as well as parameters to improve vocoder performance for a given input speech background noise condition. Finally, while commercial narrowband vocoder retail costs commonly exceed $10,000, it is projected that production quantities of the vocoder described here should be an order of magnitude less expensive. Our invention will be described in connection with the preferred embodiment shown in the figures; however, it should be evident that various changes and modifications can be made by those skilled in the art without departing from the spirit and scope of the claims. Brief Description of the Drawings Fig. 1 is a schematic diagram of our vo¬ coder; and Fig. 2 is a detailed schematic diagram of the LPC analyzer, pitch detector " and synthesizer of our vocoder. Detailed Description of Preferred Embodiment In Fig. 1 the overall structure of vocoder 10 is shown. Analog signals are proces_sed through a coder-decoder ("codec") module 12. Input signals passed through filter 14 and are converted to digital pulse trains in coder 16 within module 12. The output of coder 16 is a serial data stream for input to the LPC analyzer 18 and the pitch detector 20. In each analysis frame, the resulting linear predictive reflection coefficients (K-parameters ) , energy and pitch estimates are transferred to a terminal processor 26 or the outside world over an 8-bit parallel interface under the control of a four-chip Intel 8085-based microcom¬ puter 22. In a similar fashion, the control computer 22 re ceives synthesis parameters each frame from the outside world or terminal processor 26 and transmits them to the SPI synthesizer chip 28 which constructs and outputs the synthetic speech through its serial output port to the digital-to-analog conversion module 12 which includes the decoder 30 and output filter 32. The 8-bit bus is also used by the controller 22 to download initialization parameters to the three SPI chips as well as to support SPI chip frame synchronization during normal operation. Timing signals for the entire vocoder are provided by timing subsystem 24. The module 12 may be based on the AMI S3505 single chip CODEC-wi th-filters andwincludes switches 36 for choice of analog or digitally implemented pre-e phasis unit 34 and de-emphasis unit 38. As shown in Fig. 2, the LPC analyzer 18 functions as follows: Initialization parameters are received from controller 26 which set sampling rate-related-, correlation and filter order constants. Digital signals fro the codec unit 12 are first decoded for linear processing by decoder 40, then correlation coefficients are established by correlator 42 and analyzed by recursion analyzer 44 to obtain the parameters defining the poles of the filter model. The pitch detector 20 also receives initiali¬ zation parameters from the controller 22 and receives the digital signals from the codec unit 12. The digital OMPI signals are decoded for linear processing by decoder 50 and processed by peak detector 52 and then pitch and voicing determinations are made in unit 54 im¬ plementing the Gold algorithm. The outputs of the LPC analyzer 18 and the pitch detector 20 are framed, recoded and packed for transmission on a communication channel 26 by con¬ troller 22. In synthesizing speech the synthesizer 28 receives signals from the communications channel 26 after they have been synchronized, unpacked and de¬ coded by controller 22. The synthesizer 28 also receives initialization parameters from the controller 22. Pitch and voicing instructions are sent to the excitation generator 58 and the K-parameters are reconstructed by interpolator 60. The results are combined by filter 64 to produce the proper acoustic tube model. The output of filter 64 is coded in the non-linear format of codec module 12 by coder 68 and sent to the codec unit 12 for analog conversion. The operations of the ' LPC analyzer 18, the pitch detector 20 the synthesizer 28 and the codec unit 12 are further described below in narrative form. Since this description makes various references to the NEC chip architecture, attention is further directed to a document published by NEC entitled "μPD7720 Signal Processing Interface (SPI) User's Manual", incorporated herein by reference. LPC ANALYZER The LPC analyzer 18 consists of an interrupt service routine which is entered each time a new sample is generated by the A/D converter 12 and a background program which is executed once each analysis frame (i.e. approximately 20ms) on command from the control microcomputer. The parameters for the analysis are trans¬ ferred from the control processor 22 to the '7720 by means of an initialization program that is executed once during the start-up phase of operation. The parameters required fo analysis are two Hamming window constants S and C to be defined later, the filter order p (less than 16), a constant that determines the degree of digital preemphasis to be employed and a precorrelation downscaling factor. The final parameter sent is a word containing two mode-bits one of which tells the '7720 the type of A/D converter data format to expect, 8-bit mu-255 coded or 16-bit linear. The other bit determines which LPC energy parameter, residual or raw, will be transmitted to the control processor 22 at the con- elusion of each frame. The remaining analysis para¬ meters sent to the control processor 22 are the p reflection coefficients. The A/D interrupt service routine "" Ti rst checks the mode bits to determi-ne whether the input datum is 8-bit mu-coded or 16-bit uncoded. The datum is decoded if necessary and then passed to the Hamming window routine. This routine multiplies the speech datum by the appropriate Hamming weight. These weights are computed recursively using the stored con¬ stants S and C which denote the sine and cosine, re¬ spectively, of the quantity 2τr/N-l where N is the number of sample points in an analysis frame. The windowed speech datum is now multiplied by the stored precorrelati on downscaling factor and passed to the autocorrelation routine. The value of the downscaling factor depends on the frame length and must be chosen to avoid correlator overflow. The correlation routine uses the windowed, scaled speech datum to recursively update the p+1 correlation coeffi¬ cients being calculated for the current frame. The full 32-bit product is used in this calculation. This com¬ putation concludes the tasks of the interrupt service routine. The background routine computes the LPC re¬ flection coefficients and residual energy from the correlation coefficients passed to it by the interrupt service routine. This computation is performed once per frame on command from the control microcomputer 22. Upon receiving this command, the background routine leaves an idle loop and proceeds to use the aggregate processing time left over from the interrupt service routine to calculate the LPC parameters. The first step in this process is to take the latest p+1 32-bit correlation coefficients and put them in 16-bit, block-floating¬ point format. The resulting scaled correlation co¬ efficients are then passed to a routine implementing the LeRoux-Gueguen algorithm. See, generally, J. LeRoux and C. Gueguen, "A Fixed ^ Point Computation of Partial Correlation Coefficients in Linear Prediction," 1977 IEEE International Conf. on Acous., Speech and Signal Processing Rec. , Hartford, CT, May 9-11, 1977, pp. 742-743. The end result of this computation is an array consisting of p reflection coefficients and the prediction residual energy. The energy is now co¬ rrected for the block-floating-point operation per¬ formed earlier. This set of parameters with the re¬ sidual energy replaced by the raw energy (zeroth correlation coefficient) if so dictated by the appro¬ priate mode bit is shipped to the control micro¬ computer. Parameter coding is implemented in the control processor 22 in order to maintain the flexi¬ bility of the SPI analyzer. Two aspects of the analyzer's performance can be monitored by means of the SPI hardware pins P0 and PI. Pin P0 is set to a one during each frame the correlator overflows; it is cleared otherwise. Pin P0 therefore is useful in choosing the correlator downscaling factor which is used to limit correlator overflows. Real-time usage can be monitored from pin PI which is set to one during the interrupt service routine and set to zero otherwise. PITCH DETECTOR In each analysis frame the pitch detector 20 declares the input speech to be voiced or unvoiced, and in the former case, computes an estimate of the pitch period in units of the sampling epoch. The Gold algorithm is used here and is implemented with a single N.E.C. μPD7720. The foreground routine is comprised of computations which are executed each sample and additional tasks executed when a peak is detected in the filtered input speech waveform. Although in the worst case the pitch detector foreground program execution time can actually overrun one sampling interval, the SPI's serial input- port buffering capability relaxes the real-time constraint by allowing the processing load to be averaged over subsequent sampling intervals. The foreground routine is activated by the sampling clock 24. When a new sample arrives before processing of the previous sample is complete (detected by checking the '7720 serial input acknowledge flip-flop), the foreground routine is immediately repeated without returning to the background task. The initialization parameters down¬ loaded to the pitch detector chip 20 allow operation at an arbitrary sampling frequency within the real-time constraint. They include the coefficients and gains for a third-order Butterworth low-pass prefilter and internal clamps for maximum and minimum allowable pitch estimates. A voicing decision silence thres¬ hold is also downloaded to optimize pitch detector performance for differing combination of input speech background noise conditions and audio system sensitivity. The real-time usage of the SPI pitch detector 20 for a given set of initialization parameters can be readily moni¬ tored through the SPI device's two output pins. The P0 outpin pin is set to a high TTL level when the back¬ ground routine is active and the PI pin is set high when the foreground routine is active. The real-time constraint for the pitch detector is largely determined by the nominal foreground processing time since the less frequently occurring worst case processing loads are averaged over subsequent sampling intervals. SYNTHESIZER In each frame the SPI synthesizer 28 receives an energy estimate, pitch/voicing decision an a set of reflection coefficients from the control and communications microprocessor 22, constructs the synthesized speech, and outputs it through the SPI serial output port. The synthesizer 28 consists of a dual-source excitation generator, a lattice filter and a one-pole digital de- emphasis filter. The lattice filter coefficients are obtained from a linear interpolation of the past and present frames' reflection coefficients. In voiced frames, the filter excitation is a pulse train with a period equal to the pitch estimate and amplitude based on a linear interpolation of the past and present frames' energy estimates while in unvoiced frames a pseudo-random noise waveform is used. In each sampling interval " the SPI interrupt-dri ven foreground routine updates the excitation generator and lattice and de-emphasis filters to produce a synthesized speech sample. The foreground routine also interpolates the reflection coefficients three times a frame and inter¬ polates the pitch pulse amplitudes each pitch period. In sampling intervals where interpolation occurs and at frame boundaries where ' new reflection coefficients are obtained from the background routine, foreground execution time can overrun one sampling interval. As in the pitch detector 20, a foreground processing load averaging strategy is used to maintain real-time. The background program is activated when the foreground program receives a frame mark from the control micro¬ processor at which time it inputs and double buffers a set of synthesis parameters under a full-handshake protocol. Parameter decoding is executed in the con¬ trol processor to maintain the universality of the SPI synthesizer. The background routine also converts the energy estimate parameter to pitch pulse amplitudes during voiced frames and pseudo-random noise ampli¬ tudes during unvoiced frames. These amplitudes are based on the energy estimate, pitch period and frame size. A highly programmable synthesizer configuration is achieved in this implementation by downloading at vo¬ coder initialization time the lattice filter order, synthesis frame size and interpolation frequency from the controller 22. Other programmable features include choice of 16-bit linear or 8-bit μ-255 l w synthetic speech output format and choice of feedback and gain coefficients for the one-pole de-emphasis filter. Di¬ gital de-emphasis may be effectively by-passed by setting the feedback coefficient to zero. Finally, the energy estimate can be interpreted as either the residual energy or as the zer ' oth autocorrelation coefficient. As in the SPI pitch detector, hardware pins Pj3 and PI monitor QM real-time usage by denoting the background and fore¬ ground programs activity. The synthesizer's real¬ time constraint is determined by its nominal fore¬ ground processing load since the worst case pro- 5 cessing load occurs only at frame and interpolation boundaries and is averaged over subsequent sampling intervals . CONTROL MICROCOMPUTER Each analysis frame, the control microcomputer 10 22 received from the analyzer 18 and pitch detector 20 SPI's the energy estimate, p reflection coefficients, pitch estimate and voicing decision and transmits them to the communication channel. In a similar fashion, the control microcomputer 22 receives from the communications 15 channel 26 each frame these parameters and sends them to the synthesizer 28. Coding and packing of the analyzer and pitch detector parameters and decoding and unpacking of the synthesis parameters is done in the control micro¬ computer to maintain the flexibility of the three SPI 20 devices. Frame synchronization for both analysis and synthesis is also the responsibility of the control microcomputer 22 and may be obtained from either the timing subsystem 24 or from the communication channel 26 itself. Finally, the control microcomputer 22 includes 25 a start-up routine which initializes the SPI's with constants determining the sampling rate, frame size, linear predictive model order and speech inputs and outputs coding formats. The control microcomputer 22 is based on the Intel 8085 A-2 8-bit microprocessor. 3.0 ANALOG/DIGITAL CONVERSION..SUBSYSTEM A very compact analog subsystem is achieved in this design with the use of the AMI S3505 CODEC- with-filters which implements switched capacitor input and output band li iting filters and 8-bit u-255 law encoder (A/D converter) and decoder (D/A converter) in a 24-pin DIP. The CODEC'S analog input is preceded by a one-zero (500 Hz), one-pole (6 kHz) pre-emphasis filter. The analog output of the S3505 is followed by the corresponding one-pole (500 Hz) de-emphasis filter. The analog pre- and de-emphasis may be switched out when the SPI chip internal digital pre- and de-emphasis are used. The analog subsystem in total requires one 24-pin AMI S3505 CODEC, one 14- pin quad pp-amp DIP and two 14-pin discrete component carriers. O

Claims: CLA I MS 1 1. A digital voice encoding device compris- 2 ing: 1 a. Sampling means for sampling analog voice 2.. signals and producing discrete samples; 1 b. Analyzing means for producing a multiple- 2 pole, filter model of said voice by correlating and re- 3 cursively analyzing the samples from the sampling means; 1 c. Pitch detector means for making a voicing 2 decision and when voiced determining the pitch of the 3 voice from the samples of the sampling means; and 1 d. Controller means for arranging the out- 2 puts of the analyzing means and the pitch detector 3 means in a format suitable for digital transmission. 1 2. The encoding device of Claim 1 wherein 2 the sampling means produces samples in a non-linear, . 3 coded format. 1 3. The encoding device of Claim 1 wherein 2 the sampling means further comprises means to pre- 3 emphasize portions of the analog voice signals. 1 4. The encoding device of Claim 1 wherein 2 the analyzing means employs a linear predictive code 3 in the correlation and recursion analysis. 1 5. The encoding device of Claim 1 wherein 2 the pitch detecting means further comprises a low pass 3 filter, a peak detector, a pitch and voicing estimator 4 and means for smoothing results frame to frame. 1 6. The " encoding device of Claim 1 wherein 2 the controller further comprises rπeais for framing, 3 packing and coding the digital outputs prior to transmission - RE OMPI 7. The encoding device of Claim 1 wherein the controller further comprises means to get initial i- zation parameters for sampling rate-related, correlation and filter-order constants. 8. A digital voice synthesizing device co - prising: a. A controller for receiving dig tal signals providing voicing, pitch and filter-model information; b. An excitation generator for producing vocal chord excitation signals in response to voicing and pitch commands from the controller; c. A variable digital filter for filtering the output of the generator in response to commands from the controller; and d. A converter for converting the output of the digital filter into analog voice signals. 9. The synthesizing device of Claim 8 wherein the filter further comprises interpolation means for interpolating successive energy and -para- meter inputs from the controller to produce higher quality output signals to the converter. 10. The synthesizing device- of Claim 8 wherein the controller further comprises means for decoding, unpacking and synchronizing the digital input signals. 11. A voice encoding and synthesizing de- vice comprising the device of Claim 1 and the device of Claim 8 in combination. OMPI

Inventors: FELDMAN JOEL A, HOFSTETTER EDWARD M, FELDMAN, JOEL, A., HOFSTETTER, EDWARD, M.
Applicants: MASSACHUSETTS INST TECHNOLOGY, MASSACHUSETTS INSTITUTE OF TECHNOLOGY
Application year: 1982
Main classification: G10L1
IPC codes: G10L13, G10L19