The technical field of this invention is digital audio time scale modification.
Time-scale modification (TSM) is an emerging topic in audio digital signal processing due to the advance of low-cost, high-speed hardware that enables real-time processing by portable devices. Possible applications include intelligible sound in fast-forward play, real-time music manipulation, foreign language training, etc. Most time scale modification algorithms can be classified as either frequency-domain time scale modification or time-domain time scale modification. Frequency-domain time scale modification provides higher quality for polyphonic sounds, while time-domain time scale modification is more suitable for narrow-band signals such as voice. Time-domain time scale modification is the natural choice in resource-limited applications due to its lower computational cost.
The basic operation of time domain time-scale modification is successively overlapping and adding audio frames, where time scaling is achieved by changing the spacing between them. It is known in the art to calculate the exact overlap point based on a measure of similarity between the signals to be overlapped. This measure of similarity is generally based on cross-correlation.
Most time-domain time-scale modification algorithms are derived from the synchronous overlap-and-add method (SOLA). The synchronous overlap-and-add algorithm and its variations are based on successive overlap and addition of audio frames. For the overlap, the overlap point is adjusted by computing a measure of signal similarity between the overlapping regions for each possible overlap position, which is limited by a minimum and maximum overlap points. The position of maximum similarity is selected. The signal similarity measure can be represented as a full cross-correlation function or simplified versions. This similarity calculation represents about 80% or more of the total computation required by the algorithm.
Even though SOLA based methods represent an attractive low-cost solution to the time-scale modification problem, their limitation stands out in the case of polyphonic music signals. Their intrinsic problem is that the audio signal is treated as a whole without consideration for its individual frequency components, so that the overlap point adjustment based on signal similarity cannot simultaneously generate smooth transitions for the multiple frequency components of the signal.
A family of methods known as phase vocoder does time-scale modification in the frequency domain. The input signal is analyzed at equally spaced overlapping windowed frames using a short-time discrete Fourier transform. Next the phase difference for spectral peaks is calculated. This phase difference is the difference in phase between an input phase and a time scale modified signal phase. An intrinsic sinusoidal model is generally used. The frequency is represented by the sum Ωk+ωik: where carrier Ωk is 2πk/N; and ωik is an instantaneous frequency modulator. This produces an estimate ωik for each spectral line by obtaining the phase difference between two consecutive analysis frames. Here, k is the spectral line and N is the size of the short-time discrete Fourier transform. The process reconstructs an output signal from the analyzed frames using a short-time inverse discrete Fourier transform. The frames are overlapped by a different overlap factor to achieve the desired time scaling. The instantaneous frequency ωik is used to calculate the phase corresponding to each spectral line in the time shifted instant.
Even though phase vocoders can potentially achieve higher quality than time-domain methods, a severe limitation is the large amount of computation required in the forward and inverse discrete Fourier transforms and also in the spectrum manipulation process. Practical implementations on fixed-point processors result in a computational cost up to 10 times higher than time-domain time-scale modification methods. In addition, maintaining phase coherence between frames is not an easy task and can be the source of artifacts.
This invention involves time-scale modification of audio signals. In this invention the input audio signal is separated into a plurality of frequency bands via a filter bank. Time-scale modification is applied separately to the individual frequency bands. The thus modified signals are recombined for output.
These and other aspects of this invention are illustrated in the drawings, in which:
a illustrates the analysis step in the overlap and add method of time scale modification according to the prior art;
b illustrates the synthesis step in the overlap and add method of time-scale modification according to the prior art;
a illustrates the analysis step in synchronous overlap and add method of time scale modification according to the prior art;
b illustrates the synthesis step in the synchronous overlap and add method of time-scale modification according to the prior art;
System 100 received digital audio data on media 101 via media reader 103. In the preferred embodiment media 101 is a DVD optical disk and media reader 103 is the corresponding disk reader. It is feasible to apply this technique to other media and corresponding reader such as audio CDs, removable magnetic disks (i.e. floppy disk), memory cards or similar devices. Media reader 103 delivers digital data corresponding to the desired audio to processor 120.
Processor 120 performs data processing operations required of system 100 including the time scale modification of this invention. Processor 120 may include two different processors, microprocessor 121 and digital signal processor 123. Microprocessor 121 is preferably employed for control functions such as data movement, responding to user input and generating user output. Digital signal processor 123 is preferably employed in data filtering and manipulation functions such as the time scale modification of this invention. A Texas Instruments digital signal processor from the TMS320C5000 family is suitable for this invention.
Processor 120 is connected to several peripheral devices. Processor 120 receives user inputs via input device 113. Input device 113 can be a keypad device, a set of push buttons or a receiver for input signals from remote control 111. Input device 113 receives user inputs which control the operation of system 100. Processor 120 produces outputs via display 115. Display 115 may be a set of LCD (liquid crystal display) or LED (light emitting diode) indicators or an LCD display screen. Display 115 provides user feedback regarding the current operating condition of system 100 and may also be used to produce prompts for operator inputs. As an alternative for the case where system 100 is a DVD player or player/recorder connectable to a video display, system 100 may generate a display output using the attached video display. Memory 117 preferably stores programs for control of microprocessor 121 and digital signal processor 123, constants needed during operation and intermediate data being manipulated. Memory 117 can take many forms such as read only memory, volatile read/write memory, nonvolatile read/write memory or magnetic memory such as fixed or removable disks. Output 130 produces an output 131 of system 100. In the case of a DVD player or player/recorder, this output would be in the form of an audio/video signal such as a composite video signal, separate audio signals and video component signals and the like.
The next step is optional decompression (block 203). Data is often delivered in a compressed format to save memory space and transmit bandwidth. There are several motion picture data compression techniques proposed by the Motion Picture Experts Group (MPEG). These video compression standards typically include audio compression standards such as MPEG Layer 3 commonly known as MP3. There are other audio compression standards. The result of decompression for the purposes of this invention is a sampled data signal corresponding to the desired audio. Audio CDs typically directly store the sampled audio data and thus require no decompression.
The next step is audio processing (block 204). System 100 will typically include audio data processing other than the time scale modification of this invention. This might include band equalization filtering, conversion between the various surround sound formats and the like. This other audio processing is not relevant to this invention and will not be discussed further.
The next step is time scale modification (block 205). This time scale modification is the subject of this invention and various techniques of the prior art and of this invention will be described below in conjunction with FIGS. 3 to 6. Flow chart 200 ends with data output (block 206).
The synchronous overlap-and-add time scale modification algorithm is an improvement over the previous overlap-and-add approach. Instead of using a fixed overlap interval for synthesis, the overlap point is adjusted by computing the normalized cross-correlation between the overlapping regions for each possible overlap position within minimum and maximum deviation values. The overlap position of maximum cross-correlation is selected. The cross-correlation is calculated using the following formula, where Lk is the length of the overlapping window:
Process 500 reconstructs an output signal from the analyzed frames using a short-time inverse discrete Fourier transform (block 503). The frames are overlapped by a different overlap factor to achieve the desired time scaling. The instantaneous frequency ωik is used to calculate the phase corresponding to each spectral line in the time shifted instant.
Consider a simple signal consisting of non-harmonically related frequencies, such as f1=0.5 sin(x) and f2=0.25 sin({square root}{square root over (2)}x) and their sum f3 illustrated in
Filters of this type were tested with a signal that included both music and spoken English. The analysis filter bank separated the signal into 25 frequency bands. To simplify processing, these bands were not decimated. This resulted in 25 times the amount of original data and 25 times the time-scale modification computation. Two different time-domain time-scale modification techniques were applied to these original bands individually before summing. Listening tests showed that both time-domain time-scale modification techniques produced excellent results. These results were much better than employing the same time-domain time-scale modification techniques applied to the signal as a whole.
This filter bank time-scale modification method may be particularly useful for MPEG audio subbands compressed according to the MPEG Layer 3 standard commonly known as MP3. These MP3 files are already divided into subbands and decimated. This results in no data increase so that the time-scale modification computation is on the same order as needed for operating upon the original signal as a whole.
The filter bank time-scale modification technique of this invention is a fundamental approach that can be applied in many ways. Some but not all of these ways produce excellent results. There are no pre-defined constraints on the filter bank used nor on the time-scale modification method used within each frequency band. There is no requirement that only time-domain time-scale modification techniques be applied to individual bands. Frequency domain time-scale modification or other techniques could also be applied. There can be some relationship between the time-scale modification methods between bands. Different time-scale modification techniques may be applied to different bands. To apply filter bank time-scale modification in a useful way, various design issues must be considered such as the computational resource available and desired level of quality. Psychoacoustic principles will control which implementations are successful and which are not.