DIGITAL SPEECH SINUSOIDAL VOCODER WITH TRANSMISSION OF ONLY A SUBSET OF HARMONICS

Abstract: A speech analyzer and synthesizer system using a sinusoidal encoding and decoding technique for voiced frames and noise excitation or multipulse excitation for unvoiced frames.For voiced frames, the analyzer (l00) transmits the pitch, values for a subset of offsets defining differences between harmonic frequencies and a fundamental frequency, total frame energy, and linear predictive coding, LPC, coefficients. The synthesizer (200) is responsive to that information to determine the harmonic frequencies from the offset information for a subset of the harmonics and to determine the remaining harmonics from the fundamental frequency. The synthesizer then determines the phase for the fundamental frequency and harmonic frequencies and determines the amplitudes of the fundamental and harmonics using the total frame energy and the LPC coefficients. Once the phases and amplitudes have been determined for the fundamental and harmonic frequencies, the synthesizer performs a sinusoidal analysis. In another embodiment, the remaining harmonic frequencies are determined by calculating the theoretical harmonic frequencies for the remaining harmonic frequencies and grouping these theoretical frequencies into groups having the same number as the number of offsets transmitted. The offsets are then added to the corresponding theoretical harmonics of each of the groups of the remaining harmonic frequencies to generate the remaining harmonic frequencies. In a third embodiment, the offset signals are randomly permuted before being added to the groups of theoretical frequencies to generate the remaining harmonic frequencies.

