# Patent

## Title
Regeneration of wideband speech

## Abstract

A system and method for processing a narrowband speech signal comprising speech samples in a first range of frequencies. the method comprises: generating from the narrowband speech signal a highband speech signal in a second range of frequencies above the first range of frequencies; determining a pitch of the highband speech signal; using the pitch to generate a pitch-dependent tonality measure from samples of the highband speech signal; and filtering the speech samples using a gain factor derived from the tonality measure and selected to reduce the amplitude of harmonics in the highband speech signal.

## Background
RELATED APPLICATION
This application claims priority under 35 U.S.C. §119 or 365 to Great Britain Application No. 0822536.9, filed Dec. 10, 2008. The entire teachings of the above application are incorporated herein by reference.
The present invention lies in the field of artificial bandwidth extension (ABE) of narrowband telephone speech, where the objective is to regenerate wideband speech from narrowband speech in order to improve speech naturalness.
In many current speech transmission systems (phone networks for example) the audio bandwidth is limited, at the moment to 0.3-3.4 kHz. Speech signals typically cover a wider band of frequencies, between 0 and 8 kHz being normal. For transmission, a speech signal is encoded and sampled, and a sequence of samples is transmitted which defines speech but in the narrowband permitted by the available bandwidth. At the receiver, it is desired to regenerate the wideband speech using an ABE method.
In a paper entitled “High Frequency Regeneration in Speech Coding Systems”, authored by Makhoul, et al, IEEE International Conference Acoustics, Speech and Signal Processing, April 1979, pages 428-431, there is a discussion of various high frequency generation techniques for speech, including spectral translation. In a spectral translation approach, the wideband excitation is constructed by adding up-sampled low pass filtered narrow band excitation to a mirrored up-sampled and high pass filtered narrowband excitation. In such a spectral translation-based excitation regeneration scheme, where a part or the whole of a narrowband excitation signal is shifted up in frequency, it is common that the resulting recovered signal is perceived as a bit metallic due to overly strong harmonics.
It is an aim of the present invention to generate more natural wideband speech from a narrowband speech signal.
According to an aspect of the present invention there is provided a method or processing a narrowband speech signal comprising speech samples in a first range of frequencies, the method comprising: generating from the narrowband speech signal a highband speech signal in a second range of frequencies above the first range of frequencies; determining a pitch of the highband speech signal; using the pitch to generate a pitch-dependent tonality measure from samples of the highband speech signal; and filtering the speech samples using a gain factor derived from the tonality measure and selected to reduce the amplitude of harmonics in the highband speech signal.
Another aspect provides a method of regenerating a wideband speech signal at a receiver which receives a narrowband speech signal in encoded form via a transmission channel, the method comprising: decoding the received signal to generate speech samples of a narrowband speech signal; regenerating from the narrowband speech signal a highband speech signal, the highband speech signal having a range of frequencies above that of the narrowband speech signal; determining a pitch of the high hand speech signal; using the pitch to generate a pitch-dependent tonality measure from samples of the highband speech signal; filtering the speech samples using a gain factor derived from the tonality measure and selected to reduce the amplitude of harmonics in the highband speech signal; and combining the filtered highband speech signal with the narrowband speech signal to regenerate the wideband speech signal.
Another aspect of the invention provides a system for processing a narrowband speech signal comprising speech samples in a first range of frequencies, the system comprising: means for generating from the narrowband speech signal a highband speech signal in a second range of frequencies above the first range of frequencies; means for determining a pitch of the highband speech signal; means for generating a pitch-dependent tonality measure from samples of the highband speech signal using the pitch; and means for filtering the speech samples using a gain factor derived from the tonality measure and selected to reduce the amplitude of harmonics in the highband speech signal.
The gain factor can be further based on a constant value, K, as a multiplier of the tonality measure.
One way of determining the tonality measure is to combine speech samples from a block of speech samples in the highband speech region with equivalently positioned speech samples from the block delayed by the pitch.



For a better understanding of the present invention and to show how the same may be carried into effect reference will now be made by way of example to the accompanying drawings, in which:
FIG. 1 is a schematic block diagram illustrating an ABE system in a receiver;
FIG. 2 is a schematic block diagram illustrating blocks of speech samples;
FIG. 3 is a schematic block diagram illustrating a filtering function;
FIG. 4 is a graph illustrating the effect of filtering on the highband regenerated speech region; and
FIG. 5 is a schematic block diagram of a multi-valued filter.



