Methods, encoder and decoder for linear predictive encoding and decoding of sound signals upon transition between frames having different sampling rates

Information

  • Patent Grant
  • 11282530
  • Patent Number
    11,282,530
  • Date Filed
    Monday, October 7, 2019
    5 years ago
  • Date Issued
    Tuesday, March 22, 2022
    2 years ago
  • Inventors
  • Original Assignees
    • VOICEAGE EVS LLC (Newport Beach, CA, US)
  • Examiners
    • Lerner; Martin
    Agents
    • Fay Kaplun & Marcin, LLP
Abstract
Methods, an encoder and a decoder are configured for transition between frames with different internal sampling rates. Linear predictive (LP) filter parameters are converted from a sampling rate S1 to a sampling rate S2. A power spectrum of a LP synthesis filter is computed, at the sampling rate S1, using the LP filter parameters. The power spectrum of the LP synthesis filter is modified to convert it from the sampling rate S1 to the sampling rate S2. The modified power spectrum of the LP synthesis filter is inverse transformed to determine autocorrelations of the LP synthesis filter at the sampling rate S2. The autocorrelations are used to compute the LP filter parameters at the sampling rate S2.
Description
TECHNICAL FIELD

The present disclosure relates to the field of sound coding. More specifically, the present disclosure relates to methods, an encoder and a decoder for linear predictive encoding and decoding of sound signals upon transition between frames having different sampling rates.


BACKGROUND

The demand for efficient digital wideband speech/audio encoding techniques with a good subjective quality/bit rate trade-off is increasing for numerous applications such as audio/video teleconferencing, multimedia, and wireless applications, as well as Internet and packet network applications. Until recently, telephone bandwidths in the range of 200-3400 Hz were mainly used in speech coding applications. However, there is an increasing demand for wideband speech applications in order to increase the intelligibility and naturalness of the speech signals. A bandwidth in the range 50-7000 Hz was found sufficient for delivering a face-to-face speech quality. For audio signals, this range gives an acceptable audio quality, but is still lower than the CD (Compact Disk) quality which operates in the range 20-20000 Hz.


A speech encoder converts a speech signal into a digital bit stream that is transmitted over a communication channel (or stored in a storage medium). The speech signal is digitized (sampled and quantized with usually 16-bits per sample) and the speech encoder has the role of representing these digital samples with a smaller number of bits while maintaining a good subjective speech quality. The speech decoder or synthesizer operates on the transmitted or stored bit stream and converts it back to a sound signal.


One of the best available techniques capable of achieving a good subjective quality/bit rate trade-off is the so-called CELP (Code Excited Linear Prediction) technique. According to this technique, the sampled speech signal is processed in successive blocks of L samples usually called frames where L is some predetermined number (corresponding to 10-30 ms of speech). In CELP, an LP (Linear Prediction) synthesis filter is computed and transmitted every frame. The L-sample frame is further divided into smaller blocks called subframes of N samples, where L=kN and k is the number of subframes in a frame (N usually corresponds to 4-10 ms of speech). An excitation signal is determined in each subframe, which usually comprises two components: one from the past excitation (also called pitch contribution or adaptive codebook) and the other from an innovative codebook (also called fixed codebook). This excitation signal is transmitted and used at the decoder as the input of the LP synthesis filter in order to obtain the synthesized speech.


To synthesize speech according to the CELP technique, each block of N samples is synthesized by filtering an appropriate codevector from the innovative codebook through time-varying filters modeling the spectral characteristics of the speech signal. These filters comprise a pitch synthesis filter (usually implemented as an adaptive codebook containing the past excitation signal) and an LP synthesis filter. At the encoder end, the synthesis output is computed for all, or a subset, of the codevectors from the innovative codebook (codebook search). The retained innovative codevector is the one producing the synthesis output closest to the original speech signal according to a perceptually weighted distortion measure. This perceptual weighting is performed using a so-called perceptual weighting filter, which is usually derived from the LP synthesis filter.


In LP-based coders such as CELP, an LP filter is computed then quantized and transmitted once per frame. However, in order to insure smooth evolution of the LP synthesis filter, the filter parameters are interpolated in each subframe, based on the LP parameters from the past frame. The LP filter parameters are not suitable for quantization due to filter stability issues. Another LP representation more efficient for quantization and interpolation is usually used. A commonly used LP parameter representation is the Line Spectral Frequency (LSF) domain.


In wideband coding the sound signal is sampled at 16000 samples per second and the encoded bandwidth extended up to 7 kHz. However, at low bit rate wideband coding (below 16 kbit/s) it is usually more efficient to down-sample the input signal to a slightly lower rate, and apply the CELP model to a lower bandwidth, then use bandwidth extension at the decoder to generate the signal up to 7 kHz. This is due to the fact that CELP models lower frequencies with high energy better than higher frequency. So it is more efficient to focus the model on the lower bandwidth at low bit rates. The AMR-WB Standard (Reference [1] of which the full content is hereby incorporated by reference) is such a coding example, where the input signal is down-sampled to 12800 samples per second, and the CELP encodes the signal up to 6.4 kHz. At the decoder bandwidth extension is used to generate a signal from 6.4 to 7 kHz. However, at bit rates higher than 16 kbit/s it is more efficient to use CELP to encode the signal up to 7 kHz, since there are enough bits to represent the entire bandwidth.


Most recent coders are multi-rate coders covering a wide range of bit rates to enable flexibility in different application scenarios. Again the AMR-WB Standard is such an example, where the encoder operates at bit rates from 6.6 to 23.85 kbit/s. In multi-rate coders the codec should be able to switch between different bit rates on a frame basis without introducing switching artefacts. In AMR-WB this is easily achieved since all the bit rates use CELP at 12.8 kHz internal sampling. However, in a recent coder using 12.8 kHz sampling at bit rates below 16 kbit/s and 16 kHz sampling at bit rates higher than 16 kbits/s, the issues related to switching the bit rate between frames using different sampling rates need to be addressed. The main issues are related to the LP filter transition, and the memory of the synthesis filter and adaptive codebook.


Therefore, there remains a need for an efficient technique for switching LP-based codecs between two bit rates with different internal sampling rates.


SUMMARY

According to the present disclosure, there is provided a method implemented in a sound signal encoder for converting linear predictive (LP) filter parameters from a sound signal sampling rate S1 to a sound signal sampling rate S2. A power spectrum of a LP synthesis filter is computed, at the sampling rate S1, using the LP filter parameters. The power spectrum of the LP synthesis filter is modified to convert it from the sampling rate S1 to the sampling rate S2. The modified power spectrum of the LP synthesis filter is inverse transformed to determine autocorrelations of the LP synthesis filter at the sampling rate S2. The autocorrelations are used to compute the LP filter parameters at the sampling rate S2.


According to the present disclosure, there is also provided a method implemented in a sound signal decoder for converting received linear predictive (LP) filter parameters from a sound signal sampling rate S1 to a sound signal sampling rate S2. A power spectrum of a LP synthesis filter is computed, at the sampling rate S1, using the received LP filter parameters. The power spectrum of the LP synthesis filter is modified to convert it from the sampling rate S1 to the sampling rate S2. The modified power spectrum of the LP synthesis filter is inverse transformed to determine autocorrelations of the LP synthesis filter at the sampling rate S2. The autocorrelations are used to compute the LP filter parameters at the sampling rate S2.


