Harmonic Dependent Control of the Harmonic Filter Tool

Harmonicity-dependent control of harmonic filter tools in audio codecs addresses interharmonic noise issues by adjusting filter usage based on temporal structure and harmonicity, enhancing coding efficiency and quality.

JP7568695B2Active Publication Date: 2024-10-16FRAUNHOFER GESELLSCHAFT ZUR FORDERUNG DER ANGEWANDTEN FORSCHUNG EV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022164445
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2014-07-28
Filing Date
2022-10-13
Publication Date
2024-10-16
Estimated Expiration
2035-07-27

AI Technical Summary

Technical Problem

Transform-based audio codecs introduce interharmonic quantization noise, particularly at low bit rates, which is perceived as annoying 'chirping' artifacts, especially in harmonic audio signals, degrading codec performance.

Method used

Implement harmonicity-dependent control of harmonic filter tools in audio codecs by considering both the magnitude of temporal structure and harmonicity, using a decision mechanism that adjusts the use of prediction-based techniques based on normalized correlation, prediction gain, and temporal structure to minimize artifacts.

Benefits of technology

Improves coding efficiency and perceived quality by adaptively controlling harmonic filter tools, reducing artifacts and enhancing subjective quality in harmonic audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568695000035
    Figure 0007568695000035
  • Figure 0007568695000036
    Figure 0007568695000036
  • Figure 0007568695000037
    Figure 0007568695000037
Patent Text Reader

Abstract

To provide a harmonic filter tool for an audio codec with improved coding efficiency and perceptual quality. [Solution] An apparatus 10 for controlling harmonic (and time measurement) dependence depending on the control of a harmonic filter tool comprises a pitch estimator 16 for determining the pitch 18 of an audio signal 12, a harmonic measurer 20 for determining a harmonic measurement 22 of the audio signal 12 using the pitch 18, a temporal structure analyzer 24 for determining at least one temporal structure measurement 26 measuring characteristics of the temporal structure of the audio signal 12 in response to the pitch 18, and a controller 28 for outputting a control signal 14 for controlling a harmonic filter tool 30 in response to the temporal structure measurement 26 and the harmonic measurement 22.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the determination of control of harmonic filter tools, such as pre / post filter or post filter only approaches, which are applicable, for example, to the MPEG-D Unified Speech and Audio Coding Standard (USAC) and the upcoming 3GPP EVS codec. [Background technology]

[0002] Transform-based audio codecs such as AAC, MP3, or TCX typically introduce inter-harmonic quantization noise when processing harmonic audio signals, especially at low bit rates.

[0003] This effect is even worse when transform-based audio codecs operate at low delay due to the selective introduction of lower frequency resolution and / or shorter transform sizes and / or lower window frequency responses.

[0004] This interharmonic noise is typically perceived as a very annoying "warbling" artifact, which significantly degrades the performance of transform-based speech codecs when subjectively estimating high-pitched speech material such as some music and voiced speech.

[0005] A common solution to this problem is to use predictive-based techniques, preferably prediction using an autoregressive (AR) model, based on the addition or subtraction of past input or decoded samples, either in the transform domain or in the time domain.

[0006] However, using such techniques in signals, again changing the temporal structure, leads to undesirable effects such as the temporal smearing of percussive musical events or speech plosives, or the generation of impulse trains due to the repetition of single impulse-like transients. Thus, special care is taken for signals which contain both transient and harmonic components, or for signals where there is an ambiguity between transients and pulse trains (the latter belonging to the category of harmonic signals composed of individual pulses of very short duration; signals of this kind are known as pulse trains).

[0007] Several solutions exist to improve the subjective quality of transform-based speech codecs for harmonic speech signals. All of them exploit the long-term period (pitch) of a highly harmonic stationary waveform and are based on prediction-based techniques, either in the transform domain or in the time domain. Most of the solutions are known as either long-term prediction (LTP) or pitch prediction and are characterized by a pair of filters applied to the signal: a pre-filter in the encoder (usually as the first step in the time or frequency domain) and a post-filter in the decoder (usually as the last step in the time or frequency domain). Some other solutions, however, apply only a single post-filtering process on the decoder side, commonly known as a harmonic post-filter or a bass post-filter. All of these methods, whether a pre- and post-filter pair or only a post-filter, will be denoted as harmonic filter tools in the following.

[0008] Examples of the transform domain approach are given in the following non-patent documents 1, 2 and 3. Examples of time-domain approaches that apply both pre- and post-filtering are given in the following non-patent documents: Examples of time-domain approaches in which only post-filtering is applied are given in the following non-patent documents 9, 10, 11 and 12. An example of a transient detector is shown in the following non-patent document 13. Related psychoacoustic literature is the following non-patent literature 14 and 15. [Prior art documents] [Non-patent literature]

[0009] [Non-Patent Document 1] [1] H. Fuchs, "Improving MPEG Audio Coding by Backward Adaptive Linear Stereo Prediction", 99th AES Convention, New York, 1995, Preprint 4086. [Non-Patent Document 2] [2] L. Yin, M. Suonio, M. Vaeaenaenen, "A New Backward Predictor for MPEG Audio Coding", 103rd AES Convention, New York, 1997, Preprint 4521. [Non-Patent Document 3] [3] Juha Ojanperae, Mauri Vaeaenaenen, Lin Yin, "Long Term Predictor for Transform Domain Perceptual Audio Coding", 107th AES Convention, New York, 1999, Preprint 5036. [Non-Patent Document 4] [4] Philip J. Wilson, Harprit Chhatwal, "Adaptive transform coder having long term predictor", US Patent 5,012,517, April 30, 1991. [Non-Patent Document 5] [5] Jeongook Song, Chang-Heon Lee, Hyen-O Oh, Hong-Goo Kang, "Harmonic Enhancement in Low Bitrate Audio Coding Using an Efficient Long-Term Predictor", EURASIP Journal on Advances in Signal Processing, August 2010. [Non-Patent Document 6] [6] Juin-Hwey Chen, "Pitch-based pre-filtering and post-filtering for compression of audio signals", US Patent 8,738,385, May 27, 2014. [Non-Patent Document 7] [7] Jean-Marc Valin, Koen Vos, Timothy B. Terriberry, "Definition of the Opus Audio Codec", ISSN: 2070-1721, IETF RFC 6716, September 2012. [Non-Patent Document 8] [8] Rakesh Taori, Robert J. Sluijter, Eric Kathmann "Transmission System with Speech Encoder with Improved Pitch Detection", US Patent 5,963,895, October 5, 1999. [Non-Patent Document 9] [9] Juin-Hwey Chen, Allen Gersho, "Adaptive Postfiltering for Quality Enhancement of Coded Speech", IEEE Trans. on Speech and Audio Proc., vol. 3, January 1995. [Non-Patent Document 10]

[10] Int. Telecommunication Union, "Frame error robust variable bit-rate coding of speech and audio from 8?32 kbit / s", Recommendation ITU-T G.718, June 2008. www.itu.int / rec / T-REC-G.718 / e, section 7.4.1. [Non-Patent Document 11]

[11] Int. Telecommunication Union, "Coding of speech at 8 kbit / s using conjugate structure algebraic CELP (CS-ACELP)", Recommendation ITU-T G.729, June 2012. www.itu.int / rec / T-REC-G.729 / e, section 4.2.1. [Non-Patent Document 12]

[12] Bruno Bessette et al., "Method and device for frequency-selective pitch enhancement of synthesized speech", US Patent 7,529,660, May 30, 2003. [Non-Patent Document 13]

[13] Johannes Hilpert et al., "Method and Device for Detecting a Transient in a Discrete-Time Audio Signal", US Patent 6,826,525, November 30, 2004. [Non-Patent Document 14]

[14] Hugo Fastl, Eberhard Zwicker, "Psychoacoustics: Facts and Models", 3rd Edition, Springer, December 14, 2006. [Non-Patent Document 15]

[15] Christoph Markus, "Background Noise Estimation", European Patent EP 2,226,794, March 6, 2009.

[0010] All previously described techniques have the decision when to enable the prediction filter based on a single threshold decision (e.g., prediction gain [5] or pitch gain [4] or harmonicity [6], which is basically proportional to the normalized correlation). Furthermore, OPUS [7] uses hysteresis to increase the threshold if the pitch is changing and to decrease it if the gain of the previous frame exceeds a predefined fixed threshold. OPUS [7] also disables the long-term (pitch) predictor if a transient is detected in some specific frame configurations. The reason for this design seems to stem from the common belief that in a mix of harmonic and transient signal components, the transient dominates the mix and activating LTP or pitch prediction on it subjectively causes more harm than improvement, as mentioned above. However, for some mixtures of waveforms described below, activating the long-term or pitch predictor on transient speech frames significantly improves coding quality and efficiency and is therefore beneficial. Furthermore, when activating a predictor, it may be beneficial to vary its strength based on prediction gain, the instantaneous signal characteristics, rather than the sole approach in the current state of the art. Summary of the Invention [Problem to be solved by the invention]

