Abstract:
A method for improved recursive pitch prediction includes providing a search window for pitch estimates based upon a previously computed pitch, computing pitch estimates for the search window, and determining an optimal pitch from the pitch estimates within the search window for a first predetermined number of frames. The method further includes expanding the search window to a full pitch window after the first predetermined number of frames, and calculating pitch estimates for the full pitch window for a second predetermined number of frames. 
     A system for improved recursive pitch prediction includes a speech generator of speech signals, and a central processing unit coupled to the speech generator. The central processing unit further is capable of coordinating pitch estimation of the speech signals, including providing a search window for pitch estimates based upon a previously computed pitch, calculating pitch estimates for the search window, and determining an optimal pitch from the pitch estimates within the search window for a first predetermined number of frames.

Description:
FIELD OF THE INVENTION 
     The present invention relates to speech processing systems, and more particularly to recursive pitch predictors in speech processing systems. 
     BACKGROUND OF THE INVENTION 
     Digital speech processing typically can serve several purposes in computers. In some systems, speech signals are merely stored and transmitted. Other systems employ processing that enhances speech signals to improve the quality and intelligibility. Further, speech processing is often utilized to generate or synthesize waveforms to resemble speech, to provide verification of a speaker&#39;s identity, and/or to translate speech inputs into written outputs. 
     In some speech processing systems, speech coding is performed to reduce the amount of data required for signal representation, often with analysis by synthesis adaptive predictive coders, including various versions of vector or code-excited coders. In the predictive systems, models of the vocal cord shape. i.e., the spectral envelope, and the periodic vibrations of the vocal cord, i.e., the spectral fine structure of speech signals, are typically utilized and efficiently performed through slowly, time-varying linear prediction filters. Also often included as an integral part of the predictive systems are pitch predictors. As the name implies, pitch predictors attempt to predict the pitch of a speech signal, i.e., the representation of the long term periodicity information for the signal. Pitch predictors are typically described by one or more predictor coefficients and a parameter representing the delay in samples, which are normally determined through iterative and intensive computations. 
     The ever-present need for fast, efficient, and high quality speech processing systems maintains a need for always improving adaptive coders and thus improved portions of the coders. Accordingly, improved and more efficient implementations of pitch predictors are needed. 
     SUMMARY OF THE INVENTION 
     The present invention meets these needs and provides method and system aspects for improved recursive pitch prediction. In a method aspect, a method for improved recursive pitch prediction includes providing a search window for pitch estimates based upon a previously computed pitch, providing pitch estimates for the search window, and determining an optimal pitch from the pitch estimates within the search window for a first predetermined number of frames. The method further includes expanding the search window to a full pitch window after the first predetermined number of frames, and providing pitch estimates for the full pitch window for a second predetermined number of frames. 
     In a system aspect, a system for improved recursive pitch prediction includes a speech generator of speech signals, and a central processing unit coupled to the speech generator. The central processing unit further is capable of coordinating pitch estimation of the speech signals, including providing a search window for pitch estimates based upon a previously computed pitch, providing pitch estimates for the search window, and determining an optimal pitch from the pitch estimates within the search window for a first predetermined number of frames. 
     The present invention further provides a system for improved recursive pitch estimation including a speech signal generation mechanism for generating speech signals, and a speech processing mechanism for processing the generated speech signals to estimate a pitch of the speech signals. The speech processing mechanism further utilizes an adaptively determined search window, provides pitch estimates for the adaptively determined search window, and determines an optimal pitch from the pitch estimates within the adaptively determined search window. 
     In accordance with these aspects of the present invention, a more efficient determination of pitch estimates in a speech processing system is achieved. Further, implementation of an adaptively determined pitch interval supports faster computations without substantial loss of optimal results. These and other advantages of the present invention are more fully appreciated when taken with the following description and accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 illustrates a typical method of pitch prediction. 
     FIG. 2 illustrates pitch prediction in accordance with the present invention. 
     FIG. 3 illustrates a block diagram of a computer system capable of utilizing pitch prediction in accordance with the present invention. 
    
    
     DESCRIPTION OF THE INVENTION 
     The present invention relates to speech coding systems that predict/estimate the pitch of speech signals. The following description is presented to enable one of ordinary skill in the art to make and use the invention and is provided in the context of a patent application and its requirements. Various modifications to the preferred embodiment will be readily apparent to those skilled in the art and the generic principles herein may be applied to other embodiments. Thus, the present invention is not intended to be limited to the embodiment shown but is to be accorded the widest scope consistent with the principles and features described herein. 
     In typical pitch predictors, estimating the pitch of a speech signal involves an exhaustive computational search over a predefined pitch interval in the frame of the speech signal e.g., a search window  p 0 , p 1  !. In a first order pitch predictor, a pitch predictor signal y(n), usually tries to estimate a speech signal, x(n), within a frame/segment of a chosen number of samples, N, e.g., N=240 samples, based on previous values of the speech signal. Typically, the pitch predictor signal y(n) is suitably represented by y(n)=β×(n-d); where β represents the gain of the predictor and d, the delay, represents the pitch period in samples. The optimal predictor gain and optimal delay for a current frame are typically defined as a pair that minimizes the squared prediction error, E, between the original signal and its predicted value for the frame, where ##EQU1## For a given delay value d, the optimal value of β, β opt , is found by setting the derivative of E with respect to β to zero, resulting in ##EQU2## as is well understood to those skilled in the art. Substituting β opt  into the squared prediction error formula results in ##EQU3## where ##EQU4## Using this form of E, the other half of the optimal pair, d opt  , is determined as the delay value that maximizes E&#39;. The determination of the optimal delay suitably provides the pitch of the signal within the current frame, since the E&#39; function has local maxima at delays corresponding to the pitch period and its multiples, as described in &#34;Pitch Predictors with High Temporal Resolution&#34;, by Kroon, P., et al., 1990, IEEE, pp. 661-664. 
     FIG. 1 illustrates a flow diagram of the typical process involved in the computations for determining the optimal delay. In general the computations involve comparing the results from computing a value for E&#39; with each pitch value within the search window to determine the optimal pitch, d opt , that results in a maximum value for E&#39;. Initialization of the process variables occurs with an index value, j, set to one limit of the search window, e.g., p 0 , and the maximum value for E&#39; max  set to zero (step 100). The index value j is then compared to the value for the opposite end of the window, e.g., p 1 , (step 102). When the index value has not exceeded the opposite end of the search window, E j  and the cross-correlation, correlation, C j , are calculated with the current index value (step 104), where ##EQU5## as is well understood by those skilled in the art. Further computed in step 104 is C 2   j  /E j , the result of which sets the value E&#39; j . 
     A comparison between E&#39; j  and E&#39; max  is performed (step 106) to determine whether the computed value E&#39; j  exceeds the value of E&#39; max . When the value of E&#39; j  exceeds E&#39; max , the value for E&#39; max  is updated to the E&#39; j  value and the current index value j sets a maximum index value j max  (step 108) to mark the current index value for the current optimal pitch value. When the value of E&#39; j  does not exceed E&#39; max  , or upon completion of the updating of j max , the index value j is incremented (step 110), and the process repeats at the next index value until every value within the search window has been tested, i.e., step 102 is affirmative. Once completed, the optimal delay d opt  is equal to the value indexed by the saved index value j max   
     While such determinations do result in the determination of an optimal delay, and thus the pitch of the current signal the efficiency is hampered by requiring computation of E&#39; j  for every pitch value within the search window  p 0 , p 1  ! of every frame of the speech signal. The present invention takes to advantage the observation that, generally, speech signals do not change abruptly from one frame to the next, so that the optimal pitch should not change abruptly between frames. Thus, the present invention reduces the complexity of pitch prediction and estimation by utilizing an inter-frame correlation of the pitch in speech signals. 
     The flow diagram of FIG. 2 illustrates more particularly the features of a pitch predictor computation in accordance with a preferred embodiment of the present invention. In general the pitch predictor of the present invention performs calculations similar to the prior art, but achieves more efficiency by adaptively defining a restricted search window based on an optimal pitch of a previous frame. In a preferred embodiment, the present invention further allows, after a certain number of pitch calculations, the search window to be equal to the exhaustive search window as used in the prior art, as is described in more detail in the following discussion with reference to FIG. 2. 
     The process begins with the initialization of a `mode` variable to one, a counter variable `I` to zero, and a previous pitch variable j prev  to the midpoint value of the exhaustive search window, i.e., j prev  =(p 0  +p 1 )/2, (step 200). The mode variable suitably allows selection of the type of computation used to determine the pitch. By way of example, setting of the mode variable to one allows computation to occur using the adaptively determined search window, in accordance with the present invention. Conversely, setting of the mode variable to zero allows computation of the pitch to occur using the exhaustive method as described with reference to FIG. 1. Of course, the values of the mode variables for selecting a method are is alterable, and the numbers used herein are meant as illustrative and not restrictive of the present invention. This ability to choose the employed method achieves greater flexibility and takes into consideration the possibility that the adaptively determined search window may restrict the estimation too much for those frames whose optimal pitch falls outside the adaptively determined search window. 
     Depending upon the value of the mode variable, as determined in step 202, the values for the adaptively determined search window  p&#39; 0 , p&#39; 1  !, the maximum index value j max , and the current index value j, are set accordingly. For the adaptive system (step 204) when the variable mode is equal to 1, in accordance with the present invention, the maximum window length is set equal to (2r+1), where r is a suitably chosen constant. 
     For example, a value of r equal to approximately one third the length of the exhaustive search window has been found by the inventors to work well. Thus, one limit of the adaptively determined search window, p&#39; 0 , is set equal to the maximum between the previous pitch index value, j prev , minus a chosen displacement r, and the lower end of the exhaustive search window, p 0 . The opposite value of the adaptively determined search window, p&#39; 1 , is set equal to the minimum between the previous index value, j prev , plus r, and the upper end of the exhaustive search window, p 1 . Thus, the adaptive search window is guaranteed to lie within the limits of the exhaustive search window. For the exhaustive system (step 205) when the variable mode is set to 0, the adaptively determined search window values are set equal to the window limit values of the exhaustive approach, i.e., p&#39; 0  is set equal to p 0 , and p&#39; 1  is set equal to p 1 . In a first iteration, the maximum index value j max  and current index value j are suitably set to p&#39; 0  (step 206). 
     Once the adaptively determined search window values and index values have been set, the process continues by determining whether the entire range of the adaptively determined search window has been tested, i.e., whether j&lt;p&#39; 1  (step 207). If the entire adaptively determined search window has not been tested, the process continues by computing the maximum E and j as described with reference to FIG. 1 (steps 104, 106, 108, and 110). Once the entire adaptively determined search window has been tested, the previous search window index value j prev  is set equal to the maximum search window index value j max , and the counter I is incremented (step 208). Thus, while processing in the adaptive mode, the present invention relates a previously computed optimal pitch estimate indexed by j max  with the use of the j prev  index variable, so that the pitch search window is adaptively determined based on calculations of a previous frame. 
     Before determining an optimal pitch for a next frame, a determination of whether the current mode should be switched is suitably performed. While in the adaptive mode of the present invention, as determined via step 210, the value of counter I is compared to a set variable value k (step 212), where k is some chosen value representing the number of times the use of the adaptive mode is desired, for example k=5. Thus, when the counter value I exceeds the chosen value k, the mode is switched (step 214) to allow a next chosen number of frames to be processed using the exhaustive method. When not in the adaptive mode, the counter value is compared against a set variable m (step 216), where m represents a predetermined number of times the use of the exhaustive mode is desired, for example m=1. When the counter value I exceeds the predetermined value m, the mode is switched (step 218), to allow processing by the adaptive mode to again occur. The processing continues in the appropriate mode until an end of signal occurs to indicate no more frames are present for processing (step 220). 
     As mentioned above, pitch predictors are normally a part of a speech processing system within a computer system. FIG. 3 illustrates a block diagram of a computer system capable of coordinating speech processing including the pitch prediction in accordance with the present invention. Included in the computer system are a central processing unit (CPU) 310, coupled to a bus 311 and interfacing with one or more input devices 312, including a cursor control/mouse/stylus device, keyboard, and speech/sound input device, such as a microphone, for receiving speech signals. The computer system further includes one or more output devices 314, such as a display device/monitor, sound output device/speaker, printer, etc, and memory components, 316, 318, e.g., RAM and ROM, as is well understood by those skilled in the art. Of course, other components, such as A/D converters, digital filters, etc., are also suitably included for speech signal generation of digital speech signals, e.g., from analog speech input, as is well appreciated by those skilled in the art. The computer system preferably controls operations necessary for the speech processing including the pitch prediction of the present invention, suitably performed using a programming language, such as C, C++, and the like, and stored on an appropriate storage medium 320, such as a hard disk, floppy diskette, etc. 
     Although the present invention has been described in accordance with the embodiments shown, one of ordinary skill in the art will readily recognize that there could be variations to the embodiments and those variations would be within the spirit and scope of the present invention. Accordingly, many modifications may be made by one of ordinary skill in the art without departing from the spirit and scope of the appended claims.