According to the present disclosure, there is further provided a device for use in a sound signal encoder for converting linear predictive (LP) filter parameters from a sound signal sampling rate S1 to a sound signal sampling rate S2. The device comprises a processor configured to:

    • compute, at the sampling rate S1, a power spectrum of a LP synthesis filter using the LP filter parameters,
    • modify the power spectrum of the LP synthesis filter to convert it from the sampling rate S1 to the sampling rate S2,
    • inverse transform the modified power spectrum of the LP synthesis filter to determine autocorrelations of the LP synthesis filter at the sampling rate S2, and
    • use the autocorrelations to compute the LP filter parameters at the sampling rate S2.


The present disclosure still further relates to a device for use in a sound signal decoder for converting received linear predictive (LP) filter parameters from a sound signal sampling rate S1 to a sound signal sampling rate S2. The device comprises a processor configured to:

    • compute, at the sampling rate S1, a power spectrum of a LP synthesis filter using the received LP filter parameters,
    • modify the power spectrum of the LP synthesis filter to convert it from the sampling rate S1 to the sampling rate S2,
    • inverse transform the modified power spectrum of the LP synthesis filter to determine autocorrelations of the LP synthesis filter at the sampling rate S2, and
    • use the autocorrelations to compute the LP filter parameters at the sampling rate S2.


The foregoing and other objects, advantages and features of the present disclosure will become more apparent upon reading of the following non-restrictive description of an illustrative embodiment thereof, given by way of example only with reference to the accompanying drawings.





BRIEF DESCRIPTION OF THE DRAWINGS

In the appended drawings:



FIG. 1 is a schematic block diagram of a sound communication system depicting an example of use of sound encoding and decoding;



FIG. 2 is a schematic block diagram illustrating the structure of a CELP-based encoder and decoder, part of the sound communication system of FIG. 1;



FIG. 3 illustrates an example of framing and interpolation of LP parameters;



FIG. 4 is a block diagram illustrating an embodiment for converting the LP filter parameters between two different sampling rates; and



FIG. 5 is a simplified block diagram of an example configuration of hardware components forming the encoder and/or decoder of FIGS. 1 and 2.





DETAILED DESCRIPTION

The non-restrictive illustrative embodiment of the present disclosure is concerned with a method and a device for efficient switching, in an LP-based codec, between frames using different internal sampling rates. The switching method and device can be used with any sound signals, including speech and audio signals. The switching between 16 kHz and 12.8 kHz internal sampling rates is given by way of example, however, the switching method and device can also be applied to other sampling rates.



FIG. 1 is a schematic block diagram of a sound communication system depicting an example of use of sound encoding and decoding. A sound communication system 100 supports transmission and reproduction of a sound signal across a communication channel 101. The communication channel 101 may comprise, for example, a wire, optical or fibre link. Alternatively, the communication channel 101 may comprise at least in part a radio frequency link. The radio frequency link often supports multiple, simultaneous speech communications requiring shared bandwidth resources such as may be found with cellular telephony. Although not shown, the communication channel 101 may be replaced by a storage device in a single device embodiment of the communication system 100 that records and stores the encoded sound signal for later playback.


Still referring to FIG. 1, for example a microphone 102 produces an original analog sound signal 103 that is supplied to an analog-to-digital (A/D) converter 104 for converting it into an original digital sound signal 105. The original digital sound signal 105 may also be recorded and supplied from a storage device (not shown). A sound encoder 106 encodes the original digital sound signal 105 thereby producing a set of encoding parameters 107 that are coded into a binary form and delivered to an optional channel encoder 108. The optional channel encoder 108, when present, adds redundancy to the binary representation of the coding parameters before transmitting them over the communication channel 101. On the receiver side, an optional channel decoder 109 utilizes the above mentioned redundant information in a digital bit stream 111 to detect and correct channel errors that may have occurred during the transmission over the communication channel 101, producing received encoding parameters 112. A sound decoder 110 converts the received encoding parameters 112 for creating a synthesized digital sound signal 113. The synthesized digital sound signal 113 reconstructed in the sound decoder 110 is converted to a synthesized analog sound signal 114 in a digital-to-analog (D/A) converter 115 and played back in a loudspeaker unit 116. Alternatively, the synthesized digital sound signal 113 may also be supplied to and recorded in a storage device (not shown).



FIG. 2 is a schematic block diagram illustrating the structure of a CELP-based encoder and decoder, part of the sound communication system of FIG. 1. As illustrated in FIG. 2, a sound codec comprises two basic parts: the sound encoder 106 and the sound decoder 110 both introduced in the foregoing description of FIG. 1. The encoder 106 is supplied with the original digital sound signal 105, determines the encoding parameters 107, described herein below, representing the original analog sound signal 103. These parameters 107 are encoded into the digital bit stream 111 that is transmitted using a communication channel, for example the communication channel 101 of FIG. 1, to the decoder 110. The sound decoder 110 reconstructs the synthesized digital sound signal 113 to be as similar as possible to the original digital sound signal 105.


Presently, the most widespread speech coding techniques are based on Linear Prediction (LP), in particular CELP. In LP-based coding, the synthesized digital sound signal 113 is produced by filtering an excitation 214 through a LP synthesis filter 216 having a transfer function 1/A(z). In CELP, the excitation 214 is typically composed of two parts: a first-stage, adaptive-codebook contribution 222 selected from an adaptive codebook 218 and amplified by an adaptive-codebook gain gp 226 and a second-stage, fixed-codebook contribution 224 selected from a fixed codebook 220 and amplified by a fixed-codebook gain gc 228. Generally speaking, the adaptive codebook contribution 222 models the periodic part of the excitation and the fixed codebook contribution 224 is added to model the evolution of the sound signal.


The sound signal is processed by frames of typically 20 ms and the LP filter parameters are transmitted once per frame. In CELP, the frame is further divided in several subframes to encode the excitation. The subframe length is typically 5 ms.


CELP uses a principle called Analysis-by-Synthesis where possible decoder outputs are tried (synthesized) already during the coding process at the encoder 106 and then compared to the original digital sound signal 105. The encoder 106 thus includes elements similar to those of the decoder 110. These elements includes an adaptive codebook contribution 250 selected from an adaptive codebook 242 that supplies a past excitation signal v(n) convolved with the impulse response of a weighted synthesis filter H(z) (see 238) (cascade of the LP synthesis filter 1/A(z) and the perceptual weighting filter W(z)), the result y1(n) of which is amplified by an adaptive-codebook gain gp 240. Also included is a fixed codebook contribution 252 selected from a fixed codebook 244 that supplies an innovative codevector ck(n) convolved with the impulse response of the weighted synthesis filter H(z) (see 246), the result y2(n) of which is amplified by a fixed codebook gain gc 248.


The encoder 106 also comprises a perceptual weighting filter W(z) 233 and a provider 234 of a zero-input response of the cascade (H(z)) of the LP synthesis filter 1/A(z) and the perceptual weighting filter W(z). Subtractors 236, 254 and 256 respectively subtract the zero-input response, the adaptive codebook contribution 250 and the fixed codebook contribution 252 from the original digital sound signal 105 filtered by the perceptual weighting filter 233 to provide a mean-squared error 232 between the original digital sound signal 105 and the synthesized digital sound signal 113.


The codebook search minimizes the mean-squared error 232 between the original digital sound signal 105 and the synthesized digital sound signal 113 in a perceptually weighted domain, where discrete time index n=0, 1, . . . , N−1, and N is the length of the subframe. The perceptual weighting filter W(z) exploits the frequency masking effect and typically is derived from a LP filter A(z).