[0011] It is therefore an object of the present invention to provide a concept for harmonicity-dependent control of the harmonic filter tool of an audio codec, which results in, for example, improved coding efficiency, e.g. improved objective coding gain or better perceptual quality. [Means for solving the problem]

[0012] This object is achieved by the subject matter of the independent claims of the present application.

[0013] It is a fundamental discovery of the present invention that the coding efficiency of an audio codec using a controllable - switchable or even adjustable - harmonic filter tool can be improved by implementing a harmonic-dependent control of this tool, using the magnitude of the temporal structure in addition to the magnitude of the harmonics to control the harmonic filter tool. In particular, the temporal structure of the audio signal is estimated in a pitch-dependent manner. This makes it possible to achieve a situation-adaptive control of the harmonic filter tool, such that in situations where a control made only on the basis of the magnitude of the harmonics is decided not to implement, or in situations where using the harmonic filter tool but reducing its use would increase the coding efficiency, the harmonic filter tool is applied, whereas in other situations where the harmonic filter tool may be inefficient or even destructive, the control appropriately reduces the implementation of the harmonic filter tool.

[0014] Advantageous implementations of the invention with respect to the subject matter of the dependent claims and preferred embodiments of the present application are described below with reference to the drawings. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a block diagram of an apparatus for controlling a harmonic filter tool with respect to filter gain according to an embodiment. [Diagram 2] FIG. 2 shows an example of possible predetermined conditions that must be met in order to apply the harmonic filter tool. [Diagram 3] FIG. 3 is a flow diagram illustrating a possible implementation of decision logic, which may be parameterized, among other things, to implement the example states of FIG. [Figure 4]FIG. 4 is a block diagram of an apparatus for controlling harmonic (and time measurement) dependence upon the control of a harmonic filter tool. [Diagram 5] FIG. 5 is a schematic diagram for explaining the temporal position of the time domain for determining the size of the temporal structure according to the embodiment. [Figure 6] FIG. 6 illustrates a graph of energy samples for temporally sampling the energy of an audio signal in the time domain according to an embodiment. [Figure 7] FIG. 7 is a block diagram illustrating the use of the apparatus of FIG. 4 in an audio codec by showing the encoder and decoder of the audio codec, respectively, when the encoder uses the apparatus of FIG. 4, according to an embodiment in which a harmonic pre / post filter tool is used. [Figure 8] FIG. 8 is a block diagram illustrating the use of the apparatus of FIG. 4 in an audio codec by showing, respectively, an encoder and a decoder of the audio codec when the encoder uses the apparatus of FIG. 4 according to an embodiment in which a harmonic postfilter tool is used. [Figure 9] FIG. 9 illustrates a block diagram of the controller of FIG. 4 according to an embodiment. [Figure 10] FIG. 10 shows a block diagram of a system illustrating the possibility of the apparatus of FIG. 4 sharing the use of the transient detector and energy sampler of FIG. [Figure 11] FIG. 11 shows a graph of a time domain portion (waveform portion) of a speech signal as an example of a low pitch signal, additionally showing the pitch dependent position in the time domain for determining the magnitude of at least one temporal structure. [Figure 12] FIG. 12 shows a graph of a time domain portion of a speech signal as an example of a high pitched signal, additionally showing a pitch dependent position in the time domain for determining the magnitude of at least one temporal structure. [Figure 13]FIG. 13 shows a typical spectrogram of impulse and step transients in a harmonic signal. [Figure 14] FIG. 14 shows exemplary spectrograms to illustrate the effect of LTP on impulse and step transients. [Figure 15] FIG. 15 shows sequentially a time domain portion of the audio signal shown in FIG. 14 and its low-pass filtered and high-pass filtered versions, respectively, to illustrate the control according to FIGS. 2, 3, 16 and 17 for an impulse and for a step transient. [Figure 16] FIG. 16 shows an example bar graph for a time sequence of energy - a sequence of energy samples - of a segment for an impulse-like transient and a time domain arrangement for determining the magnitude of at least one temporal structure according to FIGS. 2 and 3. [Figure 17] FIG. 17 shows an example bar graph for a time sequence of energy of a segment - a sequence of energy samples - for a step-like transient and time domain arrangement for determining the magnitude of at least one temporal structure according to FIGS. 2 and 3. [Figure 18] FIG. 18 shows a typical spectrogram of a pulse train (excluding the use of a short FFT spectrogram). [Figure 19] FIG. 19 illustrates an exemplary waveform of a pulse train. [Figure 20] FIG. 20 shows the original short FFT spectrogram of a pulse train. [Figure 21] FIG. 21 shows the original long FFT spectrogram of a pulse train. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] The following description begins with a first detailed embodiment of the harmonic filter tool control. A brief overview of the thoughts that led to this first embodiment is presented. These thoughts, however, also apply to the embodiments described later. Below, a specific example for an audio signal portion is presented, followed by a generalized embodiment, in order to more specifically outline the effects resulting from the embodiments of the present application.

[0017] For example, the decision mechanism for enabling or controlling a harmonic filter tool, which is a prediction-based technique, may be based on a combination of, for example, normalized correlation or prediction gain and the magnitude of temporal structure, e.g., the magnitude of temporal flatness, or the magnitude of harmonicity, such as energy change.

[0018] The decision does not depend simply on the magnitude of harmonics from the current frame, but on the magnitude of harmonics from previous frames and the magnitude of temporal structure from the current and, optionally, previous frames, as outlined below.

[0019] The decision scheme can be designed such that the prediction-based technique is also enabled for transients, and whenever it is used, it will be psychoacoustically beneficial, as the respective models conclude.

[0020] The threshold used to enable the prediction-based technique may, in one embodiment, depend on the current pitch instead of the pitch change.

[0021] The decision scheme may, for example, avoid the repetition of certain transients, but the transient detector allows prediction-based techniques for some transients and signals that have a particular temporal structure that typically indicates short transform blocks (i.e., the presence of one or more transients).

[0022] The decision techniques presented below may be applied to any of the prediction-based methods described above, in either the transform or time domain, with either a prefilter plus postfilter or postfilter only approach, and may be applied to band-limited (having low-pass) or sub-band (having band-pass characteristics) operation of the predictor.

[0023] The overall objective for activation of LPT, pitch prediction, or harmonic post-filtering is that both of the following conditions are achieved: - Objective or subjective benefits are obtained by activating the filter, No significant artifacts are introduced by activating the filter.

[0024] Determining whether there is an objective benefit to using a filter, which is usually implemented by autocorrelation and / or prediction gain measurements on the target signal, is well known. [1-7]

[0025] The measurement of subjective benefit is straightforward, at least for stationary signals, since the perceptual improvement data obtained via listening tests is generally proportional to the corresponding objective measures, i.e. the correlation and / or prediction gains mentioned above.

[0026] Identifying or predicting the presence of artifacts caused by filtering, as is done in the state of the art, however requires more sophisticated techniques than a simple comparison of frame types (long transforms for stationary vs. short transforms for transient frames) or objective measures such as predicted gain to a threshold. Essentially, to prevent artifacts, one must ensure that the changes that filtering causes in the target waveform do not significantly exceed the time-variant spectro-temporal masking thresholds anywhere in time or frequency. The decision scheme according to some of the embodiments presented below thus uses the following filter decision and control scheme, consisting of three algorithmic blocks that must be executed in succession for each frame of the audio signal to be coded and / or filtered:

[0027] A harmonic measurement block that calculates commonly used harmonic filter data, such as normalized correlation and gain values ​​(hereinafter referred to as "predicted gains"). As will be described again later, the word "gain" generally refers to a generalization for any parameter commonly associated with the strength of a filter, e.g., an explicit gain factor or the absolute or relative magnitude of a set of one or more filter coefficients.

[0028] A T / F envelope measurement block which calculates time-frequency (T / F) amplitude or energy or flatness data with a predefined spectral and temporal resolution (as mentioned above, this may also include the magnitude of frame transients used for frame type determination). Typically, the pitch obtained in the harmonic measurement block is input to the T / F envelope measurement block, since the region of the speech signal used to filter the current frame, using past signal samples, depends on the pitch (and accordingly on the calculated T / F envelope).