FIG. 1 is a schematic block diagram illustrating an artificial bandwidth extension system in a receiver. A decoder 14 receives a speech signal over a transmission channel and decodes it to extract a baseband speech signal B. This is typically at a sampling frequency of 8 kHz. The baseband signal B is up-sampled in up-sampling block 16 to generate an up-sampled decoded narrowband speech signal x in a first range of frequencies, e.g. 0-4 kHz (0.3 to 3.4 kHz). The speech signal x is subject to a whitening filter 17 and highband excitation regeneration in excitation regeneration block 18. The thus regenerated extension (high) frequency band rb of the speech signal is subject to a filtering process in filter block 22. An estimation of the wideband spectral envelope is then applied at block 20. The signal is then added, at adder 21, to the incoming narrowband speech signal x to generate the wideband recovered speech signal r. The highband speech signal is in a second range of frequencies, e.g. 4-6 kHz.
The speech signal r comprises blocks of samples, where in the following n denotes a sample index.
As shown in FIG. 2, rb(I) denotes a block I of length T [T samples] of a frequency band b in the regenerated speech signal. In the present embodiment, rb is sampled at 12 kHz and is in the range 4-6 kHz.
rb(I)=[rb(IT), . . . ,rb(T(I+1)−1)], where IT denotes the first sample (index n=0).
rb(I,*−p)=[rb(IT−p), . . . ,rb((I+1)T−1−p)]. This denotes an equivalent block delayed by one pitch period p. *[N.B.—I've included the minus sign −p]
The pitch p is often readily available in the decoder 14 in a known fashion.
The speech blocks are also shown schematically in FIG. 3. They are supplied to the filter processing function 22 which processes the incoming speech blocks rb(I) and rb(I,−p) to generate filtered speech rb,filtered.
A tonality measure generation block 24 generates a tonality measure gb(I) for block I in band b by generating the inner product (<,>) between rb(I) and rb(I,−p) normalised by the energy of rb(I,−p). The energy of rb(I−p) is determined by energy determination block 26 as <rb(I,−p),rb(I,−p)>.
Thus, gb(I)=<rb(I), rb(I,−p)>/<rb(I,−p), rb(I,−p)>+W), where W is a stabilising term to handle low energy regions which would cause abrupt and incorrect tonality measures at speech onsets. In the present example, gb is constrained to lie between 0 and 1 and W is 100 T. Looking at FIG. 2, the tonality measure is the sum of the product of overlapping samples of the two blocks, starting at rb(IT)*rb(IT−p) (shown shaded), up to the end two blocks, also shown shaded.
Having generated the tonality measure, the metallic artefacts which may remain due to the wideband regeneration process are now filtered by filter 28. Filter 28 applies the following filtering operation:

rb,filtered(IT+n)=(1+Kbgb)−1(rb(IT+n)−Kbgbrb(IT+n−p)).

where n denotes the sample index and Kb is a constant that together with the tonality measure gb(I) determines the amount of “pitch destruction” applied. Kb is determined appropriately and can lie for example between 0 and 1.5. In the preferred embodiment kb is 0.3. The factor (1+Kbgb)−1 can be seen as a tonality dependent gain factor lowering the energy of the reconstructed signal even further when the signal shows strong tonality. More specifically, it reduces the energy of the current sample (index n) by dividing it by the gain factor and then subtracting the pitch delayed equivalent sample. An example of the effect of the filtering process is shown in FIG. 4.

FIG. 4 is a plot showing the spectrum of speech with respect to frequency. (i) denotes the spectra prior to filtering and (ii) shows the spectra after filtering (applied to the highband region 4-6 kHz).
FIG. 5 shows a modified filter denoted 28′ for an alternative implementation of the invention. This filter applies an amount of tonality correction weighted over frequency by applying a linear combination of several taps as follows:

rb,filtered(IT=n)=G(rb(IT+n)−Kb1gbrb(IT+n−p−1)−Kb2gbrb(IT+n−p)−Kb3gbrb(IT+n−p+1)).

Kb1, Kb2 and Kb3 are different constants that determine the amount of “pitch destruction” applied for each frequency, and can lie between −1 and 1. That is, G is a gain factor applied to the sample at index n, which is then further modified by subtracting gain-modified versions of the equivalent pitch delayed sample (IT+n−p) and those on either side of it.

## Claims

