CROSS-REFERENCE TO RELATED APPLICATIONS
- Top of Page
This application is a Divisional of U.S. patent application Ser. No. 12/921,550, filed Jan. 5, 2011, which is a U.S. National Phase entry of PCT/EP2009/001108 filed Feb. 17, 2009, and claims priority to U.S. Patent Application No. 61/035,317 filed Mar. 10, 2008, each of which is incorporated herein by references hereto.
BACKGROUND OF THE INVENTION
- Top of Page
The present invention relates to audio signal processing and, particularly, to audio signal manipulation in the context of applying audio effects to a signal containing transient events.
It is known to manipulate audio signals such that the reproduction speed is changed, while the pitch is maintained. Known methods for such a procedure are implemented by phase vocoders or methods, like (pitch synchronous) overlap-add, (P)SOLA, as, for example, described in J. L. Flanagan and R. M. Golden, The Bell System Technical Journal, November 1966, pp. 1394 to 1509; U.S. Pat. No. 6,549,884 Laroche, J. & Dolson, M.: Phase-vocoder pitch-shifting; Jean Laroche and Mark Dolson, New Phase-Vocoder Techniques for Pitch-Shifting, Harmonizing And Other Exotic Effects”, Proc. 1999 IEEE Workshop on Applications of Signal Processing to Audio and Acoustics, New Paltz, N.Y., Oct. 17-20, 1999; and Zölzer, U: DAFX: Digital Audio Effects; Wiley & Sons; Edition: 1 (Feb. 26, 2002); pp. 201-298.
Additionally, audio signals can be subjected to a transposition using such methods, i.e. phase vocoders or (P)SOLA where the special issue of this kind of transposition is that the transposed audio signal has the same reproduction/replay length as the original audio signal before transposition, while the pitch is changed. This is obtained by an accelerated reproduction of the stretched signals where the acceleration factor for performing the accelerated reproduction depends on the stretching factor for stretching the original audio signal in time. When one has a time-discrete signal representation, this procedure corresponds to a down-sampling of the stretched signal or decimation of the stretched signal by a factor equal to the stretching factor where the sampling frequency is maintained.
A specific challenge in such audio signal manipulations are transient events. Transient events are events in a signal in which the energy of the signal in the whole band or in a certain frequency range is rapidly changing, i.e. rapidly increasing or rapidly decreasing. Characteristic features of specific transients (transient events) are the distribution of signal energy in the spectrum. Typically, the energy of the audio signal during a transient event is distributed over the whole frequency while, in non-transient signal portions, the energy is normally concentrated in the low frequency portion of the audio signal or in specific bands. This means that a non-transient signal portion, which is also called a stationary or tonal signal portion has a spectrum, which is non-flat. In other words, the energy of the signal is included in a comparatively small number of spectral lines/spectral bands, which are strongly raised over a noise floor of an audio signal. In a transient portion however, the energy of the audio signal will be distributed over many different frequency bands and, specifically, will be distributed in the high frequency portion so that a spectrum for a transient portion of the audio signal will be comparatively flat and will, in any event be flatter than a spectrum of a tonal portion of the audio signal. Typically, a transient event is a strong change in time, which means that the signal will include many higher harmonics when a Fourier decomposition is performed. An important feature of these many higher harmonics is that the phases of these higher harmonics are in a very specific mutual relationship so that a superposition of all these sine waves will result in a rapid change of signal energy. In other words, there exists a strong correlation across the spectrum.
The specific phase situation among all harmonics can also be termed as a “vertical coherence”. This “vertical coherence” is related to a time/frequency spectrogram representation of the signal where a horizontal direction corresponds to the development of the signal over time and where the vertical dimension describes the interdependence over the frequency of the spectral components (transform frequency bins) in one short-time spectrum over frequency.
Due to the typical processing steps, which are performed in order to time stretch or shorten an audio signal, this vertical coherence is destroyed, which means that a transient is “smeared” over time when a transient is subjected to a time stretching or time shortening operation as e.g. performed by a phase vocoder or any other method, which performs a frequency-dependent processing introducing phase shifts into the audio signal, which are different for different frequency coefficients.
When the vertical coherence of transients is destroyed by an audio signal processing method, the manipulated signal will be very similar to the original signal in stationary or non-transient portions, but the transient portions will have a reduced quality in the manipulated signal. The uncontrolled manipulation of the vertical coherence of a transient results in temporal dispersion of the same, since many harmonic components contribute to a transient event and changing the phases of all these components in an uncontrolled manner inevitably results in such artifacts.
However, transient portions are extremely important for the dynamics of an audio signal, such as a music signal or a speech signal where sudden changes of energy in a specific time represent a great deal of the subjective user impression on the quality of the manipulated signal. In other words, transient events in an audio signal are typically quite remarkable “milestones” of an audio signal, which have an over-proportional influence on the subjective quality impression. Manipulated transients in which the vertical coherence has been destroyed by a signal processing operation or has been degraded with respect to the transient portion of the original signal will sound distorted, reverberant and unnatural to the listener.
Some current methods stretch the time around the transients to a higher extent so as to have to subsequently perform, during the duration of the transient, no or only minor time stretching. Such known references and patents describe methods for time and/or pitch manipulation. Known references are: Laroche L., Dolson M.: Improved phase vocoder timescale modification of audio”, IEEE Trans. Speech and Audio Processing, vol. 7, no. 3, pp. 323-332; Emmanuel Ravelli, Mark Sandler and Juan P. Bello: Fast implementation for non-linear time-scaling of stereo audio; Proc. of the 8th Int. Conference on Digital Audio Effects (DAFx'05), Madrid, Spain, Sep. 20-22, 2005; Duxbury, C. M. Davies, and M. Sandler (2001, December). Separation of transient information in musical audio using multiresolution analysis techniques. In Proceedings of the COST G-6 Conference on Digital Audio Effects (DAFX-01), Limerick, Ireland; and Röbel, A.: A NEW APPROACH TO TRANSIENT PROCESSING IN THE PHASE VOCODER; Proc. of the 6th Int. Conference on Digital Audio Effects (DAFx-03), London, UK, Sep. 8-11, 2003.
During time stretching of audio signals by phase vocoders, transient signal portions are “blurred” by dispersion, since the so-called vertical coherence of the signal is impaired. Methods using so-called overlap-add methods, like (P)SOLA may generate disturbing pre- and post-echoes of transient sound events. These problems may actually be addressed by increased time stretching in the environment of transients; however, if a transposition is to occur, the transposition factor will no longer be constant in the environment of the transients, i.e. the pitch of superimposed (possibly tonal) signal components will change and will be perceived as a disturbance.
- Top of Page
According to an embodiment, an apparatus for manipulating an audio signal having a transient event may have a signal processor for processing a transient reduced audio signal in which a first time portion having the transient event is removed or, for processing an audio signal having the transient event to acquire a processed audio signal; a signal inserter for inserting a second time portion into the processed audio signal at a signal location, where the first portion was removed or where the transient event is located in the processed audio signal, wherein the second time portion has a transient event not influenced by the processing performed by the signal processor so that a manipulated audio signal is acquired.
According to another embodiment, an apparatus for generating a meta data signal for an audio signal having a transient event may have a transient detector for detecting a transient event in the audio signal; a meta data calculator for generating the meta data indicating a time position of the transient event in the audio signal or indicating a start-time instant before the transient event or a stop-time instant subsequent to the transient event or a duration of a time portion of the audio signal including the transient event; and a signal output interface for generating the meta data signal either having the meta data or having the audio signal and the meta data for transmission or storage.
According to another embodiment, a method of manipulating an audio signal having a transient event may have the steps of processing a transient reduced audio signal in which a first time portion having the transient event is removed or for processing an audio signal having the transient event to acquire a processed audio signal; inserting a second time portion into the processed audio signal at a signal location, where the first portion was removed or where the transient event is located in the processed audio signal, wherein the second time portion has a transient event not influenced by the processing so that a manipulated audio signal is acquired.
According to another embodiment, a method of generating a meta data signal for an audio signal having a transient event may have the steps of detecting a transient event in the audio signal; generating the meta data indicating a time position of the transient event in the audio signal or indicating a start-time instant before the transient event or a stop-time instant subsequent to the transient event or a duration of a time portion of the audio signal including the transient event; and generating the meta data signal either having the meta data or having the audio signal and the meta data for transmission or storage.
According to another embodiment, a meta data signal for an audio signal may have transient event, the meta data signal having information indicating a time position of the transient event in the audio signal or indicating a start-time instant before the transient event or a stop-time instant subsequent to the transient event or a duration of a time portion of the audio signal indicating the transient event and an information on the position of the time portion in the audio signal.
According to another embodiment, a computer program may have a program code for performing, when running on a computer, the method of manipulating an audio signal having a transient event, which may have the steps of processing a transient reduced audio signal in which a first time portion having the transient event is removed or for processing an audio signal having the transient event to acquire a processed audio signal; inserting a second time portion into the processed audio signal at a signal location, where the first portion was removed or where the transient event is located in the processed audio signal, wherein the second time portion has a transient event not influenced by the processing so that a manipulated audio signal is acquired, or the method of generating a meta data signal for an audio signal having a transient event which may have the steps of detecting a transient event in the audio signal; generating the meta data indicating a time position of the transient event in the audio signal or indicating a start-time instant before the transient event or a stop-time instant subsequent to the transient event or a duration of a time portion of the audio signal including the transient event; and generating the meta data signal either having the meta data or having the audio signal and the meta data for transmission or storage.
For addressing the quality problems occurring in an uncontrolled processing of transient portions, the present invention makes sure that transient portions are not processed at all in a detrimental way, i.e. are removed before processing and are reinserted after processing or the transient events are processed, but are removed from the processed signal and replaced by non-processed transient events.
The transient portions inserted into the processed signal are copies of corresponding transient portions in the original audio signal so that the manipulated signal consists of a processed portion not including a transient and a non- or differently processed portion including the transient. Exemplarily, the original transient can be subjected to decimation or any kind of weighting or parameterized processing. Alternatively, however, transient portions can be replaced by synthetically-created transient portions, which are synthesized in such a way that the synthesized transient portion is similar to the original transient portion with respect to some transient parameters such as the amount of energy change in a certain time or any other measure characterizing a transient event. Thus, one could even characterize a transient portion in the original audio signal and one could remove this transient before processing or replace the processed transient by a synthesized transient, which is synthetically created based on transient parametric information. For efficiency reasons, however, it is advantageous to copy a portion of the original audio signal before manipulation and to insert this copy into the processed audio signal, since this procedure guarantees that the transient portion in the processed signal is identical to the transient of the original signal. This procedure will make sure that the specific high influence of transients on a sound signal perception are maintained in the processed signal compared to the original signal before processing. Thus, a subjective or objective quality with respect to the transients is not degraded by any kind of audio signal processing for manipulating an audio signal.
In embodiments, the present application provides a novel method for a perceptual favorable treatment of transient sound events within the framework of such processing, which would otherwise generate a temporal “blurring” by dispersion of a signal. This method essentially comprises the removal of the transient sound events prior to the signal manipulation for the purpose of time stretching and, subsequently, adding, while taking into account the stretching, the unprocessed transient signal portion to the modified (stretched) signal in an accurate manner.
BRIEF DESCRIPTION OF THE DRAWINGS
- Top of Page
Embodiments of the present invention are subsequently explained with reference to the accompanying drawings, in which:
FIG. 1 illustrates an embodiment of an inventive apparatus or method for manipulating an audio signal having a transient;
FIG. 2 illustrates an implementation of a transient signal remover of FIG. 1;
FIG. 3a illustrates an implementation of a signal processor of FIG. 1;
FIG. 3b illustrates a further embodiment for implementing the signal processor of FIG. 1;
FIG. 4 illustrates an implementation of the signal inserter of FIG. 1;
FIG. 5a illustrates an overview of the implementation of a vocoder to be used in the signal processor of FIG. 1;
FIG. 5b shows an implementation of parts (analysis) of a signal processor of FIG. 1;
FIG. 5c illustrates other parts (stretching) of a signal processor of FIG. 1;
FIG. 6 illustrates a transform implementation of a phase vocoder to be used in the signal processor of FIG. 1;
FIG. 7a illustrates an encoder side of a bandwidth extension processing scheme;
FIG. 7b illustrates a decoder side of a bandwidth extension scheme;
FIG. 8a illustrates an energy representation of an audio input signal with a transient event;
FIG. 8b illustrates the signal of FIG. 8a, but with a windowed transient;
FIG. 8c illustrates a signal without the transient portion prior to being stretched;
FIG. 8d illustrates the signal of FIG. 8c subsequent to being stretched; and
FIG. 8e illustrates the manipulated signal after the corresponding portion of the original signal has been inserted.
FIG. 9 illustrates an apparatus for generating side information for an audio signal.
- Top of Page
OF THE INVENTION
FIG. 1 illustrates an apparatus for manipulating an audio signal having a transient event. The apparatus comprises a transient signal remover 100 having an input 101 for an audio signal with a transient event. The output 102 of the transient signal remover is connected to a signal processor 110. The signal processor output 111 is connected to a signal inserter 120. The signal inserter output 121 on which a manipulated audio signal with an unprocessed “natural” or synthesized transient is available may be connected to a further device such as a signal conditioner 130, which can perform any further processing of the manipulated signal such as a down-sampling/decimation to be needed for bandwidth extension purposes as discussed in connection with FIGS. 7A and 7B.
However, the signal conditioner 130 cannot be used at all if the manipulated audio signal obtained at the output of the signal inserter 120 is used as it is, i.e. is stored for further processing, is transmitted to a receiver or is transmitted to a digital/analog converter which, in the end, is connected to a loudspeaker equipment to finally generate a sound signal representing the manipulated audio signal.
In the case of bandwidth extension, the signal on line 121 can already be the high band signal. Then, the signal processor has generated the high band signal from the input low band signal, and the lowband transient portion extracted from the audio signal 101 would have to be put into the frequency range of the high band, which is done by a signal processing not disturbing the vertical coherence, such as a decimation. This decimation would be performed before the signal inserter so that the decimated transient portion is inserted in the high band signal at the output of block 110. In this embodiment, the signal conditioner would perform any further processing of the high band signal such as envelope shaping, noise addition, inverse filtering or adding of harmonics etc. as done e.g. in MPEG 4 Spectral Band Replication.
The signal inserter 120 receives side information from the remover 100 via line 123 in order to choose the right portion from the unprocessed signal to be inserted in 111
When the embodiment having devices 100, 110, 120, 130 is implemented, a signal sequence as discussed in connection with FIGS. 8a to 8e may be obtained. However, it is not necessarily needed to remove the transient portion before performing the signal processing operation in the signal processor 110. In this embodiment, the transient signal remover 100 is not needed and the signal inserter 120 determines a signal portion to be cut out from the processed signal on output 111 and to replace this cut-out signal by a portion of the original signal as schematically illustrated by line 121 or by a synthesized signal as illustrated by line 141 where this synthesized signal can be generated in a transient signal generator 140. In order to be able to generate a suitable transient, the signal inserter 120 is configured to communicate transient description parameters to the transient signal generator. Therefore, the connection between blocks 140 and 120 as indicated by item 141 is illustrated as a two-way connection. When a specific transient detector is provided in the apparatus for manipulating, then the information on the transient can be provided from this transient detector (not shown in FIG. 1) to the transient signal generator 140. The transient signal generator may be implemented to have transient samples, which can directly be used or to have pre-stored transient samples, which can be weighted using transient parameters in order to actually generate/synthesize a transient to be used by the signal inserter 120.
In one embodiment, the transient signal remover 100 is configured for removing a first time portion from the audio signal to obtain a transient-reduced audio signal, wherein the first time portion comprises the transient event.
Furthermore, the signal processor is configured for processing the transient-reduced audio signal in which a first time portion comprising the transient event is removed or for processing the audio signal including the transient event to obtain the processed audio signal on line 111.
The signal inserter 120 is configured for inserting a second time portion into the processed audio signal at a signal location where the first time portion has been removed or where the transient event is located in the audio signal, wherein the second time portion comprises a transient event not influenced by the processing performed by the signal processor 110 so that the manipulated audio signal at output 121 is obtained.
FIG. 2 illustrates an embodiment of the transient signal remover 100. In one embodiment in which the audio signal does not include any side information/meta information on transients, the transient signal remover 100 comprises a transient detector 103, a fade-out/fade-in calculator 104 and a first portion remover 105. In an alternative embodiment in which information on transients in the audio signal have been collected as attached to the audio signal by an encoding device as discussed later on with respect to FIG. 9, the transient signal remover 100 comprises a side information extractor 106, which extracts the side information attached to the audio signal as indicated by line 107. The information on the transient time may be provided to the fade-out/fade-in calculator 104 as illustrated by line 107. When, however, the audio signal includes, as meta information, not (only) the transient time, i.e. the accurate time at which the transient event is occurring, but the start/stop time of the portion to be excluded from the audio signal, i.e. the start time and the stop time of the “first portion” of the audio signal, then the fade-out/fade-in calculator 104 is not needed as well and the start/stop time information can be directly forwarded to the first portion remover 105 as illustrated by line 108. Line 108 illustrates an option and all other lines, which are indicated by broken lines, are optional as well.
In FIG. 2, the fade-in/fade-out calculator 104 outputs side information 109. This side information 109 is different from the start/stop times of the first portion, since the nature of the processing in the processor 110 of FIG. 1 is taken into account. Furthermore, the input audio signal is fed into the remover 105.
The fade-out/fade-in calculator 104 provides for the start/stop times of the first portion. These times are calculated based on the transient time so that not only the transient event, but also some samples surrounding the transient event are removed by the first portion remover 105. Furthermore, it is advantageous to not just cut out the transient portion by a time domain rectangular window, but to perform the extraction by a fade-out portion and a fade-in portion. For performing a fade-out or/a fade-in portion, any kind of window having a smoother transition compared to a rectangular filter such as a raised cosine window can be applied so that the frequency response of this extraction is not as problematic as it would be when a rectangular window would be applied, although this is also an option. This time domain windowing operation outputs the remainder of the windowing operation, i.e. the audio signal without the windowed portion.
Any transient suppression method can be applied in this context including such transient suppression methods leaving a transient-reduced or fully non-transient residual signal after the transient removal. Compared to a complete removal of the transient portion, in which the audio signal is set to zero over a certain portion of time, the transient suppression is advantageous in situations, in which a further processing of the audio signal would suffer from portions set to zero, since such portions set to zero are very unnatural for an audio signal.
Naturally, all calculations performed by the transient detector 103 and the fade-out/fade-in calculator 104 can be applied as well on the encoding side as discussed in connection with FIG. 9 as long as the results of these calculations such as the transient time and/or the start/stop times of the first portion are transmitted to a signal manipulator either as side information or meta information together with the audio signal or separately from the audio signal such as within a separate audio meta data signal to he transmitted via a separate transmission channel.
FIG. 3a illustrates an implementation of the signal processor 110 of FIG. 1. This implementation comprises a frequency selective analyzer 112 and a subsequently-connected frequency-selective processing device 113. The frequency-selective processing device 113 is implemented such that it applies a negative influence on the vertical coherence of the original audio signal. Examples for this processing is the stretching of a signal in time or the shortening of a signal in time where this stretching or shortening is applied in a frequency-selective manner, so that, for example, the processing introduces phase shifts into the processed audio signal, which are different for different frequency bands.
A way of processing is illustrated in FIG. 3B in the context of a phase vocoder processing. Generally, a phase vocoder comprises a sub-band/transform analyzer 114, a subsequently-connected processor 115 for performing a frequency-selective processing of a plurality of output signals provided by item 114 and, subsequently, a sub-band/transform combiner 116, which combines the signals processed by item 115 in order to finally obtain a processed signal in the time domain at output 117 where this processed signal in the time domain, again, is a full bandwidth signal or a lowpass filtered signal as long as the bandwidth of the processed signal 117 is larger than the bandwidth represented by a single branch between item 115 and 116, since the sub-band/transform combiner 116 performs a combination of frequency-selective signals.
Further details on the phase vocoder are subsequently discussed in connection with FIGS. 5A, 5B, 5C and 6.
Subsequently, an implementation of the signal inserter 120 of FIG. 1 is discussed and is depicted in FIG. 4. The signal inserter comprises a calculator 122 for calculating the length of the second time portion. In order to be able to calculate the length for the second time portion in the embodiment in which the transient portion has been removed before the signal processing in the signal processor 110 in FIG. 1, the length of the removed first portion and the time stretching factor (or the time shortening factor) are needed so that the length of the second time portion is calculated in item 122. These data items can be input from outside as discussed in connection with FIGS. 1 and 2.
Exemplarily, the length of the second time portion is calculated by multiplying the length of the first portion by the stretching factor.
The length of the second time portion is forwarded to a calculator 123 for calculating the first border and the second border of the second time portion in the audio signal. In particular, the calculator 133 may be implemented to perform a cross-correlation processing between the processed audio signal without the transient event supplied at input 124 and the audio signal with the transient event, which provides the second portion as supplied at input 125.The calculator 123 is controlled by a further control input 126 so that a positive shift of the transient event within the second time portion is advantageous versus a negative shift of the transient event as discussed later.
The first border and the second border of the second time portion are provided to an extractor 127.The extractor 127 cuts out the portion, i.e. the second time portion out of the original audio signal provided at input 125. Since a subsequent cross-fader 128 is used, the cut-out takes place using a rectangular filter. In the cross-fader 128, the start portion of the second time portion and the stop portion of the second time portion are weighted by an increasing weight from 0 to 1 for the start portion and/or decreasing weight from 1 to 0 in the end portion so that in this cross-fade region, the end portion of the processed signal together with the start portion of the extracted signal, when added together, result in a useful signal. A similar processing is performed in the cross-fader 128 for the end of the second time portion and the beginning of the processed audio signal after the extraction. The cross-fading makes sure that no time domain artifacts occur which would otherwise be perceivable as clicking artifacts when the borders of the processed audio signal without the transient portion and the second time portion borders do not perfectly match together.
Subsequently, reference is made to FIGS. 5a, 5b, 5c and 6 in order to illustrate an implementation of the signal processor 110 in the context of a phase vocoder.
In the following, with reference to FIGS. 5 and 6, implementations for a vocoder are illustrated according to the present invention. FIG. 5a shows a filterbank implementation of a phase vocoder, wherein an audio signal is fed in at an input 500 and obtained at an output 510. In particular, each channel of the schematic filterbank illustrated in FIG. 5a includes a bandpass filter 501 and a downstream oscillator 502. Output signals of all oscillators from every channel are combined by a combiner, which is for example implemented as an adder and indicated at 503, in order to obtain the output signal. Each filter 501 is implemented such that it provides an amplitude signal on the one hand and a frequency signal on the other hand. The amplitude signal and the frequency signal are time signals illustrating a development of the amplitude in a filter 501 over time, while the frequency signal represents a development of the frequency of the signal filtered by a filter 501.
A schematical setup of filter 501 is illustrated in FIG. 5b. Each filter 501 of FIG. 5a may be set up as in FIG. 5b, wherein, however, only the frequencies fi supplied to the two input mixers 551 and the adder 552 are different from channel to channel. The mixer output signals are both lowpass filtered by lowpasses 553, wherein the lowpass signals are different insofar as they were generated by local oscillator frequencies (LO frequencies), which are out of phase by 90°. The upper lowpass filter 553 provides a quadrature signal 554, while the lower filter 553 provides an in-phase signal 555. These two signals, i.e. I and Q, are supplied to a coordinate transformer 556 which generates a magnitude phase representation from the rectangular representation. The magnitude signal or amplitude signal, respectively, of FIG. 5a over time is output at an output 557. The phase signal is supplied to a phase unwrapper 558. At the output of the element 558, there is no phase value present any more which is between 0 and 360°, but a phase value which increases linearly. This “unwrapped” phase value is supplied to a phase/frequency converter 559 which may for example be implemented as a simple phase difference former which subtracts a phase of a previous point in time from a phase at a current point in time to obtain a frequency value for the current point in time. This frequency value is added to the constant frequency value fi of the filter channel i to obtain a temporarily varying frequency value at the output 560. The frequency value at the output 560 has a direct component=fi and an alternating component=the frequency deviation by which a current frequency of the signal in the filter channel deviates from the average frequency fi.
Thus, as illustrated in FIGS. 5a and 5b, the phase vocoder achieves a separation of the spectral information and time information. The spectral information is in the special channel or in the frequency fi which provides the direct portion of the frequency for each channel, while the time information is contained in the frequency deviation or the magnitude over time, respectively.
FIG. 5c shows a manipulation as it is executed for the bandwidth increase according to the invention, in particular, in the vocoder and, in particular, at the location of the illustrated circuit plotted in dashed lines in FIG. 5a.
For time scaling, e.g. the amplitude signals A(t) in each channel or the frequency of the signals f(t) in each signal may be decimated or interpolated, respectively. For purposes of transposition, as it is useful for the present invention, an interpolation, i.e. a temporal extension or spreading of the signals A(t) and f(t) is performed to obtain spread signals A′(t) and f′(t), wherein the interpolation is controlled by a spread factor in a bandwidth extension scenario. By the interpolation of the phase variation, i.e. the value before the addition of the constant frequency by the adder 552, the frequency of each individual oscillator 502 in FIG. 5a is not changed. The temporal change of the overall audio signal is slowed down, however, i.e. by the factor 2. The result is a temporally spread tone having the original pitch, i.e. the original fundamental wave with its harmonics.
By performing the signal processing illustrated in FIG. 5c, wherein such a processing is executed in every filter band channel in FIG. 5a, and by the resulting temporal signal then being decimated in a decimator, the audio signal is shrunk back to its original duration while all frequencies are doubled simultaneously. This leads to a pitch transposition by the factor 2 wherein, however, an audio signal is obtained which has the same length as the original audio signal, i.e. the same number of samples.
As an alternative to the filterbank implementation illustrated in FIG. 5a, a transform implementation of a phase vocoder may also be used as depicted in FIG. 6. Here, the audio signal 100 is fed into an FFT processor, or more generally, into a Short-Time-Fourier-Transform-Processor 600 as a sequence of time samples. The FFT processor 600 is implemented schematically in FIG. 6 to perform a time windowing of an audio signal in order to then, by means of an FFT, calculate magnitude and phase of the spectrum, wherein this calculation is performed for successive spectra which are related to blocks of the audio signal, which are strongly overlapping.
In an extreme case, for every new audio signal sample a new spectrum may be calculated, wherein a new spectrum may be calculated also e.g. only for each twentieth new sample. This distance a in samples between two spectra is given by a controller 602. The controller 602 is further implemented to feed an IFFT processor 604 which is implemented to operate in an overlapping operation. In particular, the IFFT processor 604 is implemented such that it performs an inverse short-time Fourier Transformation by performing one IFFT per spectrum based on magnitude and phase of a modified spectrum, in order to then perform an overlap add operation, from which the resulting time signal is obtained. The overlap add operation eliminates the effects of the analysis window.
A spreading of the time signal is achieved by the distance b between two spectra, as they are processed by the IFFT processor 604, being greater than the distance a between the spectrums in the generation of the FFT spectrums. The basic idea is to spread the audio signal by the inverse FFTs simply being spaced apart further than the analysis FFTs. As a result, temporal changes in the synthesized audio signal occur more slowly than in the original audio signal.
Without a phase resealing in block 606, this would, however, lead to artifacts. When, for example, one single frequency bin is considered for which successive phase values by 45° are implemented, this implies that the signal within this filterbank increases in the phase with a rate of ⅛ of a cycle, i.e. by 45° per time interval, wherein the time interval here is the time interval between successive FFTs. If now the inverse FFTs are being spaced farther apart from each other, this means that the 45° phase increase occurs across a longer time interval. This means that due to the phase shift a mismatch in the subsequent overlap-add process occurs leading to unwanted signal cancellation. To eliminate this artifact, the phase is resealed by exactly the same factor by which the audio signal was spread in time. The phase of each FFT spectral value is thus increased by the factor b/a, so that this mismatch is eliminated.
While in the embodiment illustrated in FIG. 5c the spreading by interpolation of the amplitude/frequency control signals was achieved for one signal oscillator in the filterbank implementation of FIG. 5a, the spreading in FIG. 6 is achieved by the distance between two IFFT spectra being greater than the distance between two FFT spectra, i.e. b being greater than a, wherein, however, for an artifact prevention a phase resealing is executed according to b/a.
With regard to a detailed description of phase-vocoders reference is made to the following documents:
“The phase Vocoder: A tutorial”, Mark Dolson, Computer Music Journal, vol. 10, no. 4, pp. 14-27, 1986, or “New phase Vocoder techniques for pitch-shifting, harmonizing and other exotic effects”, L. Laroche and M. Dolson, Proceedings 1999 IEEE Workshop on applications of signal processing to audio and acoustics, New Paltz, N.Y., Oct. 17-20, 1999, pages 91 to 94; “New approached to transient processing interphase vocoder”, A. Röbel, Proceeding of the 6th international conference on digital audio effects (DAFx-03), London, UK, Sep. 8-11, 2003, pages DAFx-1 to DAFx-6; “Phase-locked Vocoder”, Meller Puckette, Proceedings 1995, IEEE ASSP, Conference on applications of signal processing to audio and acoustics, or U.S. Pat. No. 6,549,884.
Alternatively, other methods for signal spreading are available, such as, for example, the ‘Pitch Synchronous Overlap Add’ method. Pitch Synchronous Overlap Add, in short PSOLA, is a synthesis method in which recordings of speech signals are located in the database. As far as these are periodic signals, the same are provided with information on the fundamental frequency (pitch) and the beginning of each period is marked. In the synthesis, these periods are cut out with a certain environment by means of a window function, and added to the signal to be synthesized at a suitable location: Depending on whether the desired fundamental frequency is higher or lower than that of the database entry, they are combined accordingly denser or less dense than in the original. For adjusting the duration of the audible, periods may be omitted or output in double. This method is also called TD-PSOLA, wherein TD stands for time domain and emphasizes that the methods operate in the time domain. A further development is the MultiBand Resynthesis OverLap Add Method, in short MBROLA. Here the segments in the database are brought to a uniform fundamental frequency by a pre-processing and the phase position of the harmonic is normalized. By this, in the synthesis of a transition from a segment to the next, less perceptive interferences result and the achieved speech quality is higher.
In a further alternative, the audio signal is already bandpass filtered before spreading, so that the signal after spreading and decimation already contains the desired portions and the subsequent bandpass filtering may be omitted. In this case, the bandpass filter is set so that the portion of the audio signal which would have been filtered out after bandwidth extension is still contained in the output signal of the bandpass filter. The bandpass filter thus contains a frequency range which is not contained in the audio signal after spreading and decimation. The signal with this frequency range is the desired signal forming the synthesized high-frequency signal.
The signal manipulator as illustrated in FIG. 1 may, additionally, comprise the signal conditioner 130 for further processing the audio signal with the unprocessed “natural” or synthesized transient on line 121. This signal conditioner can be a signal decimator within a bandwidth extension application, which, at its output, generates a high-band signal, which can then be further adapted to closely resemble the characteristics of the original highband signal by using high frequency (HF) parameters to be transmitted together with an HFR (high frequency reconstruction) datastream.
FIGS. 7a and 7b illustrate a bandwidth extension scenario, which can advantageously use the output signal of the signal conditioner within the bandwidth extension coder 720 of FIG. 7b. An audio signal is fed into a lowpass/highpass combination at an input 700. The lowpass/highpass combination on the one hand includes a lowpass (LP), to generate a lowpass filtered version of the audio signal 700, illustrated at 703 in FIG. 7a. This lowpass filtered audio signal is encoded with an audio encoder 704. The audio encoder is, for example, an MP3 encoder (MPEG1 Layer 3) or an AAC encoder, also known as an MP4 encoder and described in the MPEG4 Standard. Alternative audio encoders providing a transparent or advantageously perceptually transparent representation of the band-limited audio signal 703 may be used in the encoder 704 to generate a completely encoded or perceptually encoded and perceptually transparently encoded audio signal 705, respectively.
The upper band of the audio signal is output at an output 706 by the highpass portion of the filter 702, designated by “HP”. The highpass portion of the audio signal, i.e. the upper band or HF band, also designated as the HF portion, is supplied to a parameter calculator 707 which is implemented to calculate the different parameters. These parameters are, for example, the spectral envelope of the upper band 706 in a relatively coarse resolution, for example, by representation of a scale factor for each psychoacoustic frequency group or for each Bark band on the Bark scale, respectively. A further parameter which may be calculated by the parameter calculator 707 is the noise floor in the upper band, whose energy per band may be related to the energy of the envelope in this band. Further parameters which may be calculated by the parameter calculator 707 include a tonality measure for each partial band of the upper band which indicates how the spectral energy is distributed in a band, i.e. whether the spectral energy in the band is distributed relatively uniformly, wherein then a non-tonal signal exists in this band, or whether the energy in this band is relatively strongly concentrated at a certain location in the band, wherein then rather a tonal signal exists for this band.
Further parameters consist in explicitly encoding peaks relatively strongly protruding in the upper band with regard to their height and their frequency, as the bandwidth extension concept, in the reconstruction without such an explicit encoding of prominent sinusoidal portions in the upper band, will only recover the same very rudimentarily, or not at all.
In any case, the parameter calculator 707 is implemented to generate only parameters 708 for the upper band which may be subjected to similar entropy reduction steps as they may also be performed in the audio encoder 704 for quantized spectral values, such as for example differential encoding, prediction or Huffman encoding, etc. The parameter representation 708 and the audio signal 705 are then supplied to a datastream formatter 709 which is implemented to provide an output side datastream 710 which will typically be a bitstream according to a certain format as it is for example standardized in the MPEG4 standard.
The decoder side, as it is especially suitable for the present invention, is in the following illustrated with regard to FIG. 7b. The datastream 710 enters a datastream interpreter 711 which is implemented to separate the bandwidth extension related parameter portion 708 from the audio signal portion 705. The parameter portion 708 is decoded by a parameter decoder 712 to obtain decoded parameters 713. In parallel to this, the audio signal portion 705 is decoded by an audio decoder 714 to obtain an audio signal.
Depending on the implementation, the audio signal 100 may be output via a first output 715. At the output 715, an audio signal with a small bandwidth and thus also a low quality may then be obtained. For a quality improvement, however, the inventive bandwidth extension 720 is performed to obtain the audio signal 712 on the output side with an extended or high bandwidth, respectively, and thus a high quality.
It is known from WO 98/57436 to subject the audio signal to a band limiting in such a situation on the encoder side and to encode only a lower band of the audio signal by means of a high quality audio encoder. The upper band, however, is only very coarsely characterized, i.e. by a set of parameters which reproduces the spectral envelope of the upper band. On the decoder side, the upper band is then synthesized. For this purpose, a harmonic transposition is proposed, wherein the lower band of the decoded audio signal is supplied to a filterbank. Filterbank channels of the lower band are connected to filterbank channels of the upper hand, or are “patched”, and each patched bandpass signal is subjected to an envelope adjustment. The synthesis filterbank belonging to a special analysis filterbank here receives bandpass signals of the audio signal in the lower band and envelope-adjusted bandpass signals of the lower band which were harmonically patched in the upper band. The output signal of the synthesis filterbank is an audio signal extended with regard to its bandwidth, which was transmitted from the encoder side to the decoder side with a very low data rate. In particular, filterbank calculations and patching in the filterbank domain may become a high computational effort.
The method presented here solves the problems mentioned. The inventive novelty of the method consists in that in contrast to existing methods, a windowed portion, which contains the transient, is removed from the signal to be manipulated, and in that from the original signal, a second windowed portion (generally different from the first portion) is additionally selected which may be reinserted into the manipulated signal such that the temporal envelope is preserved as much as possible in the environment of the transient. This second portion is selected such that it will accurately fit into the recess changed by the time-stretching operation. The accurate fitting-in is performed by calculating the maximum of the cross-correlation of the edges of the resulting recess with the edges of the original transient portion.
Thus, the subjective audio quality of the transient is no longer impaired by dispersion and echo effects.
Precise determination of the position of the transient for the purpose of selecting a suitable portion may be performed, e.g., using a moving centroid calculation of the energy over a suitable period of time.