Method and device for processing audio signals, audio decoder and audio encoder
The use of a linear predictive coding filter and zero-input-response technique in audio processing addresses the issue of frame discontinuities, ensuring smooth audio output by using current frame parameters alone, thus avoiding artifacts.
Patent Information
- Application Number
- JP2024099693
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2014-07-28
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2035-07-03
AI Technical Summary
Conventional methods for removing discontinuities in audio frames using long-term prediction filters often introduce unwanted artifacts due to inappropriate filter parameter combinations, especially in frames with rapidly changing pitch or harmonics.
The method employs a linear predictive coding (LPC) filter to process audio frames, using filter parameters from the current frame only, and generates a zero-input-response (ZIR) to smooth discontinuities without relying on past frame parameters, thereby avoiding distortions.
This approach effectively removes discontinuities between audio frames while preventing additional distortions, ensuring a smoother audio output.
Smart Images

Figure 2024138295000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of audio signals, and more particularly to a method for processing an audio signal comprising a plurality of audio frames, in which discontinuities between successive filtered audio frames are reduced or eliminated. [Background technology]
[0002] In the field of audio signal processing, audio signals may be filtered for various reasons, for example, long-term predictive filters may be used in audio signal encoders to completely attenuate or further suppress a set of harmonics in the audio signal.
[0003] The audio signal comprises a number of audio frames, the frames being filtered using a long-term prediction filter. When considering two successive frames of the audio signal, a past frame and a current frame, a linear filter H(z) with a set of parameters c is used to filter the audio signal. More specifically, the past frame is filtered with the filter H(z) using a first set of parameters c0 producing a so-called filtered past frame. The current frame is filtered with the filter H(z) using a set of parameters c1 producing a filtered current frame. FIG. 1 is a block diagram for processing successive frames of an audio signal according to a known method. An audio signal 100 comprising a number of audio frames is provided. The audio signal 100 is provided to a filter block 102, and a current frame n of the audio signal 100 is to be filtered. The filter block on the side of the audio signal 100 provides filter parameters c for the current frame of the audio signal. n, n, n-1, n-2, n-3, n-4, n-5, n-6, n-7, n-8, n-9, n-10, n-11, n-12, n-13, n-14, n-15, n-16, n-17, n-18, n-19, n-21, n-22, n-23, n-14, n-15, n-24, n-16, n-17, n-25, n-18, n-19, n-26, n-19, n-27, n-18, n-28, n-30, n-31, n-32, n-33, n-34, n-35, n-36, n-37, n-38, n-40, n-41, n-42, n-43, n-44, n-45, n-55, n-66, n-67, n-78, n-89, n-99, n-100, n-101, n-102, n-103, n-104, n-105, n-106, n-106, n-105, n-106, n-106, n-106, n-107, n-108, n-109, n-201, n-202, n-203, n-204, n-205, n-305, n-41, n-55, n-66, n-109, n-109, n-201, n-102, n-203, n-31, n-104, n-105, n-106, n-201, n-105, n-106, n-106, n-201, n-106, n-107, H(z)=1-g z -T where the filter parameters are the gain 'g' and the pitch lag 'T'. In a more general form, the long-term prediction filter may be written as: H(z)=1-g A(z) z -T where A(z) is an FIR filter. A long-term prediction filter can be used to completely attenuate or even suppress a set of harmonics in an audio signal. However, when using this kind of long-term prediction filter, and if the filter parameters c0 of the past frame are different from the filter parameters c1 of the current frame, there is a high probability of introducing a discontinuity 106a, 106b (see FIG. 1) between the filtered past frame n-1 and the filtered current frame n. This discontinuity can create artifacts, e.g., "clicks", in the filtered audio signal 104.
[0004] Therefore, in view of the above-mentioned problems with filtering successive frames resulting in discontinuities that can create undesired artifacts, there is now a need for a technique for removing possible discontinuities. Several technical methods are known in the art that deal with the removal of discontinuities in filtered frames of an audio signal.
[0005] In the case where the linear filter H(z) is an FIR filter, the current frame is filtered using the filter parameters c1 of the current frame to generate a filtered current frame. In addition, the first part of the current frame is filtered using the filter parameters c0 of the past frame to generate a filtered frame portion, and then a convolution-add or cross-fade operation is performed through the first part of the filtered current frame and the filtered frame portion. FIG. 2 shows a block diagram of such a conventional method for processing consecutive audio frames to remove discontinuities. When compared with FIG. 1, the filter block 102 includes a further processing block 108 for performing the convolution-add or cross-fade operation. In the filtered audio signal 104, discontinuities between consecutive filtered frames may be eliminated or reduced, as shown diagrammatically in FIG. 2, which shows consecutive filtered frames n, n-1, and n-2 without gaps of FIG. 1.
[0006] In other prior art methods, the filter H(z) may be a filter with recursive elements, for example an IIR filter. In such a case, the method as described above with respect to FIG. 2 is applied sample by sample. In a first step, the process starts with a first sample of the first part of the current frame n filtered with the filter parameter c0 of the past frame n-1 from which the first filtered sample is obtained. The sample is filtered with the filter parameter c1 of the current frame n to produce a second filtered sample. Then, a convolution-add or cross-fade operation is performed based on the first and second filtered samples obtained corresponding to the filtered sample of the current frame n. Then, the next sample is processed and the above steps are repeated until the last sample of the first part of the current frame n is processed. The remaining samples of the current frame n are processed with the filter parameter c1 of the current frame n.
[0007] Examples for the above-mentioned known methods for removing discontinuities from successive filtered frames are described, for example, in U.S. Pat. No. 5,012,517 in connection with a transform coder, in EP 0,732,687 in connection with a speech band extension, in U.S. Pat. No. 5,999,899 in connection with a transform audio coder or in U.S. Pat. No. 7,353,168 in connection with a decoded speech postfilter.
[0008] While the above methods are effective for removing undesired signal discontinuities, they operate on a specific portion of the current frame (first portion) to be effective, so the length of the frame portion must be long enough, for example, in the case of a frame length of 20 ms, the length of the frame portion or the first portion may be as long as 5 ms. In certain cases, this may be too long, especially in situations where the filter parameter c0 of the past frame does not apply to the current frame, which may result in additional artifacts. One example is a harmonic audio signal with a rapidly changing pitch, and a long-term prediction filter is designed to reduce the amplitude of the harmonics. In that case, the pitch lag is different from one frame to the next. A long-term prediction filter with an estimated pitch in the current frame effectively reduces the amplitude of the harmonics in the current frame, but if the pitch of the audio signal is different and used in another frame (e.g., the first portion of the next frame), it will not reduce the amplitude of the harmonics. By reducing the amplitude of the non-harmonic related elements in the signal, it may even make things worse, such as introducing distortion in the signal. [Prior art documents] [Patent documents]
[0009] [Patent Document 1] U.S. Patent No. 5,012,517 [Patent Document 2] European Patent No. 0732687 [Patent Document 3] U.S. Pat. No. 5,999,899 [Patent Document 4] U.S. Patent No. 7,353,168 Summary of the Invention [Problem to be solved by the invention]
[0010] It is a basic object of the present invention to provide an improved method for removing discontinuities in filtered audio frames without creating any potential distortions in the filtered audio signal.
[0011] This object is achieved by a method and an apparatus as set out in the independent claims.
[0012] The present invention provides a method for processing an audio signal, the method comprising the step of removing discontinuities between a filtered past frame and a filtered current frame of the audio signal using linear predictive filtering.
[0013] The linear prediction filter is TIFF2024138295000002.tif17118, M is the filter order, and a m are the filter coefficients (with a0 = 1). This type of filter is also known as Linear Predictive Coding (LPC).
[0014] According to an embodiment, the method comprises the steps of filtering a current frame of an audio signal and removing discontinuities by modifying a first portion of the filtered current frame with a signal obtained by linear predictive filtering of a predetermined signal, the initial state of the linear predictive filter being defined based on the last portion of a past frame.
[0015] According to an embodiment, the initial state of the linear prediction filter is defined based on the last part of a previous unfiltered frame that was filtered with a set of filter parameters for filtering the current frame.
[0016] According to an embodiment, the method comprises the step of estimating a linear prediction filter on a filtered or unfiltered audio signal.
[0017] According to an embodiment, estimating the linear prediction filter comprises estimating the filter based on a past or a current frame of the audio signal or based on a filtered past frame of the audio signal using the Levinson-Durbin algorithm.
[0018] According to an embodiment, the linear prediction filter comprises a linear prediction filter of an audio codec.
[0019] According to an embodiment, removing the discontinuities includes processing a first portion of the current filtered frame, the first portion of the current frame having a predetermined number of samples that is less than or equal to a total number of samples in the current frame, and processing the first portion of the current frame includes subtracting a first portion of a zero-input-response (ZIR) from the first portion of the current filtered frame.
[0020] According to an embodiment, the method includes filtering a current frame of an audio signal with a non-recursive filter, such as an FIR filter, to produce a filtered current frame.
[0021] According to an embodiment, the method comprises the step of processing a current unfiltered frame of an audio signal sample by sample using a recursive filter, such as an IIR filter, and the step of processing samples of a first portion of the current frame comprises: filtering the samples with a recursive filter using filter parameters of the current frame to produce filtered samples; and subtracting the corresponding ZIR sample from the filtered sample to produce a corresponding sample of the current filtered frame.
[0022] According to an embodiment, the filtering and subtracting steps are repeated until the last sample in the first portion of the current frame has been processed, and the method further comprises filtering the remaining samples in the current frame with a recursive filter using the filter parameters of the current frame.
[0023] According to an embodiment, the method includes generating a ZIR, the generating ZIR comprising: filtering the M last samples of the past unfiltered frame with a filter and filter parameters used to filter the current frame to produce a first portion of a filtered signal, where M is the order of the linear prediction filter; subtracting the M last samples of the filtered past frame from the first portion of the filtered signal, the samples having been filtered using the filter parameters of the past frame, to generate a second portion of the filtered signal; generating a ZIR for the linear predictive filter by filtering a frame of zero samples with an initial state equal to the linear predictive filter and a second portion of the filtered signal.
[0024] According to an embodiment, the method includes windowing the ZIR such that its amplitude rapidly decreases to zero.
[0025] The present invention is based on the inventor's finding that the problems identified in conventional methods for removing signal discontinuities resulting in the aforementioned additional unnecessary distortions are mainly due to the processing of the current frame or at least parts thereof based on filter parameters for past frames. According to the method of the present invention, this is avoided. That is to say, the method of the present invention does not filter parts of the current frame with filter parameters of past frames, thus avoiding the aforementioned problems. According to an embodiment, in order to remove the discontinuities, a linear predictive filter (LPC) filter is used to remove the discontinuities. The LPC filter is estimated on the audio signal and is therefore a good model of the spectral shape of the audio signal, since with the LPC filter the spectral shape of the audio signal masks the discontinuities. In an embodiment, the LPC filter may be estimated based on the unfiltered audio signal or based on the audio signal filtered by the aforementioned linear filter H(z). According to an embodiment, the LPC filter may be estimated by using the audio signal, e.g. the current frame and / or past frames, and the Levinson-Durbin algorithm. It can also be calculated based only on the filtered past frame signal using the Levinson-Durbin algorithm.
[0026] Furthermore, in other embodiments, an audio codec for processing an audio signal may use a linear filter H(z) and may also use, for example, an LPC filter, quantized or not, to shape the quantization noise in a transform-based audio codec. In such embodiments, this existing LPC filter may be directly used to smooth discontinuities without the additional complexity required to estimate a new LPC filter.
[0027] In the following, embodiments of the present invention will be described with reference to the accompanying drawings. [Brief description of the drawings]
[0028] [Figure 1] FIG. 1 shows a block diagram for processing successive frames of an audio signal according to a conventional method. [Diagram 2] FIG. 2 shows a block diagram of another conventional method for processing successive audio frames to remove discontinuities. [Diagram 3] FIG. 3 shows a simplified block diagram of a system for transmitting an audio signal implementing the inventive method for removing discontinuities between successive frames of an audio signal at the encoder side and / or decoder side. [Figure 4] FIG. 4 shows a flow diagram illustrating the inventive method for removing discontinuities between successive frames of an audio signal according to an embodiment. [Diagram 5] FIG. 5 shows a schematic block diagram for processing a current audio frame according to an embodiment of the invention, which avoids undesired distortions in the output signal despite removal of discontinuities. [Figure 6] FIG. 6 shows a flow diagram illustrating the functionality of the blocks of FIG. 5 for generating a ZIR. [Figure 7] FIG. 7 shows a flow diagram illustrating the functioning of the blocks in FIG. 5 for processing a first portion of the current filtered frame when the filter block includes a recursive filter such as an IIR filter. [Figure 8] FIG. 8 shows a flow diagram illustrating the functioning of the blocks in FIG. 5 for processing a first portion of the current filtered frame when the filter block includes a non-recursive filter such as an FIR filter. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] In the following, embodiments of the inventive method are described in more detail, and it is to be noted that in the accompanying drawings, elements having the same or similar functions are denoted by the same reference numbers.
[0030] Fig. 3 shows a simplified block diagram of a system for transmitting an audio signal implementing the inventive method on the encoder side and / or on the decoder side. The system of Fig. 3 includes an encoder 200 receiving an audio signal 204 at an input device 202. The encoder includes a coding processor 206 receiving the audio signal 204 and generating an encoded audio signal provided at an output device 208 of the encoder. The coding processor may be programmed or constructed to implement the inventive method for processing successive audio frames of the received audio signal to avoid discontinuities. In other embodiments, the encoder does not need to be part of a transmission system, but generating the encoded audio signal may be a stand-alone device or may be part of an audio signal transmitter. According to an embodiment, the encoder 200 may include an antenna 210 for allowing wireless communication of the audio signal, as indicated at 212. In other embodiments, the encoder 200 may output the encoded audio signal provided at an output device 208, for example by means of a wired connection, as indicated at reference numeral 214.
[0031] The system of Fig. 3 further includes a decoder 250 having an input device 252 receiving, for example, via wire 214 or antenna 254, an encoded audio signal to be processed by the encoder 250. The encoder 250 includes a decoding processor 256 operating on the encoded signal and providing a decoded audio signal 258 at an output device 260. The decoding processor 256 may be implemented to operate according to the method of the invention on successive frames that are filtered in such a way that discontinuities are avoided. In other embodiments, the decoder need not be part of the transmission system, but rather may be a stand-alone device for decoding the encoded audio signal, or may be part of the audio signal receiver.
[0032] In the following, an embodiment of the inventive method, which may be implemented in at least one of the encoding processor 206 and the decoding processor 256, is described in more detail. Figure 4 shows a flow diagram for processing a current frame of an audio signal according to an embodiment of the inventive method. The processing of the current frame is described and it is assumed that the previous frames have already been processed using the same technique described below. According to the invention, in step S100, a current frame of an audio signal is received. The current frame is filtered in step S102, for example in a manner as described above with respect to Figures 1 and 2 (see filter block 102). According to the inventive method, discontinuities between the filtered previous frame n-1 and the filtered current frame n (see Figure 1 or Figure 2) are removed using linear predictive filtering as shown in step S104. According to an embodiment, the linear predictive filter is TIFF2024138295000003.tif17118, M is the filter order, and a mare filter coefficients (with a0=1). This type of filter is also known as Linear Predictive Coding (LPC). According to an embodiment, the filtered current frame is processed by applying a linear predictive filtering to at least a part of the filtered current frame. The discontinuities can be removed by modifying a first part of the filtered current frame with a signal obtained by linear predictive filtering of a given signal, where the initial state of the linear predictive coding filter is defined based on the last part of the past frame. The initial state of the linear predictive coding filter can be defined based on the last part of the past frame filtered with a set of filter parameters for the current frame. The methods of the invention are advantageous as they do not have to filter the current frame of the audio signal with the filter coefficients used for the past frame, thereby avoiding problems that arise due to an inappropriate combination of filter parameters for the current frame and the past frame, as experienced in the prior art method described above with respect to FIG. 2.
[0033] Fig. 5 shows a schematic block diagram for processing a current audio frame of an audio signal according to an embodiment of the present invention, which avoids undesired distortions in the output signal despite removing discontinuities. In Fig. 5, the same reference symbols are used as in Figs. 1 and 2. A current frame n of an audio signal 100 is received, and each frame of the audio signal 100 comprises a number of samples. The current frame n of the audio signal 100 is processed by a filter block 102. In comparison with the prior art method of Figs. 1 and 2, according to the embodiment as described with reference to Fig. 5, the filtered current frame is further processed based on ZIR samples, as indicated diagrammatically by block 110. According to the present embodiment, based on the past frame n-1 and based on an LPC filter, ZIR samples are produced, as indicated diagrammatically by block 112.
[0034] The functionality of the processing blocks 110 and 112 will now be described in more detail. Figure 6 shows a flow diagram illustrating the functionality of the processing block 112 for generating ZIR samples. As mentioned above, the frames of the audio signal 100 are filtered by a linear filter H(z) with filter parameters c selected or determined for each frame. The filter H(z) can be a recursive filter, for example an IIR filter, or a non-recursive filter, for example an FIR filter. In the processing block 112, a quantized or unquantized LPC filter is used. The LPC filter is of order M and can be an LPC filter that is estimated on the filtered or unfiltered audio signal or that is also used in the audio codec. In step S200, the M (M = order of the LPC filter) last samples of the past frame n-1 are filtered by the filter H(z) also with the filter parameters or coefficients c1 of the current frame n. Step S200 thereby produces a first part of the filtered signal. In step S202, the M last samples of the filtered past frame n-1 (the M last samples of the past frame filtered with the filter parameters or coefficients c0 of the past frame n-1) are subtracted from the first part of the filtered signal provided by step S200, thereby producing a second part of the filtered signal. In step S204, an LPC filter with order M is applied, more specifically, a zero input response (ZIR) of the LPC filter is produced in step S204 by filtering a frame of zero samples. Here, the initial state of the filter is equal to the second part of the filtered signal, thereby producing the ZIR. According to an embodiment, the ZIR may be windowed such that its amplitude rapidly decreases to zero.
[0035] As described above with respect to FIG. 5, ZIR is applied in processing block 110, whose function is described with respect to the flow diagram of FIG. 7 for the case of using a recursive filter, such as an IIR filter, as the linear filter H(z). According to the embodiment described with respect to FIG. 5, in order to avoid undesired distortions and to remove discontinuities between the current frame and the past frame, the filtering step of the current frame n includes a step of processing (filtering) the current frame n sample by sample, where the samples of the first part are processed by the method of the invention. More specifically, M samples of the first part of the current frame n are processed, and in a first step S300, a variable m is set to 0. In a next step S302, the sample m of the current frame n is filtered with the filter H(z) and the filter coefficients or parameters c1 for the current frame n. Thus, in addition to the conventional method, according to the method of the invention, the current frame is not filtered using coefficients from past frames, and as a result, the coefficients only from the current frame avoid the undesired distortions present in the conventional method, despite the fact that discontinuities are removed. Step S302 obtains a filtered sample m, and in step S304 the ZIR sample corresponding to sample m is subtracted from the filtered sample m obtaining the corresponding sample of the filtered current frame n. In step S306 it is determined whether the last sample M of the first part of the current frame n is to be processed. If not all M samples of the first part have been processed, the variable m is incremented and the method steps S302 to S306 are repeated for the next sample of the current frame n. Once all M samples of the first part have been processed, in step S308 the remaining samples of the current frame n are filtered with the filter parameters c1 of the current frame, thereby providing a filtered current frame n to be processed according to the method of the invention avoiding undesired distortions in removing discontinuities between successive frames.
[0036] According to another embodiment, the linear filter H(z) is a non-recursive filter, such as an FIR filter, and the ZIR is applied in processing block 110 as described above with respect to FIG. 5. The functionality of this embodiment is described with respect to the flow diagram of FIG. 8. In step S400, the current frame n is filtered by the filter H(z) using the filter coefficients or parameters c1 for the current frame. Thus, in addition to the conventional method, according to an embodiment of the present invention, the current frame is not filtered using coefficients from past frames, thus avoiding the undesired distortions present in the conventional method, despite the fact that only the coefficients from the current frame are used to remove discontinuities. In step S402, the initial part of the ZIR is subtracted from the corresponding initial part of the filtered current frame, thereby providing a filtered current frame n having an initial part that is filtered / processed according to the method of the present invention, and leaving only the part that has been filtered using the filter coefficients or parameters c1 for the current frame, thereby avoiding the undesired distortions due to the removal of discontinuities between successive frames.
[0037] The method of the invention can be applied in situations such as those described above, when the audio signal is filtered. According to an embodiment, the method of the invention can also be applied on the decoder side, for example when using an audio codec postfilter to reduce the level of coding noise among the signal harmonics. For processing the audio frames on the decoder side, according to an embodiment, the postfilter can be of the form: H(z)=(1-B(z)) / (1-A(z) Z -T ) where B(z) and A(z) are two FIR filters, and the H(z) filter parameters are the coefficients of the FIR filters B(z) and A(z), and T denotes the pitch lag. In such a scenario, for example, if the past filter frame parameter c0 differs from the current frame filter parameter c1, the filters may introduce a discontinuity between the two filtered frames, and such a discontinuity may create artifacts in the filtered audio signal 104, such as, for example, a "click". This discontinuity is removed by processing the current filtered frame, as described in detail above.
[0038] Although some aspects of the described concepts are described in the context of an apparatus, it will be apparent that these aspects also represent descriptions of corresponding methods, where a block or device corresponds to a method step or feature of a method step. Analogously, aspects described in the context of a method step represent descriptions of a block, item or feature that corresponds to an apparatus.
[0039] Depending on specific implementation requirements, the embodiments of the present invention may be implemented in hardware or in software. The implementation may be implemented using a digital storage medium, such as a floppy disk, DVD, Blu-ray disk, CD, ROM, PROM, EPROM, EEPROM, or FLASH memory, having electronically readable control signals stored thereon, which cooperate (or can cooperate) with a programmable computer system so that the respective methods are executed. Thus, the digital storage medium may be computer readable.
[0040] Some embodiments according to the invention include a data carrier having an electronically readable signal capable of cooperating with a programmable computer system to perform one of the methods described herein.
[0041] Typically, embodiments of the invention are implemented as a computer program product having program code which, when the computer program product runs on a computer, is operated to perform one of the methods. The program code may, for example, be stored on a machine readable carrier.
[0042] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
[0043] In other words, therefore, an embodiment of the inventive method is a computer program comprising a program code for performing one of the methods described herein, when the computer program runs on a computer.
[0044] A further embodiment of the inventive method is, therefore, a data carrier (or a digital storage medium, or a computer readable medium) comprising, recorded thereon, a computer program for performing one of the methods described herein.
[0045] A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein, for example a data stream or a sequence of signals being adapted to be transmitted via a data communications connection, for example the Internet.
[0046] A further embodiment comprises a processing means, for example a computer, or a programmable logic circuit, configured to or adapted to perform one of the methods described herein.
[0047] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
[0048] In some embodiments, a programmable logic circuit (e.g., a Field Programmable Gate Array (FPGA)) may be used to perform some or all of the functions described herein. In some embodiments, the Field Programmable Gate Array may cooperate with a microprocessor to perform one of the methods described herein. In general, the methods are preferably performed by some hardware device.
[0049] The above-described embodiments merely represent examples of the principles of the present invention. It is understood that modifications and variations of the devices described herein will be apparent to others skilled in the art. It is the intention, therefore, to be limited only by the scope of the appended claims and not by the detailed description of the specification as set forth in the description and illustration of the invention.
Claims
1. A method for processing an audio signal (100), the method comprising the steps of: The method includes removing (S102, S104, S300-S308, S400-S402) discontinuities (106a, 106b) between a filtered past frame and a filtered current frame of the audio signal using linear predictive filtering.
2. filtering the current frame of the audio signal and removing the discontinuity by modifying a first part of the filtered current frame with a signal obtained by linear predictive filtering of a predetermined signal, the initial state of the linear predictive filter being defined based on a last part of the previous frame; The method of claim 1 , comprising:
3. 3. The method of claim 2, wherein the initial state of the linear prediction filter is defined based on a last portion of the past unfiltered frame that was filtered with the set of filter parameters for filtering the current frame.
4. The method of any of claims 1 to 3, further comprising the step of estimating the linear prediction filter for the filtered or unfiltered audio signal (100).
5. 5. The method of claim 4, wherein estimating the linear predictive filter comprises estimating the linear predictive filter based on the past and / or current frames of the audio signal (100) using a Levinson-Durbin algorithm or based on filtered past frames of the audio signal (100).
6. The method of claim 1 , wherein the linear prediction filter comprises a linear prediction filter of an audio codec.
7. 7. A method according to claim 1, wherein the step of removing discontinuities comprises the step of processing the initial portion of the filtered current frame, the initial portion of the current frame having a predefined number of samples that is less than or equal to a total number of samples in the current frame, and the step of processing the initial portion of the current frame comprises the step of subtracting (S304, S402) an initial portion of a zero-input response (ZIR) from the initial portion of the filtered current frame.
8. 8. The method of claim 7, comprising the step of filtering (S400) the current frame of the audio signal with a non-recursive filter, such as an FIR filter, to produce a filtered current frame.
9. processing the current unfiltered frame of the audio signal sample by sample using a recursive filter, such as an IIR filter, wherein processing samples of the initial portion of the current frame comprises: filtering the samples with the recursive filter using the filter parameters of the current frame to produce filtered samples (S302); subtracting corresponding ZIR samples from the filtered samples to produce the corresponding samples of the current frame that have been filtered (S304); The method of claim 7, comprising:
10. 10. The method of claim 9, wherein the filtering (S302) and subtracting (S304) steps are repeated until the last sample in the initial portion of the current frame has been processed, and the method further comprises the step of filtering (S306) the remaining samples in the current frame with the recursive filter using the filter parameters of the current frame.
11. generating said ZIR; The step of generating the ZIR comprises: filtering (S200) the M last samples of the past unfiltered frame using the filter and the filter parameters used to filter the current frame to produce a first portion of a filtered signal, where M is the order of the linear prediction filter; subtracting (S202) the M last samples of the filtered past frame from the first portion of the filtered signal, the samples having been filtered using the filter parameters of the past frame, to generate a second portion of the filtered signal; generating a ZIR for a linear predictive filter by filtering a frame of zero samples using an initial state of the linear predictive filter and equal to the second portion of the filtered signal (S204); The method according to any one of claims 7 to 10, comprising:
12. 12. The method of claim 11, comprising windowing the ZIR such that its amplitude rapidly decreases to zero.
13. A non-transitory computer program product comprising a computer readable medium storing instructions which, when executed on a computer, perform the method of any of claims 1 to 12.
14. An apparatus for processing an audio signal (100), comprising: An apparatus comprising: a processor (102, 110, 112) for removing discontinuities between a filtered past frame and a filtered current frame of the audio signal using linear predictive filtering.
15. Apparatus for processing an audio signal (100), said apparatus being configured to operate according to the method of one of claims 1 to 12.
16. An audio decoder (250) comprising the apparatus of claim 14 or claim 15.
17. An audio encoder (200) comprising the apparatus of claim 14 or claim 15.
Citation Information
Patent Citations
Voice decoding method and device therefor
JP1997127996A
Apparatus for expanding speech bandwidth
EP0732687A2
Adaptive transform coder having long term predictor
US5012517A
Low bit rate coder and decoder operating in a transform domain using vector quantization
US5999899A
Method and apparatus to eliminate discontinuities in adaptively filtered signals
US7353168B2