1. A method of processing a narrowband speech signal comprising speech samples in a first range of frequencies, the method comprising:
generating from the narrowband speech signal, using a computing device, a highband speech signal in a second range of frequencies above the first range of frequencies;
determining, using the computing device, a pitch of the highband speech signal;
using the pitch to generate, using the computing device, a pitch-dependent tonality measure from samples of the highband speech signal, wherein the highband speech signal comprises successive blocks of speech samples, and wherein using the pitch to generate the pitch-dependent tonality measure is carried out by combining speech samples from a block with equivalently positioned speech samples from that block delayed by the pitch; and
filtering, using the computing device, the speech samples using a gain factor derived from the tonality measure and selected to reduce the amplitude of harmonics in the highband speech signal.

2. A method according to claim 1, wherein the gain factor is modified by a pre-selected constant value.

3. A method according to claim 1, wherein the generating the pitch-dependent tonality measure comprises normalising the combined speech samples with the energy of the block.

4. The method according to claim 1, wherein generating from the narrowband speech signal a highband speech signal further comprises up-sampling the narrowband speech signal.

5. The method according to claim 4, wherein the up-sampling comprises up-sampling at a rate of 12 kilohertz (kHz).

6. The method according to claim 5, wherein the narrowband speech signal is sampled a rate of 8 kHz.

7. A method of regenerating a wideband speech signal at a receiver which receives a narrowband speech signal in encoded form via a transmission channel, the method comprising:
decoding, using a computing device, the received signal to generate speech samples of a narrowband speech signal;
regenerating from the narrowband speech signal, using the computing device, a highband speech signal, the highband speech signal having frequencies of higher numerical value than frequencies of the narrowband speech signal;
determining, using the computing device, a pitch of the highband speech signal;
using the pitch to generate, using the computing device, a pitch-dependent tonality measure from samples of the highband speech signal, wherein using the pitch to generate the pitch-dependent tonality measure comprises combining speech samples from a block of speech samples in the highband speech signal with equivalently positioned speech samples from the block delayed by the pitch;
filtering, using the computing device, the speech samples using a gain factor derived from the tonality measure and selected to reduce the amplitude of harmonics in the highband speech signal; and
combining, using the computing device, the filtered highband speech signal with the narrowband speech signal to regenerate the wideband speech signal.

8. A method according to claim 7, wherein the determining the pitch is carried out by said decoding.

9. A method according to claim 7, further comprising up-sampling the decoded signal, using the computing device, to provide samples of the narrowband speech signal.

10. The method according to claim 7, wherein the gain factor is based, at least in part, on a constant value that lies between the values of 0 and 1.5.

11. The method according to claim 7, wherein the gain factor is based, at least in part, upon three different constant values, wherein each value of the three different constant values lies between the values of −1 and 1.

12. The method according to claim 7, wherein regenerating from the narrowband speech signal a highband speech signal further comprises:
up-sampling, using the computing device, the narrowband speech signal; and
subjecting, using the computing device, the up-sampled narrowband speech signal to a whitening filter.

13. The method according to claim 7, wherein combining the filtered highband speech signal with the narrowband speech signal to regenerate the wideband speech signal further comprises:
applying, using the computing device, an estimation of a wideband spectral envelope associated with the wideband speech signal to the filtered highband speech signal; and
combining, using the computing device, the filtered highband signal having said estimated wideband spectral envelope, with the narrowband speech signal.

14. A system for processing a narrowband speech signal comprising speech samples in a first range of frequencies, the system comprising:
means for generating from the narrowband speech signal a highband speech signal in a second range of frequencies above the first range of frequencies;
means for determining a pitch of the highband speech signal;
means for generating a pitch-dependent tonality measure from samples of the highband speech signal using the pitch, wherein the means for generating the pitch-dependent tonality measure comprises means for combining speech samples from a block of speech samples in the highband speech signal with equivalently positioned speech samples from the block delayed by the pitch; and
means for filtering the speech samples using a gain factor derived from the tonality measure and selected to reduce the amplitude of harmonics in the highband speech signal.

15. A system according to claim 14, in which the means for determining a pitch is provided by a decoder.

16. A system according to claim 14, further comprising means for storing a constant value which is further used in derivation of the gain factor.

17. The system according to claim 14, wherein the means for generating from the narrowband speech signal a highband speech signal further comprises:
means for receiving an encoded signal; and
means for decoding the encoded signal into the narrowband speech signal.

18. The system according to claim 17, wherein the means for receiving the encoded signal further comprises means for receiving a signal over a transmission system.

19. The system according to claim 18, wherein the transmission system further comprises one or more phone networks.

20. The system according to claim 14, wherein the system further comprises means for generating a wideband speech signal based, at least in part, on the means for filtering the speech samples and the narrowband speech signal.