[0029] A filter gain calculation block that makes the final decision about which filter gain to use for filtering (and therefore to transmit in the bitstream). Ideally, this block should calculate, for each possible transmittable filter gain below the predicted gain, the spectro-temporal excitation pattern envelope of the target signal after filtering of said filter gain and compare this "actual" envelope with the excitation pattern envelope of the original signal. Then, for encoding / transmission, it can use the maximum filter gain whose corresponding spectro-temporal "actual" envelope does not differ from the "original" envelope by more than a certain amount. We call this filter gain psychoacoustically optimal.

[0030] In another embodiment described below, the triblock structure is slightly modified.

[0031] In other words, the magnitude of the harmonics and T / F envelopes are obtained in the corresponding blocks, which are subsequently used to derive the psychoacoustic excitation pattern of both the input and the filtered output frames, and finally the filter gains are adapted so that the masking threshold given by the ratio between the "real" and the "original" envelopes is not significantly exceeded. To appreciate this point, it should be noted that the excitation pattern in this context closely resembles a spectrogram-like representation of the signal being examined, but exhibits a temporal smoothing that models certain properties of human hearing, designated as "post-masking".

[0032] Figure 1 shows the connections between the three blocks introduced above. Unfortunately, the frame-wise derivation of the two excitation patterns and the brute-force search for the maximum filter gain are often computationally complex. Therefore, a simplification is presented in the following description.

[0033] To avoid costly computation of the excitation pattern in the proposed filter activation decision scheme, the low-complexity envelope magnitude is used as an estimate of the excitation pattern's properties. It was found that in the T / F envelope measurement block, data such as segment energy (SE), temporal flatness magnitude (TFM), maximum energy change (MEC) or traditional frame structure information such as frame type (long / stationary or short / transient) are sufficient to derive estimates of psychoacoustic criteria. These estimates can then be utilized in the filter gain calculation block to determine with high accuracy the optimal filter gains to be used for encoding or transmission. To prevent a computationally exhaustive search for the global optimal gain, the rate-distortion loop on all possible filter gains (or a subset thereof) can be replaced by a one-time conditional operator. Such a "cheap" operator serves to determine whether some filter gains computed using data from the Harmonicity and T / F envelope measurement blocks should be set to zero (decision not to use harmonic filtering) or not (decision to use harmonic filtering). Note that the Harmonicity measurement block remains unchanged. A step-by-step implementation of this low-complexity embodiment is described below.

[0034] As mentioned above, the "first" filter gain applied to the single conditional operator is derived using data from the Harmonicity and T / F envelope measurement blocks. More specifically, the "first" filter gain may be equal to the product of a time-varying predicted gain (from the Harmonicity measurement block) and a time-varying scale factor (from the psychoacoustic envelope data of the T / F envelope measurement block). To further reduce the computational load, a fixed constant scale factor, e.g., 0.625, may instead be used instead of a signal-adaptive time-varying one. This typically retains sufficient quality and is considered in the following implementation.

[0035] A step-by-step description of a specific embodiment for controlling the filter tool will now be presented.

[0036] 1. Transient detection and time measurement

[0037] TIFF0007568695000001.tif20170

[0038] TIFF0007568695000002.tif8170

[0039] TIFF0007568695000003.tif22170

[0040] TIFF0007568695000004.tif13170

[0041] where: is the number of samples in a 2.5 millisecond segment at the input sampling frequency. TIFF0007568695000005.tif8170

[0042] The stored energy is calculated using:

[0043] TIFF0007568695000006.tif9170

[0044] TIFF0007568695000007.tif12170

[0045] TIFF0007568695000008.tif20170

[0046] TIFF0007568695000009.tif24170

[0047] The energy change for each segment is calculated as follows:

[0048] TIFF0007568695000010.tif20168

[0049] The measure of temporal flatness is calculated as follows:

[0050] TIFF0007568695000011.tif17168

[0051] The maximum energy change is calculated as follows:

[0052] TIFF0007568695000012.tif11168

[0053] TIFF0007568695000013.tif10169

[0054] TIFF0007568695000014.tif17170

[0055] TIFF0007568695000015.tif13170

[0056] TIFF0007568695000016.tif16170

[0057] TIFF0007568695000017.tif27170

[0058] 2. Switching conversion block length

[0059] The overlap length and the transform block length of the TCX depend on the presence of transients and their location.

[0060] Table 1: Coding of overlap and transition length based on transient position

[0061] TIFF0007568695000018.tif62131

[0062] Basically, the transient detector described above returns the index of the last attack with the constraint that if there are multiple transients, MINIMAL overlap is preferred over HALF overlap which is preferred over FULL overlap. If the attack at position 2 or 6 is not strong enough, HALF overlap is selected instead of MINIMAL overlap.

[0063] 3. Pitch Estimation

[0064] One pitch lag per frame (integer part + fractional part) is estimated (frame size e.g. 20ms). This is done in three steps to reduce complexity and improve estimation accuracy.

[0065] a. A first estimate of the integer part of the pitch lag

[0066] A pitch analysis algorithm (e.g. open loop pitch analysis as described in Rec. ITU-T G. 718, sec. 6.6) is used that generates a smooth pitch evolution contour. This analysis is typically done subframe-wise (subframe size, e.g. 10 ms) and produces one pitch lag estimate per subframe. Note that these pitch lag estimates have no fractional part and are typically estimated on a downsampled signal (sampling rate, e.g. 6400 Hz). The signal used can be any speech signal, e.g. an LPC weighted speech signal as described in Rec. ITU-T G. 718, sec. 6.5.

[0067] b. Refining the integer part of the pitch lag

[0068] The final integer part of the pitch lag is estimated for a speech signal x[n] operating at a core encoder sampling rate that is typically higher than the sampling rate of the downsampled signal used (e.g. 12.8 kHz, 16 kHz, 32 kHz...). The signal x[n] may be a speech signal, for example an LPC weighted speech signal.

[0069] The integer part of the pitch lag is the lag T that maximizes the autocorrelation function. int It is.

[0070] TIFF0007568695000019.tif16162

[0071] TIFF0007568695000020.tif6161

[0072] TIFF0007568695000021.tif10129

[0073] c. Estimation of the fractional part of the pitch lag

[0074] TIFF0007568695000022.tif21169

[0075] 4. Decision Bit

[0076] If the input audio signal does not contain any harmonic content, or if prediction-based techniques would lead to distortions in the temporal structure (e.g. repetition of short-term transients), the parameters are not encoded in the bitstream. Only one bit is transmitted so that the decoder knows whether to decode the filter parameters or not. The decision is made based on several parameters.

[0077] Normalized correlation at integer pitch lags estimated in step 3.b.

[0078] TIFF0007568695000023.tif14122

[0079] The normalized correlation is "1" if the input signal is perfectly predictable by an integer pitch lag, and "0" if it is not predictable at all. A high value (close to 1) then indicates a harmonic signal. For a more robust decision, in addition to the normalized correlation for the current frame (norm_corr(curr)), the normalized correlation of the past frame (norm_corr(prev)) can be used in the decision: for example,

[0080] If (norm_corr(curr) * norm_corr(prev))>0.25 or If max(norm_corr(curr),norm_corr(prev))>0.5 The current frame contains some harmonic content (bit=1)

[0081] TIFF0007568695000024.tif48170

[0082] TIFF0007568695000025.tif28170

[0083] TIFF0007568695000026.tif41170

[0084] The principle of the decision logic is illustrated in the block diagram of FIG. 3. It should be noted that FIG. 3 is more general than FIG. 2 in the sense that the thresholds are not limited. They can be set according to FIG. 2 or differently. Furthermore, FIG. 3 shows that the exemplary bit-rate dependency of FIG. 2 can be eliminated. Of course, the decision logic of FIG. 3 can be modified to include the bit-rate dependency of FIG. 2. Furthermore, FIG. 3 keeps the ambiguity regarding the use with respect to only the current or also the past pitch. To that extent, FIG. 3 shows that the embodiment of FIG. 2 can be modified in this respect.

[0085] TIFF0007568695000027.tif30169

[0086] It is clear from the above examples that the detection of a transient affects which decision mechanism for long term prediction is used, which decision mechanism for long term prediction is used, and which part of the signal is used for the measurement used for the decision, but it is not clear from the above examples that it directly triggers the disabling of the long term prediction. The time measure used for the transform length determination may be completely different from the time measure used for the LTP determination, or they may overlap or be exactly the same but calculated in different regions.