Description: Technical Field Our invention relates to speech processing, and more particularly to digital speech coding and decoding arrangements directed to the replication of speech, utilizing a sinusoidal model for the voiced portion of the speech, using only the fundamental frequency and a subset of harmonics from the analyzer section of the vocoder and an excited linear predictive coding filter for the unvoiced portion of the speech. Problem Digital speech communication systems including voice storage and voice response facilities utilize signal compression to reduce the bit rate needed for storage and/or transmission. One known digital speech encoding scheme is disclosed in the article by R. J. McAulay, et al., "Magnitude-Only Reconstruction Using a Sinusoidal Speech Model", Proceedings of IEEE International Conference on Acoustics, Speech, and Signal Processing, l984, Vol. 2, p. 27.6.l-27.6.4 (San Diego, U.S.A.). This article discloses the use of a sinusoidal speech model for encoding and decoding of both voiced and unvoiced portions of speech. The speech waveform is analyzed in the analyzer portion of a vocoder by modeling the speech waveform as a sum of sine waves. This sum of sine waves comprises the fundamental and the harmonics of the speech wave and is expressed as s(n)=Σa i (n)sin[ i (n)]. (1) The terms a i (n) and  i (n) are the time varying amplitude and phase of the speech waveform, respectively, at any given point in time. The voice processing function is performed by determining the amplitudes and the phases in the analyzer portion and transmitting these values to a synthesizer portion which reconstructs the speech waveform using equation l. The McAulay article discloses the determination of the amplitudes and the phases for all of the harmonics by the analyzer portion of the vocoder and the subsequent transmission of this information to the synthesizer section of the vocoder. By utilizing the fact that the phase is the integral of the instantaneous frequency, the synthesizer section determines from the fundamental and the harmonic frequencies the corresponding phases. The analyzer determines these frequencies from the fast Fourier transform, FFT, spectrum since they appear as peaks within this spectrum by doing simple peak-picking to determine the frequencies and amplitudes of the fundamental and the harmonics. Once the analyzer has determined the fundamental and all harmonic frequencies plus amplitudes, the analyzer transmits that information to the synthesizer. Since the fundamental and all of the harmonic frequencies plus amplitudes are being transmitted, a problem exists in that a large number of bits per second is required to convey this information from the analyzer to the synthesizer. In addition, since the frequencies and amplitudes are being directly determined solely from peaks within the resulting spectrum, another problem exists in that the FFT calculations performed must be very accurate to allow detection of these peaks resulting in extensive computation. Solution The present invention solves the above described problem and deficiencies of the prior art and a technical advance is achieved by provision of a method and structural embodiment in which voice analysis and synthesis is facilitated by determining only the fundamental and a subset of harmonic frequencies in an analyzer and by replicating the speech in a synthesizer by using a sinusoidal model for the voiced portion of speech. This model is constructed using the fundamental and the subset of harmonic frequencies with the remaining harmonic frequencies being determined from the fundamental frequency using computations that give a variance from the theoretical harmonic frequencies. The amplitudes for the fundamental and harmonics are not directly transmitted from the analyzer to the synthesizer; rather, the amplitudes are determined at the synthesizer from the linear predictive coding, LPC, coefficients and the frame energy received from the analyzer. This results in significantly fewer bits being required to transmit information for reconstructing the amplitudes than the direct transmission of the amplitudes. In order to reduce computation, the analyzer determines the fundamental and harmonic frequencies from the FFT spectrum by finding the peaks and then doing an interpolation to more precisely determine where the peak would occur within the spectrum. This allows the frequency resolution of the FFT calculations to remain low. Advantageously, for each voiced speech frame the synthesizer is responsive to encoded information that consists of frame energy, a set of speech parameters, the fundamental frequency, and offset signals representing the difference between each theoretical harmonic frequency as derived from the fundamental frequency and a subset of actual harmonic frequencies. The synthesizer is responsive to the offset signals and the fundamental frequency signal to calculate a subset of the harmonic phase signals corresponding to the offset signals and further responsive to the fundamental frequency for computing the remaining harmonic phase signals. The synthesizer is responsive to the frame energy and the set of speech parameters to determine the amplitudes of the fundamental signal, the subset of harmonic phase signals, and the remaining harmonic phase signals. The synthesizer then replicates the speech in response to the fundamental signal and the harmonic phase signals and the amplitudes of these signals. Advantageously, the synthesizer computes the remaining harmonic frequency signals in one embodiment by multiplying the harmonic number times the fundamental frequency and then varying the resulting frequencies to calculate the remaining harmonic phase signals. Advantageously, in a second embodiment, the synthesizer generates the remaining harmonic frequency signals by first determining the theoretical harmonic frequency signals by multiplying the harmonic number times the fundamental frequency signal. The synthesizer then groups the theoretical harmonic frequency signals corresponding to the remaining harmonic frequency signals into a plurality of subsets each having the same number of harmonics as the original subsets of harmonic phase signals and then adds each of the offset signals to the corresponding remaining theoretical frequency signals of each of the plurality of subsets to generate varied remaining harmonic frequency signals. The synthesizer then utilizes the varied remaining harmonic frequency signals to calculate the remaining harmonic phase signals. Advantageously, in a third embodiment, the synthesizer computes the remaining harmonic frequency signals similar to the second embodiment with the exception that the order of the offset signals is permuted before these signals are added to the theoretical harmonic frequency signals to generate varied remaining harmonic frequency signals. In addition, the synthesizer determines the amplitudes for the fundamental frequency signals and the harmonic frequency signals by calculating the unscaled energy of each of the harmonic frequency signals from the set of speech parameters for each frame and sums these unscaled energies for all of the harmonic frequency signals. The synthesizer then uses the harmonic energy for each of the harmonic signals, the summed unscaled energy, and the frame energy to compute the amplitudes of each of the harmonic phase signals. To improve the quality of the reproduced speech, the fundamental frequency signal and the computed harmonic frequency signals are considered to represent a single sample in the middle of the speech frame; and the synthesizer uses interpolation to produce continuous samples throughout the speech frame for both the fundamental and harmonic frequency signals. A similar interpolation is performed for the amplitudes of both the fundamental and harmonic frequencies. If the adjacent frame is an unvoiced frame, then the frequency of both the fundamental and the harmonic signals are assumed to be constant from the middle of the voiced frame to the unvoiced frame whereas the amplitudes are assumed to be "0" at the boundary between the unvoiced and voiced frames. Advantageously, the encoding for frames which are unvoiced includes a set of speech parameters, multipulse excitation information, and an excitation type signal plus the fundamental frequency signal. The synthesizer is responsive to an unvoiced frame that is indicated to be noise-like excitation by the excitation type signal to synthesize speech by exciting a filter defined by the set of speech parameters with noise-like excitation. Further, the synthesizer is responsive to the excitation type signal indicating multipulse to use the multipulse excitation information to excite a filter constructed from the set of speech parameters signals. In addition, when a transition is made from a voiced to an unvoiced frame the set of speech parameters from the voice frame is initially used to set up the filter that is utilized with the designated excitation information during the unvoiced region. Brief Description of the Drawing FIG. l illustrates, in block diagram form, a voice analyzer in accordance with this invention; FIG. 2 illustrates, in block diagram form, a voice synthesizer in accordance with this invention; FIG. 3 illustrates a packet containing information for replicating speech during voiced regions; FIG. 4 illustrates a packet containing information for replicating speech during unvoiced regions utilizing noise excitation; FIG. 5 illustrates a packet containing information for replicating voice during unvoiced regions utilizing pulse excitation; FIG. 6 illustrates the manner in which voice frame segmenter l4l of FIG. l overlaps speech frames with segments; FIG. 7 illustrates, in graph form, the interpolation performed by the synthesizer of FIG. 2 for the fundamental and harmonic frequencies; FIG. 8 illustrates, in graph form, the interpolation performed by the synthesizer of FIG. 2 for amplitudes of the fundamental and harmonic frequencies; FIG. 9 illustrates a digital signal processor implementation of FIG. l and 2; FIGS. l0 through l3 illustrate, in flowchart form, a program for controlling signal processor 903 of FIG. 9 to allow implementation of the analyzer circuit of FIG. l; FIGS. l4 through l9 illustrate, in flowchart form, a program to control the execution of digital signal processor 903 of FIG. 9 to allow implementation of the synthesizer of FIG. 2; and FIGS. 20, 2l, and 22 illustrate, in flowchart form, other program routines to control the execution of digital signal processor 903 of FIG 9 to allow the implementation of high harmonic frequency calculator 2ll of FIG. 2. Detailed Description FIGS. l and 2 show an illustrative speech analyzer and speech synthesizer, respectively, which are the focus of this invention. Speech analyzer l00 of FIG. l is responsive to analog speech signals received via path l20 to encode these signals at a low-bit rate for transmission to synthesizer 200 of FIG. 2 via channel l39. Advantageously, channel l39 may be a communication transmission path or may be storage media so that voice synthesis may be provided for various applications requiring synthesized voice at a later point in time. Analyzer l00 encodes the voice received via channel l20 utilizing three different encoding techniques. During voiced regions of speech, analyzer l00 encodes information that will allow synthesizer 200 to perform a sinusoidal modeling and reproduction of the speech. A region is classified as voiced if a fundamental frequency is imparted to the air stream by the vocal cords. During unvoiced regions, analyzer l00 encodes information that allows the speech to be replicated in synthesizer 200 by driving a linear predictive coding, LPC, filter with appropriate excitation. The type of excitation is determined by analyzer l00 for each unvoiced frame. Multipulse excitation is encoded and transmitted to synthesizer 200 by analyzer l00 during unvoiced regions that contain plosive consonants and transitions between voiced and unvoiced speech regions which are, nevertheless, classified as unvoiced. If multipulse excitation is not encoded for an unvoiced frame, then analyzer l00 transmits to synthesizer 200 a signal indicating that white noise excitation is to be used to drive the LPC filter. The overall operation of analyzer l00 is now described in greater detail. Analyzer l00 processes the digital samples received from analog-to-digital converter l0l in terms of frames, segmented by frame segmenter l02 and with each frame advantageously consisting of l80 samples. The determination of whether a frame is voiced or unvoiced is made in the following manner. LPC calculator lll is responsive to the digitized samples of a frame to produce LPC coefficients that model the human vocal tract and residual signal. The formation of these latter coefficients and energy may be performed according to the arrangement disclosed in U. S. Patent 3,740,476 and assigned to the same assignees as this application, or in other arrangements well known in the art. Pitch detector l09 is responsive to the residual signal received via path l22 and the speech samples receive via path l2l from frame segmenter block l02 to determine whether the frame is voiced or unvoiced. If pitch detector l09 determines that a frame is voiced, then blocks l4l through l47 perform a sinusoidal encoding of the frame. However, if the decision is made that the frame is unvoiced, then noise/multipulse decision block ll2 determines whether noise excitation or multipulse excitation is to be utilized by synthesizer 200 to excite the filter defined by the LPC coefficients that are also calculated by LPC calculator block lll. If noise excitation is to be used, then this fact is transmitted via parameter encoding block ll3 to synthesizer 200. However, if multipulse excitation is to be used, block ll0 determines a pulse train location and amplitudes and transmits this information via paths l28 and l29 to parameter encoding block ll3 for subsequent transmission to synthesizer 200 of FIG. 2. If the communication channel between analyzer l00 and synthesizer 200 is implemented using packets, than a packet transmitted for a voiced frame is illustrated in FIG. 3, a packet transmitted during the unvoiced frame utilizing white noise excitation is illustrated in FIG. 4, and a packet transmitted during an unvoiced frame utilizing multipulse excitation is illustrated in FIG. 5. Consider now the operation of analyzer l00 in greater detail for unvoiced frames. Once pitch detector l09 has signaled via path l30 that the frame is unvoiced, noise/multipulse decision block ll2 is responsive to this signal to determine whether noise or multipulse excitation is to be utilized. If multipulse excitation is utilized, the signal indicating this fact is transmitted to multipulse analyzer block ll0 via path l24. The latter analyzer is responsive to that signal on path l24 and two sets of pulses transmitted via paths l25 and l26 from pitch detector l09. Multipulse analyzer block ll0 transmits the locations of the selected pulses along with the amplitude of the selected pulses to parameter encoder ll3. The latter encoder is also responsive to the LPC coefficients received via path l23 from LPC calculator lll to form the packet illustrated in FIG. 5. If noise/multipulse decision block ll2 determines that noise excitation is to be utilized, it indicates this fact by transmitting a signal via path l24 to parameter encoder ll3. The latter encoder is responsive to this signal to form the packet illustrated in FIG. 4 utilizing the LPC coefficients from block lll and the gain as calculated from the residue signal by block ll5. Consider now in greater detail the operation of analyzer l00 during a voiced frame. During such a frame, FIG. 3 illustrates the information that is transmitted from analyzer l00 to synthesizer 200. The LPC coefficients are generated by LPC calculator lll and transmitted via path l23 to parameter encoder ll3; and the indication of the fact that the frame is voiced is transmitted from pitch detector l09 via path l30. The fundamental frequency of the voiced region which is transmitted as a pitch period via path l3l by pitch detector l09. Parameter encoder ll3 is responsive to the period to convert it to the fundamental frequency before transmission on channel l39. The total energy of speech within frame, eo, is calculated by energy calculator l03. The latter calculator generates eo by taking the square root of the summation of the digital samples squared. The digital samples are received from frame segmenter l02 via path l2l, and energy calculator l03 transmits the resulting calculated energy via path l35 to parameter encoder ll3. Each frame, such as frame A illustrated in FIG. 6, consists of advantageously l80 samples. Voice frame segmenter l4l is responsive to the digital samples from analog-to-digital converter l0l to extract segments of data samples with each segment overlapping a frame as illustrated in FIG. 6 by segment A and frame A. A segment may advantageously comprise 256 samples. The purpose of overlapping the frames before performing the sinusoidal analysis is to provide more information at the endpoints of the frames. Down sampler l42 is responsive to the output of voiced frame segmenter l4l to select every other sample of the 256 sample segment, resulting in a group of samples having advantageously l28 samples. The purpose of this down sampling is to reduce the complexity of the calculations which are performed by blocks l43 and l44. Hamming window block l43 is responsive to data from block l42, s n , to perform the windowing operation as given by the following equation: s h / n = s n (0.54 - 0.46cos((2πn)/l27)), (2) 0 ≦ n ≦ l27. The purpose of the windowing operation is to eliminate disjointness at the end points of a frame and to improve spectral resolution. After the windowing operation has been performed, block l44 first pads zeros to the resulting samples from block l43. Advantageously, this padding results in a new sequence of 256 data points as defined in the following equation: Next, block l44 performs the discrete Fourier transform, which is defined by the following equation: where s p / n is the nth point ofthe padded sequence s p . The evaluation of equation 4 is done using fast Fourier transform method. After performing the FFT calculations, block l44 then obtains the spectrum, S, by calculating the magnitude squared of each complex frequency data point resulting from the calculation performed in equation 4; and this operation is defined by the following equation: S k = F k F * / k, 0 ≦ k ≦ 255, (5) where * indicates complex conjugate. Harmonic peak locator l45 is responsive to the pitch period calculated by pitch detector l09 and the spectrum calculated by block l44 to determine the peaks within the spectrum that correspond to the first five harmonics after the fundamental frequency. This searching is done by utilizing the theoretical harmonic frequency which is the harmonic number times the fundamental frequency as a starting point in the spectrum and then climbing the slope to the highest sample within a predefined distance from the theoretical harmonic. Since the spectrum is based on a limited number of data samples, harmonic interpolator l46 performs a second order interpolation around the harmonic peaks determined by harmonic peak locator l45. This adjusts the value determined for the harmonic so that it more closely represents the correct value. The following equation defines this second order interpolation used for each harmonic: where M is equal to 256. S(q) is the sample point closer to the located peak, and the harmonic frequency equals P k times the sampling frequency. Harmonic calculator l47 is responsive to the adjusted harmonic frequencies and the pitch to determine the offsets between the theoretical harmonics and the calculated harmonic peaks. These offsets are then transmitted to parameter encoder ll3 for subsequent transmission to synthesizer 200. Synthesizer 200 is illustrated in FIG. 2 and is responsive to the vocal tract model and excitation information or sinusoidal information received via channel l39 to produce a replica of the original analog speech that has been encoded by analyzer l00 of FIG. l. If the received information specifies that the frame is voiced, blocks 2ll through 2l4 perform the sinusoidal synthesis to recreate the original voiced frame information in accordance with equation l and this reconstructed speech is then transferred via selector 206 to digital-to-analog converter 208 which converts the received digital information to an analog signal. If the encoded information received is designated as unvoiced, then either noise excitation or multipulse excitation is used to drive synthesis filter 207. The noise/multipulse, N/M, signal transmitted via path 227 determines whether noise or multipulse excitation is utilized and also operates selector 205 to transmit the output of the designated generator 203 or 204 to synthesis filter 207. Synthesis filter 207 utilizes the LPC coefficients in order to model the vocal tract. In addition, if the unvoiced frame is the first frame of an unvoiced region, then the LPC coefficients from the subsequent voiced frame are obtained by path 225 and are utilized to initialize synthesis filter 207. Consider further the operations performed upon receipt of a voiced frame. After a voiced information packet has been received, as illustrated in FIG. 3, channel decoder 20l transmits the fundamental frequency (pitch) via path 22l and harmonic frequency offset information via path 222 to low harmonic frequency calculator 2l2 and to high harmonic frequency calculator 2ll. The speech frame energy, eo, and the LPC coefficients are transmitted to harmonic amplitude calculator 2l3 via paths 220 and 2l6, respectively. The voiced/unvoiced, V/U, signal is transmitted to harmonic frequency calculators 2ll and 2l2. The V/U signal being equal to a "l" indicates that the frame is voiced. Low harmonic frequency calculator 2l2 is responsive to the V/U equaling a "l" to calculate the first five harmonic frequencies in response to the fundamental frequency and harmonic frequency offset information. The latter calculator then transfers the first five harmonic frequencies to blocks 2l3 and 2l4 via path 223. High harmonic frequency calculator 2ll is responsive to the fundamental frequency and the V/U signal to generate the remaining harmonic frequencies of the frame and to transmit these harmonic frequencies to blocks 2l3 and 2l4 via path 229. Harmonic amplitude calculator 2l3 is responsive to the harmonic frequencies from calculators 2l2 and 2ll, the frame energy information received via path 220, and the LPC coefficients received via path 2l6 to calculate the amplitudes of the harmonic frequencies. Sinusoidal generator 2l4 is responsive to the frequency information received from calculators 2ll and 2l2 to determine the harmonic phase information and then use this phase information and the harmonic amplitudes received from calculator 2l3 to perform the calculations indicated by equation l. If channel decoder 20l receives a noise excitation packet such as illustrated in FIG. 4, channel decoder 20l transmits a signal, via path 227, causing selector 205 to select the output of white noise generator 203 and a signal, via path 2l5, causing selector 206 to select the output of synthesis filter 207. In addition, channel decoder 20l transmits the gain to white noise generator 203 via path 228. The gain is generated by gain calculator ll5 of analyzer l00 as illustrated in FIG. l. Synthesis filter 207 is responsive to the LPC coefficients received from channel decoder 20l via path 2l6 and the output of white noise generator 203 received via selector 205 to produce digital samples of speech. If channel decoder 20l receives from channel l39 a pulse excitation packet, as illustrated in FIG. 5, the latter decoder transmits the locations and amplitudes of the received pulses to pulse generator 204 via path 2l0. In addition, channel decoder 20l conditions selector 205 via path 227, to select the output of pulse generator 204 and transfer this output to synthesis filter 207. Synthesis filter 207 and digital-to-analog converter 208 then reproduce the speech. Converter 208 has a self-contained low-pass filter at the output of the converter. Consider now in greater detail the operations of blocks 2ll, 2l2, 2l3, and 2l4 in performing the sinusoidal synthesis of voiced frames. Low harmonic frequency calculator 2l2 is responsive to the fundamental frequency, Fr, received via path 22l to determine a subset of harmonic frequencies which advantageously is 5 by utilizing the harmonic offsets, ho i , received via path 222. The theoretical harmonic frequency, ts i , is obtained by simply multiplying the order of the harmonic times the fundamental frequency. The following equation defines the ith harmonic frequency for each of the harmonics. hf i = ts i + ho i fr, l ≦ i≦ 5, where fr is the frequency resolution between spectral sample points,. Calculator 2ll is responsive to the fundamental frequency, Fr, to generate the harmonic frequencies, hf i , where i ≧ 6 by using the following equation: hf i = iFr , 6 ≦ i≦ h, (7) where h is maximum number of harmonics in the present frame. An alternative embodiment of calculator 2ll is responsive to the fundamental frequency to generate the harmonic frequencies greater than the 5th harmonic using the equation: hf i = na , 6 ≦ i ≦ h , (8) where h is maximum number of harmonics and a is the frequency resolution allowed in the synthesizer. Advantageously, variable a can be chosen to be 2Hz. The integer number n for the ith frequency is found by minimizing the expression (iFr-na)² (9) where iFr represents the ith theoretical harmonic frequency. Thus, a varying pattern of small offsets is generated. Another embodiment of calculator 2ll is responsive to the fundamental frequency and the offsets for advantageously the first 5 harmonic frequencies to generate the harmonic frequencies greater than advantageously the 5th harmonic by adding the offsets to the theoretical harmonic frequencies for the remaining harmonics by grouping the remaining harmonics in groups of five and adding the offsets to those groups. The groups are {k l +l, ...2k₁), (2k₁+l, ...3k₁}, etc. where advantageously k₁ = 5. The following equation defines this embodiment for a group of harmonics indexed from mk₁+l through (m+l)k₁: hf j = jFr + ho j where {ho j } = Perm A {ho i } i = l, 2,.....,k₁ for j = mk₁+1, ...(m+1)k₁ (l0) where m is an integer. The permutations can be a function of the variable m (the group index). Note that in general, the last group will not be complete if the number of harmonics is not a multiple of k₁. The permutations could be either randomly, deterministically, or heuristically defined for each speech frame using well known techniques. Calculators 2ll and 2l2 produce one value for the fundamental frequency and each of the harmonic frequencies. This value is assumed to be located in the center of a speech frame that is being synthesized. The remaining per-sample frequencies for each sample in the frame are obtained by linearly interpolating between the frequencies of adjacent voiced frames or predetermined boundary conditions for adjacent unvoiced frames. This interpolation is performed in sinusoidal generator 2l4 and is described in subsequent paragraphs. Harmonic amplitude calculator 2l3 is responsive to the frequencies calculated by calculators 2ll and 2l2, the LPC coefficients received via path 2l6, and the frame energy, eo, received via path 220 to calculate the harmonic amplitudes. The LPC reflection coefficients for each voiced frame define an acoustic tube model representing the vocal tract during each frame. The relative harmonic amplitudes can be determined from this information. However, since the LPC coefficients are modeling the structure of the vocal tract they do not contain information with respect to the amount of energy at each of these harmonic frequencies. This information is determined by calculator 2l3 using the frame energy received via path 220. For each frame, calculator 2l3 calculates the harmonic amplitudes which, like the frequency calculations, assumes that this amplitude is located in the center of the frame. Linear interpolation is then used to determine the remaining amplitudes throughout the frame by using amplitude information from adjacent voiced frames or predetermined boundary conditions for adjacent unvoiced frames. These amplitudes can be found by recognizing that the vocal tract can be described by an all-pole filter, where By definition, the coefficient a₀ equals l. The coefficients a m , l≦ m ≦ l0, necessary to describe the all-pole filter can be obtained from the reflection coefficients received via path 2l6 by using the recursive step-up procedure described in Markel, J. D., and Gray, Jr., A. H., Linear Prediction of Speech , Springer-Berlag, New York, New York, l976. The filter described in equations ll and l2 is used to compute the amplitudes of the harmonic components for each frame in the following manner. Let the harmonic amplitudes to be computed be designated as ha i , 0≦i≦h where h is the number of harmonics. An unscaled harmonic contribution value, he i , 0≦i≦h, can be obtained for each harmonic frequency, hf i , by where sr is the sampling rate. The total unscaled energy of all harmonics, E, can be obtained by By assuming that it follows that the ith scaled harmonic amplitude, ha i , can be computed by where eo is the transmitted speech frame energy calculated by analyzer l00. Now consider how sinusoidal generator 2l4 utilizes the information received from calculators 2ll, 2l2, and 2l3 to perform the calculations indicated by equation l. For a given frame, calculators 2ll, 2l2, and 2l3 provide to generator 2l4 a single frequency and amplitude for each harmonic in that frame. Generator 2l4 performs the linear interpolation for both the frequencies and amplitudes and converts the frequency information to phase information so as to have phases and amplitudes for each sample point throughout the frame. The linear interpolation is performed in the following manner. FIG. 7 illustrates 5 speech frames and the linear interpolation that is performed for the fundamental frequency which is also considered to be the 0th harmonic frequency. For the other harmonics, there would be a similar representation. In general, there are three boundary conditions that can exist for a voiced frame. First, the voiced frame can have a preceding unvoiced frame and a subsequent voiced frame. Second, the voiced frame can be surrounded by other voiced frames. Third, the voiced frame can have a preceding voice frame and a subsequent unvoiced frame. As illustrated in FIG. 7, frame c, points 70l through 703, represent the first condition; and the frequency hf c / i is assumed to be constant from the beginning of the frame which is defined by 70l. For the fundamental frequency, i is equal to 0. The c refers to the fact that this is the c frame. Frame b, which is after frame c and defined by points 703 through 705, represents the second case; and linear interpolation is performed between points 702 and 704 utilizing frequencies hf c / i and hf b / i which occur at points 702 and 704, respectively. The third condition is represented by frame a which extends from points 705 through 707, and the frame following frame a is an unvoiced frame, points 707 to 708. In this situation the harmonic frequencies hf a / i, are constant to the end of frame a at point 707. FIG. 8 illustrates the interpolation of amplitudes. For consecutive voiced frames such as defined by frames c and b, the interpolation is identical to that performed with respect to the frequencies. However, when the previous frame is unvoiced, such as is the relationship of frame c to frame 800 through 80l, then the start of the frame is assumed to have 0 amplitude as illustrated at the point 80l. Similarly, if a voiced frame is followed by an unvoiced frame, such as illustrated by frame a and frame 807 and 808, then the end point, such as point 807, is assumed to have 0 amplitude. Generator 2l4 performs the above described interpolation using the following equations. The per-sample phases of the nth sample, where O n,i is the per-sample phase of the ith harmonic, are defined by where sr is the output sample rate. It is only necessary to know the per-sample frequencies, W n,i , to solve for the phases and these per-sample frequencies are found by doing interpolation. The linear interpolation of frequencies for voiced frame with adjacent voiced frames such as frame b of FIG. 7 is defined by and where h min is the minimum number of harmonics in either adjacent frame. The transition from an unvoiced to a voiced frame, such as frame c, is handled by determining the per-sample harmonic frequency by The transition from a voiced frame to an unvoiced frame, such as frame a, is handled by determining the per-sample harmonic frequencies by If h min represents the minimum number of harmonics in either of two adjacent frames, then, for the case where frame b has more harmonics than frame c, equation 20 is used to calculate the per-sample harmonic frequencies for harmonics greater than h min . If frame b has more harmonics than frame a, equation 2l is used to calculate the per-sample harmonics frequency for harmonics greater than h min . The per-sample harmonic amplitudes, A n,i , can be determined from ha i in a similar manner as defined by the following equations for voiced frame b. and When a frame is the start of a voiced region such as at the beginning of frame c, the per-sample harmonics amplitude are determined by and where h is the number of harmonics in frame c. When a frame is the end of a voiced region such as frame a, the per-sample amplitudes are determined by where h is number of harmonics in frame a. For the case where a frame b has more harmonics than the preceding voiced frame, such as frame c, equations 24 and 25 are used to calculate the harmonic amplitudes for the harmonics greater than h min . If frame b has more harmonics than frame a, equation 18 is used to calculate the harmonic amplitude for the harmonics greater than h min . Consider now in greater detail the analyzer illustrated in FIG. l. FIGS. l0 and ll shown the steps necessary to implement the frame segmenter l4l of FIG. l. As each example, s, is received from A/D block l0l, segmenter l4l stores each sample into a circular buffer B. Blocks l00l through l005 continue to store the sample into circular buffer B utilizing the index. Decision block l002 determines when the end of circular buffer B has been reached by comparing i against N which defines the end of the buffer and also N is the number of points in the spectral analysis. Advantageously, N is equal to 256, and W is equal to l80. When i exceeds the end of the circular buffer, i is set to 0 by block l00-l0l and then, the samples are stored starting at the beginning of circular buffer B. Decision block l005 counts the number of samples being stored in circular buffer B; and when advantageously l80 samples as defined by W have been stored, designating a frame, block l006 is executed; otherwise l007 is executed, and the steps illustrated in FIG. l0 simply wait for the next sample from block l0l. When l80 points have been received, blocks l006 through ll06 of FIGS. l0 and ll transfer the information from circular buffer B to array C, and the information in array C then represents one of the segments illustrated in FIG. 6. Downsampler l42 and Hamming Window block l43 are implemented by blocks ll07 through lll0 of FIG. ll. The downsampling performed by block l42 is implemented by block ll08; and the Hamming windowing function, as defined by equation 2, is performed by block ll09. Decision block ll07 and connector block lll0 control the performance of these operations for all of the data points stored in array C. Blocks l20l through l207 of FIG. l2 implement the functions of FFT spectrum magnitude block l44. The zero padding, as defined by equation 3, is performed by blocks l20l through l203. The implementation of the fast Fourier transform on the resulting data points from blocks l20l through l203 is performed by l204 giving the same results as defined by equation 4. Blocks l205 through l207 are used to obtain the spectrum defined by equation 5. Blocks l45, l46 and l47 of FIG. l are implemented by the steps illustrated by blocks l208 through l3l4 of FIGS. l2 and l3. The pitch period received from pitch detector l09 via path l3l of FIG. l is converted to the fundamental frequency, Fr, by block l208. This conversion is performed by both harmonic peak locator l45 and harmonic calculator l47. If the fundamental frequency is less than or equal to a predefined frequency, Q, which advantageously may be 60 Hz, then decision block l209 passes control to blocks l30l and l302 which set the harmonic offsets equal to 0. If the fundamental frequency is greater than the predefined value Q, then control is passed by decision block l209 to decision block l303. Decision block l303 and connector block l3l4 control the calculation of the subset of harmonic offsets which advantageously may be for harmonics l through 5. The initial harmonic defined by K₀, which is set equal to l, and the upper harmonic value defined by K₁, which is set equal to 5. Block l304 determines the initial estimate of where the harmonic presently being calculated will be found within the spectrum, S. Blocks l305 through l308 search and find the location of the peak associated with the present harmonic being calculated. These latter blocks implement harmonic peak locator l45. After the peak has been located, block l309 performs the harmonic interpolation functions of block l46. Harmonic calculator l47 is implemented by blocks l3l0 through l3l3. First, the unscaled offset for the harmonic currently being calculated is obtained by the execution of block l3l0. Then, the results of block l3l0 are scaled by l3ll so that an integer number is obtained. Decision block l3l2 checks to make certain that the offset is within a predefined range to prevent an erroneous harmonic peak having been located. If the calculated offset is greater than the predefined range, the offset is set equal to 0 by execution of block l3l3. After all the harmonic offsets have been calculated, control is passed to parameter encoder ll3 of FIG. l. FIGS. l4 through l9 detail the steps executed by processor 803 in implementing synthesizer 200 of FIG. 2. Harmonic frequency calculators 2l2 and 2ll of FIG. 2 are implemented by blocks l4l8 through l424 of FIG. l4. Block l4l8 initializes the parameters to be utilized in this operation. Blocks l4l9 through l420 initially calculate each of the harmonic frequencies, hf i / k by multiplying the fundamental frequency, which is obtained as the transmitted pitch, times k+l. After all of the theoretical harmonic frequencies have been calculated, the scaled transmitted offsets are added to the first five theoretical harmonic frequencies by blocks l42l through l424. The constants k₀ and k₁ are set equal to "l" and "5", respectively, by block l42l. Harmonic amplitude calculator 2l3 is implemented by processor 803 of FIG. 8 executing blocks l40l through l4l7 of FIGS. l4 and l5. Blocks l40l through l407 implement the step-up procedure in order to convert the LPC reflection coefficients for the all-pole filter description of the vocal tract which is given in equation ll. Blocks l408 through l4l2 calculate the unscaled harmonic energy for each harmonic as defined in equation l3. Blocks l4l3 through l4l5 are used to calculate the total unscaled energy, E, as defined by equation l4. Blocks l4l6 and l4l7 calculate the ith frame scaled harmonic amplitude, ha i / b defined by equation l6. Blocks l50l through l52l and blocks l60l through l6l4 of FIGS. l5 through l8 illustrate the operations which are performed by processor 803 in doing the interpolation for the frequency and amplitudes for each of the harmonics as illustrated in FIGS. 7 and 8. These operations are performed by the first part of the frame being processed by blocks l50l through l52l and the second part of the frame being processed by blocks l60l through l6l4. As illustrated in FIG. 7, the first half of frame c extends from point 70l to 702, and the second half of frame c extends from point 702 to 703. The operation performed by these blocks is to first determine whether the previous frame was voiced or unvoiced. Specifically block l50l of FIG. l5 sets up the initial values. Decision block l502 makes the determination of whether the previous frame had been voiced or unvoiced. If the previous frame had been unvoiced, then decision blocks l504 through l5l0 are executed. Blocks l504 and l507 of FIG. l7 initialize the first data point for the harmonic frequencies and amplitudes for each harmonic at the beginning of the frame to hf i / c for the phases and for the amplitudes. This corresponds to the illustrations in FIGS. 7 and 8. After the initial values for the first data points of the frame are set up, the remaining values for a previous unvoiced frame are set by the execution of blocks l508 through l5l0. For the case of the harmonic frequency, the frequencies are set equal to the center frequency as illustrated in FIG. 7. For the case of the harmonic amplitudes each data point is set equal to the linear approximation starting from zero at the beginning of the frame to the midpoint amplitude, as illustrated for frame c of FIG. 8. If the decision is made by block l502 that the previous frame was voiced, then decision block l503 of FIG. l6 is executed. Decision block l503 determines whether the previous frame had more or less harmonics than the present frame. The number of harmonics is indicated by the variable, sh. Depending on which frame has the most harmonics determines whether blocks l505 or l506 is executed. The variable, hmin, is set equal to the least number of harmonic of either frame. After either block l505 or l506 has been executed, blocks l5ll and l5l2 are executed. The latter blocks determine the initial point of the present frame by calculating the last point of the previous frame for both frequency and amplitude. After this operation has been performed for all harmonics, blocks l5l3 through l5l5 calculate each of the per-sample values for both the frequencies and the amplitudes for all of the harmonics as defined by equation 22 and equation 26, respectively. After all of the harmonics, as defined by variable hmin have had their per-sample frequencies and amplitudes calculated, blocks l5l6 through l52l are calculated to account for the fact that the present frame may have more harmonics than than the previous frame. If the present frame has more harmonics than the previous frame, decision block l5l6 transfers control to blocks l5l7. Where there are more harmonics in the present frame than the previous frames, blocks l5l7 through l52l are executed and their operation is identical to blocks l504 through l5l0, as previously described. The calculation of the per-sample points for each harmonic for frequency and amplitudes for the second half of the frame is illustrated by blocks l60l through l6l4. The decision is made by block l60l whether the next frame is voiced or unvoiced. If the next frame is unvoiced, blocks l603 through l607 are executed. Note, that it is not necessary to determine initial values as was performed by blocks l504 and l507, since the initial point is the midpoint of the frame for both frequency and amplitudes. Blocks l603 through l607 perform similar functions to those performed by blocks l508 through l5l0. If the next frame is a voiced frame, then decision block l602 and blocks l604 or l605 are executed. The execution of these blocks is similar to that previously described for blocks l503, l505, and l506. Blocks l608 through l6ll are similar in operation to blocks l5l3 through l5l6 as previously described. Note, that it is not necessary to set up the initial conditions for the second half of the frame for the frequencies and amplitudes. Blocks l6l2 through l6l4 are similar in operation to blocks l5l9 through l52l as previously described. The final operation performed by generator 2l4 is the actual sinusoidal construction of the speech utilizing the per-sample frequencies and amplitudes calculated for each of the harmonics as previously described. Blocks l70l through l707 of FIG. l9 utilize the previously calculated frequency information to calculate the phase of the harmonics from the frequencies and then to perform the calculation defined by equation l. Blocks l702 and l703 determine the initial speech sample for the start of the frame. After this initial point has been determined, the remainder of speech samples for the frame are calculated by blocks l704 through l707. The output from these blocks is then transmitted to digital-to-analog converter 208. Another embodiment of calculator 2ll reuses the transmitted harmonic offsets to vary the calculated theoretical harmonic frequencies for harmonics greater than 5 and is illustrated in FIG. 20. Blocks 2003 through 2005 are used to group the harmonics above the 5th harmonic into groups of 5, and blocks 2006 and 2007 then add the corresponding transmitted harmonic offset to each of the theoretical harmonic frequencies in these groups. FIG. 2l illustrates a second alternate embodiment of calculator 2ll which differs from the embodiment shown in FIG. 20 in that the order of the offsets is randomly permuted for each group of harmonic frequencies above the first five harmonics by block 2l00. Blocks 2l0l through 2l08 of FIG. 2l perform similar functions to those of corresponding blocks of FIG. 20. A third alternate embodiment is illustrated in FIG. 22. That embodiment varies the harmonic frequencies from the theoretical harmonic frequencies transmitted to calculator 2l3 and generator 2l4 of FIG. 2 by performing the calculations illustrated in blocks 2203 and 2204 for each harmonic frequency under control of blocks 2202 and 2205.