An example of the perceptual weighting filter W(z) for WB (wideband, bandwidth of 50-7000 Hz) signals can be found in Reference [1].


Since the memory of the LP synthesis filter 1/A(z) and the weighting filter W(z) is independent from the searched codevectors, this memory can be subtracted from the original digital sound signal 105 prior to the fixed codebook search. Filtering of the candidate codevectors can then be done by means of a convolution with the impulse response of the cascade of the filters 1/A(z) and W(z), represented by H(z) in FIG. 2.


The digital bit stream 111 transmitted from the encoder 106 to the decoder 110 contains typically the following parameters 107: quantized parameters of the LP filter A(z), indices of the adaptive codebook 242 and of the fixed codebook 244, and the gains gp 240 and gc 248 of the adaptive codebook 242 and of the fixed codebook 244.


Converting LP Filter Parameters when Switching at Frame Boundaries with Different Sampling Rates


In LP-based coding the LP filter A(z) is determined once per frame, and then interpolated for each subframe. FIG. 3 illustrates an example of framing and interpolation of LP parameters. In this example, a present frame is divided into four subframes SF1, SF2, SF3 and SF4, and the LP analysis window is centered at the last subframe SF4. Thus the LP parameters resulting from LP analysis in the present frame, F1, are used as is in the last subframe, that is SF4=F1. For the first three subframes SF1, SF2 and SF3, the LP parameters are obtained by interpolating the parameters in the present frame, F1, and a previous frame, F0. That is:

SF1=0.75F0+0.25F1;
SF2=0.5F0+0.5F1;
SF3=0.25F0+0.75F1
SF4=F1.


Other interpolation examples may alternatively be used depending on the LP analysis window shape, length and position. In another embodiment, the coder switches between 12.8 kHz and 16 kHz internal sampling rates, where 4 subframes per frame are used at 12.8 kHz and 5 subframes per frame are used at 16 kHz, and where the LP parameters are also quantized in the middle of the present frame (Fm). In this other embodiment, LP parameter interpolation for a 12.8 kHz frame is given by:

SF1=0.5F0+0.5Fm;
SF2=Fm;
SF3=0.5Fm+0.5F1;
SF4=F1.


For a 16 kHz sampling, the interpolation is given by:

SF1=0.55F0+0.45Fm;
SF2=0.15F0+0.85Fm;
SF3=0.75Fm+0.25F1;
SF4=0.35Fm+0.65F1;
SF5=F1.


LP analysis results in computing the parameters of the LP synthesis filter using:










1

A


(
z
)



=


1

1
+




i
=
1

M








a
i



z

-
1






=

1

1
+


a
1



z

-
1



+


a
2



z

-
2



+

+


a
M



z

-
M










(
1
)







where ai, i=1, . . . , M, are LP filter parameters and M is the filter order.


The LP filter parameters are transformed to another domain for quantization and interpolation purposes. Other LP parameter representations commonly used are reflection coefficients, log-area ratios, immitance spectrum pairs (used in AMR-WB; Reference [1]), and line spectrum pairs, which are also called line spectrum frequencies (LSF). In this illustrative embodiment, the line spectrum frequency representation is used. An example of a method that can be used to convert the LP parameters to LSF parameters and vice versa can be found in Reference [2]. The interpolation example in the previous paragraph is applied to the LSF parameters, which can be in the frequency domain in the range between 0 and Fs/2 (where Fs is the sampling frequency), or in the scaled frequency domain between 0 and T, or in the cosine domain (cosine of scaled frequency).


As described above, different internal sampling rates may be used at different bit rates to improve quality in multi-rate LP-based coding. In this illustrative embodiment, a multi-rate CELP wideband coder is used where an internal sampling rate of 12.8 kHz is used at lower bit rates and an internal sampling rate of 16 kHz at higher bit rates. At a 12.8 kHz sampling rate, the LSFs cover the bandwidth from 0 to 6.4 kHz, while at a 16 kHz sampling rate they cover the range from 0 to 8 kHz. When switching the bit rate between two frames where the internal sampling rate is different, some issues are addressed to insure seamless switching. These issues include the interpolation of LP filter parameters and the memories of the synthesis filter and the adaptive codebook, which are at different sampling rates.


The present disclosure introduces a method for efficient interpolation of LP parameters between two frames at different internal sampling rates. By way of example, the switching between 12.8 kHz and 16 kHz sampling rates is considered. The disclosed techniques are however not limited to these particular sampling rates and may apply to other internal sampling rates.


Let's assume that the encoder is switching from a frame F1 with internal sampling rate S1 to a frame F2 with internal sampling rate S2. The LP parameters in the first frame are denoted LSF1S1 and the LP parameters at the second frame are denoted LSF2S2. In order to update the LP parameters in each subframe of frame F2, the LP parameters LSF1 and LSF2 are interpolated. In order to perform the interpolation, the filters have to be set at the same sampling rate. This requires performing LP analysis of frame F1 at sampling rate S2. To avoid transmitting the LP filter twice at the two sampling rates in frame F1, the LP analysis at sampling rate S2 can be performed on the past synthesis signal which is available at both encoder and decoder. This approach involves re-sampling the past synthesis signal from rate S1 to rate S2, and performing complete LP analysis, this operation being repeated at the decoder, which is usually computationally demanding.


Alternative method and devices are disclosed herein for converting LP synthesis filter parameters LSF1 from sampling rate S1 to sampling rate S2 without the need to re-sample the past synthesis and perform complete LP analysis. The method, used at encoding and/or at decoding, comprises computing the power spectrum of the LP synthesis filter at rate S1; modifying the power spectrum to convert it from rate S1 to rate S2; converting the modified power spectrum back to the time domain to obtain the filter autocorrelation at rate S2; and finally use the autocorrelation to compute LP filter parameters at rate S2.


In at least some embodiments, modifying the power spectrum to convert it from rate S1 to rate S2 comprises the following operations:

    • If S1 is larger than S2, modifying the power spectrum comprises truncating the K-sample power spectrum down to K(S2/S1) samples, that is, removing K(S1−S2)/S1 samples.
    • On the other hand, if S1 is smaller than S2, then modifying the power spectrum comprises extending the K-sample power spectrum up to K(S2/S1) samples, that is, adding K(S2−S1)/IS samples.


Computing the LP filter at rate S2 from the autocorrelations can be done using the Levinson-Durbin algorithm (see Reference [1]). Once the LP filter is converted to rate S2, the LP filter parameters are transformed to the interpolation domain, which is an LSF domain in this illustrative embodiment.


The procedure described above is summarized in FIG. 4, which is a block diagram illustrating an embodiment for converting the LP filter parameters between two different sampling rates.


Sequence 300 of operations shows that a simple method for the computation of the power spectrum of the LP synthesis filter 1/A(z) is to evaluate the frequency response of the filter at K frequencies from 0 to 2π.


The frequency response of the synthesis filter is given by










1

A


(
ω
)



=


1

1
+




i
=
1

M








a
i



e


-
j






ω





i






=

1

1
+




i
=
1

M








a
i



cos


(

ω





i

)




+

j





i
=
1

M








a
i



sin


(

ω





i

)












(
2
)







and the power spectrum of the synthesis filter is calculated as an energy of the frequency response of the synthesis filter, given by










P


(
ω
)


=


1




A


(
ω
)




2


=

1



(

1
+




i
=
1

M








a
i



cos


(

ω





i

)





)

2

+


(




i
=
1

M








a
i



sin


(

ω





i

)




)