[0087] If a threshold for the pitch lag dependent normalized correlation is reached, then for low pitch signals the detection of transients is completely ignored.

[0088] 5. Gain Estimation and Quantization

[0089] The gains are typically estimated with respect to an input speech signal at the sampling rate of the core encoder, but it could also be any speech signal, such as an LPC weighted speech signal. This signal is denoted y[n], which may be the same as or different from x[n].

[0090] Prediction of y[n] p [n] was first found by filtering y[n] with the following filter:

[0091] TIFF0007568695000028.tif6153

[0092] TIFF0007568695000029.tif16170

[0093] An example of B(z) when the pitch lag resolution is 1 / 4

[0094] TIFF0007568695000030.tif40166

[0095] TIFF0007568695000031.tif9166

[0096] TIFF0007568695000032.tif13169

[0097] And it is restricted to be between 0 and 1.

[0098] Finally, the gain is quantized, for example to 2 bits, using for example uniform quantization. If the gain is quantized to 0, the parameter is not coded in the bitstream, only 1 decision bit (bit=0).

[0099] The description has been given in order to motivate and outline the advantages of the embodiments of the present application for the harmonicity-dependent control of the harmonic filter tool, and also for the one outlined below which shows a generalized embodiment to the above-mentioned progressive embodiment. Often, the description given in order to motivate and outline the advantages of the embodiments of the present application is very specific, although the harmonicity-dependent control concept may be advantageously used in the framework of other audio codecs and may be varied in relation to the specific details outlined above. For this reason, the embodiments of the present application are described again below in a more general manner. Nevertheless, from time to time, the following description refers back to the detailed description given above in order to use the above details to clarify how the generally described elements occurring below may be realized according to further embodiments. In doing so, it should be noted that all of these specific implementation details may be individually transferred from the above description to the elements described below. Thus, whenever in the description outlined below, reference is made to the above-mentioned description, this reference is meant to be independent from the further reference to the above description.

[0100] Thus, a more general embodiment emerging from the above detailed description is shown in Fig. 4. In particular, Fig. 4 shows an apparatus for performing a harmonicity-dependent control of a harmonic filter tool, such as a harmonic pre / post filter or a harmonic post filter tool, of an audio codec. The apparatus is generally indicated with the reference sign 10. The apparatus 10 receives an audio signal 12 to be processed by the audio codec and outputs a control signal 14 to fulfill a control task of the apparatus 10. The apparatus 10 includes a pitch estimator 16 configured to determine a current pitch lag 18 of the audio signal 12, and a harmonicity measurer 20 configured to determine a harmonic magnitude 22 of the audio signal 12 using the current pitch lag 18. In particular, the harmonic magnitude may be a prediction gain or may be realized by one (single) or more (multi-tap) filter coefficients or a maximum normalized correlation. The harmonicity measurement calculation block of Fig. 1 includes the tasks of both the pitch estimator 16 and the harmonicity measurer 20.

[0101] The device 10 further includes a temporal structure analyzer 24 configured to determine a magnitude 26 of at least one temporal structure in a manner dependent on the pitch lag 18, the magnitude 26 measuring a characteristic of the temporal structure of the speech signal 12. For example, the dependence may depend on the position in the time domain where the magnitude 26 measures a characteristic of the temporal structure of the speech signal 12, as described above and in more detail below. However, for the sake of completeness, it is briefly noted that the dependence of the determination of the magnitude 26 on the pitch lag 18 may be embodied differently from the description above and below. For example, in an embodiment dependent on the temporal portion, i.e. the position of the determinant window, the dependence may simply vary in time the weight that each time interval of the speech signal contributes to the magnitude 26 within a window that is independently located from the pitch lag to the current frame relative to the current frame. In relation to the description below, this may mean that the determinant window 36 may be fixedly located in correspondence to the sequence of the current and past frames, and that the pitch-dependent location simply serves as a window of increasing weight where the temporal structure of the speech signal influences the magnitude 26. However, for the moment it is assumed that the time windows are arranged to be positioned according to the pitch lag.The temporal structure analyzer 24 corresponds to the T / F envelope measurement calculation block of FIG.

[0102] Finally, the apparatus of Fig. 4 includes a controller 28 configured to output a control signal 14 depending on the magnitude of the temporal structure 26 and the magnitude of the harmonicity 22 to control the harmonic pre / post filter or harmonic post filter. When comparing Fig. 4 with Fig. 1, the optimal filter gain calculation block corresponds to or illustrates a possible realization of the controller 28.

[0103] The operating mode of the device 10 is as follows: In particular, the task of the device 10 is to control the harmonic filter tool of the audio codec, and the more detailed description outlined above with respect to Figures 1 to 3 shows a gradual control or adaptation of this tool instead of its filter strength or filter gain, but for example the controller 28 is not limited to a type of gradual control. Generally speaking, as is the case in the particular embodiment described above with respect to Figures 1 to 3, the control by the controller 28 may be a gradual adaptation of the filter strength or gain of the harmonic filter tool between 0 and a maximum value, but different possibilities are equally available, for example a gradual control between two non-zero filter gain values, a stepped control, or a binary control such as switching between enable (non-zero) or disable (zero gain) to switch the harmonic filter tool on or off.

[0104] As becomes clear from the above description, the harmonic filter tool, indicated in Fig. 4 by the dashed line 30, aims to improve the subjective quality of an audio codec, such as a transform-based audio codec, in particular with regard to the harmonic phase of the audio signal. In particular, such a tool 30 is particularly useful in low bit rate scenarios, where the introduced quantization noise would, without the tool 30, lead to audible artifacts in such harmonic phases. However, it is important that the filter tool 30 does not negatively affect other time phases of the audio signal that are not predominantly harmonic. Furthermore, as mentioned above, the filter tool 30 may be a post-filter approach or a pre-filter plus post-filter approach. The pre- and / or post-filter may operate in the transform domain or in the time domain. For example, the post-filter of the tool 30 may have a transfer function with a maximum located at a spectral distance, for example corresponding to or set dependent on the pitch lag 18. Realization of the pre-filter and / or the post-filter, for example in the form of an LTP filter in the form of an FIR and IIR filter, respectively, is feasible. The pre-filter may have a transfer function that is substantially the inverse of the transfer function of the post-filter. In effect, the pre-filter attempts to hide the quantization noise in the harmonic components of the audio signal by increasing the quantization noise in the harmonics of the current pitch of the audio signal, and the post-filter reshapes the transmitted spectrum accordingly. In order to filter the quantization noise occurring between the harmonics of the pitch of the audio signal, in the case of a post-filter only approach, the post-filter actually modifies the transmitted audio signal.

[0105] It should be noted that Fig. 4 has been drawn in a simplified manner in some sense. For example, Fig. 4 suggests that the pitch estimator 16, the harmonicity measurer 20 and the temporal structure analyzer 24 operate, e.g. perform their tasks, directly on the audio signal 12, or at least on the same version thereof, although this need not be the case. In fact, the pitch estimator 16, the temporal structure analyzer 24 and the harmonicity measurer 20 can operate on different versions of the audio signal 12, such as different ones of the original audio signal and several pre-modified versions thereof, where these versions may change between the elements 16, 20 and 24 internally and also in terms of the audio codec. And it may also operate on several modified versions of the original audio signal. For example, the temporal structure analyzer 24 can operate on the audio signal 12 at its input sampling rate, i.e. the original sampling rate of the audio signal 12, or it may operate on an internally coded / decoded version thereof. The audio codec may then operate at some inner core sampling rate, which is usually lower than the input sampling rate. For example, the pitch-estimator 16 may then perform a pitch estimation task on a pre-modified version of the audio signal 12, e.g. a psychoacoustic weighted version of the audio signal 12, in order to improve the pitch estimation with respect to spectral components that are more important than other spectral components in terms of perceptibility. For example, as described above, the pitch-estimator 16 may be configured to determine the pitch lag 18 in stages including a first stage and a second stage, and the first stage then produces a preliminary estimate of the pitch lag which is then refined in the second stage. For example, as it was described above, the pitch estimator 16 may determine a preliminary estimate of the pitch lag in a downsampled domain corresponding to a first sample rate, and then refine the preliminary estimate of the pitch lag at a second sample rate higher than the first sample rate.

