In multi-media applications, audio signals are often coded using dedicated perceptual coding methods like MPEG1/2 Layer 3 (“mp3”), MPEG2/4 Advanced audio coding (AAC), etc. When decoding the encoded audio signal diverse processing methods may be applied so as to reconstruct the audio signal that was originally encoded. However, due to lossy coding operations such as perceptually adapted quantization or parametric coding techniques such as Spectral Bandwidth Replication (SBR), it is possible to obtain artifacts in the decoded audio signal that might be disturbing.
For quite a long time, perceptual audio coders have been developed to foremost preserve the perceptual quality of the original signals. If the coded and non-coded signal is perceptually indistinguishable, this property is called “perceptual transparency”.
However, transparency can only be achieved if the available bitrate (i.e. the amount of data used) is high enough. In recent years, it was realized that, at low bitrates, perceptual pleasantness becomes more important than closeness to the original in a transparency sense. Therefore, well-established perceptual coding schemes like MP3 or AAC may sound sub-optimal to date compared to modern coding approaches targeting perceptual pleasantness.
In the following, some coding artifacts are briefly described.
The Birdies Artifact
At low bitrate transform coding, often the quantizers for the coding of the spectral lines have to be set to a very coarse precision, such that their dynamic range is poly adapted to the signal. As a result, many spectral lines are quantized to 0 by the dead-zone of the quantizer or to the value 1, corresponding to the first quantizer step. Over time, spectral lines or groups of lines might toggle between 0 and 1, thereby introducing unwanted temporal modulation. This artifact is called “Birdies” being reminiscent of a bird's twitter. Therefore, this strong time-varying presence of spectral holes and spectral islands is unwanted codec behavior leading to objectionable perceptual artifacts, see [2] and [3].
Bandwidth Limitation
Another well-known coding artifact is bandwidth limitation. If, at low bitrate coding conditions, the available bit budget is insufficient to accommodate the needed precision for transparency, legacy codecs often introduced a static low-pass to limit the audio bandwidth. This may lead to a dull and muffled sound impression, see [2] and [3].
Tonal Spike Artifact
This artifact appears in connection with artificial bandwidth extension methods such as spectral band replication (SBR), see [4], when the tonal-to-noise ratio has been overestimated. In this case tonal components are recreated with too much energy which leads to a metallic sound, see [3].
Beating Artifact
As well as the tonal spike artifact, the beating artifact appears in conjunction with artificial bandwidth extension. Beating creates the perception of roughness and emerges from two tonal components with close frequency distance which can caused by the copy up as used in SBR, see [3].
Therefore, it is an aim to detect, if the audio signal was subjected to a processing that is capable of introducing artifacts and/or to reduce such artifacts.
An example for a processing method that may be a source for artifacts is the Spectral Band Replication (SBR) being a semi-parametric method for extending the bandwidth of an audio signal on the decoder side. In a first step, parts of the transmitted lowpass signal spectrum are replicated by copying the spectral coefficients from the lower to the higher frequency region. In a second step, the spectral envelope is adjusted. The adjustment of the spectral envelope is performed such that the coarse shape of the spectrum matches a given target, whereas the fine structure remains unmodified.
The detection of SBR is desired because from the obtained information it can be concluded that
The starting frequency at which SBR is in effect is of interest for post-processings that improve the sound quality by mitigating artifacts introduced by SBR. Therefore, there is a need for detecting SBR and for estimating the start frequency of SBR. In particular, it is a desire to determine whether such enhancement is desired or not. It is, for example, not appropriate for signals of high sound quality, because the enhancement can degrade the sound quality when the audio signal is of high sound quality.
A method for the detection of SBR is described in U.S. Pat. No. 9,117,440 B2. The described method operates on sub-band signals that are computed using a filterbank or time-frequency transform. It then quantifies the relationship between multiple sub-bands by means of cross-correlation, i.e., by multiplying the corresponding samples and accumulating these products over time.
Another example for a source of artifacts is bandwidth reduction (BR) which is also referred to as bandwidth limitation (BL). When the bandwidth is severely limited, a degradation of the sound quality is perceived and a quality enhancement is desired. Such quality improvement may comprise a bandwidth extension (BWE), which should only be applied if needed, i.e. when the natural bandwidth of the signals has been artificially severely reduced. A method for BWE that uses an estimation of the bandwidth is described in [1]. The bandwidth is estimated by detecting the highest frequency present in the signal at any given time. This method is prone to false positive detection errors, because an audio signal can have a limited bandwidth by nature as the mechanism that generated the signal has only generated energy at lower frequencies.
Summing up, perceptual audio coders are widely used, when storage space or streaming bandwidth for audio content is limited. If the applied compression rate is very high (and the used data rate after compression is very low), several coding artifacts are introduced that degrade the perceived audio quality.
Therefore, it is an object of the invention to provide for an enhancing identification of audio signals comprising a characteristic being obtained by artifact prone audio processing and/or to provide for a concept to reduce such artifacts through application of dedicated post-processings on such audio material.
According to an embodiment, an apparatus for determining a predetermined characteristic indicating that an audio signal was subjected to an artificial bandwidth limitation processing may have: a slope evaluator configured for evaluating a slope of a spectrum of the audio signal to obtain a slope evaluation result; and a processor for providing an information indicating that the audio signal has the predetermined characteristic dependent on an evaluation of the slope evaluation result, wherein the processor is configured for providing the information indicating that the audio signal has the predetermined characteristic by providing a respective information indicating a result for the frame for a plurality of frames of the audio signal for each of the plurality of frames, wherein the processor is configured for obtaining a plurality of results based on the plurality of frames and to combine the plurality of results so as to obtain a combined result being valid for the plurality of frames; and wherein the processor is configured for executing a median filtering using the plurality of results for obtaining the combined result.
According to another embodiment, a method for determining a predetermined characteristic indicating that an audio signal was subjected to an artificial bandwidth limitation processing may have the steps of: evaluating a slope of a spectrum of the audio signal to obtain an slope evaluation result; and providing an information indicating that the audio signal has the predetermined characteristic dependent on an evaluation of the slope evaluation result; providing the information indicating that the audio signal has the predetermined characteristic by providing a respective information indicating a result for the frame for a plurality of frames of the audio signal for each of the plurality of frames, and obtaining a plurality of results based on the plurality of frames and combining the plurality of results so as to obtain a combined result being valid for the plurality of frames; and executing a median filtering using the plurality of results for obtaining the combined result.
Another embodiment may have a non-transitory digital storage medium having stored thereon a computer program for performing a method for determining a predetermined characteristic indicating that an audio signal was subjected to an artificial bandwidth limitation processing, the method having the steps of: evaluating a slope of a spectrum of the audio signal to obtain an slope evaluation result; and providing an information indicating that the audio signal has the predetermined characteristic dependent on an evaluation of the slope evaluation result; providing the information indicating that the audio signal has the predetermined characteristic by providing a respective information indicating a result for the frame for a plurality of frames of the audio signal for each of the plurality of frames, and obtaining a plurality of results based on the plurality of frames and combining the plurality of results so as to obtain a combined result being valid for the plurality of frames; and executing a median filtering using the plurality of results for obtaining the combined result, when said computer program is run by a computer.
According to a first aspect, the inventors have found out that by using a local maximum signal, being derived from the audio signals and by determining a similarity between segments of the local maximum signal, a secure and efficient identification of a characteristic related to a spectral enhancement processing may be obtained such that a respective post-processing may be implemented for the respective audio signal so as to reduce, for example, the tonal spike artifact and/or the beating artifact. Based on the evaluation of the signal, a side-information indicating the implemented audio processing may be not required such that a blind operation of the module is possible.
According to an embodiment of the first aspect, an apparatus for determining a predetermined characteristic related to a spectral enhancement processing of an audio signal comprises a deriver configured for obtaining a spectrum of the audio signal and for deriving information related to a fine structure of the spectrum. The apparatus comprises a determiner configured for determining a similarity in the fine structure of the spectrum. The apparatus further comprises a processor for providing an information indicating that the audio signal comprises the predetermined characteristic dependent on an evaluation of the similarity. For comparing a similarity between the segments of the information related to the fine structure, a low amount of computational effort may be used. Further, a precise and secure determination of similar segments indicating that a spectral enhancement processing may have been performed, may be obtained.
According to a further embodiment of the first aspect, a method for determining a predetermined characteristic related to a spectral enhancement processing of an audio signal comprises obtaining a spectrum of the audio signal and deriving information related to a fine structure of the spectrum. The method comprises determining a similarity in the fine structure such as between segments of the information related to the fine structure and comprises providing an information indicating that the audio signal comprises the predetermined characteristic dependent on an evaluation of the similarity.
According to a further embodiment of the first aspect, a non-transitory storage medium has stored there on a computer program having a program code for performing, when running on a computer, such a method.
According to a second aspect, the inventors have found out that by evaluating a spectrum of an audio signal with respect to a slope of the spectrum, a secure and efficient characterization of the audio signal so as to comprise a characteristic related to an artificial bandwidth limitation processing may be obtained so as to enable a respective post-processing, for example to reduce or eliminate a birdies artifact and/or a bandwidth limitation artifact. Based on the evaluation of the signal, a side-information indicating the implemented audio processing may be not required such that a blind operation of the module is possible.
According to an embodiment of the second aspect, an apparatus for determining a predetermined characteristic related to an artificial bandwidth limitation processing of an audio signal comprises a slope evaluator configured for evaluating a slope of a spectrum of the audio signal to obtain a slope evaluation result. The apparatus further comprises a processor for providing an information indicating that the audio signal comprises the predetermined characteristic dependent on an evaluation of the slope evaluation result. By basing the evaluation if the audio signal comprises a characteristic related to an artificial bandwidth limitation processing on the slope of the spectrum, e.g., a falling edge of the spectrum, a precise detection of the artificial bandwidth limitation processing may be obtained whilst using a low computational effort.
According to another embodiment of the second aspect a method for determining a predetermined characteristic related to an artificial bandwidth limitation processing of an audio signal comprises evaluating a slope of a spectrum of the audio signal to obtain a slope evaluation result. The method comprises providing an information indicating that the audio signal comprises the predetermined characteristic dependent on an evaluation of the slope evaluation result.
According to an embodiment of the second aspect a non-transitory storage medium has a stored there on a computer program having a program code for performing, when running on a computer, such a method.
Both, the first and second aspect allow for discriminating between audio signals or frames thereof being subjected to a respective processing and audio signals or frames thereof which have been un-subjected so as to avoid post-processing of un-subjected frames.
According to a third aspect the inventors have found that by performing a bandwidth extension for different portions having different signal characteristics of an audio signal differently, enhancement of the different portions and/or characteristics may be performed independently from each other so as to obtain a combined signal with a high quality comprising enhanced first portions and enhances second portions. Processing the different signal characteristics differently may allow for adapting the processing based on the respective characteristics.
According to an embodiment of the third aspect, an apparatus for processing an audio signal comprises a separator for separating a first portion of a spectrum of the audio signal from a second portion of the spectrum of the audio signal. The first portion has a first signal characteristic and the second portion has a second signal characteristic. The apparatus comprises a first bandwidth extender for extending a bandwidth of the first portion using first parameters associated with the first signal characteristic, for obtaining a first extended portion. The apparatus comprises a second bandwidth extender for extending a bandwidth of the second portion using second parameters associated with the second signal characteristic, for obtaining a second extended portion. The apparatus further comprises a combiner configured for using the first extended portion and the second extended portion for obtaining an extended combined audio signal. This may allow for enhancing the different portions having different signal characteristics independent from each other so as to obtain a combined audio signal with a high quality.
According to another embodiment of the third aspect a method for processing an audio signal comprises separating a first portion of a spectrum of the audio signal from a second portion of the spectrum of the audio signal, the first portion having a first signal characteristic and the second portion having a second signal characteristic. The method comprises extending a bandwidth of the first portion using first parameters associated with the first signal characteristic, for obtaining a first extended portion. The method comprises extending a bandwidth of the second portion using a second parameter associated with the second signal characteristic, for obtaining a second extended portion. The method further comprises using the first extended portion and the second extended portion for obtaining an extended combined audio signal.
According to another embodiment of the third aspect a non-transitory storage medium has stored there on a computer program having a program code for performing, when running on a computer, such a method.
According to a fourth aspect, the inventors have found that by phase-shifting a portion of an audio signal with respect to a different portion of the audio signal, a perceived roughness may be reduced. In particular, a portion that might be generated or copied for extending the bandwidth may be phase-shifted when compared to an un-extended spectrum.
According to an embodiment of the fourth aspect an apparatus for processing an audio signal comprises an anti-roughness filter for phase-shifting at least a portion of the audio signal so as to obtain a phase-shifted signal. The apparatus comprises a high-pass filter configured for filtering the phase-shifted signals so as to obtain a first filtered signal. The apparatus comprises a low-pass filter configured for a filtering the audio signal so as to obtain a second filtered signal. The apparatus comprises a combiner configured for combining the first filtered signal and the second filtered signal so as to obtain an enhanced audio signal. The apparatus allows for phase-shifting portions left by the high-pass filter when compared to portions left by the low-pass filter such that the first filtered signal may comprise phase-shifted portions when compared to the audio signal, the second filtered signal respectively. This may allow for obtaining a low roughness in the combined signal.
According to another embodiment of the fourth aspect a method for processing an audio signal comprises phase-shifting at least a portion of the audio signal so as to obtain a phase-shifted signal. The method comprises filtering the phase-shifted signals using a high-pass filter so as to obtain a first filtered signal. The method further comprises filtering the audio signal using a low-pass filter so as to obtain a second filtered signal. The method further comprises combining the first filtered signal and the second filtered signal so as to obtain an enhanced audio signal.
According to another embodiment of the fourth aspect a non-transitory storage medium has stored there on a computer program having a program code for performing, when running on a computer, such a method.
Embodiments of the present invention will be detailed subsequently referring to the accompanying drawings, in which:
Equal or equivalent elements or elements with equal or equivalent functionality are denoted in the following description by equal or equivalent reference numerals even if occurring in different figures.
It should also be noted that the embodiments described herein relate to digital signal processing. Therefore, all signals are band-limited to frequencies below half the sampling frequency due to the sampling. The (artificial) bandwidth limitation discussed herein refers to additional bandwidth limitation such that the bandwidth of the signal is smaller than the digital representation would allow.
The first aspect and the second aspect relate to identifying signal characteristics within an audio signal that indicate that the respective audio signal was subjected to a specific processing. By identifying the respective characteristic and parameters related thereto, appropriate actions and processing may be performed or executed so as to reduce or eliminate artifacts that might occur responsive to the processing. Therefore, reducing artifacts being possibly inserted into the processed audio signal may be understood as being related to the first aspect, the second aspect respectively.
The third and fourth aspects refer to post-processing audio signals. For post-processing audio signals so as to enhance an audio quality, information in connection with the previously performed processing of the audio signal may be used, for example, information as derived according to the first and second aspect and/or may be used in connection with different audio signals.
Therefore, in the following, reference will be made first to the first and second aspect before referring to the third and fourth aspect. The scope of the first aspect is the improvement of the sound quality of audio signals, in particular of audio signals that have been coded using a lossy compression or other signal processing. Spectral Band Replication (SBR) is a method for parametric audio coding for synthesizing high-frequency content of replicating parts of the audio signal spectrum from lower frequencies, typically guided by side information that is transmitted in the bitstream. The knowledge about the presence of SBR and the starting frequency at which SBR is in effect (or synonymic the cut-off frequency at which the signal has been bandlimited prior to SBR) is used for enhancing or improving the sound quality of audio signals. Embodiments according to the first aspect provide an analysis concept for retrieving this information from an audio signal after it has been decoded without using the information in the bitstream. The described concept is able to detect SBR and other processings that copy parts of the spectrum at lower sub-band and paste them to higher frequencies. Another example except SBR for such a method is, based on the specific configuration, Intelligent Gap Filling (IGF).
When compared to the method disclosed in U.S. Pat. No. 9,117,440 B2, the embodiments according to the first aspect improve the robustness of the analysis with respect to modifications of the spectral envelope by analyzing and probably exclusively analyzing the fine structure of the spectrum. In addition, it has less computational load, since the relationship is computed using summation of binary numbers instead of multiplication.
For deriving the local maximum signal from the spectrum, the deriver 14 may either derive or compute or determine the spectrum from the audio signal 12. Alternatively, the deriver 14 may receive a signal containing information indicating the spectrum or the spectrum itself. Thus, the illustrated signal 12 may be a signal in the time domain or in the frequency domain. The spectrum being derived by the deriver 14 or received by the deriver 14 may be, for example, a magnitude spectrum or a power spectrum. For deriving or computing such a spectrum, a short-term Fourier transform (STFT) or other suitable transforms may be used. By using the STFT, the audio signal 12 may be divided or separated in a number of suitable blocks and each block may be subjected to the STFT. This may allow to obtain a plurality of spectra of the audio signal, e.g., one spectrum for each block.
For example, sub-band signals may be computed using a filterbank. SBR is a processing where parts of the spectrum are replicated. The same is true for the harmonic transportation. In IGF some parts of the spectrum, for example, comprising a high-frequency range, are attenuated or set to 0 and afterwards refilled. When referring to SBR, the spectral envelope may be modified whereas the fine structure of the spectrum may be maintained. Therefore, embodiments according to the first aspect propose a concept that is robust to modifications of the spectral envelope. For this purpose, the deriver 14 is configured to derive a local maximum signal from the spectrum. The local maximum signal may be defined as a vector of a specific length, e.g., according to the frequency bins in the spectrum, whose elements are set to 1 at indices where the spectrum has a local maximum and set to 0 otherwise. It is to be mentioned that other rules may be applied. For example, additionally to the local maxima, local minima may be set to a specific value, e.g., 1. Alternatively or in addition, a different value, e.g., 0 or a value different from 1 may be used so as to indicate the local maxima and/or minima. This processing may be similar to a whitening or flattering operation that maintains the fine structure and removes all other information. The local maximum signal may allow for enhancing identification of similarities as the comparison may be implemented so as to focus on the structure of the compared segments.
The apparatus 10 may comprise a determiner 24 configured for determining a similarity C(τ) between segments of the local maximum signal. For the detection of the spectral enhancement processing, the similarity between a first segment of the vector Z(k), k=k0 . . . k1 and a second segment of the vector Z(k+τ) may be determined or computed by the deriver 24 as a function of the lag or shift τ. For example, the similarity C(τ) may be computed as the sum of the absolute values of the difference of the two vectors, i.e. the segments of the local maxima signal.
The segments to be compared may have the same length. The length depends on the frequency resolution at which the spectrum and the local maxima signal has been computed. The frequency resolution depends on the number of spectral coefficients that are computed. The number of coefficients for the spectrum and the local maxima signal are at least 16 or 16384 at maximum, but typically values between 256 and 4096 are chosen. The exact value may be selected depending on the sampling rate of the signal. The first segment may comprise elements of the local maxima signal vector that correspond, for example, to frequencies in the range between 2000 and 15000 Hz.
The parameter r may vary from 1 to a maximum possible value in the signal, for example, representing the maximum frequency or a maximum search frequency, e.g., related to a cut-of frequency in the audio signal 12. This may be represented as a determination rule
By determining the similarity value C(τ) for a plurality of values of the parameter τ, the graph illustrated in
The determiner may be configured for selecting at least one local maximum and/or local minimum from the similarity values and/or may select the values derived thereof for determining the similarity. In particular, the variations at the regions 261, 262 and 263 indicate a high similarity between the segments used at the shift indicated by the parameter τ1, τ2, τ3 respectively.
Referring again to
y(k)=h(1)x_{k−1}+h(2)x_{k}+h(3)x_{k+1}
The largest three local maxima at the parameter values τ1, τ2, and τ3 are caused from the spectral enhancement processing, for example, the spectral band replication. For example, SBR processing may be detected, when a small number of local maxima with large magnitude appear in the function. A small number may refer to a number of at most 15, at the most 10 or at the most 5 maxima. According to an embodiment, at most 13 local maxima are to be investigated to detect SBR according to common state-of-the-art configurations of SBR.
The large magnitude may refer to a value being at least 3 dB when compared to the regular signal, at least 5 dB or at least 6 dB. When referring again to
I.e., the processor 32 may be configured for evaluating a number of local maxima 26 of similarity values or values derived thereof and for evaluating an amplitude of the local maxima 26. The processor 32 may be configured for providing the information 34 indicating that the audio signal 12 comprises the predetermined characteristic when the number of maxima 26 that comprises at least an amplitude threshold value 27 is below a number threshold value, i.e., a number of local maxima exceeding the amplitude threshold 27 value is low enough.
In other words,
Detecting the local maxima at the parameter values τ1, τ2, and τ3 may be a sufficient indicator for the presence of the spectral enhancement processing. However, it may be of advantage to further estimate the start frequency of the spectral enhancement processing, for example, the SBR. The result of the similarity function or the local maximal may describe the shift at which a portion of the spectrum has been copied and pasted to. For completeness, the information about the start and stop frequency of the source sub-band spectrum or the destination sub-band spectrum may be of interest.
L(k,τ)=|Z(k)−Z(k+τ)| (2)
The value L(k,τ) of the local similarity matrix may then be processed by recursive averaging over time. This may be performed according to the determination rule.
L(k,τ)=bL(k,τ)+(1−b)B(k,τ), (3)
where B(k,τ) denotes a buffer that stores the output of the recursive averaging from the preceding time step (frame) of the audio signal and 0<b<1 is a time constant that controls the temporal averaging. Thus, the frequency estimator 36 may be configured for subjecting the element similarity of a plurality of elements for the first and second segments to a recursive averaging over time so as to obtain an averaged element similarity and for determining the start frequency and/or the end frequency using the averaged element similarity. The temporal averaging may optionally be only applied when the current frame is not silent, i.e., its energy is larger than a threshold 27 characterizing a silent frame from a non-silent frame.
A frame may be determined as being silent if its energy is smaller than a threshold, where the exact value of the threshold may be set dependent on the length of the frame and the range in which the sample values are represented. In general such threshold may be selected such that it equals the energy of a pink noise signal that is scaled to be just audible when played back with a typical sound reproduction equipment (a mobile phone or a TV set) at an average to high volume setting.
I.e., the frequency estimator may be configured for subjecting the element similarity of a plurality of elements of the first and second segments to a recursive averaging over time so as to obtain an averaged element similarity and for determining the start frequency and/or the end frequency using the averaged similarity. Each sample of the spectrum may be associated with a frame. The frequency estimator may be configured to exclude frames from the recursive averaging over time having a spectral energy below an energy threshold level 27, the energy threshold level 27 being related to a considering if the frame or spectrum is silent or not. Thereby, inconsistent results may be avoided by excluding frames being considered to be silent as those frames may also be considered to be un-subjected to audio processing.
As described in connection with
The global similarity as described in connection with
According to an example, for estimating the start frequency, the LSA matrix L is analyzed to identify the start position and end position of each horizontal line. The start position ks may correspond to the start of the spectrum that has been replicated. The end position ke may correspond to the end of the spectrum that has been replicated. The largest end position of the original spectrum that has been used for replication is the estimated value for the start frequency at which the SBR is effective. This may be, for example, ke3 in
First, the global similarity may be computed as
Where v1 and v2 are parameters that determine a range of values L(k,τ) and may be selected, for example, so as to define the range of L(k,τ) having a value within a range of at least 500 Hz and at most 15 kHz.
Then, local maxima mi, i.e., 26 in C(τ) are detected that are larger than a threshold, see, for example,
The start index ks and the end index ke may be computed by first smoothing the respective lines Ri so as to obtain, for example, the graph 42b, e.g., by computing a temporal or moving average of a few adjacent values, for example, at least 3, at least 5 or at least 10. Then, the positions at which the smoothed line has the steepest increasing and decreasing slopes are detected. Alternatively or in addition, the slope exceeding a threshold value such as, for example, 0.2 may be a criteria for evaluating the respective line. I.e., the frequency estimator 36 may be configured for subjecting the element similarity of a plurality of elements of the first and second segments to a recursive averaging over time so as to obtain an averaged element similarity 42b and for determining the start frequency and/or the end frequency using the average element similarity 42b. Alternatively or in addition, the apparatus may be configured for performing a temporal averaging of the spectrum, of the local maximum signal or a signal derived thereof, wherein the processor may be configured for providing the information indicating that the audio signal comprises the predetermined characteristic based on a temporal average information of the spectrum, the local maximum signal or a signal derived thereof.
Referring again to
The frequency estimator 36 described in connection with
Although having been described as evaluating rows, it is clear that the local similarity matrix L may comprise a different structure, e.g., having switched rows to columns and vice versa or the like. The frequency estimator may thus be configured for determining the local similarity matrix L as the local similarity description and for determining the start frequency ks and/or the end ke frequency of the spectral enhancement processing using a steepness between values (e.g., adjacent values within a row or column) in rows or columns and/or using an evaluation of values in the rows or columns at least reaching or even exceeding the threshold value 27.
The determiner 14 may comprise a filter 46 configured for filtering the similarity values so as to obtain filtered similarity values as described in connection with
The apparatus 70 may comprise a signal enhancer 48 configured for receiving the audio signal 12 and receiving the information that the spectral enhancement processing has been performed, for example, by receiving the information 34. The signal enhancer is configured for reducing artifacts caused by the spectral enhancement processing of the audio signal using the information 34, i.e., dependent on the information indicating that the audio signal comprises the predetermined characteristic and optionally comprising further details such as the start frequency and/or the stop frequency of a replication process.
In the following, reference will be made to the second aspect. According to the second aspect, it is in the scope to improve the sound quality of audio signals, in particular of audio signals that have been coded using lossy compression. The described concept is related to the bandwidth of audio signal which is in digital signal processing applications limited. The concept proposes a signal analysis concept detecting the presences of (artificial) bandwidth reduction (BR) and for estimating the cut-off frequency at which BL has been in operation. The obtained results are used to control subsequent processing for restoring the bandwidth by means of bandwidth extension (BWE) and also for controlling the improvement of the sound quality by other means such as filtering.
For the enhancement of the sound quality it of crucial importance to discriminate between a signal having originally a low bandwidth (e.g., a low note played on the basin) and a signal that has been band limited by means of a signal processing, e.g., due to lossy encoding or down sampling. Such discrimination is not possible by analyzing the signal “to find the highest frequency present in the signal”, i.e., by determining the frequency above which only negligible energy is present as described in [1]. In contrast, the second aspect proposes to evaluate additional information as described in the following.
The aim of the proposed artificial bandwidth limitation analysis (ABLA) is two-fold:
The apparatus 90 may optionally further comprise a frequency evaluator 58 configured for evaluating a cut-off frequency fc of the spectrum 12′ of the audio signal to obtain a frequency evaluation result 62 comprising information indicating the cut-off frequency fc.
The apparatus 90 comprises a processor 64 for providing an information indicating that the audio signal comprises the predetermined characteristic related to the artificial bandwidth limitation processing. The processor is configured for using the slope evaluation result for providing the information indicating that the audio signal comprises the predetermined characteristic, i.e., the processor may provide the information dependent on the slope evaluation result. For example, this may allow for a decision whether the audio signal uses post-processing, e.g., in terms of a yes/no information or a binary decision. This may allow for excluding such frames from post-processing that are evaluated as not comprising the respective characteristic. Those frames may be identified as being unsubjected to artificial bandwidth limitation and therefore, post-processing has to be avoided. As an option, the apparatus may comprise the frequency evaluator 58 for determining the cut-off frequency. This may allow for identifying further information being used for post-processing, e.g., of subjected frames. Thus, optionally, the processor may be configured for providing the information indicating that the audio signal comprises the predetermined characteristic dependent on an evaluation of the slope evaluation result 56 and the frequency evaluation result 62. By evaluating the slope evaluation result 56 and the frequency evaluation result 62 for the spectrum 12′ and/or for further frames of the audio signal resulting in further spectra 12′, the processor 64 may derive information if the audio signal from which the spectrum 12′ is derived was subjected to the artificial bandwidth limitation. For example, the slope evaluator 52 may be configured for evaluating the slope for an attenuation within the spectrum. The spectrum may be quantified or evaluated with respect to a steepness of the slope, i.e., as indicated by a role-off factor.
By way of example, the slope evaluator 52 may be configured for evaluating an attenuation within the spectrum 12′ and for providing the slope evaluation result 56 so as to indicate a measure for the attenuation. The processor 64 may be configured providing the information 66 indicating that the audio signal comprises the predetermined characteristic if the measure for the attenuation is at least a steepness threshold value. Optionally, the apparatus may comprise a resampling evaluator, for example, being a part of the processor 64 or being implemented separately. The resampling evaluator may be configured for evaluating the audio signal for a predetermined characteristic related to an up sampling. Up sampling may be implemented by using a sampling frequency, for example, a common sampling rate may be 11,025 Hz, 22,050 Hz and/or 32,000 Hz. The apparatus 90 and/or 120 may be configured to adapt frequency ranges of the slope evaluator 52 and/or of the frequency evaluator 58 based on the sampling frequency in a case where resampling is detected. By using resampling, the frequency range of the spectrum may be adapted or increased, wherein a low sampling rate may correspond to a low frequency range and a high sampling rate may allow the spectrum to contain high frequency ranges according to the Nyquist criterion. The resampling evaluator may be configured for observing or evaluating a specific set of expected sampling rates and may evaluate, if at this frequency there is a significant decrease in the spectrum and if there is no more significant energy above. In such a case, where a steep edge in the slope as described before and an absence of significant energy above an energy threshold value is present, the energy evaluator may consider the audio signal as being resampled using the respective resampling frequency or sampling rate. The resampling evaluator may be configured for obtaining a negative evaluation result when at the determined or evaluated frequency corresponding to the sampling rate the determination rule
X(k)>threshold
applies, meaning that a value of the spectrum at the frequency k is larger than a threshold indicating that at the point k there is significant energy within the spectrum. Further the determination rule
X(k)<X(k+1)−offset parameter
may apply, indicating that with increasing frequency k+1 the spectrum, the energy thereof respectively, increases. This consideration may be normalized by subtracting the offset parameter, for example, 0.1, 0.2, 0.3, 0.5 or 1 dB or a different value, i.e., the spectrum has to increase more than the offset parameter for fulfilling the determination rule. This allows excluding effects caused by noise or the like. Thus, the magnitude does increase towards higher frequencies at frequency point k above a bandwidth limitation more than 0.5 dB. The threshold may be, for example, −30 dB, −40 dB,−50 dB, or −60 dB as explained above. This means, that for a negative decision there is either no steep attenuation or beyond the respective frequency value there is an increased magnitude.
A positive evaluation result indicating that the audio signal was subjected to an up sampling limiting the bandwidth at frequency index k may be determined, for example, when the spectral difference function s(k) or a different suitable function as described above delivers a value exceeding or being at least a threshold value. Thus, the determination rule may apply that
S(k)>threshold
the spectral difference function may indicate a steep and strong attenuation and may therefore indicate a resampling. Therefore, when the maximum 72 in
Further, the attenuation may be evaluated with respect to an amount, i.e., a half of the falling edge within the spectrum. For example, the slope evaluator 52 may evaluate the slope 54 with respect to a decrease within a specific frequency range of, for example, 100 Hz, 1 kHz or 2 kHz and/or for a total amount of the decrease within the falling edge.
The processor 64 may be configured for deciding, if the spectrum 12′ was subjected to the artificial bandwidth limitation and may further be configured for deciding at which cut-off frequency fc said limitation was applied. Thus, the information 66 may comprise the variable D or a similar information and may further comprise information indicating the cut-off frequency, at least, when the processor 64 determines the spectrum 12′ as being applied to the artificial bandwidth limitation processing.
The processor 64 may be configured for providing the information indicating that the audio signal comprises the predetermined characteristic if the measure for the steepness is at least a steepness threshold value. The measure for the steepness may increase for rising values of the term ΔX1/Δf and/or may increase for decreasing values of the term Δf/ΔX1. For example, the steepness threshold value may comprise a value of being equal or proportional to at least 25 dB/1 kHz, 30 dB/1 kHz, 40 dB/1 kHz or 50 dB/1 kHz or higher.
The slope evaluator 52 may be configured for determining a spectral difference function of the spectrum 12′, for example, using a window function which only selects a part of the spectrum 12′ for an evaluation. The window function may combine a plurality of frequency values of the spectrum 12′, the slope 54 respectively and may allow the slope evaluator 52 to determine the measure for the attenuation using results of the window function. This may also be referred to as a window filtering. By combining, e.g., subtracting, values of different windows, a measure for the steepness may be obtained. Alternatively, any other suitable process may be used to evaluate the steepness of the slope 54. Alternatively or in addition, the frequency evaluator may be configured for evaluating an attenuation between a first energy level of a first frequency band of the spectrum 12′ and second energy level of a second energy band of the spectrum.
The first and second energy band may be, for example, a so-called low frequency band and a so-called high frequency band. The hand-frequency band may be the frequency band which is expected to be silent after being low-pass filtered, for example, frequencies above 3 KHz. The low-frequency region may refer to a frequency region having frequencies below such a frequency range. Thus, the first energy band may comprise a first frequency range f1 being low when compared to a second frequency range f2 of the second frequency band. The slope evaluator 52 may be configured for providing the slope evaluation result 56 so as to indicate a measure for the attenuation ΔX2. The processor 64 may be configured for providing the information 66 if the measure for the attenuation is at least an attenuation threshold value. The attenuation threshold value may be, for example, at least 30 dB, at least 40 dB, at least 50 dB or at least 60 dB or even higher.
In other words, the attenuation may be considered as being high such that only negligible energy remains after the filtering in the high frequency band. E.g., the magnitude in the upper frequency region f2 is below −60 dB (attenuation threshold value) smaller than the average magnitude in the pass band, i.e., the frequency region f1. A combination of the evaluation of the steepness of the spectrum and the evaluation of the amount of the attenuation may allow for determining that the current frame of the spectrum 12′ was subjected to the artificial bandwidth limitation. Thus, if at least one or advantageously both evaluations give a hint for such a processing, the variable D may be set to 1. If at least one or advantageously both of the evaluation criteria are evaluated negatively, the variable D may be set to 0, i.e., it may be determined that no artificial bandwidth limitation has been applied.
In other words, the steepness of the attenuation may be quantified by comparing the spectral magnitudes in a lower sub-band f1 and the spectral magnitudes in a higher sub-band f2 around a frequency index k and repeating this for all frequency indices in the range of interest. An example is the spectral difference function S(k) that may be formed according to:
S(k)=max X1−max X2
The spectral difference function S(k) may quantify the attenuation as the difference of the maximum magnitude of the lower and the maximum magnitude of the higher sub-band. The parameter k may refer to a frequency index. X(k) may denote a magnitude spectrum. The operation max may return the maximum value of a vector, wherein X1=(xk−a, . . . xk−b) may denote a segment of the spectrum below frequency index k and x2=(Xk+b, . . . , Xk+a) may refer to a segment of the spectrum above the frequency index k, wherein a>b. A length of the vector, i.e., a number of samples to be used in the vectors X1 and/or X2 may be, for example, 3, 5, 8, or 10 or even more. In one non-limiting embodiment, a first segment of length 7 and a second segment of length 7 is used in connection with a gap of 5 values between both segments. Accordingly, the maximum of elements 1, 2, 3, 4, 5, 6, 7 is determined and compared to the maximum of element 13, 14, 15, 16, 17, 18, 19.
Alternatively, other functions may be used, for example, S2(k)=min X1−max X2 or a difference determined from means values of X1 and X2.
The frequency evaluator 58 may be configured for determining a measure for energy in a frequency band of the audio signal and for determining the cut-off frequency ft based on the energy. For example, the frequency evaluator may evaluate energy in frequency bands with decreasing frequency values, i.e., within decreasing frequency ranges. When referring to
The decrease of the slope 54, and therefore the attenuation may range along the large number of samples such that the difference using a maximum value of the respective vector may provide for a sufficient accuracy. Alternatively, the spectral difference function may be determined for single frequency values, i.e., the vectors X1 and X2 may have a length of 1.
For enhancement of the sound quality it is of crucial importance to discriminate between a signal having originally a low bandwidth, (e.g., a low note played on the basin) and a signal that has been bandlimited by means of a signal processing, e.g., due to lossy encoding or down sampling. This is important to prevent a signal having high sound quality from any post-processing and to apply an enhancement processing only when needed, i.e., to apply subsequent bandwidth extension (BWE) only for restoring high frequency energy that has been artificially removed from the signal and not to process signals having a low bandwidth by nature. For such a purpose, the signal may be analyzed with respect to three characteristics given by the steepness of the attenuation, the amount of attenuation and the cut-off frequency. This may be performed by the following processing steps executed, for example, by an apparatus according to the second aspect.
The processor 64 may be configured for providing the information 66 indicating that the audio signal comprises the predetermined characteristic for each of the spectrums 121′ to 123′. A number of blocks into which the audio signal is divided may be arbitrary. For example, a length of each block in time may be constant such that the number of blocks may be dependent on the length of the audio signal.
The apparatus 120 may comprise a filter 74 connected with the frequency evaluator 58 and configured for receiving the frequency evaluation result 62. The filter 74 may be configured for providing a filtered frequency evaluation result 62′. The processor may be configured for providing the information 66 indicating that the audio signal comprises the predetermined characteristic based on a plurality of slope evaluation results 56 for each of the spectrums 121′ to 123′ and/or a filtered version thereof and the filtered frequency evaluation result 62′ associated with a plurality of spectrums 121′ to 123′ of the audio signal. The cut-off frequency used for encoding an audio signal may be essentially time-invariant, time-invariant or may be a parameter that varies rarely or infrequently over time such that a low-pass filtering, a moving maximum, a moving average or a moving median filtering implemented by the filter 74 may allow for obtaining the filtered values 62′ remaining unchanged or constant or at least changing at low rates for further processing, for example, when the frequency evaluator 58 determines slightly different cut-off frequencies fc between the different spectrums 121′ to 123′. I.e., a post-processing of the obtained values fc may be performed by low-pass filtering or alternatively a different filtering.
In a similar way, artificial bandwidth limitation is usually performed for a complete audio signal or at least a large portion thereof such that it is unlikely that a change of the characteristic related to the artificial bandwidth limitation processing is present in one frame and not present or absent in a subsequent frame will occur. Therefore, the processor 64 may perform a post-processing of the variable D or a corresponding result or value, for example, using a median filtering or the like for a plurality of frames, i.e., for a plurality of spectrums 121′ to 123′. The processor may be configured for providing the information 66 indicating that the audio signal comprises the predetermined characteristic by providing a respective information for each of the plurality of frames of the audio signal and for providing a combined or filtered result 66′ by combining the results of the frames such that the combined result 66′ is valid for the plurality of frames being subjected to the filter and influencing an output of the filter. For example, when using a median filtering, a number of frames and/or spectra 121′ to 123′ is considered within the respective filter, for example, a filter 76 connected to the processor 64 or being a part of the processor 64 or being implemented by the processor 64. The output 66′ of the filter 76 may be combined median-filtered value derived from the considered frames. Although being illustrated as a separate block, the filter 76 may be implemented or may be a part of another computing block.
Alternatively or in addition, the apparatus 120 may comprise a determiner 78 configured for determining an energy E of a frequency band of the spectrums 121′ to 123′ and for providing a signal 82 indicating a presence and/or an amount of the energy E within the respective frequency band. The signal 82 or a signal derived thereof may be provided to the processor 64 such that the processor 64 may have knowledge about the determined energy. It may be of interest, if in a so-called high frequency region fh energy is present or not. For example, a high-frequency region fh may be a frequency region having a frequency values being at least or above 1 kHz, 2 kHz, 3 kHz, 4 kHz or a different value, i.e., different bandwidth limiting frequencies. For example, encoders may drop or discard frequencies above a certain frequency value. The frequency value may be in accordance with a specific application such as 3 kHz or 4 kHz for speech-related applications.
The determiner 78 may determine, if the spectra 121′ to 123′ comprise energy or comprise energy above a certain threshold in the high-frequency region fh. In a case where the determiner 78 determines that the respective spectrum 121′ to 123′ comprises no energy E or a low amount thereof in the high-frequency region fh, a reliable determination of the cut-off frequency and/or the attenuation may be difficult or even impossible, for example, because the respective frame does not provide for a suitable slope. When taking into account, by non-limiting example only, a silent spectrum having no energy in the complete spectrum, neither a cut-off frequency nor an attenuation of the slope 54 may be determined. Such information may be provided by the signal 82. The processor may skip evaluating the actual frame or spectrum 121′ to 123′ and may be configured for providing the information 66 based on a previous spectrum observed or evaluated previously, if the energy E is below an energy threshold level which is considered to discriminate between relevant energy present or absent. Put into different terms, the processor may base its decision on a previous frame in a case where the actual spectrum is unable to provide sufficient information.
The apparatus 90 and/or the apparatus 120 may further comprise a signal enhancer, for example, the signal enhancer 48 being described in connection with the first aspect. The signal enhancer 48 may be configured for reducing artifacts caused by artificial bandwidth limitation processing of the audio signal dependent on the information 66 indicating that the audio signal comprises the predetermined characteristic. I.e., the signal enhancer may be adapted to artifacts being caused by the artificial bandwidth limitation.
In the following, reference will be made to an apparatus configured for suppressing or at least reducing the Birdies coding artifact and for improving the perceived sound quality in accordance with the second aspect. The respective apparatus or method may be used in a case when information has been derived that the audio signal comprises a characteristic related to an artificial bandwidth limitation and/or to a spectral enhancement processing such as a spectral band replication. For example, the apparatus may be used in a case when at least one of artificial bandwidth limitation or spectral band replication has been detected.
Thus, when at least one of the artificial bandwidth limitation and the spectral enhancement processing is detected, the concept according to which the artificial bandwidth limitation is detected may be reused or may be used so as to detect steep and highly attenuated regions in the spectrum, which may be referred to as spectral gaps. A spectral gap may comprise a first and a second edge. Accordingly, a spectral island may also comprise a first and a second edge, wherein between the respective edges the gap or the island may be arranged.
When referring now to
In contrast to the cut-off frequency fc, a location, a presence and a magnitude of the gap 202 and the island 204 as well as a number thereof may vary between frames of the audio signal. Simplified, the filling of the gap 202 and/or the attenuation of the island 204 may be performed after using a concept to find the edges 2061 to 2064, as was described in connection with the cut-off frequency fc with the exception that the respective frequencies are variable. I.e., an apparatus or signal enhancer may be configured for filling a spectral gap and/or for attenuating a spectral island. Therefore, spectral weights may be used which may be determined from the audio signal itself, i.e., a side information may remain unrequired. By suppressing the Birdies coding artifact the perceived sound quality may be enhanced. The concept introduced may be used as a post-processing concept which is located after the decoder. It can work blindly without having access to the uncompressed audio signal and to other side information.
The concept which is described in the following so as to reduce the Birdies artifact may use a basic principle called spectral weighting or short-term spectral attenuation. Therefore, a time domain signal X[n] may be transformed into its frequency domain representation X[k,m], where k and m denote the frequency in timeframe index, respectively. In the embodiments described, the short-time Fourier transform (STFT) may be applied, but also other transforms may be used. The output signal Y of the spectral weighting may be given in the following equation:
Y[k,m]=G[k,m]·X[k,m].
The time domain representation Y[n] of the frequency domain signal Y[n] may be computed by means of an inverse transform, in embodiments the inverse STFT. In the following, time domain signals will be denoted with small letters and frequency domain signals with capital letters. Indexes k and m or frequency domain signals will be omitted for better readability.
The apparatus 125 comprises a processor 208 configured for determining a spectral weight G and/or Wand for processing the audio signal 91 at least in a spectral region between the respective edges 2061 and 2062, 2063 and 2064 respectively, using the spectral weights G and/or W. The apparatus 125 may be configured for determining the spectral weights G and/or W for each of the frequency regions, frequency bins and/or frames of the audio signal 91. Spectral weights G may be used for forming or shaping a filling signal S to be combined with the audio signal so as to fill spectral gaps. Spectral weights W may be used so as to attenuate spectral islands. I.e., for reducing an artifact within the spectral gap 202, a fill signal F may be used. For reducing artifacts caused by the spectral island 204, spectral weights W may be used for attenuating a height of the island. For a plurality of frequency values within the respective spectral gap 202 and the respective spectral island 204, a plurality of spectral weights may be determined.
X′=20 log10(X).
The obtained logarithmic magnitude spectrum X′ may be smoothed by two low-pass filters in parallel, wherein a first low-pass filter 216a may be configured for smoothing the spectrum of the audio signal, i.e., the audio signal, in the frequency domain so as to obtain a signal Y′ being smoothed in the frequency domain. A second low-pass filter 216b may be configured for smoothing the magnitude spectrum X′ in the time domain so as to obtain a smooth signal Z′. Although being described as being smoothed in the logarithmic domain, the smoothing may also be performed in the linear domain or a different domain. I.e., the logarithm 214 may also be absent or may be arranged after the low-pass filters. I.e., the logarithmic magnitude spectrum X′ may be smoothed by two low-pass filters, both over frequency and over time which may lead to the signals Y′ and Z′, respectively. For the calculation of the special weights G, the linear values may be calculated by
Those linear values may be compared with the magnitude spectrum X so as to obtain a frequency difference value and/or a time difference value. The relative differences Δt and Δf comparing the spectral magnitudes X to their smoothed versions over time Z′ and frequency Y may be calculated in the logarithmic domain, for example, for each spectral coefficient and for each frame by
Δf=Y′−20 log10(X)
and
Δt=Z′−20 log10(X)
wherein Δf refers to the frequency difference value and Δt refers to the time difference value.
The spectral weight calculator 218 may be configured for calculating the spectral weight G according to
i.e., the spectral weight G is set to a non-zero value if the frequency difference value Δf is greater than or equal to a frequency difference threshold Δf and if the time difference value Δt is greater than or equal to a time difference threshold value Δt. Although being described as entailing that the time difference values Δf and Δt are greater than their respective threshold values Δf, Δt respectively, based on other threshold values or threshold values being chosen differently, the gain parameter may also be Γ when being equal to the threshold values. The following determination rule may apply:
where Δf and Δt denote threshold parameters. α, β and γ are parameters which influence the characteristics of the spectral weight calculation. All parameters are tunable parameters. κ is a term which is used to increase the impact of the weighting and may be calculated according to the determination rule or based thereon:
The calculated spectral gains are smoothed over time and frequency, for example, using a low-pass filter 222a, 222b respectively. The spectral gains are subsequently used for a spectral weighting of a fill source signal S as being described in connection with
In known concepts, for example noise substitution from the Perceptual Noise Substitution (PNS) tool of the Advanced Audio Coding (AAC) are used. Noise like portions of the spectrum are substituted in the decoder by a pseudo random sequence of values scaled to match a given target energy. The process is controlled by side information. Further, a technique named noise-filling is known. Noise-filling is used in the Unified Speech and Audio Coding (USAC) codec to fill spectral holes caused by the dead-zone of the quantizer operating under constraints of a small bit budget. A pseudo-random sequence of values is used to fill these spectral zeroes. Further, a technique named Intelligent Gap Filling is known from MPEG-H and 3GPP EVS. Here, spectral gaps are filled with either noise or using spectral tiles sourced from a remote spectral location. The process is controlled by side information. The embodiments described herein differ from noise filling such that there is used a distribution of time frequency information from preceding time frames to fill spectral holes. In contrast to PNS, the filtered output signal is only filled into spectral gaps rather than entire PNS bands. In contrast to PNS and IGF (Intelligent Gap Filling) the embodiments may be used as processing non-guided, i.e., without using side information.
The apparatus 200 may comprise a spectral island weight calculator 228 which may also be implemented by the processor 208. Spectral islands contained in the signal Z being received from the combiner 226 and being obtained by adding input spectrum X and fill signal F according to
Z=X+F
may be suppressed by means of spectral weighting according to
Y=W·Z
As G, W are spectral weights which are recalculated for each frame m and spectral coefficient k. In order to preserve as much bandwidth as possible, the suppression of spectral islands is done after spectral gaps have been filled. Only isolated spectral islands which could not be attached to the main part of the spectrum are finally suppressed. To achieve a partial enhancement, the spectral island suppression may be performed without the spectral gap filling. Alternatively, the spectral gap filling may be performed without the spectral weight calculation.
For suppressing the spectral weight calculation and for calculating the spectral weight W, the following teaching may be implemented. Spectral islands may be defined as abrupt increase of spectral magnitude areas in frequency and time direction surrounded by very low spectral magnitude values. A rising of magnitudes may be, for example, at least 30 dB, at least 40 dB or at least 50 dB. Spectral islands may be suppressed by attenuating the corresponding spectral coefficients by means of spectral weighting. For deriving the spectral weights W, a similar processing as described in connection with
wherein
Δp is a threshold which reflects the assumption that spectral islands are surrounded by spectral coefficients of low energy. Δf and Δt are threshold parameters. As described above, α, β and γ are tunable parameters. In consideration of the determination rule above, at ranges of the spectral island, the spectral weight Ω is determined allowing to attenuate the signal Z, Y, respectively, i.e., Ω is a value being lower than 1. In a range outside the spectral island, W is a value of 1, i.e., no attenuation is performed. The apparatus 200 may comprise a combiner 232 so as to combine the spectral weights W with the signal Z, for example, using a multiplication. A signal transformer 234 may be used so as to perform ISTFT, i.e., to obtain a time domain signal.
In other words, the Birdies suppression concept may be split into spectral gap filling and spectral island suppression. The fill signal F may be calculated by filtering a broadband fill source signal S with spectral weights G. F only contains non-zero values, where spectral gaps have been identified in X that is determined according to
F=G·S
The method 1500 comprises a step 1600 in which a slope of a spectrum of the audio signal is evaluated to obtain a slope relation result. A step 1700 comprises evaluating at least a first and a second frequency edge at which the spectrum comprises an edge so as to obtain a frequency evaluation result. A step 1800 comprises determining a spectral weight and processing the audio signal in a spectral region between the first and second frequency edge, using the spectral weight.
The second application where ABLA, i.e., detection of the respective characteristic, may be used is the classification of an audio signal as a signal of low sound quality due to lossy compression. This classification can be based solely on the described analysis or by combining it with other information that can be extracted from the audio signal. Examples for additional information that can be used in this context is the width of the stereo signal or the presence of Spectral Band Replication (SBR), i.e., a method that is applied by lossy codecs. The ABLA is then used to activate other processing that improves the sound quality of signals with a lossy compression, being not restricted to BWE processing. Examples are filtering for enhancement of the stereo width and of transient signal components.
The results of the ABLA, namely the parameter D and the cut-off frequency fc, may be used for repairing such artifacts automatically without having a human operator involved. It may be of crucial importance to apply sound quality enhancement only to signals having degraded sound quality. Signals having high quality should not be processed in such a way because the sound quality can be negatively affected. Embodiments according to the second aspect allow to detect audio frames or audio signals being subjected to the artificial bandwidth limitation with a high precision. Audio signals have a natural bandwidth that is determined by the sound generating process. The bandwidth can change due to various technical processes, including bandwidth limitation that is applied for capturing, storing, processing and transmission of the signal. Bandwidth limitation is a low-pass filtering having the characteristics of a very steep attenuation, a very high attenuation and a cut-off frequency as described above.
In the following, reference will be made to the third and fourth aspect of the present invention referring to a concept for bandwidth extending a bandwidth limited signal in the third aspect, for example, responsive to having determined artificial bandwidth limitation according to the second aspect. Thus, embodiments according to the third aspect may be used as signal enhancer in connection with the second aspect.
The concept according to the third aspect aims to suppress several coding artifacts to improve the perceived sound quality. The technical steps may be implemented as post-processing and may be partially implemented using software that may be used by the decoder. The concept may work blindly without having access to the uncompressed audio signal and to other side information. The low bitrate coding enhancement processing according to the third aspect comprises or even essentially consists of a post-processor that introduces or enhances perceptual pleasantness related to concepts to unguided post-processing of audio material that has been precoded by heritage perceptual coders. Thereby, the precoded audio material can profit from modern concepts of perceptual pleasantness.
The embodiments which are described in connection with the third and fourth aspect may use a basic principle called spectral weighting or short-term spectral attenuation. Therefore, a time domain signal x[n] is transformed to its frequency domain representation X[k,m] where k and m donate the frequency and timeframe index, respectively. According to embodiments, a short-time Fourier transform (STFT) may be applied, but also other transforms may be used. The output signal Y of the spectral weighting may be given by the following equation
Y[k,m]=G[k,m]·X[k,m],
wherein the time domain representation y[n] of the frequency domain signal Y[k,m] may be computed by means of an inverse transform, for example, an inverse STFT, i.e., ISTFT. In the following sections, time domain signals may be denoted with small letters and frequency domain signals with capital letters. Indices k and m or frequency domain signals will be omitted for better readability. The spectral weighting will be explained in more detail in connection with an aspect being referred to as a spectral weighting in which details for the spectral weights G[k,m] are explained.
The apparatus 140 comprises a separator 92 for separating a first portion 91′a of a spectrum 91′ of an audio signal 91 from a second portion 91′b of the spectrum 91′ of the audio signal 91. The first portion 91′a has a first signal characteristic and the second portion 91′b has a second signal characteristic. The audio signal 91 may be received by the apparatus 91 in the time domain and/or in the frequency domain and may be, for example, bandwidth-limited using a cut-off frequency fc and may be subjected to post-processing. One main feature of the third aspect relating to the bandwidth extension is that the input signal may be split into different characteristics such as transient and sustained signal portions which are treated independently by applying different parameter settings for the modules in each part.
The first and the second signal characteristic may differ from each other by way of different perceptions and/or by different characteristics in the frequency range. Although the embodiments are not limited hereto, the first and the second signal characteristics may be complementary to each other, i.e., by removing, excluding or subtracting one signal characteristic from the common spectrum 91′, the remaining portion forms the other characteristic. By way of a non-limiting example, the first signal characteristic may be a middle frequency range of the spectrum and the second signal characteristic may be a side frequency range of the spectrum. Alternatively, the first signal characteristic may be a direct signal characteristic of the audio signal and the second signal characteristic may be an ambient signal characteristic of the audio signal. According to another embodiment, the first signal characteristic may be a tonal characteristic of the audio signal and the second signal characteristic may be a sustained signal characteristic of the audio signal which may be referred to as transient or the like. Alternatively, the first signal characteristic may be a speech characteristic of the audio signal and the second signal characteristic may be a non-speech characteristic of the audio signal. Other signal characteristics are also possible. Further, it is possible to form combinations thereof, i.e., to combine two or more of the above identified characteristics. The first and second portions 91′a and 91′b may comprise a comparable or same bandwidth, starting frequency and stop frequency and may form, when being combined with each other the spectrum 91′ again. I.e., the splitting or separation may be done by means of transient-sustained signal decomposition. Alternatively or in addition, other decomposition rules or methods are possible, such as mid-side signal decomposition, direct-ambient signal decomposition or foreground/background decomposition and/or speech-non-speech decomposition, etc.
The apparatus 140 may comprise a first bandwidth extender 941 for extending a bandwidth of the first portion 91′a using first parameters 961 associated with the first signal characteristic for obtaining a first extended portion 98a. The apparatus 140 further comprises a second bandwidth extender 942 for extending a bandwidth of the second portion 91′b using second parameters 962 associated with the second signal characteristic for obtaining a second extended portion 98b. Bandwidth extension may comprise forming additional parts or frequency portions in the spectrum to be combined with the original signal. This may include a copy and/or a generation of such further frequency regions by transposing, spectral stretching or generation of overtones through application of a non-linearity. By using a first and a second bandwidth extender, the different signal characteristics present in the different portions 91′a and 91′b may be considered differently by the respective bandwidth extender 941- and 942. For example, a bandwidth of a copied portion, a number of copies, an alternation of copies, a spectral shaping of a signal being obtained and/or frequency characteristics of spectral portions being artificially generated may vary between different signal characteristics which may be considered by using different sets of parameters 961 and 962 in connection with the different signal characteristics. This allows for a high adaptation of the bandwidth extension to the signal characteristic.
Although having described the apparatus 140 as comprising a first and a second bandwidth extender for considering a first and a second signal characteristic, an apparatus according to further embodiments may be configured for subjecting more than two, for example, three, four, five or even a higher number, to different bandwidths extensions. Such an apparatus may comprise corresponding numbers of bandwidth extenders but may also use one bandwidth extender for at least two bandwidths extensions, for example, when sequentially processing different signal characteristics. Accordingly, the apparatus 140 may be implemented by implementing one bandwidth extender 94 and for adapting the bandwidth extender with different parameters 961 and 962 sequentially while processing the different portions 91′a and 91′b sequentially.
The apparatus 140 comprises a combiner 102 configured for using the first and second extended portions 98a and 98b for obtaining an extended combined audio signal 104. The extended portions 98a and 98b may be received from the combiner 102 as a time domain representation such that the combined audio signal 104 may also be in the time domain. Alternatively, the extended portions 98a and 98b may be received by the combiner in the frequency domain such that the combined audio signal 104 may also be in the frequency domain so as to be converted to the time domain afterwards. Alternatively, the combiner 102 may be configured to transform each of the single portions 98a and 98b or a combined version thereof into the time domain and for providing the combined audio signal 104 in the time domain.
The apparatus 160 comprises the separator 92 being configured for receiving the frequency domain representation 91′ of the audio signal 91. For this purpose the apparatus 160 may comprise the spectrum calculator 44 for obtaining the frequency domain representation 91′ from the time domain representation.
The separator 92 may comprise a transient suppressor 108 configured for receiving the audio signal, for example, the frequency domain representation thereof, and for reducing transient portions in the audio signal 91 so as to obtain a first modified audio signal. The separator 92 may be configured for obtaining the first portion 98a based on the first modified audio signal. According to an embodiment, the first portion 98a corresponds to the first modified audio signal. According to another embodiment, a processing of the first modified portion is performed, for example, a filtering, amplification, attenuation or the like.
The separator 92 may comprise a subtractor 112 for subtracting the first modified audio signal, the first portion 91′a for example, from the audio signal 91 so as to obtain a second modified signal. According to an embodiment, the second modified signal is the second portion 91′b. As described for the first portion 91′a, the second portion 91′b may also be obtained based on a processing of the obtained subtraction result. Thus, by removing the first portion 91′a from the audio signal 91, the second portion 91′b may be obtained. By obtaining the first modified signal and by subtracting it from the audio signal so as to obtain the second modified signal, decomposition of the audio signal into the two portions may be performed.
The separator 92 may be configured to operate in the frequency domain or in the time domain and to process the audio signal 91 such that the transient suppressor 108 reduces or eliminates transient and/or tonal portions for each subband of a spectrum of the audio signal 91. This may lead to less or even no processing for subbands comprising little or non-transient or little or non-tonal (i.e. noisy) portions. The transient suppressor 108 may comprise a transient processing stage, a tonal processing stage and/or a combining stage so as to process one of the characteristics to be separated by suppressing them or by amplifying them. The frequency domain representation of the audio signal 91 may comprise a multitude of subbands (frequency bands), wherein the transient processing stage and/or the tonal processing stage are configured to process each of the frequency bands. Alternatively, the spectrum obtained by frequency conversion of the audio signal 91 may be reduced, i.e., cut, to exclude certain frequency ranges or frequency bands from further processing, such as frequency bands containing the selected characteristic or missing the selected characteristic. This may allow for a reduced computational effort and thus for faster and/or a more precise processing.
The transient processing stage may be configured to determine for each of the processed frequency bands, if the frequency band comprises transient portions. The tonal processing stage may be configured to determine for each of the frequency bands, if the audio signal 91 comprises tonal portions in the frequency band. The transient processing stage may be configured to determine at least for the frequency bands comprising transient portions spectral weighting factors, wherein the spectral weighting factors are associated with the respective frequency band and may allow to attenuate/exclude or amplify the respective portions. Transient and tonal characteristics may be identified by spectral processing. A level of transiency and/or tonality may be measured by the transient processing stage and/or the tonal processing stage of the separator 92 and may be converted to a spectral weight. The separator 92 may be configured to determine spectral weighting factors at least for frequency bands comprising the tonal portions. The spectral weighting factors may comprise a multitude of possible values, the magnitude of the spectral weighting factors indicating an amount of transient and/or tonal portions in the frequency band.
The spectral weighting factors may comprise an absolute or relative value. For example, the absolute value may comprise a value of energy of transient and/or tonal sound in the frequency band. Alternatively, the spectral weighting factors may comprise the relative value such as a value between 0 and 1, the value 0 indicating that the frequency band comprises no or almost no transient or tonal portions and the value 1 indicating the frequency band comprising a high amount or completely transient and/or tonal portions. The spectral weighting factors may comprise one of a multitude of values such as a number of 3, 5, 10 or more values (steps), e.g., (0, 0.3 and 1), (0.1, 0.2, . . . , 1) or the like. A size of the scale, a number of steps between a minimum value and a maximum value may at least zero but advantageously at least one and more advantageously at least five. Advantageously, the multitude of values of the spectral weights comprises at least three values comprising a minimum value, a maximum value and a value that is between the minimum value and the maximum value. A higher number of values between the minimum value and the maximum value may allow for a more continuous weighting of each of the frequency bands. The minimum value and the maximum value may be scaled to a scale between 0 and 1 or other values. The maximum value may indicate a highest or lowest level of transiency and/or tonality.
A combining stage of the separator 92 may be configured to combine the spectral weights for each of the frequency bands with the audio signal. The separator 92 may be configured to apply the combined spectral weights to each of the frequency bands. For example the spectral weights may be multiplied with spectral values of the audio signal 91 in the processed frequency band.
By suppressing or excluding some portions/characteristics from the audio signal 91, a first modified signal missing the respective characteristic but comprising the other characteristic may be obtained. By subtracting the signal from the audio signal an inverse signal comprising the suppressed characteristic and missing the characteristic of the first modified signal may be obtained by way of the second modified signal.
In the following, reference will be made to an example configuration of the bandwidth extenders 941 and 942. Each of the bandwidth extenders 941 and 942 may comprise a duplicator 114 for duplicating at least a part of the respective portion, may comprise an envelope shaper 116 shaping at least the extended portions generated by the duplicator, may comprise a whitener 118 for equalizing at least the extended portions and/or may comprise an anti-roughness filter 122 for phase-shifting at least a portion of the extended portion. Each of these elements may be arranged together with other referenced elements. Alternatively, some or all of those elements may be absent and/or may be substituted by other elements. For example, instead of a copying performed by the duplicator, an artificial generation of a bandwidth may be implemented by the bandwidth extender, such that a bandwidth generator may substitute the duplicator 114. Alternatively, a shaping or whitening of the spectrum may be dismissed and/or other processing may be used. Further, the anti-roughness filter 122 is optional. Although being illustrated as filtering a respective signal in the time domain by being supplied with the output of an inward short-term Fourier transform block 124, the anti-roughness filter may be configured for operating in the frequency-domain and may therefore be arranged before a respective inverse short-term Fourier transform block 124. Thus, further to the arranged blocks, also an order thereof may be varied.
Each of the bandwidth extenders 941 and 942 may comprise a respective first and second duplicator 1141 and 1142. The duplicators 1141 and 1142 are configured for duplicating at least a part of the respective first or second portion 91′a and 91′b and for combining at least one version of the duplicated part of the first portion, the second portion respectively with the first portion, the second portion 91′a, 91′b, respectively, so as to obtain a respective extended portion 126a, 126b, respectively.
When referring now to
The copied part of the first and second portion may range from a first intermediate frequency, for example, fcopy1 Of the first portion 91′a to a maximum frequency ff of the first portion. Accordingly, the copied part of the second portion may comprise a second frequency range ranging from a same or different intermediate frequency of the second portion 91′b to a maximum frequency of the second portion which may also be the cut-off frequency fc. Based on different intermediate frequencies, the width Dfw may be different. For. obtaining a same resulting bandwidth, therefore, a number of patches may also vary between the different bandwidth extenders.
For avoiding unwanted artifacts, the first bandwidth extender may comprise a first envelope shaper 1161 and the second bandwidth extender 942 may comprise a second envelope shaper 1162. The envelope shapers 1161 and 1162 may be configured for shaping at least the extended portion, i.e., frequency portions above the cut-off frequency fc. Shaping the envelope, i.e., performing a spectral envelope shaping, may be used as frequently, magnitude spectra are not flat, they tend to fall in magnitude towards higher frequencies as illustrated in
To avoid such effects, the spectral tilt T as shown in
In other words,
For a better understanding,
Real valued spectral weights G[k,m] may be computed as described by the determination rule:
Again, index k and m are omitted for a better readability. α1, α2, β1, β2, γ1, γ2 are tunable parameters that may be adapted for each of the whiteners 1181 and 1182 independently. The whitener may comprise a calculator 126 for calculating absolute values of the spectrum. Those values may be referred to as X, wherein the values are ones provided to a calculator 138 for calculating any spectral weights G and are ones provided to a smoothing path 142 so as to obtain the smoothed version Y. A frequency converter 144 may be configured for transforming the result into a time domain. When referring now to
Each of the bandwidth extenders 941 and 942 may comprise a respective anti-roughness filter 1221, 1222, respectively, for phase-shifting at least a portion of the extended first portion, of the extended second portion, respectively. This may either be executed as phase-shifting the copied portions 1281 and 1282 and/or the shaped versions 128′1, 128′2 thereof and/or the whitened versions 146a and 146b, respectively. I.e., the anti-roughness filter is configured for phase-shifting the respective extended portion or signal the right thereof so as to obtain a phase-shifted signal. The anti-roughness filter 1221 and 1222 may be configured for applying different phase-shifts to the respective signal to be filtered. By using the phase shift, a phase-shift of the copied portion or the extended portion with respect to the original signal may be obtained. Alternatively, the anti-roughness filter may perform a phase-shift to the complete signal provided. This may be implemented, for example, when the respective core portion is substituted afterwards by a non-phase-shifted portion as will be described in the following. The anti-roughness filter 1221 and 1222 may be implemented so as to filter a respective signal in the time domain. Therefore, an ISTFT blocks 1241, 1242 may be arranged so as to provide a respective signal in the time domain. Alternatively, the anti-roughness filter 1221 and 1222 may be implemented so as to filter in the frequency domain. In such a case, the ISTFT blocks 1241 and 1242 may be absent or may be arranged after the anti-roughness filters 1221, 1222, respectively. Anti-roughness filtering may be performed to decrease the perceived roughness which is mainly evoked by the copy-up. A filter which does not affect the timbre of the signal but mainly changes the phase of the signal may be suitable here. For example, two nested allpass filters may be arranged in parallel and may be calculated in the time domain. Nested of allpass filters may be understood as H1(z) and H2(z) denoting, unity-gain allpass transfer functions of a respective filter, then both H1(H2(z)) and H2(H1(z)) are allpass filters.
Optionally, each of the bandwidth extenders 941 and 942 may comprise an amplifier/attenuator 1481, 1482, respectively, for applying a gain gt, gs respectively for amplifying the sustained or transient portions. A result may be the extended portions 98a and 98b provided to the combiner 102. As explained above, the extended portions 98a and 98b may be obtained differently and/or by only performing some of the signal modifications explained.
In connection with the roughness filter, the apparatus 160 may comprise a high-pass filter 152 for filtering the first extended portion and the second extended portion 98a and 98b, the combined signal 102, respectively, and synonymously so as to obtain a filtered signal 154. In parallel to the bandwidth extenders 941 and 942, the audio signal 91 may be subjected to a delay 156 for compensating time delays caused by the time-to-frequency conversion in block 44 and the frequency-to-time conversion in blocks 1241 and 1242. The apparatus 160 may comprise a low-pass filter 158 configured for filtering the delayed audio signal. The apparatus 160 may further comprise a combiner 162 configured for combining the low-pass filtered audio signal and the signal 154. According to an embodiment, the apparatus 160 is configured to match the upper frequency (cut-off frequency Xc) of the low-pass filter 158 with a lower edge frequency of the high-pass filter 152 so as to obtain a combined homogeneous signal. In particular, the apparatus 160 may be configured to adapt the respective lower frequency of the high-pass filter 152 together with the upper edge frequency (cut-off frequency) of the low-pass filter 158 responsive to and in accordance with the determined cut-off frequency of the audios signal 91. Thus, based on the high-pass filter 152, signal portions below the cut-off frequency fc may be dismissed or strongly attenuated such that only the extended and phase-shifted portions remain. In contrast hereto, the low-pass filter 158 may be used to dismiss, discard or strongly attenuate parts of the audio signal 91, portions thereof respectively extending beyond the cut-off frequency fc. This allows for obtaining the extended and copied versions being phase-shifted with respect to the original audio signal 91 being only delayed so as to compensate for other delays within the bandwidth extenders, except for the anti-roughness filters 1221 and 1222. An obtained audio signal 164 may be an extended and optimized audio signal.
Because anti-roughness filtering shall only be applied to the bandwidth extended areas of the spectrum, the resulting signal may be high-pass filtered and added to the low-pass filtered and delayed input signal. Delay is used or needed to compensate for the delay introduced by the STFT. The cut-off frequencies of the aforementioned high-pass and low-pass filters may correspond to the cut-off frequency fc as shown, for example, in
With respect to
Based on different cut-off frequencies which are schematically referred to as f0, f1, f2, f3, f4, respectively in
The lookup table may hold tunings for some or all of the control parameters depending on the signal analysis results. In case of the estimation of the cut-off frequency fc, for each selected frequency fi perceptual tuning of the corresponding parameter may be executed which may lead to a control value pi. It is noted that a selected value p; may differ for the different bandwidth extenders, i.e., the apparatus 160 may be configured to adapt the respective block differently. Lookup table sampling points si for a bandwidth extender 941 or 942 may be given, for example, as tuples according to
s
i=(fi,pi)
In
An example for such interpolation values may be, for example, a width w of a respective patch as explained in connection with
The apparatus may be configured for using the first and second parameters for a frame having the characteristic relating to an artificial bandwidth limitation. For other frames, the apparatus may be configured for using third parameters for the first bandwidth extender and fourth parameters for the second bandwidth extender, e.g., for frames having a characteristic different from the characteristic relating to an artificial bandwidth limitation. Alternatively, the apparatus may be configured to deactivate the first and second bandwidth extender for the frames having a characteristic being different from the characteristic relating to an artificial bandwidth limitation. Thus, the apparatus may be configured for performing bandwidth extension for frames that are considered to comprise the respective characteristic and may treat frames that are considered to not comprise the characteristic differently by using the third and fourth parameters or to leave the respective frame untreated.
The apparatus may thus comprise a lookup-table 168 comprising a plurality of parameters associated with a corresponding plurality of signal modification parameters such as the cut-off frequency fc and a plurality of other parameters associated with a corresponding plurality of signal modification parameters fc used for the first and second bandwidth extenders 941, 942 respectively. The apparatus may comprise a signal analyzer 166 for analyzing the spectrum for a modification applied to the audio signal 91. The apparatus 160 may be configured for deriving a modification parameter associated with the modification, for example, the cut-off frequency fc and/or a parameter relating to the steepness of the slope. The apparatus may be configured for deriving the respective first and/or second parameter using the lookup-table and using the modification parameter. According to one example, the apparatus may derive the modification parameter cut-off frequency and may determine the parameter p once for the first bandwidth extender and once for the second bandwidth extender.
In known concepts, artificial bandwidth extension is a well-known audio coding technique. Also, unguided bandwidth extension is well-known. However, semantic decomposition prior to bandwidth extension calculation is unknown. Semantic decorrelation may be used for the purpose of spatial upmixing, not containing a copy-up or transposition functionality like inevitably found in bandwidth extension applications. Therefore, the embodiments according to the third aspects differ. Another technique is known from a decorrelated bandwidth extension. Here, all high-band target spectral regions are decorrelated through dedicated decorrelators or through inserting decorrelated instances of random noise to be mutually independent. The present embodiments according to the third aspect teaches mutual decorrelation of semantically decomposed signal parts whereas the known concepts just comprise the decorrelation of different spectral target regions.
According to the fourth aspect, the anti-roughness suppression may be performed as a post-processing, for example, after having performed bandwidth extension with a different concept. Thus, the anti-roughness suppression or anti-roughness filtering may be used so as to reduce artifacts, for example, in connection with the signal enhancer 48 when having determined that artificial bandwidth limitation has been performed and that the respective extension has also been performed.
In particular, the apparatus 220 may comprise the signal analyzer 166 configured for determining a start frequency of bandwidth extension in the audio signal 12, the start frequency of bandwidth extension arranged between an extending bandwidth, e.g., the added patches w according to
In connection herewith, the apparatus may be configured to adapt a lower frequency of the high-pass filter 152 and/or an upper frequency of the low-pass filter 158 according to a start frequency of bandwidth extension in the audio signal 12. The start frequency of bandwidth extension may be received by a further channel or may be determined by the signal analyzer 166.
According to an embodiment that may be combined with the independent embodiment of apparatus 210 and with each of the other embodiments of the fourth aspect, the apparatus may be configured to adapt the roughness filter and/or a signal enhancer, for example, comprising the whitener 118, an envelope shaper or the like for enhancing the audio signal 12, using a start frequency of bandwidth extension in the audio signal. For example, based on the start frequency of bandwidth extension in the audio signal 12, the lookup table may provide four different parameters for each of the blocks to be adjusted, such as the whitener 118 and/or the anti-roughness filter 122 and/or further blocks.
According to an embodiment that may be combined with each of the other embodiments according to the fourth aspect, the anti-roughness filter 122 may be arranged in a first path and wherein the low-pass filter 158 may be arranged in a second path. The second path may comprise the whitener 118 for equalizing a signal based on a signal provided to or received from the anti-roughness filter, i.e., an order or sequence of the whitener and the anti-roughness filter may be changed.
According to a further embodiment of the fourth aspect, which may be combined with each of the other embodiments, the anti-roughness filter 122 may be arranged in a first path and the low-pass filter 158 may be arranged in a second path. The apparatus 220 may comprise a signal enhancer configured to enhance the audio signal in the first path and at least partially in the frequency domain, for example, using the whitener 118 and/or the shaper 116. The second path may comprise a delay block such as the delay 156 for delaying the audio signal 12 by a delay corresponding to a delay in the first path caused by a time-to-frequency conversion and a frequency-to-time conversion within a tolerance range of at most ±10%, +5% or ±2% and probably excluding the anti-roughness filter delay.
According to a further embodiment, which may be combined with each of the other embodiments according to the fourth aspect, the anti-roughness filter 122 is a first anti-roughness filter. The apparatus comprises a separator for receiving a spectrum of the audio signal 12 and for separating a first portion 12′a of the spectrum 12′ of the audio signal 12 from a second portion 12′b of the spectrum of the audio signal 12. The first portion 12′a has a first signal characteristic and the second portion 12′b has a second signal characteristic. The apparatus 220 may be configured for providing the first portion 12′a to a first path having the first anti-roughness filter 1221 and for providing the second portion 12′b to a third path having the second anti-roughness filter 1222.
According to a further embodiment which may be combined with the previously mentioned embodiment, the apparatus may be configured to apply a first gain gt to the first path and a second gain gs to the third path.
According to a further embodiment of the fourth aspect which may be combined with the previous and the penultimate embodiment, the apparatus may be configured for adjusting the first anti-roughness filter 1221 and the second anti-roughness filter 1222 differently from each other using a start frequency of bandwidth extension of the audio signal 12.
According to a further embodiment of the fourth aspect which may be combined with the last three embodiments of the fourth aspect, the separator comprises a transient suppressor, such as the transient suppressor 108 configured for receiving the audio signal 12 and for reducing transient portions in the audio signal 12 so as to obtain a first modified audio signal. The separator 92 is configured for obtaining the first portion 12′a based on the first modified audio signal, for example, by using the first modified audio signal as the first portion 12′a. The separator 92 further comprises the subtractor 112 for subtracting the first modified audio signal from the audio signal 12 so as to obtain a second modified signal. The separator 92 is configured for obtaining the second portion based on the second modified audio signal, for example, by taking the second modified audio signal as the second portion 12′b.
According to a further embodiment of the fourth aspect, which may be combined with the last four embodiments, the first signal characteristic is one of a) a middle frequency range of the spectrum; b) a direct signal characteristic of the audio signal; c) a tonal characteristic of the audio signal; and d) a speech characteristic of the audio signal. The second signal characteristic is according to the letters used: a) a side frequency range of the spectrum; b) an ambient signal characteristic of the audio signal; c) a sustained signal characteristic of the audio signal; and d) a non-speech characteristic of the audio signal.
According to a further embodiment of the fourth aspect, which may be combined with each of the other embodiments of the fourth aspect, the enhanced audio signal 164 comprises the second filtered signal being phase-shifted when compared to the first filtered signal, i.e., the upper frequency region is phase-shifted when compared to the lower frequency region.
The signal analyzer is used to activate ARS in
The lookup table for ARS may be based on the same principle as the BWE lookup table described in connection with
In the following, additional embodiments and aspects of the invention will be described which can be used individually or in combination with any of the features and functionalities and details described herein.
According to a first aspect, an apparatus for determining a predetermined characteristic related to an artificial bandwidth limitation processing of an audio signal may have: a slope evaluator 52 configured for evaluating a slope 54 of a spectrum of the audio signal to obtain a slope evaluation result 56; and a processor 64 for providing an information 66 indicating that the audio signal 12 comprises the predetermined characteristic dependent on an evaluation of the slope evaluation result 56.
According to a second aspect when referring back to the first aspect, the apparatus may further have a frequency evaluator 58 configured for evaluating a cut-off frequency fc of the spectrum of the audio signal 12 to obtain a frequency evaluation result 62; wherein the processor 64 may be configured for providing the information 66 indicating that the audio signal 12 comprises the predetermined characteristic dependent on the evaluation of the slope evaluation result 56 and an evaluation of the frequency evaluation result 62.
According to a third aspect when referring back to the first or second aspect, the apparatus may be configured for determining the predetermined characteristic for a plurality spectrums 12′1, 12′2, 12′3 of the audio signal 12, wherein the slope evaluator 52 is configured for evaluating the slope 54 of each of the spectrums 12′1, 12′2, 12′3, wherein the frequency evaluator 58 is configured for evaluating each of the spectrums 12′1, 12′2, 12′3, and wherein the processor is configured for providing the information indicating that the audio signal comprises the predetermined characteristic for each of the spectrums 12′1, 12′2, 12′3.
According to a fourth aspect when referring back to the third aspect, the apparatus may further have: a determiner 78 configured for determining an energy E of a frequency band fh of the spectrum 12′ and to provide a signal 82 comprising information indicating the energy E of the frequency band fh to the processor 64, wherein the processor 64 may be configured for providing the information 66 indicating that the audio signal 12 comprises the predetermined characteristic based on a previous spectrum if the energy E of the spectrum 12′ is below an energy threshold level.
According to a fifth aspect when referring back to any of the first to fourth aspects, the slope evaluator 52 may be configured for evaluating an attenuation within the spectrum 12′ and for providing the slope evaluation result 56 so as to indicate a measure for the attenuation, wherein the processor 64 may be configured for providing the information 66 indicating that the audio signal comprises the predetermined characteristic if the measure for the attenuation is at least a steepness threshold value.
According to a sixth aspect when referring back to any of the first to fifth aspects, the slope evaluator 52 may be configured for evaluating a steepness of the spectrum 12′ and for providing the slope evaluation result 56 so as to indicate a measure for the steepness, wherein the processor 64 may be configured for providing the information 66 indicating that the audio signal 12 comprises the predetermined characteristic if the measure for the steepness is at least a steepness threshold value.
According to a seventh aspect when referring back to the fifth or sixth aspect, the slope evaluator 52 may be configured for determining a spectral difference function S(h) of the spectrum 12 using a window function, the window function combining a plurality of frequency values of the spectrum 12′, and to determine the measure for the attenuation using results of the window function.
According to an eighth sixth aspect when referring back to any of the first to seventh aspects, the slope evaluator 52 may be configured for evaluating an attenuation between a first energy level of a first frequency band f1 of the spectrum and a second energy level of a second energy band f2 of the spectrum 12′, wherein the first energy band f1 may have a first frequency range being lower when compared to a second frequency range of the second frequency band f2, and for providing the slope evaluation result 56 so as to indicate a measure for the attenuation, wherein the processor 64 is configured for providing the information 66 indicating that the audio signal 12 comprises the predetermined characteristic if the measure for the attenuation is at least an attenuation threshold value.
According to a ninth aspect when referring back to any of the first to eighth aspects, the frequency evaluator may be configured for determining a measure for energy E in a frequency band of the audio signal and for determining the cut-off frequency fc based on the energy in a decreasing frequency range based on an increase of energy in the frequency range.
According to a tenth aspect when referring back to any of the first to ninth aspects, the apparatus may further have a filter 74 configured for receiving the frequency evaluation result 62 and for providing a filtered frequency evaluation result 62′, wherein the processor may be configured for providing the information 66 indicating that the audio signal 12 comprises the predetermined characteristic based on a plurality of the slope evaluation results 56 and the filtered frequency evaluation result 62′ associated with a plurality of spectrums 12′1, 12′2, 12′3 of the audio signal 12.
According to an eleventh aspect when referring back to any of the first to tenth aspects, the processor 64 may be configured for providing the information 66 indicating that the audio signal 12 comprises the predetermined characteristic by providing a respective information for a plurality of frames of the audio signal 12 for each of the plurality of frames, wherein the processor 64 may be configured for obtaining a plurality of frame results based on the plurality of frames and to combine the frame results so as to obtain a combined result 66′ being valid for the plurality of frames.
According to a twelfth aspect when referring back to the eleventh aspect, the processor may be configured for executing a median filtering using the plurality of frame results for obtaining the combined result 66′.
According to a thirteenth aspect when referring back to any of the first to twelfth aspects, the apparatus may further have a resampling evaluator configured for evaluating the audio signal 12 for a predetermined characteristic related to an upsampling using a sampling frequency, wherein the apparatus is configured to adapt frequency ranges of the slope evaluator 52 and/or of the frequency evaluator 58 based on the sampling frequency.
According to a fourteenth aspect when referring back to the thirteenth aspect, the resampling evaluator may be configured for obtaining a negative evaluation result when the determination rule applies
X(k)>threshold
and
X(k)<X(k+1)−offset parameter
wherein X(k) is a value X of the spectrum at frequency index k and offset parameter is a noise suppressing value.
According to a fifteenth aspect when referring back to the thirteenth or fourteenth aspect, the resampling evaluator may be configured for obtaining a positive evaluation result indicating that the audio signal 12 was subjected to an upsampling limiting the bandwidth at frequency index k when the determination rule applies
S(k)>threshold
wherein S(k) is a spectral difference function relating to the spectrum at the frequency index k.
According to a sixteenth aspect when referring back to any of the first to fifteenth aspects, the apparatus may further have a signal enhancer 48, 125, 200 configured for reducing artifacts caused by the artificial bandwidth limitation processing of the audio signal 12 dependent on the information indicating that the audio signal 12 comprises the predetermined characteristic or dependent on an information indicating that the audio signal comprises a characteristic related to spectral enhancement processing.
According to a seventeenth aspect when referring back to the sixteenth aspect, the signal enhancer may be configured for filling a spectral gap 202 using a weighted filling signal F and/or for attenuating a spectral island 204 using weighting factors G, W.
According to an eighteenth aspect, an apparatus for processing an audio signal 91 may have: a slope evaluator 52 configured for evaluating a slope 54 of a spectrum 91′,x′ of the audio signal 91 to obtain a slope evaluation result 56; a frequency evaluator 58 configured for evaluating at least a first and a second frequency edge 2061-2064 at which the spectrum 91′,X′ comprises an edge; and a processor 208, 228 configured for determining a spectral weight G, W and for processing the audio signal 91, X in a spectral region between the first and second frequency edge 2061-2064, using the spectral weight.
According to a nineteenth aspect when referring back to the eighteenth aspect, a spectral gap 202 may be arranged between the first 2061 and second 2062 edge, wherein the processor 208 is configured for determining the spectral weight G, to combine the spectral weight G with a filling signal S so as to obtain a weighted filling signal F; wherein the apparatus may have a combiner 226 configured for combining the audio signal 91 or a signal derived thereof with the weighted filling signal F.
According to a twentieth aspect when referring back to the nineteenth aspect, the processor 208, 228 may be configured for smoothing the audio signal 91, X or the signal derived thereof over frequency so as to obtain a first filtered signal Y′ and over time so as to obtain a second filtered signal Z so as to obtain a second filtered signal Z; and for comparing the first filtered signal Y′ with the audio signal 91, X or the signal derived thereof for obtaining a frequency difference value Δf and for comparing the second filtered signal Z′ with the audio signal 91, X or the signal derived thereof for obtaining a time difference value Δt; for setting the spectral weight G to a non-zero value if the frequency difference Δf value is greater than or equal a frequency difference threshold value Sf and if the time difference value Δt is greater than or equal a time difference threshold value St.
According to a twenty-first aspect when referring back to the nineteenth or twentieth aspect, the apparatus may be configured for generating the filling signal S evaluating at least one preceding frame of the audio signal 91, X or the signal derived thereof.
According to a twenty-second aspect when referring back to any of the eighteenth to twenty-first aspects, the processor 208 may be configured for determining the spectral weight based on the determination rule:
wherein Γ is the spectral weight, X is the magnitude spectrum of the audio signal or of the signal derived thereof, Y is a value derived from a smoothed version of the audio signal or of the signal derived thereof, α, β, γ are tunable parameters, κ is an impact parameter for scaling an impact of weighting.
According to a twenty-third aspect when referring back to the twenty-second aspect, the impact parameter κ is based on the determination rule:
wherein δf denotes a frequency difference threshold value.
According to a twenty-fourth aspect when referring back to any of the eighteenth to twenty-third aspects, a spectral island 204 may be arranged between the first 2063 and second 2064 edge; wherein the processor 228 may be configured for determining the spectral weight W and to combine the spectral weight W with the audio signal 91, X or a signal Z derived thereof so as to reduce the spectral island 204.
According to a twenty-fifth aspect, a method 2000 for determining a predetermined characteristic related to an artificial bandwidth limitation processing of an audio signal may have the steps of: evaluating 2100 a slope of a spectrum of the audio signal to obtain an slope evaluation result; and providing 2300 an information indicating that the audio signal comprises the predetermined characteristic dependent on an evaluation of the slope evaluation result.
According to a twenty-sixth aspect, a method 1500 for processing an audio signal may have the steps of: evaluating 1600 a slope of a spectrum of the audio signal to obtain a slope evaluation result; evaluating 1700 at least a first and a second frequency edge at which the spectrum comprises an edge so as to obtain a frequency evaluation result; and determining 1800 a spectral weight and processing the audio signal in a spectral region between the first and second frequency edge, using the spectral weight.
According to a twenty-seventh aspect, a non-transitory storage medium may have stored thereon a computer program having a program code for performing, when running on a computer, the above methods of the twenty-fifth or twenty-sixth aspect.
Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where a block or device corresponds to a method step or a feature of a method step. Analogously, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus.
The inventive encoded audio signal can be stored on a digital storage medium or can be transmitted on a transmission medium such as a wireless transmission medium or a wired transmission medium such as the Internet.
Depending on certain implementation requirements, embodiments of the invention can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, for example a floppy disk, a DVD, a CD, a ROM, a PROM, an EPROM, an EEPROM or a FLASH memory, having electronically readable control signals stored thereon, which cooperate (or are capable of cooperating) with a programmable computer system such that the respective method is performed.
Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
Generally, embodiments of the present invention can be implemented as a computer program product with a program code, the program code being operative for performing 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.
Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
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.
A further embodiment of the inventive methods is, therefore, a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein.
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 configured to be transferred via a data communication connection, for example via the Internet.
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.
A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
In some embodiments, a programmable logic device (for example a field programmable gate array) may be used to perform some or all of the functionalities of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor in order to perform one of the methods described herein. Generally, the methods may be performed by any hardware apparatus.
While this invention has been described in terms of several embodiments, there are alterations, permutations, and equivalents which will be apparent to others skilled in the art and which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
17164360.4 | Mar 2017 | EP | regional |
17189992.5 | Sep 2017 | EP | regional |
This application is a continuation of copending International Application No. PCT/EP2018/025081, filed Mar. 29, 2018, which is incorporated herein by reference in its entirety, and additionally claims priority from European Applications No. EP17164360.4, filed Mar. 31, 2017, and EP17189992.5, filed Sep. 7, 2017, which are also incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/EP2018/025081 | Mar 2018 | US |
Child | 16582165 | US |