2








(
3
)







Initially, the LP filter is at a rate equal to S1 (operation 310). A K-sample (i.e. discrete) power spectrum of the LP synthesis filter is computed (operation 320) by sampling the frequency range from 0 to 2π. That is











P


(
k
)


=

1



(

1
+




i
=
1

M








a
i



cos


(


2





π





i





k

K

)





)

2

+


(




i
=
1

M








a
i



sin


(


2





π





i





k

K

)




)

2




,





k
=
0

,





,

K
-
1





(
4
)







Note that it is possible to reduce operational complexity by computing P(k) only for k=0, . . . , K/2 since the power spectrum from π to 2π is a mirror of that from 0 to π.


A test (operation 330) determines which of the following cases apply. In a first case, the sampling rate S1 is larger than the sampling rate S2, and the power spectrum for frame F1 is truncated (operation 340) such that the new number of samples is K(S2/S1).


In more details, when S1 is larger than S2, the length of the truncated power spectrum is K2=K(S2/S1) samples (operation 340). Since the power spectrum is truncated, it is computed from k=0, . . . , K2/2. Since the power spectrum is symmetric around K2/2, then it is assumed that

P(K2/2+k)=P(K2/2−k), from k=1, . . . ,K2/2−1


The Fourier Transform of the autocorrelations of a signal gives the power spectrum of that signal. Thus, applying inverse Fourier Transform to the truncated power spectrum results in the autocorrelations of the impulse response of the synthesis filter at sampling rate S2 (operation 360).


The Inverse Discrete Fourier Transform (IDFT) of the truncated power spectrum is given by










R


(
i
)


=


1

K
2







k
=
0



K
2

-
1









P


(
k
)




e

j





2





π





i






k
/

K
2











(
5
)







Since the filter order is M, then the IDFT may be computed only for i=0, . . . , M. Further, since the power spectrum is real and symmetric, then the IDFT of the power spectrum is also real and symmetric. Given the symmetry of the power spectrum, and that only M+1 correlations are needed, the inverse transform of the power spectrum can be given as










R


(
i
)


=


1

K
2




(


P


(
0
)


+



(

-
1

)

i



P


(


K
2

/
2

)



+

2



(

-
1

)

i






k
=
1




K
2

/
2

-
1









P


(



K
2

/
2

-
k

)




cos


(

2





π





i






k
/

K
2



)






)






(
6
)








That is

















R


(
0
)


=


1

K
2




(


P


(
0
)


+

P


(


K
2

/
2

)


+

2





k
=
1




K
2

/
2

-
1








P


(
k
)





)










R


(
i
)


=


1

K
2




(


P


(
0
)


-

P


(


K
2

/
2

)


-

2





k
=
1




K
2

/
2

-
1









P


(



K
2

/
2

-
k

)




cos


(

2





π





i






k
/

K
2



)






)




















for





i

=
1

,
3
,





,

M
-
1









R


(
i
)


=


1

K
2




(


P


(
0
)


+

P


(


K
2

/
2

)


+

2





k
=
1




K
2

/
2

-
1









P


(



K
2

/
2

-
k

)




cos


(

2





π





i






k
/

K
2



)






)



















for





i

=
2

,
4
,





,
M






(
7
)







After the autocorrelations are computed at sampling rate S2, the Levinson-Durbin algorithm (see Reference [1]) can be used to compute the parameters of the LP filter at sampling rate S2 (operation 370). Then, the LP filter parameters are transformed to the LSF domain for interpolation with the LSFs of frame F2 in order to obtain LP parameters at each subframe.


In the illustrative example where the coder encodes a wideband signal and is switching from a frame with an internal sampling rate S1=16 kHz to a frame with internal sampling rate S2=12.8 kHz, assuming that K=100, the length of the truncated power spectrum is K2=100(12800/16000)=80 samples. The power spectrum is computed for 41 samples using Equation (4), and then the autocorrelations are computed using Equation (7) with K2=80.


In a second case, when the test (operation 330) determines that S1 is smaller than S2, the length of the extended power spectrum is K2=K(S2/S1) samples (operation 350). After computing the power spectrum from k=0, . . . , K/2, the power spectrum is extended to K2/2. Since there is no original spectral content between K/2 and K2/2, extending the power spectrum can be done by inserting a number of samples up to K2/2 using very low sample values. A simple approach is to repeat the sample at K/2 up to K2/2. Since the power spectrum is symmetric around K2/2 then it is assumed that

P(K2/2+k)=P(K2/2−k), from k=1, . . . ,K2/2−1


In either cases, the inverse DFT is then computed as in Equation (6) to obtain the autocorrelations at sampling rate S2 (operation 360) and the Levinson-Durbin algorithm (see Reference [1]) is used to compute the LP filter parameters at sampling rate S2 (operation 370). Then filter parameters are transformed to the LSF domain for interpolation with the LSFs of frame F2 in order to obtain LP parameters at each subframe.


Again, let's take the illustrative example where the coder is switching from a frame with an internal sampling rate S1=12.8 kHz to a frame with internal sampling rate S2=16 kHz, and let's assume that K=80. The length of the extended power spectrum is K2=80(16000/12800)=100 samples. The power spectrum is computed for 51 samples using Equation (4), and then the autocorrelations are computed using Equation (7) with K2=100.


Note that other methods can be used to compute the power spectrum of the LP synthesis filter or the inverse DFT of the power spectrum without departing from the spirit of the present disclosure.


Note that in this illustrative embodiment converting the LP filter parameters between different internal sampling rates is applied to the quantized LP parameters, in order to determine the interpolated synthesis filter parameters in each subframe, and this is repeated at the decoder. It is noted that the weighting filter uses unquantized LP filter parameters, but it was found sufficient to interpolate between the unquantized filter parameters in new frame F2 and sampling-converted quantized LP parameters from past frame F1 in order to determine the parameters of the weighting filter in each subframe. This avoids the need to apply LP filter sampling conversion on the unquantized LP filter parameters as well.


Other Considerations when Switching at Frame Boundaries with Different Sampling Rates


Another issue to be considered when switching between frames with different internal sampling rates is the content of the adaptive codebook, which usually contains the past excitation signal. If the new frame has an internal sampling rate S2 and the previous frame has an internal sampling rate S1, then the content of the adaptive codebook is re-sampled from rate S1 to rate S2, and this is performed at both the encoder and the decoder.


In order to reduce the complexity, in this disclosure, the new frame F2 is forced to use a transient encoding mode which is independent of the past excitation history and thus does not use the history of the adaptive codebook. An example of transient mode encoding can be found in PCT patent application WO 2008/049221 A1 “Method and device for coding transition frames in speech signals”, the disclosure of which is incorporated by reference herein.


Another consideration when switching at frame boundaries with different sampling rates is the memory of the predictive quantizers. As an example, LP-parameter quantizers usually use predictive quantization, which may not work properly when the parameters are at different sampling rates. In order to reduce switching artefacts, the LP-parameter quantizer may be forced into a non-predictive coding mode when switching between different sampling rates.


A further consideration is the memory of the synthesis filter, which may be resampled when switching between frames with different sampling rates.


Finally, the additional complexity that arises from converting LP filter parameters when switching between frames with different internal sampling rates may be compensated by modifying parts of the encoding or decoding processing. For example, in order not to increase the encoder complexity, the fixed codebook search may be modified by lowering the number of iterations in the first subframe of the frame (see Reference [1] for an example of fixed codebook search).