[0106] As far as the harmonicity measurer 20 is concerned, it is clear from the above discussion with respect to Figs. 1 to 3 that it can determine the harmonicity magnitude 22 by calculating a normalized correlation of the speech signal or a pre-corrected version at the pitch lag 18. It should be noted that the harmonicity measurer 20 can even be configured to calculate the normalized correlation even at some correlation time distance besides the pitch lag 18 in a time delay interval surrounding, for example, including the pitch lag 18. This can be advantageous, for example, in the case of a filter tool 30 using multi-tap LTP or possible LTP with a small pitch. In that case, the harmonicity measurer 20 can analyze or estimate the correlation even at lag indices adjacent to the actual pitch lag 18, for example integer pitch lags in the actual embodiment outlined above with respect to Figs. 1 to 3.

[0107] For more details and possible implementations of the pitch estimator 16, reference is made to the section "Pitch Estimation" submitted above. A possible implementation of the harmonicity measurer 20 was discussed above with respect to the formula for normalized correlation. However, as mentioned above, the term "harmonicity magnitude" includes not only normalized correlation but also hints for measuring the harmonicity, such as the predicted gain of a harmonic filter, which may be equal to or different from the pre-filter of filter 230, in case of using a pre / post-filter approach and regardless of the audio codec that uses this harmonic filter or whether this harmonic filter is used by the harmonic measurer 20 simply to determine the magnitude 22.

[0108] As was described above with respect to Figures 1 to 3, the temporal structure analyzer 24 may be configured to determine a magnitude 26 of at least one temporal structure in a time domain that is located in time according to the pitch lag 18. To further illustrate this, please refer to Figure 5. Figure 5 shows a spectrogram 32 of the audio signal, i.e. several highest frequencies f 1 , f 2 , f 3 , f 4 , f 5 , f 6 , f 7 , f 8 , f 9 , f 10 , f 11 , f 12 , f 13 , f 14 , f 15 , f 16 , f 17 , f 18 , f 19 , f 20 , f 21 , f 22 , f 23 , f 24 , f 25 , f 36 , f 37 , f 40 , f 50 , f 64 , f 45 , f 55 , f 66 , f 77 , f 88 , f 99 , f 107 , f 119 , f 120 , f 132 , f 140 , f 154 , f 166 , f 170 , f 184 , f 196 , f 198 , f 199 , f 255 , f 260 , f 270 , f 280 , f 380 , f 390 , f 400 , f 410 , f 420 , f 430 , f 440 , f 450 , f 550 , f 560 , f 570 , f 580 , f 590 , f 690 , f H 5 illustrates its spectral decomposition, up to , For illustrative purposes, Fig. 5 shows a spectrogram 32 subdivided in time into frames in a unit in which, for example, a controller may exercise control of the filter tool 30, where the frame subdivision may for example coincide with the frame subdivision used by the audio codec that comprises or uses the filter tool 30.

[0109] Assume for the moment by way of example that the current frame on which the control action of the controller 28 is performed is the frame 34a. As described above and illustrated in FIG. 5, the time domain 36, for which the temporal structure determiner determines the magnitude 26 of at least one temporal structure, does not necessarily coincide with the current frame 34a. Rather, both the past-in-time end 38 and the future-in-time end 40 of the time domain 36 may deviate from the past-in-time and future-in-time ends 42 and 44 of the current frame 34a. As described above, the temporal structure analyzer 24 may position the past-in-time end 38 of the time domain 36 in response to the pitch lag 18 determined by the pitch estimator 16, which determines the pitch lag 18 for each frame 34, for the current frame 34a. As will become apparent from the above discussion, the temporal structure analyzer 24 may position the past-in-time end 38 of the time domain such that the past-in-time end 38 moves in the past direction relative to the past end 42 of the current frame 34a, for example, by an amount of time 46 that increases monotonically with the increase in the pitch lag 18. In other words, the greater the pitch lag 18, the greater the sum 46. As made clear from the above discussion of Figures 1 to 3, the sum may be set according to Equation 8, where N past is the magnitude for the temporal displacement 46.

[0110] The temporally future end 40 of the time domain 36 may then be set by the temporal structure analyzer 24 in response to the temporal structure of the audio signal within a temporal candidate region 48 extending from a temporally past end 38 of the time domain 36 to a temporally future end 40 of the current frame 44. In particular, as described above, the temporal structure analyzer 24 may estimate a dissimilarity measure of the energy samples of the audio signal within the temporal candidate region 48 to determine the location of the temporally future end 40 of the time domain 36. In the above specific details shown with respect to Figures 1 to 3, a measure for the dissimilarity of the maximum and minimum energy samples within the temporal candidate region 48 was used as the dissimilarity measure, such as the amplitude ratio therebetween. In particular, in the above specific embodiment, the variable N newhas determined the position of the temporally future end 40 of the temporal future 36 relative to the temporally past end 42 of the current frame 34a, shown at 50 in FIG.

[0111] As is apparent from the above discussion, the placement of the time domain 36 relying on the pitch lag 18 is advantageous in that it increases the ability of the apparatus 10 to correctly identify situations in which the harmonic filter tool 30 may be advantageously employed. In particular, the correct detection of these types of situations is more reliable, i.e., such situations are detected with a higher probability without a substantial increase in false positive detections.

[0112] 1-3, the temporal structure analyzer 24 may determine the magnitude of at least one temporal structure in the time domain 36 based on temporal sampling of the energy of the audio signal in that time domain 36. This is illustrated in FIG. 6, where the energy samples are represented by points plotted in a time / energy plane spanned by arbitrary time and energy axes. As previously mentioned, the energy samples 52 are generated for each frame 34. rateThe magnitude of the temporal structure may be obtained by sampling the energy of the audio signal at a higher sample rate. In determining the magnitude 26 of the at least one temporal structure, the analyzer 24 may, as described above, calculate, for example, a set of energy change values ​​during the transition between pairs of immediately successive energy samples 52 in the time domain 36. In the above description, equation 5 was used for this purpose. With this measurement, an energy change value may be obtained from each pair of immediately successive energy samples 52. The analyzer 24 may then subject the set of energy change values ​​obtained from the energy samples 52 in the time domain 36 to a scalar function to obtain the at least one structural energy magnitude 26. In the above specific embodiment, the magnitude of the temporal structure is determined, for example, based on a sum of more than one addend, each of which depends on exactly one of the set of energy change values. The maximum energy change was then determined according to equation 7 using a maximum operator applied on the energy change values.

[0113] As already mentioned above, the energy samples 52 do not necessarily measure the energy of the audio signal 12 in its original, unaltered version. Rather, the energy samples 52 may measure the energy of the audio signal in slightly modified regions. In the above specific embodiment, the energy samples measured the energy of the audio signal, for example as obtained after high-pass filtering of the same. Thus, the energy of the audio signal in the spectrally lower regions affects the energy samples 52 less than the spectrally higher components of the audio signal. However, other possibilities exist as well. In particular, it should be noted that the embodiment in which the temporal structure analyzer 24 simply uses one value of the at least one temporal structure magnitude 26 per sample time according to the present embodiment is only one embodiment, and alternatives exist depending on which temporal structure analyzer determines the temporal structure magnitude in a spectrally distinguishable manner to obtain one value of the at least one temporal structure magnitude per spectral band of a plurality of spectral bands. Accordingly, the temporal structure analyzer 24 then provides to the controller 28 one or more values ​​of at least one temporal structure magnitude 26 for the current frame 34a, as determined in the time domain 36, i.e., one per such spectral band, the division of the spectral band spanning, for example, all spectral intervals of the spectrogram 32.

[0114] Fig. 7 illustrates the use of the apparatus 10 and an audio codec supporting the harmonic filter tool 30 according to a harmonic pre / post filter approach. Fig. 7 illustrates a transform-based encoder 70 that encodes the audio signal 12 into a data stream 74, and a decoder 72 that receives the data stream 74 to reconstruct the audio signal in the spectral domain, as indicated at 76, or, optionally, in the time domain, as indicated at 78. It should be clear that the encoder and decoder 70 and 72 are separate / separate entities and are shown in parallel in Fig. 7 for convenience of illustration only.

