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.
A primitive time-domain time scale modification method known as overlap-and-add (OLA) overlaps and adds equidistant and equal-sized frames of the signal after changing the overlap factor to extend or reduce its time duration. A more sophisticated method known as synchronous overlap-and-add (SOLA) achieves considerable quality improvement by evaluating a normalized cross-correlation function between the overlapping signals for each overlap position to determine the exact overlap point. This process is called overlap adjustment loop. The synchronous overlap-and-add time scale modification method requires high computational resources for the cross-correlation and normalization processes. Several methods have been proposed to reduce the computational cost of the overlap adjustment loop of the synchronous overlap-and-add time scale modification method. These include: global-and-local search time scale modification (GLS-TSM) which limits the search to just a few candidates; and envelope-matching time scale modification (EM-TSM) which calculates the cross-correlation using only the sign of the signals.
This invention proposes a new time domain time scale modification method based on the synchronous overlap-and-add method. This invention is a generalization of the envelope matching time scale modification method. This invention employs a fixed-size cross-correlation buffer to eliminate the need for normalization inside the search loop. This fixed-size cross-correlation buffer is the center of the overlap region for the initial fine overlap. The computational cost of this invention is lower than any other method with comparable quality.
These and other aspects of this invention are illustrated in the drawings, in which:
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
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:
The synchronous overlap-and-add time scale modification algorithm requires a large amount of computation to calculate the normalized cross-correlation used in equation 1. The global-and-local search time scale modification method and envelope-matching time scale modification method are derived from the synchronous overlap-and-add time scale modification algorithm. These methods attempt to reduce the computation cost of the synchronous overlap-and-add time scale modification algorithm.
The global-and-local search time scale modification method uses global and local similarity measures to select the overlap point. Global similarity is the similarity around a region and local similarity is the similarity around a sample point. In a first global search stage, a region of high similarity between the signals is found by taking a region around the point of minimum difference between the numbers of zero crossings. In a second local search stage, each zero crossing within the region is tested using a distance measure and a feature vector formed by combining values of samples and their derivatives. The resulting algorithm provides better quality than the basic overlap-and-add time scale modification algorithm and requires lower computation than the synchronous overlap-and-add time scale modification algorithm and the envelope-matching time scale modification method described below. The limitation of global-and-local search time scale modification method lies in the global search based only on the zero-cross count and in the intrinsic difficulty of empirically designing an efficient feature vector for a large variety of input signals.
The envelope-matching time scale modification method represents an improvement over global-and-local search time scale modification. Rather than subdividing the search process into 2 phases, the amount of computation is reduced by modifying the original cross-correlation function of equation 1. The new cross-correlation function is described as:
The amount of computation in equation 2 is substantially reduced relative to equation 1 by eliminating the square root in the normalization process. Listening tests indicate that the quality achieved by the envelope-matching time scale modification method is better than global-and-local search time scale modification and almost as high as synchronous overlap-and-add. However, this technique does not provide the maximum achievable quality for the amount of computation required.
The computational cost of the division operation of equation 2 is another problem with this envelope-matching time scale modification technique. For example, the fastest implementation of 16-bit division in a digital signal processor may require at least 15 subtractions, a shift and perhaps one or two memory loads. For an example case where kmax−kmin is 512, the normalization process would require 8192 processor cycles.
This invention proposes a simple solution to the computational problem related to the division operation executed inside the summation of equation 2. A typical implementation would place this division inside a software loop to be computed repeatedly. In this invention the size of the region where the cross-correlation function is to be calculated is fixed. Instead of calculating the cross-correlation function along the entire overlapping region, an effective overlap region of the input vector x[i] is defined as follows:
initial_x≦x[i]≦final_x (3)
where:
initial—x=overlap_size/4,
final—x=3*overlap_size/4
In equation 3, overlap_size is the number of samples of the overlapping region when k=0.
Listening tests were conducted for three input sounds including female speech, male speech, and female speech with background music over a range of time scale modifications from twice normal to half normal speed. The quality achieved by this invention is indistinguishable from the prior art envelope-matching time scale modification, in spite of its lower computational cost.
This application claims priority under 35 U.S.C. 119(c) from U.S. Provisional Application 60/426,607 filed Nov. 15, 2002.
Number | Name | Date | Kind |
---|---|---|---|
20040122662 | Crockett | Jun 2004 | A1 |
Number | Date | Country | |
---|---|---|---|
20050038534 A1 | Feb 2005 | US |
Number | Date | Country | |
---|---|---|---|
60426607 | Nov 2002 | US |