Additionally, in order not to increase the decoder complexity, certain post-processing can be skipped. For example, in this illustrative embodiment, a post-processing technique as described in U.S. Pat. No. 7,529,660 “Method and device for frequency-selective pitch enhancement of synthesized speech”, the disclosure of which is incorporated by reference herein, may be used. This post-filtering is skipped in the first frame after switching to a different internal sampling rate (skipping this post-filtering also overcomes the need of past synthesis utilized in the post-filter).


Further, other parameters that depend on the sampling rate may be scaled accordingly. For example, the past pitch delay used for decoder classifier and frame erasure concealment may be scaled by the factor S2/S1.



FIG. 5 is a simplified block diagram of an example configuration of hardware components forming the encoder and/or decoder of FIGS. 1 and 2. A device 400 may be implemented as a part of a mobile terminal, as a part of a portable media player, a base station, Internet equipment or in any similar device, and may incorporate the encoder 106, the decoder 110, or both the encoder 106 and the decoder 110. The device 400 includes a processor 406 and a memory 408. The processor 406 may comprise one or more distinct processors for executing code instructions to perform the operations of FIG. 4. The processor 406 may embody various elements of the encoder 106 and of the decoder 110 of FIGS. 1 and 2. The processor 406 may further execute tasks of a mobile terminal, of a portable media player, base station, Internet equipment and the like. The memory 408 is operatively connected to the processor 406. The memory 408, which may be a non-transitory memory, stores the code instructions executable by the processor 406.


An audio input 402 is present in the device 400 when used as an encoder 106. The audio input 402 may include for example a microphone or an interface connectable to a microphone. The audio input 402 may include the microphone 102 and the A/D converter 104 and produce the original analog sound signal 103 and/or the original digital sound signal 105. Alternatively, the audio input 402 may receive the original digital sound signal 105. Likewise, an encoded output 404 is present when the device 400 is used as an encoder 106 and is configured to forward the encoding parameters 107 or the digital bit stream 111 containing the parameters 107, including the LP filter parameters, to a remote decoder via a communication link, for example via the communication channel 101, or toward a further memory (not shown) for storage. Non-limiting implementation examples of the encoded output 404 comprise a radio interface of a mobile terminal, a physical interface such as for example a universal serial bus (USB) port of a portable media player, and the like.


An encoded input 403 and an audio output 405 are both present in the device 400 when used as a decoder 110. The encoded input 403 may be constructed to receive the encoding parameters 107 or the digital bit stream 111 containing the parameters 107, including the LP filter parameters from an encoded output 404 of an encoder 106. When the device 400 includes both the encoder 106 and the decoder 110, the encoded output 404 and the encoded input 403 may form a common communication module. The audio output 405 may comprise the D/A converter 115 and the loudspeaker unit 116. Alternatively, the audio output 405 may comprise an interface connectable to an audio player, to a loudspeaker, to a recording device, and the like.


The audio input 402 or the encoded input 403 may also receive signals from a storage device (not shown). In the same manner, the encoded output 404 and the audio output 405 may supply the output signal to a storage device (not shown) for recording.


The audio input 402, the encoded input 403, the encoded output 404 and the audio output 405 are all operatively connected to the processor 406.


Those of ordinary skill in the art will realize that the description of the methods, encoder and decoder for linear predictive encoding and decoding of sound signals are illustrative only and are not intended to be in any way limiting. Other embodiments will readily suggest themselves to such persons with ordinary skill in the art having the benefit of the present disclosure. Furthermore, the disclosed methods, encoder and decoder may be customized to offer valuable solutions to existing needs and problems of switching linear prediction based codecs between two bit rates with different sampling rates.


In the interest of clarity, not all of the routine features of the implementations of methods, encoder and decoder are shown and described. It will, of course, be appreciated that in the development of any such actual implementation of the methods, encoder and decoder, numerous implementation-specific decisions may need to be made in order to achieve the developer's specific goals, such as compliance with application-, system-, network- and business-related constraints, and that these specific goals will vary from one implementation to another and from one developer to another. Moreover, it will be appreciated that a development effort might be complex and time-consuming, but would nevertheless be a routine undertaking of engineering for those of ordinary skill in the field of sound coding having the benefit of the present disclosure.


In accordance with the present disclosure, the components, process operations, and/or data structures described herein may be implemented using various types of operating systems, computing platforms, network devices, computer programs, and/or general purpose machines. In addition, those of ordinary skill in the art will recognize that devices of a less general purpose nature, such as hardwired devices, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), or the like, may also be used. Where a method comprising a series of operations is implemented by a computer or a machine and those operations may be stored as a series of instructions readable by the machine, they may be stored on a tangible medium.


Systems and modules described herein may comprise software, firmware, hardware, or any combination(s) of software, firmware, or hardware suitable for the purposes described herein.


Although the present disclosure has been described hereinabove by way of non-restrictive, illustrative embodiments thereof, these embodiments may be modified at will within the scope of the appended claims without departing from the spirit and nature of the present disclosure.


REFERENCES

The following references are incorporated by reference herein.

  • [1] 3GPP Technical Specification 26.190, “Adaptive Multi-Rate-Wideband (AMR-WB) speech codec; Transcoding functions,” July 2005.
  • [2] ITU-T Recommendation G.729 “Coding of speech at 8 kbit/s using conjugate-structure algebraic-code-excited linear prediction (CS-ACELP)”, January 2007.