[0115] The transform-based encoder 70 comprises a transformer 80 for transforming the audio signal 12. The transformer 80 may be an overlap transform, among which a critically sampled overlap transform, an example of which is the MDCT, may be used. In the embodiment of FIG. 7, the transform-based audio encoder 70 also includes a spectrum shaper 82 for spectrally shaping the spectrum of the audio signal as output by the transformer 80. The spectrum shaper 82 may spectrally shape the spectrum of the audio signal according to a transfer function that is substantially the inverse of a spectral perceptual function. The spectral perceptual function may be derived as a linear prediction, and thus information about the spectral perceptual function may be transmitted to the decoder 72 in the form of, for example, linear prediction coefficients, e.g., in the form of quantized line spectral pairs of line spectral frequency values. Alternatively, a perceptual model may be used to determine the spectral perceptual function in the form of scaling coefficients, one scaling coefficient per scaling coefficient band, and the scaling coefficient bands may, for example, correspond to Bark bands. The encoder 70 also includes a quantizer 84 that quantizes the spectrally shaped spectrum, e.g., with an equal quantization function for all spectral lines. In this manner, the spectrally shaped and quantized spectrum is transmitted in the data stream 74 to the decoder 72.

[0116] For completeness only, it should be noted that the order between the transformer 80 and the spectrum shaper 82 is selected in FIG. 7 for convenience of explanation only. Theoretically, the spectrum shaper 82 could actually be responsible for the spectrum shaping in the time domain, i.e. in the upstream transformer 80. Furthermore, to determine the spectral perception function, the spectrum shaper 82 could have access to the audio signal 12 in the time domain, although not specifically shown in FIG. 7. On the decoder side, the decoder 72 is shown in FIG. 7 as including a spectrum shaper 86 configured to form an inputted spectrally shaped and quantized spectrum as obtained from the data stream 74 with the inverse of the transformation function of the spectrum shaper 82, i.e., substantially having a spectral perception function assisted by an optional inverse transformer 88. The inverse transformer 88 performs an inverse transform in conjunction with the transformer 80, and may for example, to this end, perform a transform block-based inverse transform assisted by an overlap-add process to perform a time domain aliasing cancellation, thereby reconstructing the time domain audio signal.

[0117] As shown in FIG. 7, the harmonic prefilter is configured by the encoder 70 at a position upstream or downstream of the transformer 80. For example, the harmonic prefilter 90, the upstream transformer 80, may subject the audio signal 12 in the time domain to filtering in order to effectively attenuate the spectrum of the audio signal in the harmonic in addition to the transfer function or spectrum shaper 82. Alternatively, the harmonic prefilter may be arranged downstream transformer 80 with such a prefilter 92 performing or causing the same attenuation in the spectral domain. As shown in FIG. 7, the corresponding postfilters 94 and 96 are arranged within the decoder 72: in the case of the prefilter 92, in the postfilter 94 located upstream in the spectral domain, the inverse transformer 88 inversely shapes the spectrum of the audio signal and inverts the transfer function of the prefilter 92, and if the prefilter 90 is used, the postfilter 96, downstream of the inverse transformer 88, performs filtering of the reconstructed audio signal in the time domain with a transfer function that inverts the transfer function of the prefilter 90.

[0118] In the case of FIG. 7, the device 10 controls the harmonic filter tools of the audio codec realized by the pairs 90 and 96 or 92 and 94 by transmitting an explicit control signal 98 to the decoder side via the audio codec data stream 74 to control the respective postfilter and, following the control of the postfilter on the decoder side, to control the prefilter on the encoder side.

[0119] For completeness, Fig. 8 also illustrates the use of the device 10 using a transform-based audio codec including elements 80, 82, 84, 86 and 88, but in the case where the audio codec supports a harmonic postfilter only approach. Here, the harmonic filter tool 30 can be realized by a postfilter 100 located upstream of the inverse transformer 88 in the decoder 72 to perform harmonic postfiltering in the spectral domain, or by using a postfilter 102 located downstream of the inverse transformer 88 to perform harmonic postfiltering in the decoder 72 in the time domain. The mode of operation of the postfilters 100 and 102 is substantially similar to the one of the postfilters 94 and 96: the purpose of these postfilters is to reduce the quantization noise between harmonics. The device 10 controls these postfilters by an explicit signaling in the data stream 74, which is illustrated in Fig. 8 using the reference numeral 104.

[0120] As already mentioned above, the control signal 98 or 104 is sent, for example, periodically, for example, per frame 34. It should be noted that the frames are not necessarily of equal length. The length of the frame 34 can also vary.

[0121] The above description, especially with respect to Figs. 2 and 3, has revealed possibilities as to how the controller 28 controls the harmonic filter tool. As becomes clear from the discussion, the at least one temporal structure measurement may be measuring the average or maximum energy variation of the audio signal in the time domain 36. Furthermore, the controller 28 may include among its control options the disabling of the harmonic filter tool 30. This is shown in Fig. 9. Fig. 9 shows the controller 28 as including a logic circuit (hereinafter referred to as logic) 120 configured to check whether a predefined condition is satisfied by at least one temporal structure magnitude and a harmonicity magnitude to obtain a check result 122, which is a binary characteristic and indicates whether the predefined condition is satisfied or not. The controller 28 is shown as comprising a switch 124 configured to switch the harmonic filter tool between enabled and disabled depending on the check result 122. If the check result 122 indicates that a predefined state has been approved to be satisfied by the logic 120, the switch 124 either indicates the state directly as the control signal 14, or the switch 124 indicates the state together with some filter gain for the harmonic filter tool 30. That is, in the latter case, the switch 124 not only switches between switching the harmonic filter tool 30 completely off and switching the harmonic filter tool 30 completely on, but also sets the harmonic filter tool 30 to some intermediate state varying in filter strength or filter gain, respectively. In that case, i.e. if the switch 124 also adapts / controls the harmonic filter tool 30 somewhere between switching the tool 30 completely off and switching the tool 30 completely on, the switch 124 may depend at least on the magnitude 26 of the temporal structure and the magnitude 22 of the harmonicity to determine the intermediate state of the control signal 14, i.e. to adapt the tool 30. In other words, the switch 124 may determine a gain factor or adaptation factor for controlling the harmonic filter tool 30 based on the magnitudes 26 and 22 .Alternatively, switch 124 uses all states of control signal 14 that do not directly indicate an off state of harmonic filter tool 30, audio signal 12. If check result 122 indicates that the predefined condition is not met, control signal 14 indicates disabling of harmonic filter tool 30.

[0122] As becomes clear from the above description of figures 2 and 3, the predefined condition may be fulfilled if the magnitude of both at least one temporal structure is smaller than a predefined first threshold and the magnitude of the harmonicity exceeds a second threshold for the current frame and / or the previous frame. Variants can also exist: the predefined condition may further be fulfilled if the magnitude of the harmonicity exceeds a third threshold for the current frame and the magnitude of the harmonicity exceeds a fourth threshold, which decreases with increasing pitch lag, for the current frame and / or the previous frame.

[0123] In particular, in the embodiment of figures 2 and 3, there were in fact three variants in which the given conditions were met, and the variants depended on the magnitude of at least one of the temporal structures:

[0124] 1. The magnitude of one temporal structure <threshold for current and previous frames and combined harmonicity> the second threshold; 2. the magnitude of one temporal structure < the third threshold and (harmonicity for the current or previous frame) > the fourth threshold; 3. (magnitude of one temporal structure, < 5th threshold or magnitude of all temporal structures < threshold) and harmony for the current frame > 6th threshold.

[0125] Thus, FIGS. 2 and 3 show possible implementations for logic 124. FIG.

[0126] As described above with respect to Figures 1 to 3, it is possible that the device 10 is not only used to control the harmonic filter tool of the audio codec. Rather, the device 10 may form a system capable of performing both transient detection as well as control of the harmonic filter tool in parallel with the transient detection. Figure 10 illustrates this possibility. Figure 10 illustrates a system 150 consisting of the device 10 and a transient detector 152, the latter being configured to detect transients in the audio signal 12 while the device 10 outputs the control signal 14 as discussed above. To do this, however, the transient detector 152 makes use of an intermediate result occurring within the device 10: for its detection, the transient detector 152 uses its detection of energy samples 52 temporally or spectro-temporally sampling the energy of the audio signal, or alternatively, however selectively, estimates energy samples in the time domain rather than the time domain 36, for example, in the current frame 34a. Based on these energy samples, the transient detector 152 performs transient detection and indicates the detected transients as detection signal 154. In the above example, the transient detection signal substantially indicated the positions where the condition of Equation 4 was fulfilled, i.e., the energy change of the time-successive energy samples exceeded some threshold value.

[0127] As also made clear from the above discussion, a transform-based encoder such as the one depicted in FIG. 8 or a transform-coded excitation encoder may include or use the system of FIG. 10 to switch the transform block and / or overlap length depending on the transient detection signal 154. Furthermore, additionally or alternatively, an audio (voice) encoder including or using the system of FIG. 10 may be of a switching mode type. For example, USAC and EVS use switching between modes. Thus, this type of encoder may be configured to support switching between a transform-coded excitation mode and a coded excitation linear prediction mode, and the encoder may be configured to perform the switching depending on the transient detection signal 154 of the system of FIG. 10. As far as the transform coding excitation mode is concerned, switching the transform block and / or overlap length may again be dependent on the transient detection signal 154.

