TRANSMISSION SYSTEM AND METHOD FOR ENCODING SPEECH WITH IMPROVED PITCH DETECTION

Abstract: In a transmission system in which a speech coder which includes a pitch detector (12) is used, selecting means (22) selecting a characteristic auxiliary signal portion from the signal to be coded are used for improving the quality of the pitch detection. The pitch is now found by searching in the speech signal for signal portions that correspond to the characteristic auxiliary signal portion and by calculating the time difference between the respective signal portions.

Description: TRANSMISSION SYSTEM AND METHOD FOR ENCODING SPEECH WITH IMPROVED PITCH DETECTION The invention relates to a transmission system comprising a transmitter with an encoder for deriving a coded signal from a quasi-periodic signal, the transmitter being arranged for transmitting the coded signal to a receiver via a medium, the encoder comprising a pitch detector for deriving pitch information from the quasi-periodic signal. The invention likewise relates to an encoder, a detector for detecting the period of a quasi-periodic signal and a method of pitch detection. A pitch detector to be used in a transmission system as defined in the opening paragraph is known from the journal article "Automatic and Reliable Estimation of Glottal Closure Instant and Period" by Y.M. Cheng and D.O. Shaughnessy, IEEE Transactions on Acoustics, Speech and Signal Processing, Vol. ASSP-23, pp. 418-423, 1976. Such transmission systems are used, for example, for transmitting speech signals by a transmission medium such as a radio channel, a coaxial cable or a glass fibre. Alternatively, such transmission systems may be used for storing speech signals on a storage medium such as a magnetic tape or disc. Applications are, for example, automatic telephone answer machines and dictating machines. A speech signal consists of voiceless and voiced components. A voiceless component of a speech signal occurs when some consonants are pronounced and does not show any periodicity. A voiced component of a speech signal occurs when vowels are pronounced and is more or less periodic. Such a signal is also termed quasi-periodic. An important parameter of such a signal is the period, usually called pitch. For various types of speech encoders it is of great importance to calculate accurately the pitch of the voiced components of the speech signal. A first method of determining the pitch is calculating the autocorrelation function of the quasi-periodic signal, the pitch information being represented by the difference of the delay between two peaks of the autocorrelation function. A problem is then that a single pitch value is calculated over a signal segment that has a given time duration. Any variations of the pitch in the given time duration cannot be measured, but lead only to an (undesired) widening of the peaks of the autocorrelation function. In the pitch detector known from said journal article, the pitch information is derived from a cross-correlation function between the speech signal and a modelled response of the human speech system to an excitation signal that is caused by the closing of the vocal cords. The properties of the human speech system are described by linear prediction parameters derived from the speech signal. From this cross-correlation function is derived a signal in which peaks occur that indicate the excitation instants. The average value of this signal is subtracted from this signal and clipped, so that the pulse- shaped signal is obtained in which the pulses denote the excitation instants. It appears that pulses may be lost in signals having a non-constant pitch, or secondary pulses may appear as a result of the average value being temporarily too high or too low. This will lead to a reduced reliability of the pitch detection. It is an object of the invention to provide a transmission system as claimed in the opening paragraph in which the quasi-periodic signal need not be stationary for a reliable pitch detection. For this purpose, the invention is characterized in that the pitch detector comprises selecting means for selecting a characteristic signal portion of an auxiliary signal which auxiliary signal is representative of the quasi-periodic signal, search means for searching for at least a further signal portion of the auxiliary signal that sufficiently corresponds to the characteristic auxiliary signal portion, and means for deriving the pitch information from the instants at which the characteristic auxiliary signal portion and the further signal portion occur. By selecting a characteristic auxiliary signal portion from the auxiliary signal, and searching for at least a further auxiliary signal portion of the auxiliary signal that sufficiently corresponds to the characteristic auxiliary signal portion, it is possible to obtain pitch information without the need for utilizing the stationarity of the quasi-periodic signal. An additional advantage of the invention is that no linear prediction parameters need be calculated, so that the pitch detector according to the invention will be simpler than the state of the art pitch detector. A further additional advantage is that erroneous pitch detection, which occurs if two excitation pulses are present in one pitch period, is avoided. For that matter, it has appeared that two excitation instants regularly occur in one pitch period in speech signals. In such situation the state of the art pitch detector, in which excitation instants are searched for, will calculate the pitch period erroneously. Since the pitch detector according to the invention does not search for excitation instants, but the repeated occurrence of a characteristic auxiliary signal portion, this erroneous calculation of the pitch period will not occur. An embodiment of the invention is characterized in that the characteristic auxiliary signal portion comprises a signal portion that has maximum energy over a specific time segment. A suitable characteristic auxiliary signal portion is an auxiliary signal portion whose energy is maximized over a specific time segment. Such a signal portion may be simply found by searching for a maximum running energy function value. The running energy function value may be calculated by performing a non-linear operation of the auxiliary signal which operation is described by an even function, and integrating the result of this operation over a specific time interval. Suitable even functions are f(x)=x 2 and f(x) = I x I . An alternative manner of finding a characteristic auxiliary signal portion is searching for the maximum value of the auxiliary signal in a specific time segment. Generally, auxiliary signal portions having a maximum strength are suitable to act as characteristic auxiliary signal portion. A further embodiment of the invention is characterized in that the time duration of the characteristic auxiliary signal portion is smaller than or equal to the briefest occurring pitch period. A suitable characteristic auxiliary signal portion is a pitch period or a significant part thereof. By taking a characteristic auxiliary signal portion of about the briefest pitch period in length, a suitable characteristic auxiliary signal portion can be found for most situations. It is conceivable that the length of the auxiliary signal portion is selected in dependence on the occurring pitch period, so that an adaptive system is obtained. A further embodiment of the invention is characterized in that the search means comprise correlation means for calculating the correlation between the characteristic auxiliary signal portion and the auxiliary signal, the pitch information being represented by the position of the peaks in the correlation function. A simple manner of searching for a further auxiliary signal portion that corresponds to the characteristic auxiliary signal portion is calculating the cross-correlation function between the characteristic auxiliary signal portion and the auxiliary signal. The pitch information is then represented by the position of the maxima of the cross-correlation function. The pitch period may be calculated from the time difference between two consecutive maxima of the cross-correlation function. A further embodiment of the invention is characterized in that the pitch detector comprises means for calculating the surface of the peaks in the correlation function, the pitch detector being arranged for deriving the pitch information from the surface of the peaks of the correlation function plotted against time. Experiments have shown that the cross-correlation function of the characteristic auxiliary signal portion and the auxiliary signal shows not only desired peaks, but also undesired secondary peaks which have a smaller width than the desired peaks. By representing the pitch information by pulses having an amplitude that is proportional to the surface of the corresponding peak in the autocorrelation function, it becomes simpler to distinguish between the desired and undesired peaks. The distinction may be further simplified by utilizing an expanded surface value in lieu of the surfaces. A suitable manner of obtaining the expanded surface value is multiplying the surface of a peak by the maximum value of the respective peak. There is observed that the invention is not restricted to pitch detection in speech signals, but that it may also be applied to situations where a delay between two or more signal components is to be determined. Examples of this are the separation of a multiplicity of sources as this may occur in systems for background noise suppression and beam formation in radar systems. In such an application it may happen that the quasi- periodic signal has not more than two periods. These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments described hereinafter. In the drawings: Fig. 1 shows a transmission system in which the invention is applied; Fig. 2 shows an embodiment of the pitch detector according to the invention; Fig. 3 shows various signal shapes as they may occur in the pitch detector shown in Fig. 2; and Fig. 4 shows a flow chart of a program for a programmable processor for determining the pitch according to the invention. In the transmission system shown in Fig. 1, a digital speech signal S'[n] is applied to a transmitter 2. In this transmitter 2 the speech signal S'[n] is applied to an encoder in which it is applied to a pitch detector 12 and to pitch-synchronous coding means 10. An output of the pitch detector 12, which carries the pitch information as its output signal, is connected to an input of a multiplexer 14 and to a first input of the pitch- synchronous coding means 10. An output of the pitch-synchronous coding means 10 is connected to a second input of the multiplexer 14. The output of the multiplexer 14 is coupled to the output of the transmitter 2. The output of the transmitter 2 is connected by the channel 4 to the input of a receiver 6. The input of the receiver 6 is connected to an input of a demultiplexer 16. A first output of the demultiplexer is connected to a first input of a pitch-synchronous decoder 8. A second output of the demultiplexer 16, which carries the pitch information as its output signal, is connected to a second input of the pitch-synchronous decoder 8. An output of the pitch-synchronous decoder 8, which carries the reconstructed speech signal as its output signal, is connected to the output of the receiver 6. In the transmission system shown in Fig. 1, the pitch information is derived from the quasi-periodic speech signal by the pitch detector 12. This pitch information is used by the pitch-synchronous encoder 10 to reduce the necessary transmission capacity for the coded signal. Examples of the pitch-synchronous encoder 10 are described in the journal articles "A glottal LPC-vocoder" by P. Hedelin in Proceedings of the International Conference of the IEEE, ASSP '84, San Diego, 1984 and "Encoding Speech Using Prototype Waveforms" by W.B. Kleyn in IEEE Transactions on Speech and Audio processing, Vol. 1, No. 4, October 1993. The coded speech signal and the pitch information are combined to a single coded output signal by the multiplexer 14. This coded output signal is transmitted to the receiver 6 by the transmission channel 4. In the receiver 6 the received signal is detected and converted into a digital signal. This digital signal is demultiplexed by the demultiplexer 16 into a coded signal and a signal representing pitch information. The pitch-synchronous decoder 18 derives the reconstructed speech signal from the coded signal and the pitch information. This reconstructed speech signal is available on the output of the receiver 6. In the pitch detector shown in Fig. 2, the quasi-periodic signal S'[n] is applied to a low-pass filter 20. The output of the low-pass filter 20, which carries the auxiliary signal S[n] as its output signal, is connected to an input of energy measuring means 22, to a first input of selecting means 24 and to an input of an envelope detector 30. The output of the energy measuring means 22, which carries output signal E[n], is connected to a second input of the selecting means 24. The output of the selecting means 24, which carries the characteristic auxiliary signal portion f[n] as its output signal, is connected to a first input of the search means formed here by a correlator 28. The output of the controllable amplifier 26, which carries output signal S ec [n], is connected to a second input of the correlator 28. An output of the envelope detector 30, which carries a control signal e c [n], is connected to a control input of the controllable amplifier 26. The controllable amplifier 26 and the envelope detector 30 together form the amplitude control means. The output of the correlator 28, which carries an output signal R sf [n], is connected to an integrator 32. The output of the integrator 32, which carries output signal A[n], is connected to an input of expansion means 34, while the output of the expansion means 34, which carries output signal P[n], is connected to an input of a detector 36. On the output of the detector 36 is available the pitch information in the form of the signal P'[n]. The speech signal that is digitally represented by the signal S'[n] is filtered by the low-pass filter 20 with the purpose of stripping the signal of signal components that have a relatively high frequency and may have a disturbing effect on the pitch detection. The cut-off frequency of the low-pass filter 20 is selected so that it lies beyond the highest possible pitch frequency. A value that has turned out to be usable in practice is 600 Hz. The energy measuring means 22 calculate a running energy function of an M-sample-long auxiliary signal portion for a segment that has a length of N samples. A segment duration proved suitable is, for example, 40 ms, while a duration of 2 ms is suitable for the running energy function. With an 8 kHz sampling frequency, N is equal to 320 and M is equal to 16. For the signal E[n] there may be written: M E [n] = £ S 2 [n + k] 0 ≤ n ≤ N-M (1 ) k=0 The characteristic auxiliary signal portion is now the auxiliary signal portion whose running energy function E[n] is maximum. If assuming that E[n] is maximum for n = n m , the characteristic auxiliary signal portion f[n] is equal to: 0 ' n < n m ... f [n] = -{ S [n] , n m ≤ n ≤ n m + M ( - > 0 , n > n m + This auxiliary signal portion f[n] is derived from the signal S[n] by the selecting means 24 while the value n___ calculated from E[n] is utilized. The correlator 28 calculates the cross- correlation function R sf [n] of the amplitude control signal S ec [n] which is available on the output of the controllable amplifier 26. For this correlation function R Sf [n] then holds: M R Sf [nj = ∑ mx { f (k) • S ec [n + k] , 0} , ± ≤ n ≤ N- — (3 ) 9 k =0 (3) may also be written as: M R sf tn] = ∑ MAX{ S [n m + k] - S ec tn + k] , 0} , -2 ≤ n s N- (4) k=0 The MAX function is used in (3) and (4) to avoid the occurrence of negative values of R sf [n]. These negative correlation values do not have any importance when signal portions corresponding to the characteristic auxiliary signal portion are searched for. A signal A[n] which is a measure of the surface of the peak that belongs to the respective value of n in the cross-correlation function R^n] is derived by the integrator 32. The k* peak in the cross-correlation function may be described as: n < b k L k [n] = R sf [n] b ≤ n ≤ e k (5) n > e k b k and e k denote the beginning and end of the k 11 peak of the autocorrelation function. For the surface A k of the k Λ peak now holds: *k = ∑ L k ti ] (6) The value of n k that belongs to a k is the value of n that belongs to the maximum m k of the peak L k [n]. For m k then holds: m k = MAX { L k [n] } (7 ) The surface A is scaled by utilizing the largest value of a k , so that the value A[n] is smaller than or equal to one. For the function A[n] may then be found: In (8), q is the number of peaks in a signal segment. The transformation of the function R sf n] into the function A[n] results in a relative attenuation of undesired secondary peaks of the function R sf [n], because these undesired pulses are not only lower, but also less wide, so that the surface of the secondary peaks will be considerably smaller than the surface of the desired peaks. To further increase the difference between desired peaks and undesired secondary peaks, the expansion means 34 perform a non-linear operation in which large values of A[n] are amplified more than small values of A[n]. This may be effected, for example, by multiplying the function A[n] by the respective value of m k . For the output signal P[n] of the expansion means then holds: a k - m k n = n k P [n] = { MAX (a l f . . . . a q ) ( 9 ) 0 . n ≠ n__ It is conceivable that in lieu of (9) a different non-linear operation of A[n] is performed. 10 The detector 36 removes undesired secondary pulses from the signal P[n], A first selection may be made by removing the smallest of the pulses P[n] which are mutually less than 2 ms apart. This measure is based on the fact that a pitch period of less than 2 ms is highly unlikely. A final selection is obtained by removing pulses that have an amplitude smaller than a certain fraction of the amplitude of a preceding pulse. The pitch 15 information may be represented by the signal P'[n], while for the values of n when a pitch pulse occurs the signal P'[n] has a first logic value ("1 ") and for the other values of n has a second logic value ("0"). In Fig. 3 graph 38 shows the quasi-periodic speech signal S'[n] plotted against n. Graph 38 distinctly shows the (quasi-)periodic characteristic of the speech signal. 20 Graph 40 shows the auxiliary signal S[n] plotted against time. This signal is stripped of the high-frequency components which complicate the pitch detection. Graph 42 shows the value of the running energy function E[n] plotted against n. The maximum value of E[n] is found for n-nax. In graph 44 the characteristic auxiliary signal portion f[n] is shown. This characteristic auxiliary signal portion f[n] is extracted from S[n] in the neighbourhood of n = ■ " ^ax- Graph 46 shows the cross-correlation signal R sf {n] plotted against n. In this graph both the desired peaks and the undesired secondary peaks are visible. In graph 48 is plotted the surface measure A[n] against n. Graph 48 clearly shows that the distinction between desired peaks and undesired peaks has increased. 30 In graph 50 the signal P[n] obtained via a non-linear operation from the signal A[n] is shown plotted against n. Here the distinction between the desired pulses and the undesired pulses has become greater. Finally, graph 52 shows the pitch information in the form of a logic signal which has the value " 1 " for values of n at which a desired pulse occurs. The undesired pulses are removed, as has already been discussed above. In the flow chart shown in Fig. 4 the blocks have the following connotations. No.Designation Connotation 60 START The procedure is started. 62 INIT The variables used are initialized. 64 TAKE SEGM {S[n]} A segment of samples of the auxiliary signal is stored. 66 VOICED A check is made whether the auxiliary signal is still voiced. 68 CALC E[n] The running energy function of the stored segment is calculated. 70 EXTR f[n] The characteristic auxiliary signal portion is extracted from the auxiliary signal. 72 CORR ENV. An amplitude-controlled auxiliary signal is derived from the auxiliary signal. 74 CALC Rsf[n] The cross-correlation function R sf [n] is calculated. 76 CALC A[n] The surface of the peaks in R^n] is calculated. 78 EXPAND The signal P[n] is calculated from A[n] via a non¬ linear operation. 80 DEL PEAKS The undesired secondary peaks are deleted. 82 CALC n, ,n 2 The positions n_ and n 2 of the first two pitch pulses in the segment are calculated. 84 FIRST VOICED SEGMENT A check is made whether the respective segment is the first voiced segment in a part of the speech signal. 86 PITCHMARK AT n,, n 2 For n = and n = n 2 the logic value of P[n] is made equal to "1 ". 88 LPM: = n 2 The position of the last assigned pitch marker is stored. 90 LPM: = LPM+n 2 -n, The position for the new pitch marker is calculated and stored. 92 PITCHMARK AT LPM For n = LPM the logic value of P'[n] is made equal to "1". 94 TAKE SEGM SM+^-n ! } The next segment of samples of the auxiliary signal is taken. In the blocks 60 and 62 the program is started if there is a voiced speech signal and the variables used are set to a desired initial value. In block 64 a segment of the signal S[n] is stored. The length of that segment may have a value from 20-40 mS. In block 66 there is checked whether the segment of S[n] is still voiced. If the signal is no longer voiced, the program is stopped in block 96. The information whether the speech signal is voiced is generated by a procedure (not shown). In block 68 the running energy function E[n] is calculated. This may be effected according to (1). Subsequently, in block 70 the characteristic auxiliary signal portion is extracted, which may be effected according to (2). In step 72 the amplitude-controlled auxiliary signal S ec [n] is calculated. For this purpose, a measure S e [n] for the envelope of the auxiliary signal is calculated first. This may be performed according to: L S e [n] Σ S [n - i] I - [i] (10) i=0 In (10), i is a running variable, L is the length of the impulse response of the filter simulated by (10), and h[i] is the impulse response of the filter simulated by (10). A cut-off frequency value proven suitable of the filter simulated by (10) is 25 Hz. A suitable value of L is 121. An amplitude correction signal l c [n] is calculated from the signal S e [n] according to: MAX {S e [n] } e c [n] = (11) 0 ≤ n < N S e [n] With the aid of (11) an amplitude-controlled auxiliary signal S ec [n] is derived according to: S ec [n] = S [n] • e c [n] (12 ) There is observed that in the event of a low amplitude of the auxiliary signal, the amplitude correction amplifies undesired secondary peaks in such a way that they are detected as desired peaks. In order to avoid this, the amplitude correction may be switched off if the (average) amplitude of the auxiliary signal drops below a specific threshold value. In block 74 the correlation function R^n] is calculated. This is effected according to (3) or (4). Then, in block 76, the signal A[n] is calculated according to (8) and in block 78 the signal P[n] is calculated by performing the non-linear operation according to (9). In block 80 the undesired secondary pulses are removed from the signal A[n]. This may be effected in a manner as described already before. In block 82 the positions n_ and n 2 of the first two pulses in the signal P[n] of the current segment are calculated. Then, in block 84, a check is made whether the current segment is the first segment containing voiced speech. If so, a pitch marker is inserted in block 86 into the signal P'[n] at the positions that correspond to n j and n 2 . In block 88 the position of the pitch marker inserted last into the signal P'[n] is stored in variable LPM for later use. If the current segment is not the first segment containing voiced speech, the position of the last pitch mark is calculated in block 90 by adding the value i^-n j to the old value of LPM. Then, in block 92, a pitch marker is placed on the position LPM in the signal P'[n]. In block 94 the next segment is taken. This segment is not contiguous to the previous segment, but overlaps same. The beginning of the next segment is shifted by n 2 - n_ samples. The reason for this is that in the case of a transition between two contiguous segments, discontinuous changes in the established pitch value may occur in the event of varying characteristic signal portions. By rendering the segments largely overlapping, this is largely avoided. After block 94, block 66 is returned to for the processing of the new segment.