Claims
  • 1. A method for encoding a sound signal, comprising: sampling the sound signal during successive sound signal processing frames;producing, in response to the sampled sound signal, parameters for encoding the sound signal during the successive frames, wherein the sound signal encoding parameters include linear predictive (LP) filter parameters, wherein producing the LP filter parameters comprises, upon switching from a first one of the frames using an internal sampling rate S1 to a second one of the frames using an internal sampling rate S2, converting LP filter parameters from the first frame from the internal sampling rate S1 to the internal sampling rate S2, and wherein converting the LP filter parameters from the first frame comprises: computing, at the internal sampling rate S1, a power spectrum of a LP synthesis filter using the LP filter parameters;extending the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2;truncating the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2;applying an inverse Fourier transform to the extended or truncated power spectrum of the LP synthesis filter to determine autocorrelations of the LP synthesis filter at the internal sampling rate S2; andcomputing the LP filter parameters at the internal sampling rate S2 by applying the Levinson-Durbin algorithm to the autocorrelations; andencoding the sound signal encoding parameters into a bitstream.
  • 2. The method as recited in claim 1, wherein: extending the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2 is based on a ratio between the internal sampling rate S1 and the internal sampling rate S2; andtruncating the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2 is based on the ratio between the internal sampling rate S1 and the internal sampling rate S2.
  • 3. The method as recited in claim 1, wherein the frames are divided into sub-frames, and wherein the method comprises computing LP filter parameters in each sub-frame of a current frame by interpolating LP filter parameters of the current frame at the internal sampling rate S2 with LP filter parameters of a past frame converted from the internal sampling rate S1 to the internal sampling rate S2.
  • 4. The method as recited in claim 1, comprising forcing a current frame to an encoding mode that does not use a history of an adaptive codebook.
  • 5. The method as recited in claim 1, comprising forcing a LP-parameter quantizer to use a non-predictive quantization method in a current frame upon switching between the internal sampling rates S1 and S2.
  • 6. The method as recited in claim 1, wherein the power spectrum of the LP synthesis filter is a discrete power spectrum.
  • 7. The method as recited in claim 1, comprising: computing the power spectrum of the LP synthesis filter at K samples;extending the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is smaller than the internal sampling rate S2; andtruncating the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 8. The method as recited in claim 1, comprising: computing the power spectrum of the LP synthesis filter at K samples;adding K(S2−S1)/S1 samples to the power spectrum of the LP synthesis filter if the internal sampling rate S1 is smaller than the internal sampling rate S2; andremoving K(S1−S2)/S1 samples from the power spectrum of the LP synthesis filter if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 9. The method as recited in claim 1, comprising computing the power spectrum of the LP synthesis filter as an energy of a frequency response of the LP synthesis filter.
  • 10. The method as recited in claim 1, comprising: computing the power spectrum of the LP synthesis filter comprises computing a K-sample power spectrum at K/2 samples from 0 to π since the power spectrum of the LP synthesis filter from π to 2π is a mirror image of the power spectrum from 0 to π.
  • 11. The method as recited in claim 10, wherein, if the internal sampling rate S1 is smaller than the internal sampling rate S2, extending the power spectrum comprises extending the power spectrum from a sample K/2 to a sample K2/2 by inserting a number of samples from sample K/2 to sample K2/2 since there is no original spectral contents from sample K/2 to sample K2/2, wherein K2 is larger than K.
  • 12. The method as recited in claim 1, comprising resampling a memory of a synthesis filter upon switching between frames with different internal sampling rates.
  • 13. The method as recited in claim 1, comprising, to prevent increase of complexity of a decoder, skipping post-processing after switching to a different internal sampling rate.
  • 14. A method for decoding a sound signal, comprising: receiving a bitstream including sound signal encoding parameters in successive sound signal processing frames, wherein the sound signal encoding parameters include linear predictive (LP) filter parameters;decoding from the bitstream the sound signal encoding parameters including the LP filter parameters during the successive sound signal processing frames, and producing from the decoded sound signal encoding parameters an LP synthesis filter excitation signal, wherein decoding the LP filter parameters comprises, upon switching from a first one of the frames using an internal sampling rate S1 to a second one of the frames using an internal sampling rate S2, converting the LP filter parameters from the first frame from the internal sampling rate S1 to the internal sampling rate S2, and wherein converting the LP filter parameters from the first frame comprises: computing, at the internal sampling rate S1, a power spectrum of a LP synthesis filter using the LP filter parameters;extending the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2;truncating the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2;applying an inverse Fourier transform to the extended or truncated power spectrum of the LP synthesis filter to determine autocorrelations of the LP synthesis filter at the internal sampling rate S2; andcomputing the LP filter parameters at the internal sampling rate S2 by applying the Levinson-Durbin algorithm to the autocorrelations; andsynthesizing the sound signal using LP synthesis filtering in response to the decoded LP filter parameters and the LP synthesis filter excitation signal.
  • 15. The method as recited in claim 14, wherein: extending the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2 is based on a ratio between the internal sampling rate S1 and the internal sampling rate S2; andtruncating the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2 is based on the ratio between the internal sampling rate S1 and the internal sampling rate S2.
  • 16. The method as recited in claim 14, wherein the frames are divided into sub-frames, and wherein the method comprises computing LP filter parameters in each sub-frame of a current frame by interpolating LP filter parameters of the current frame at the internal sampling rate S2 with LP filter parameters of a past frame converted from the internal sampling rate S1 to the internal sampling rate S2.
  • 17. The method as recited in claim 14, comprising forcing a current frame to an encoding mode that does not use a history of an adaptive codebook.
  • 18. The method as recited in claim 14, comprising forcing a LP-parameter quantizer to use a non-predictive quantization method in a current frame upon switching between the internal sampling rates S1 and S2.
  • 19. The method as recited in claim 14, wherein the power spectrum of the LP synthesis filter is a discrete power spectrum.
  • 20. The method as recited in claim 14, comprising: computing the power spectrum of the LP synthesis filter at K samples;extending the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is smaller than the internal sampling rate S2; andtruncating the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 21. The method as recited in claim 14, comprising: computing the power spectrum of the LP synthesis filter at K samples;adding K(S2−S1)/S1 samples to the power spectrum of the LP synthesis filter if the internal sampling rate S1 is smaller than the internal sampling rate S2; andremoving K(S1−S2)/S1 samples from the power spectrum of the LP synthesis filter if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 22. The method as recited in claim 14, comprising computing the power spectrum of the LP synthesis filter as an energy of a frequency response of the LP synthesis filter.
  • 23. The method as recited in claim 14, comprising: computing the power spectrum of the LP synthesis filter comprises computing a K-sample power spectrum at K/2 samples from 0 to π since the power spectrum of the LP synthesis filter from π to 2π is a mirror image of the power spectrum from 0 to π.
  • 24. The method as recited in claim 23, wherein, if the internal sampling rate S1 is smaller than the internal sampling rate S2, extending the power spectrum comprises extending the power spectrum from a sample K/2 to a sample K2/2 by inserting a number of samples from sample K/2 to sample K2/2 since there is no original spectral contents from sample K/2 to sample K2/2, wherein K2 is larger than K.
  • 25. The method as recited in claim 14, comprising resampling a memory of a synthesis filter upon switching between frames with different internal sampling rates.
  • 26. The method as recited in claim 14, comprising, to prevent increase of complexity of a decoder, skipping post-processing after switching to a different internal sampling rate.
  • 27. A device for encoding a sound signal, comprising: at least one processor; anda memory coupled to the processor and comprising non-transitory instructions that when executed cause the processor to: produce, in response to the sound signal, parameters for encoding the sound signal during successive sound signal processing frames, wherein (a) the sound signal encoding parameters include linear predictive (LP) filter parameters, (b) for producing the LP filter parameters upon switching from a first one of the frames using an internal sampling rate S1 to a second one of the frames using an internal sampling rate S2, the processor is configured to convert the LP filter parameters from the first frame from the internal sampling rate S1 to the internal sampling rate S2, and (c) for converting the LP filter parameters from the first frame, the processor is configured to: compute, at the internal sampling rate S1, a power spectrum of a LP synthesis filter using the LP filter parameters;extend the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2;truncate the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2;apply an inverse Fourier transform to the extended or truncated power spectrum of the LP synthesis filter to determine autocorrelations of the LP synthesis filter at the internal sampling rate S2; andcompute the LP filter parameters at the internal sampling rate S2 by applying the Levinson-Durbin algorithm to the autocorrelations; andencode the sound signal encoding parameters into a bitstream.
  • 28. The device as recited in claim 27, wherein the processor is configured to: extend the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2 based on a ratio between the internal sampling rate S1 and the internal sampling rate S2; andtruncate the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2 based on the ratio between the internal sampling rate S1 and the internal sampling rate S2.
  • 29. The device as recited in claim 27, wherein the frames are divided into sub-frames, and wherein the processor is configured to compute LP filter parameters in each sub-frame of a current frame by interpolating LP filter parameters of the current frame at the internal sampling rate S2 with LP filter parameters of a past frame converted from the internal sampling rate S1 to the internal sampling rate S2.
  • 30. The device as recited in claim 27, wherein the processor is configured to force a current frame to an encoding mode that does not use a history of an adaptive codebook.
  • 31. The device as recited in claim 27, wherein the processor is configured to force a LP-parameter quantizer to use a non-predictive quantization method in a current frame upon switching between the internal sampling rates S1 and S2.
  • 32. The device as recited in claim 27, wherein the power spectrum of the LP synthesis filter is a discrete power spectrum.
  • 33. The device as recited in claim 27, wherein the processor is configured to: compute the power spectrum of the LP synthesis filter at K samples;extend the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is smaller than the internal sampling rate S2; andtruncate the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 34. The device as recited in claim 27, wherein the processor is configured to: compute the power spectrum of the LP synthesis filter at K samples;add K(S2−S1)/S1 samples to the power spectrum of the LP synthesis filter if the internal sampling rate S1 is smaller than the internal sampling rate S2; andremove K(S1−S2)/S1 samples from the power spectrum of the LP synthesis filter if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 35. The device as recited in claim 27, wherein the processor is configured to compute the power spectrum of the LP synthesis filter as an energy of a frequency response of the LP synthesis filter.
  • 36. The device as recited in claim 27, wherein the processor is configured to: compute a K-sample power spectrum at K/2 samples from 0 to π since the power spectrum of the LP synthesis filter from π to 2π is a mirror image of the power spectrum from 0 to π.
  • 37. The device as recited in claim 36, wherein, if the internal sampling rate S1 is smaller than the internal sampling rate S2, the processor is configured to extend the power spectrum from a sample K/2 to a sample K2/2 by inserting a number of samples from sample K/2 to sample K2/2 since there is no original spectral contents from sample K/2 to sample K2/2, wherein K2 is larger than K.
  • 38. The device as recited in claim 27, wherein the processor is configured to resample a memory of a synthesis filter upon switching between frames with different internal sampling rates.
  • 39. The device as recited in claim 27, wherein, to prevent increase of complexity of a decoder, the processor is configured to skip post-processing after switching to a different internal sampling rate.
  • 40. A device for decoding a sound signal, comprising: at least one processor; anda memory coupled to the processor and comprising non-transitory instructions that when executed cause the processor to: receive a bitstream including sound signal encoding parameters in successive sound signal processing frames, wherein the sound signal encoding parameters include linear predictive (LP) filter parameters;decode from the bitstream the sound signal encoding parameters including the LP filter parameters during the successive sound signal processing frames, and produce from the decoded sound signal encoding parameters an LP synthesis filter excitation signal, wherein (a) for decoding the LP filter parameters upon switching from a first one of the frames using an internal sampling rate S1 to a second one of the frames using an internal sampling rate S2, the processor is configured to convert the LP filter parameters from the first frame from the internal sampling rate S1 to the internal sampling rate S2, and (b) for converting the LP filter parameters from the first frame, the processor is configured to: compute, at the internal sampling rate S1, a power spectrum of a LP synthesis filter using the LP filter parameters;extend the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2;truncate the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2;apply an inverse Fourier transform to the extended or truncated power spectrum of the LP synthesis filter to determine autocorrelations of the LP synthesis filter at the internal sampling rate S2; andcompute the LP filter parameters at the internal sampling rate S2 by applying the Levinson-Durbin algorithm to the autocorrelations; andsynthesize the sound signal using LP synthesis filtering in response to the decoded LP filter parameters and the LP synthesis filter excitation signal.
  • 41. The device as recited in claim 40, wherein the processor is configured to: extend the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is smaller than the internal sampling rate S2 based on a ratio between the internal sampling rate S1 and the internal sampling rate S2; andtruncate the power spectrum of the LP synthesis filter to convert it from the internal sampling rate S1 to the internal sampling rate S2 if the internal sampling rate S1 is larger than the internal sampling rate S2 based on the ratio between the internal sampling rate S1 and the internal sampling rate S2.
  • 42. The device as recited in claim 40, wherein the frames are divided into sub-frames, and wherein the processor is configured to compute LP filter parameters in each sub-frame of a current frame by interpolating LP filter parameters of the current frame at the internal sampling rate S2 with LP filter parameters of a past frame converted from the internal sampling rate S1 to the internal sampling rate S2.
  • 43. The device as recited in claim 40, wherein the processor is configured to force a current frame to an encoding mode that does not use a history of an adaptive codebook.
  • 44. The device as recited in claim 40, wherein the processor is configured to force a LP-parameter quantizer to use a non-predictive quantization method in a current frame upon switching between the internal sampling rates S1 and S2.
  • 45. The device as recited in claim 40, wherein the power spectrum of the LP synthesis filter is a discrete power spectrum.
  • 46. The device as recited in claim 40, wherein the processor is configured to: compute the power spectrum of the LP synthesis filter at K samples;extend the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is smaller than the internal sampling rate S2; andtruncate the power spectrum of the LP synthesis filter to K(S2/S1) samples if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 47. The device as recited in claim 40, wherein the processor is configured to: compute the power spectrum of the LP synthesis filter at K samples;add K(S2−S1)/S1 samples to the power spectrum of the LP synthesis filter if the internal sampling rate S1 is smaller than the internal sampling rate S2; andremove K(S1−S2)/S1 samples from the power spectrum of the LP synthesis filter if the internal sampling rate S1 is larger than the internal sampling rate S2.
  • 48. The device as recited in claim 40, wherein the processor is configured to compute the power spectrum of the LP synthesis filter as an energy of a frequency response of the LP synthesis filter.
  • 49. The device as recited in claim 40, wherein the processor is configured to: compute a K-sample power spectrum at K/2 samples from 0 to π since the power spectrum of the LP synthesis filter from π to 2π is a mirror image of the power spectrum from 0 to π.
  • 50. The device as recited in claim 49, wherein, if the internal sampling rate S1 is smaller than the internal sampling rate S2, the processor is configured to extend the power spectrum from a sample K/2 to a sample K2/2 by inserting a number of samples from sample K/2 to sample K2/2 since there is no original spectral contents from sample K/2 to sample K2/2, wherein K2 is larger than K.
  • 51. The device as recited in claim 40, wherein the processor is configured to resample a memory of a synthesis filter upon switching between frames with different internal sampling rates.
  • 52. The device as recited in claim 40, wherein, to prevent increase of complexity of a decoder, the processor is configured to skip post-processing after switching to a different internal sampling rate.