[0128] Example for obtaining the effect of the above example

[0129] Example 1:

[0130] The size of the region over which the time magnitudes for the LTP decision are calculated depends on the pitch (see equation (8)), and this region is different from the region over which the time magnitudes for the transform length are calculated (usually current frame and lookahead).

[0131] In the example of Figure 11, a transient exists inside the region over which the time magnitude is calculated, thus influencing the LTP decision. As mentioned above, the motivation is that the LTP for the current frame uses past samples from what represents the "pitch lag" to arrive at the part of the transient.

[0132] In the example of Figure 12, the transient lies outside the region over which the time magnitude is calculated and thus does not affect the LTP decision. This is reasonable because, unlike the previous figures, the LTP for the current frame did not reach the transient.

[0133] In both embodiments (FIGS. 11 and 12), the transform length configuration is determined based on the time magnitude only within the current frame, i.e., the area marked "Frame Length." This means that in both embodiments, transients are not detected in the current frame, and preferably a single long transform is used (instead of many successive short transforms).

[0134] Example 2:

[0135] Here we discuss the behavior of LTP for impulse and step transients within harmonic signals, of which one example is given by the spectrogram of a signal in FIG. 13; upon encoding, the signal includes LTP for the complete signal (since the LTP decision is based only on the pitch gain), and the output spectrogram looks like that shown in FIG. 14.

[0136] The waveform of the signal whose spectrogram is present in Figure 14 is shown in Figure 15. Figure 15 also contains the same signal that has been low-pass (LP) filtered and high-pass (HP) filtered. In the LP filtered signal, the harmonic structure is clearer and in the HP filtered signal, the location of the impulse-like transients and their trajectories are more evident. The levels of the full signal, the LP signal and the HP signal are modified in the figure for presentation purposes.

[0137] For short impulse-like transients (such as the first transient in FIG. 13), long-term prediction results in a repetition of the transient, as can be seen in FIG. 14 and FIG. 15. Using long-term prediction during step-like long transients (such as the second transient in FIG. 13) does not introduce any additional distortion because the transient is strong enough for a long period, and this masks the part of the signal generated using long-term prediction (simultaneous and postmasking). The decision mechanism enables LTP for step-like transients (to take advantage of the prediction benefits) and disables LTP for short impulse-like transients (to prevent artifacts).

[0138] TIFF0007568695000033.tif85170

[0139] Example 3: In some cases, however, the use of time dimensions can be disadvantageous. The spectrogram in Figure 18 and waveform in Figure 19 show an excerpt from approximately 35 ms from the beginning of "Kalifornia" by Fatboy Slim. The LTP decision, which depends on the magnitude of time flatness and on the maximum energy change, disables LTP for this type of signal as it detects large temporal variations in energy.

[0140] This sample is an example of the ambiguity between the transients and pulse trains that form a low pitch signal.

[0141] As can be seen in FIG. 20, which shows a 600 ms extract from the same signal, a signal is present that contains repeated very short impulse-like transients (the spectrogram is generated using a short-time long FFT).

[0142] TIFF0007568695000034.tif49170

[0143] Thus, the above embodiment has revealed, inter alia, a concept for better harmonic filter determination, for example for speech coding. It must be restated in passing that slight deviations from the above concept are possible. In particular, as mentioned above, the speech signal 12 may be a speech or music signal and may be replaced by a preprocessed version of the signal 12 for the purposes of pitch estimation, harmonicity measurement or temporal structure analysis or measurement. Also, in the time or spectral domain, the pitch estimation may not be limited to a measurement of the pitch lag, but may also be performed by a measurement of the fundamental frequency, which may be easily converted to an equivalent pitch lag via a formula, e.g. "pitch lag = sampling frequency / pitch frequency", as should be known to the skilled person. Thus, generally speaking, the pitch estimator 16 then estimates the pitch of the speech signal, which is itself a listing in pitch-lag and pitch frequency.

[0144] Although some aspects have been described in the context of an apparatus, it will be apparent that these aspects also represent a description of a corresponding method, where a block or apparatus corresponds to a method step or a feature of a method step. Similarly, aspects described in the context of a method step also represent a description of a corresponding block or component or feature of a corresponding apparatus. Some or all of the method steps may be performed by or through the use of a hardware apparatus, such as a microprocessor, a programmable computer or electronic circuitry. In some embodiments, one or more of some of the most important method steps may be performed by such an apparatus.

[0145] The encoded audio signals of the present invention may be stored on a digital storage medium or transmitted over a transmission medium, such as a wireless transmission medium, for example the Internet, or a wired transmission medium.

[0146] Depending on specific implementation requirements, embodiments of the present invention may be implemented in hardware or in software. Implementation may be performed using a digital storage medium having electronically readable control signals stored thereon, such as a floppy disk, DVD, Blu-Ray, CD, ROM, PROM, EPROM, EEPROM or FLASH memory, which cooperates (or can cooperate) with a programmable computer system so that the respective methods are executed. Thus, the digital storage medium may be computer readable.

[0147] Some embodiments of the present invention include a data carrier having electronically readable control signals that can cooperate with a programmable computer system to perform one of the methods described herein.

[0148] Typically, embodiments of the present invention may be implemented as a computer program product having program code therein, the program code being operable to perform one of the methods when the computer program product runs on a computer. The program code may for example be stored on a machine readable carrier.

[0149] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.

[0150] In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.

[0151] A further embodiment of the inventive method is therefore a data carrier (or digital storage medium or computer readable medium) comprising the computer program recorded thereon for performing one of the methods described herein. The data carrier, digital storage medium or recording medium is typically tangible and / or non-transitory.

[0152] 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. The data stream or the sequence of signals may for example be adapted to be transmitted over a data communication connection, for example the Internet.

[0153] A further embodiment comprises a processing means, for example a computer, or a programmable logic device, configured to or adapted to perform one of the methods described herein.

[0154] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.

[0155] A further embodiment according to the present invention comprises an apparatus or system configured to transfer (e.g. electronically or optically) a computer program for performing one of the methods described herein to a receiver. The receiver may be, for example, a computer, a mobile device, a memory device, etc. The apparatus or system may, for example, comprise a file server for transferring the computer program to the receiver.

[0156] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functions of the methods described herein. In some embodiments, a 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 any hardware device.

[0157] The above described embodiments are merely illustrative for the principles of the present invention. It is understood that modifications and variations of the arrangements and details described herein will be apparent to others skilled in the art, and it is therefore intended that the present application be limited only by the scope of the appended claims and not by the specific details shown by way of description and illustration of the embodiments herein.

Claims

1. 1. An apparatus for performing a harmonicity dependent control of a harmonic filter tool of an audio codec, comprising: a harmonicity meter configured to determine a magnitude of harmonics in an audio signal; a temporal structure analyzer configured to determine a magnitude of at least one temporal structure measuring a feature of the temporal structure of the audio signal; a controller configured to control the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; a pitch estimator configured to determine the pitch of the speech signal; Equipped with The host device, wherein the temporal structure analyzer is configured to determine a magnitude of the at least one temporal structure within a time domain that is arranged in time according to the pitch.

2. 2. The apparatus of claim 1, wherein the harmonicity measurer is configured to determine the magnitude of the harmonic by calculating a normalized correlation of the audio signal or a pre-corrected version of the normalized correlation of the audio signal at or around a pitch lag of the audio signal.

3. 2. The apparatus of claim 1, wherein the pitch estimator is configured to determine in a first stage a preliminary estimate of the pitch in a downsampled domain at a first sampling rate and to refine in a second stage the preliminary estimate of the pitch at a second sampling rate that is higher than the first sampling rate.

4. The apparatus of claim 1 , wherein the pitch estimator is configured to determine the pitch using autocorrelation.

5. The apparatus of claim 1 , wherein the temporal structure analyzer is configured to position temporally past-facing ends of the time domain or domains of higher influence on determining the magnitude of the temporal structure according to the pitch.

6. 2. The apparatus of claim 1, wherein the temporal structure analyzer is configured to position past-facing ends of the time domain or regions with a higher influence on the determination of the magnitude of the temporal structure such that the past-facing ends of the time domain or regions with a higher influence on the determination of the magnitude of the temporal structure are moved in the past direction by an amount of time that monotonically increases as the pitch decreases.