Claims: A processing system for encoding human speech comprising: a segmentor (l02,l4l) for segmenting the speech into a plurality of speech frames, each having a predetermined number of evenly spaced samples of instantaneous amplitudes of speech and each of which overlaps by a predefined number of samples with the previous and subsequent frames; a LPC calculator (lll) for calculating a set of speech parameter signals defining a vocal tract for each frame; a energy calculator (l03) for calculating the frame energy per frame of the speech samples; CHARACTERIZED BY a spectral analyzer (l42,l43,l44) for performing during voiced speech periods a spectral analysis of said speech samples of each frame to produce a spectrum for each frame; a pitch detector (l09) for detecting the fundamental frequency signal for each frame from the spectrum corresponding to each frame; a harmonic peak locator (l45) for determining a subset of harmonic frequency signals for each frame from the spectrum corresponding to each frame; a harmonic calculator (l47) for determining offset signals representing the difference between each of said harmonic frequency signals and multiples of said fundamental frequency signal; and a parameter encoder (ll3) for transmitting encoded representations of said frame energy and said set of speech parameters and said fundamental frequency signal and said offset signals for subsequent speech synthesis. The system of claim l wherein said spectral analyzer comprises a sampler (l42) for downsampling said speech samples thereby reducing the amount of computation. The system of claim 2 wherein said pitch detector further designates frames as voiced and unvoiced, said system further comprises a noise/multipulse decision circuit (ll2) for transmitting a signal to indicate the use of noise-like excitation upon speech of said one of said frames resulting from noise-like source in the human larynx and said designating means indicating an unvoiced frame; a multipulse analyzer (ll0) for forming excitation information from a multipulse excitation source upon the absence of the noise-like source and upon said designating means indicating an unvoiced frame; and said parameter encoder further responsive to said multipulse excitation information and said set of speech parameters for transmitting encoded representations of multipulse excitation information and said set of speech parameters for subsequent speech synthesis. A method for synthesizing voice from encoded information representing speech frames each having a predetermined number of evenly spaced samples of instantaneous amplitude of speech with said encoded information for each voiced frame comprising frame energy and a set of speech parameters and a fundamental frequency of speech and offset signals representing the difference between the theoretical harmonic frequencies as derived from a fundamental frequency signals and a subset of actual harmonic frequencies CHARACTERIZED BY calculating a subset of harmonic phase signals corresponding to said offset signals; computing the remaining harmonic phase signals for said one of said frames from said fundamental frequency signal; determining the amplitudes of said fundamental signal and said subset of harmonic phase signals and said remaining harmonic phase signals from the frame energy and the set of speech parameters of said one of said frame; and generating replicated speech in response to said fundamental signal and said subset and remaining harmonic phase signals and said determined amplitudes for said one of said frames. The method of claim 4 wherein said computing step comprises the steps of multiplying each harmonic number with said fundamental frequency signal to generate a frequency for each of said remaining harmonic phase signals; arithmetically varying the generated frequencies; and calculating said remaining phase signals from said varied frequencies. The method of claim 4 wherein said computing step comprises the steps of generating the remaining harmonic frequency signals corresponding to said remaining harmonic phase signals by multiplying said fundamental frequency signal by the harmonic number for each of said remaining harmonic signals; grouping the multiplied frequency signals into a plurality of subsets, each having the same number of harmonics as said subset of harmonic phase signal; adding each of said offset signals to the corresponding grouped frequency signals of each of said plurality of subsets to generate varied remaining harmonic frequency signals; and calculating said remaining harmonic phase signals from said varied harmonic frequency signals. The method of claim 6 wherein said step of adding comprises the step of permuting the order of said offset signals before adding said signals to said corresponding grouped frequency signals of each of said plurality of subsets to generate said varied remaining harmonic frequency signals. The method of claim 4 wherein said determining step comprises the steps of calculating the unscaled energy of each of said harmonic phase signals from said set of speech parameters for said one of said frames; summing said unscaled energy for all of said harmonic phase signals for said one of said frames; and computing the amplitudes of said harmonic phase signals in response to said harmonic energy of each of said harmonic signals and the summed unscaled energy and said frame energy for said one of said frames.

Inventors: BRONSON, EDWARD CHARLES, HARTWELL, WALTER THORNLEY, JACOBS, THOMAS EDWARD, KETCHUM, RICHARD HARRY, KLEIJN, WILLEM BASTIAAN
Applicants: AMERICAN TELEPHONE AND TELEGRAPH COMPANY
Application year: 1987
Main classification: G10L7
IPC codes: G10H7, G10L13, G10L19, G10L11