Claims: CLAIMS: 1. Transmission system comprising a transmitter with an encoder for deriving a coded signal from a quasi-periodic signal, the transmitter being arranged for transmitting the coded signal to a receiver via a medium, the encoder comprising a pitch detector for deriving pitch information from the quasi-periodic signal, characterized in that the pitch detector comprises selecting means for selecting a characteristic signal portion of an auxiliary signal which auxiliary signal is representative of the quasi-periodic signal, search means for searching for at least a further signal portion of the auxiliary signal that sufficiently corresponds to the characteristic auxiliary signal portion, and means for deriving the pitch information from the instants at which the characteristic auxiliary signal portion and die further signal portion occur. 2. Transmission system as claimed in Claim 1, characterized in that the characteristic auxiliary signal portion comprises a signal portion that has maximum energy over a certain time segment. 3. Transmission system as claimed in Claim 1 or 2, characterized in that the duration of the characteristic auxiliary signal portion is smaller than or equal to the briefest occurring pitch period. 4. Transmission system as claimed in Claim 1, 2 or 3, characterized in that the search means comprise correlation means for calculating the correlation between the characteristic auxiliary signal portion and the auxiliary signal, the pitch information being represented by the position of the peaks in the correlation function. 5. Transmission system as claimed in Claim 4, characterized in that the pitch detector comprises means for calculating the surface of the peaks in the correlation function, the pitch detector being arranged for deriving the pitch information from the surface of the peaks of the correlation function plotted against time. 6. Transmission system as claimed in Claim 5, characterized in that the pitch detector comprises expansion means for converting the surface of the peaks of the correlation function into expanded surface values of the peaks of the correlation function. 7. Encoder for deriving a coded signal from a quasi-periodic signal, the encoder comprising a pitch detector for deriving pitch information from die quasi-periodic signal, characterized in that the pitch detector comprises selecting means for selecting a characteristic signal portion of an auxiliary signal which auxiliary signal is representative of the quasi-periodic signal, search means for searching for at least a further signal portion of the auxiliary signal that sufficiently corresponds to the characteristic auxiliary signal portion, and means for deriving the pitch information from the instants at which the characteristic auxiliary signal portion and the further signal portion occur. 8. Encoder as claimed in Claim 7, characterized in that the characteristic auxiliary signal portion comprises a signal portion that has maximum energy over a certain time segment. 9. Arrangement for calculating the period of a quasi-periodic signal, characterized in that the arrangement comprises selecting means for selecting a characteristic signal portion of an auxiliary signal which auxiliary signal is representative of the quasi- periodic signal, search means for searching for at least a further signal portion of the auxiliary signal that sufficiently corresponds to the characteristic auxiliary signal portion, and means for deriving the pitch information from the instants at which the characteristic auxiliary signal portion and me further signal portion occur. 10. Coding method for deriving a coded signal from a quasi-periodic signal, the coding method comprising deriving pitch information from the quasi-periodic signal, characterized in that the method comprises selecting a characteristic signal portion of an auxiliary signal which auxiliary signal is representative of the quasi-periodic signal, searching at least for a further signal portion of the auxiliary signal that sufficiently corresponds to the characteristic auxiliary signal portion, and deriving pitch information from the instants at which the characteristic auxiliary signal portion and the further signal portion occur.

Inventors: KATHMANN ERIC, SLUIJTER ROBERT JOHANNES, TAORI RABESH, KATHMANN, ERIC, SLUIJTER, ROBERT, JOHANNES, TAORI, RABESH
Applicants: PHILIPS ELECTRONICS NV, PHILIPS NORDEN AB, PHILIPS ELECTRONICS N.V.
Application year: 1996
Main classification: G10L3
IPC codes: G10L11, G10L19