7. 6. The apparatus of claim 5, wherein the temporal structure analyzer is configured to position a future-facing end of the time domain or region with a higher influence on the determination of the magnitude of the temporal structure depending on the temporal structure of the audio signal within a temporal candidate region extending from a past-facing end of the time domain or region with a higher influence on the determination of the magnitude of the temporal structure to a future-facing end of the current frame.

8. 8. The apparatus of claim 7, wherein the temporal structure analyzer is configured to use an amplitude or a ratio between a maximum and a minimum energy sample in the candidate temporal region to locate a temporally future-facing end of the region that has a higher influence on the determination of the time region or magnitude of the temporal structure.

9. The controller (28) a logic circuit configured to check whether the magnitude of the at least one temporal structure and the magnitude of the harmonicity satisfy a predetermined condition to obtain a check result; a switch configured to switch between enabling and disabling the harmonic filter tool depending on the check result; The apparatus of claim 1 , comprising:

10. The magnitude of the at least one temporal structure measures an average or maximum energy variation of the audio signal within the time domain, and the logic circuitry further comprises: the predetermined condition is met if the magnitude of the at least one temporal structure is smaller than a first predetermined threshold and the magnitude of the harmonicity exceeds a second threshold for a current frame and / or a previous frame.

10. The apparatus of claim 9.

11. 11. The apparatus of claim 10, wherein the logic circuitry is configured such that the predetermined condition is also met if the magnitude of the harmonicity exceeds a third threshold for a current frame and if the magnitude of the harmonicity exceeds a fourth threshold for a current frame and / or a previous frame, the fourth threshold decreasing with increasing pitch lag of the speech signal.

12. The controller: Explicitly signaling control signals to the decoding side via the data stream of the audio codec, or Controlling a post-filter at the decoding side by explicitly signalling a control signal via the data stream of a speech codec, and controlling a pre-filter at the encoding side in accordance with the control of the post-filter at the decoding side. The apparatus of claim 1 , configured to control the harmonic filter tool by:

13. Apparatus for performing harmonic dependent control of a harmonic filter tool of an audio codec, comprising: a harmonicity meter configured to determine a magnitude of harmonics in an audio signal; a temporal structure analyzer configured to determine a magnitude of at least one temporal structure measuring a feature of the temporal structure of the audio signal; a controller configured to control the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; Equipped with the temporal structure analyzer is configured to spectrally discriminatively determine a magnitude of the at least one temporal structure to obtain a magnitude value of the at least one temporal structure, one for each spectral band of a plurality of spectral bands.

14. Apparatus for performing harmonic dependent control of a harmonic filter tool of an audio codec, comprising: a harmonicity meter configured to determine a magnitude of harmonics in an audio signal; a temporal structure analyzer configured to determine a magnitude of at least one temporal structure measuring a feature of the temporal structure of the audio signal; a controller configured to control the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; Equipped with The apparatus, wherein the controller is configured to control the harmonic filter tool on a frame-by-frame basis, and the temporal structure analyzer is configured to sample energy of the audio signal at a sample rate higher than a frame rate of the frames to obtain energy samples of the audio signal, and to determine a magnitude of the at least one temporal structure based on the energy samples.

15. 15. The apparatus of claim 14, wherein the temporal structure analyzer is configured to determine a magnitude of the at least one temporal structure in a time domain arranged in time according to a pitch of the audio signal, and wherein the temporal structure analyzer is configured to determine the magnitude of the at least one temporal structure based on the energy samples by calculating a set of energy change values ​​measuring changes between pairs of immediately successive ones of the energy samples in the time domain and multiplying the set of energy change values ​​by a scalar function comprising a maximum operator or a sum of addends, each of which depends on exactly one of the set of energy change values.

16. The apparatus of claim 14 , wherein the temporal structure analyzer is configured to perform a sampling of the energy of the audio signal in a high-pass filtered domain.

17. Apparatus for performing harmonic dependent control of a harmonic filter tool of an audio codec, comprising: a harmonicity meter configured to determine a magnitude of harmonics in an audio signal; a temporal structure analyzer configured to determine a magnitude of at least one temporal structure measuring a feature of the temporal structure of the audio signal; a controller configured to control the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; a pitch estimator configured to determine the pitch of the speech signal; Equipped with The apparatus, wherein the pitch estimator, the harmonicity measurer and the temporal structure analyzer perform their decisions based on different versions of the audio signal, including an original audio signal and several pre-modified versions of the original audio signal.

18. The controller, in controlling the harmonic filter tool, is configured to: Enabling and disabling a pre-filter and / or a post-filter of the harmonic filter tool; or configured to progressively adapt the filter strengths of the pre-filter and / or the post-filter of the harmonic filter tool; wherein the harmonic filter tool comprises a pre-filter and post-filter approach, and the pre-filter of the harmonic filter tool is configured to increase the quantization noise within harmonics of the pitch of the audio signal, and the post-filter of the harmonic filter tool is configured to reshape the transmitted spectrum accordingly, or wherein the harmonic filter tool comprises a post-filter only approach, and the post-filter of the harmonic filter tool is configured to filter quantization noise occurring between harmonics of the pitch of the audio signal.

20. The apparatus of claim 17.

19. 19. An audio encoder or decoder comprising a harmonic filter tool and an apparatus according to any one of claims 1 to 18 for performing a control of said harmonic filter tool in dependence on the harmonicity.

20. 17. An apparatus according to claim 16 for performing a harmonicity-dependent control of a harmonic filter tool; a transient detector configured to detect a transient in the audio signal that the audio codec processes based on the energy samples; A system including:

21. 21. A transform-based encoder comprising the system of claim 20 and configured to switch transform blocks and / or overlap lengths in response to the detected transients.

22. 21. An audio encoder comprising the system of claim 20 and configured to support switching between a transform coding excited mode and a code excited linear prediction mode in response to the detected transients.

23. 23. An audio encoder as claimed in claim 22, configured to switch transform blocks and / or overlap lengths in the transform coding excitation mode in response to the detected transients.

24. 1. A method for performing a harmonic dependent control of a harmonic filter tool of an audio codec, comprising: determining a magnitude of harmonics in the audio signal; determining a magnitude of at least one temporal structure measuring a characteristic of the temporal structure of the audio signal; controlling the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; determining a pitch of the audio signal, the temporal structure analyzer being configured to determine a magnitude of the at least one temporal structure within a time domain arranged in time according to the pitch; Includes method.

25. A method for performing harmonic dependent control of a harmonic filter tool of an audio codec, comprising: determining a magnitude of harmonics in the audio signal; determining a magnitude of at least one temporal structure measuring a characteristic of the temporal structure of the audio signal; controlling the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; Including, a magnitude of the at least one temporal structure is determined in a spectrally discriminatory manner to obtain a magnitude value of the at least one temporal structure for each spectral band of a plurality of spectral bands; method.

26. A method for performing harmonic dependent control of a harmonic filter tool of an audio codec, comprising: determining a magnitude of harmonics in the audio signal; determining a magnitude of at least one temporal structure measuring a characteristic of the temporal structure of the audio signal; controlling the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; Including, the harmonic filter tool is controlled on a frame-by-frame basis, and determining the magnitude of the at least one temporal structure comprises sampling an energy of the audio signal at a sample rate higher than a frame rate of the frames to obtain energy samples of the audio signal, and determining the magnitude of the at least one temporal structure based on the energy samples. method.

27. A method for performing harmonic dependent control of a harmonic filter tool of an audio codec, comprising: determining a magnitude of harmonics in the audio signal; determining a magnitude of at least one temporal structure measuring a characteristic of the temporal structure of the audio signal; controlling the harmonic filter tool in response to the magnitude of the temporal structure and the magnitude of the harmonics; determining a pitch of the audio signal, wherein the steps of determining the pitch, determining the magnitude of the harmonics and determining the magnitude of the at least one temporal structure are performed based on different versions of the audio signal including an original audio signal and several pre-modified versions of the original audio signal. method.

28. A non-transitory digital storage medium storing a computer program which, when executed by a computer, performs a method for performing harmony-dependent control of a harmonic filter tool of an audio codec as described in any of claims 24 to 27.

Citation Information

Patent Citations

  • Pitch detector

    JP1994077834A

  • Method and device for pitch emphasis

    JP1997081192A

  • Long-period post-filter

    JP2004302257A

  • Selective bus post filter

    JP2013533983A

  • Apparatus and method for encoding a portion of an audio signal using transient detection and quality results.

    JP2014510303A