PRIORITY CLAIM

This application is a Continuation of U.S. patent application Ser. No. 15/815,304 filed on Nov. 16, 2017, now U.S. Pat. No. 10,468,045 issued on Nov. 5, 2019; which is a Continuation of U.S. patent application Ser. No. 15/814,083 filed on Nov. 15, 2017, now U.S. Pat. No. 10,431,233 issued on Oct. 1, 2019; which is a Continuation of U.S. patent application Ser. No. 14/677,672 filed on Apr. 2, 2015, now U.S. Pat. No. 9,852,741 issued on Dec. 26, 2017; and which claims priority to U.S. Provisional Patent Application Ser. No. 61/980,865 filed on Apr. 17, 2014. Specifications of all applications/patents are expressly incorporated herein, in their entirety, by reference.

US Referenced Citations (42)
Number Name Date Kind
5241692 Harrison Aug 1993 A
5651090 Moriya Jul 1997 A
5657350 Hofmann Aug 1997 A
5673364 Bialik Sep 1997 A
5684920 Iwakami Nov 1997 A
5867814 Yong Feb 1999 A
5873059 Iijima Feb 1999 A
6502069 Grill Dec 2002 B1
6650258 Kelly Nov 2003 B1
6691082 Aguilar et al. Feb 2004 B1
6732070 Rotola-Pukkila et al. May 2004 B1
6873954 Sundqvist et al. Mar 2005 B1
7529660 Bessette et al. May 2009 B2
8315863 Oshikiri Nov 2012 B2
8401843 Eksler et al. Mar 2013 B2
8589151 Chamberlain Nov 2013 B2
9852741 Salami et al. Dec 2017 B2
10431233 Salami Oct 2019 B2
10468045 Salami Nov 2019 B2
20010027390 Rotola-Pukkila et al. Oct 2001 A1
20020123886 Globerson Sep 2002 A1
20040071132 Sundqvist et al. Apr 2004 A1
20060235685 Nurminen et al. Oct 2006 A1
20060280271 Oshikiri Dec 2006 A1
20080040105 Wang et al. Feb 2008 A1
20080077401 Jabri et al. Mar 2008 A1
20080079861 Seo et al. Apr 2008 A1
20080120098 Makinen et al. May 2008 A1
20090216527 Oshikiri Aug 2009 A1
20100161321 Oshikiri Jun 2010 A1
20100250263 Miseki Sep 2010 A1
20110200198 Grill et al. Aug 2011 A1
20120095756 Sung et al. Apr 2012 A1
20120095758 Gibbs et al. Apr 2012 A1
20120116769 Malah May 2012 A1
20130151262 Lohwasser et al. Jun 2013 A1
20130308792 Gao Nov 2013 A1
20130332153 Markovic et al. Dec 2013 A1
20140236588 Subasingha et al. Aug 2014 A1
20140330415 Ramo et al. Nov 2014 A1
20170053655 Naka Feb 2017 A1
20170154635 Doehla et al. Jun 2017 A1
Foreign Referenced Citations (19)
Number Date Country
1391689 Jan 2003 CN
1677492 Oct 2005 CN
1701353 Nov 2005 CN
101320566 Dec 2008 CN
103187066 Jul 2013 CN
1 785 985 May 2007 EP
2302345 Mar 2011 EP
3 136 384 Mar 2017 EP
S59-94796 May 1994 JP
2000-206998 Jul 2000 JP
2003-108196 Apr 2003 JP
2004289196 Oct 2004 JP
2009508146 Feb 2009 JP
2013541737 Nov 2013 JP
2014090781 May 2014 JP
2483365 Jul 2012 RU
2006130226 Dec 2006 WO
2008049221 May 2008 WO
2012110481 Aug 2012 WO
Non-Patent Literature Citations (23)
Entry
3GPP Technical Specification 26.190, 3rd Generation Partnership Project; Technical Specification Group Services and System Aspected; Speech codec speech processing functions; Adaptive Multi-Rate-Wideband (AMR-WB) speech codec; Transcoding functions (Release 6), Global System for Mobile Communications (GSM), Jul. 2005, 53 sheets.
ITU-T Recommendations G.729, Series G: Transmission Systems and Media, Digital Systems and Networks, Digital terminal equipments—Coding of analogue signals by methods other than PCM, Coding of Speech at 8kbit/s using conjugate-structure algebraic-code-excited linear prediction (CS-ACELP), Jan. 2007, 146 sheets.
ITU-T Recommendations G.729, Coding of speech at 8 kbit/s using conjugate structure algebraic-code-excited linear prediction (CS-ACELP), Jan. 2007, 146 sheets, (Year: 2007).
Bessette et al., “The Adaptive Multirate Wideband Speech Codec (AMR-WB)”, IEEE Transactions on Speech and Audio Processing, vol. 10, No. 8, Nov. 2002, pp. 620-636.
Makhoul, “Linear Prediction: A Tutorial Review”, Proc. IEEE, vol. 63, Issue 4, Apr. 1975, pp. 561-580.
Makhoul, “Spectral Linear Prediction: Properties and Applications”, IEEE Trans. Acoustics, Speech, Signal Processing, vol. 23, Issue 3, Jun. 1975, pp. 283-296.
Brigham, “The Fast Fourier Transform and its Applications”, Prentice-Hall, Apr. 1988, pp. 198-199.
“EVS Permanent Document#4 (EVS-4): EVS design constraints”, 3GPP TSG-SA4#74 meeting, Tdoc S4 (13)0778, Jul. 8-12, 2013, Dublin, Ireland, 7 sheets.
“AMR Wideband speech codec”, 3GPP TS 26.190, Version 5.1.0, release 5, Dec. 2001, 3 sheets.
Kubin el al., “Speech Watermarking for Analog Channels”, IEEE Transactions on Audio Speech Dec. 2009, 15 sheets.
Makhoul, “Selective Linear Prediction And Analysis-By-Synthesis In Speech Analysis,” Bolt Beranek and Newman Inc., Report No. 2578, A.I. Report No. 13, Apr. 1974, 66 sheets.
Markel, et al., “Linear Prediction Of Speech,” Springer-Verlag Berlin Heidelberg New York, ISBN 3-540-07563-1, 1976., 29 sheets.
Markel, et al., “Linear Prediction Of Speech,” Springer-Verlag Berlin Heidelberg New York, ISBN 13: 978-3-642-66288-1, 1976, 7 sheets.
Brigham, “The Fast Fourier Transform And Its Applications,” Prentice-Hall International Editions, ISBN 0-13-307505-2, 1988, 8 sheets.
Frohberg, et al., “Pocket Book Of Communication Engineering,” Specialist Book Publishing House Leipzig In The Carl Hanser Publishing House, ISBN 978-3-446-41602-4, 2008, 6 sheets.
Vary, et al., “Digital Speech Transmission. Enhancement, Coding And Error Concealment,” John Wiley & Sons, ISBN 0-471-56018-9, 2006, 5 sheets.
ETSI TS 126 190 V5.1.0 Technical Specification. Universal Mobile Telecommunications System (UMTS); Mandatory Speech Codec Speech Processing Functions AMR Wideband Speech Codecs; Transcoding Functions, 3GPP TS 26.190 Version 5.1.0, Release 5, December 20001, 55 sheets.
Lyons, “How To Interpolate In The Time-Domain By Zero-Padding In The Frequency Domain”, Published At: https:/ / dspguru.com/dsp/howtos/how-to-interpolate-in-time-domain-by-zero-padding-in-frequency-domain/. Version ff Mar. 10, 2013, 3 Sheets (retrieved from web.archive.org).
Islam, et al., “Partial-Energy Weighted Interpolation Of Linear Prediction Coefficients”, Proc. IEEE Workshop Speech Coding, Delavan, WI, Sep. 2000, 3 sheets.
Valin, et al., “Bandwidth Extension Of Narrowband Speech For Low Bit-Rate Wideband Coding”, Proc. IEEE Speech Coding Workshop (Sew), Feb. 2000, Doi:10.1109/Scft.2000.878425, 3 sheets.
Valin, “Spectral Extension Of A Speech Signal Of The Voice Band To The Am Band”, University Sherbrooke, Dec. 2001, 68 sheets.
Vaidyanathan, “The Theory Of Linear Prediction”, Morgan & Claypool Publishers, ISBN 91-598-29575-6, 2008, 23 sheets.
Telecommunication Standardization Sector Of ITU “Low-Complexity, Full-Band Audio Coding For High-Quality, Conversational Applications,” Recommendation ITU-T G.719, Jun. 2008, 58 sheets.
Related Publications (1)
Number Date Country
20200035253 A1 Jan 2020 US
Provisional Applications (1)
Number Date Country
61980865 Apr 2014 US
Continuations (3)
Number Date Country
Parent 15815304 Nov 2017 US
Child 16594245 US
Parent 15814083 Nov 2017 US
Child 15815304 US
Parent 14677672 Apr 2015 US
Child 15814083 US