Technique for embedding a code in an audio signal and for detecting the embedded code
Abstract
A code is embedded into an audio product so as to be processed therewith for recording and/or broadcast and yet be reliably detected while remaining inaudible to human perception. The code is represented by symbols formed from an impulse function having its energy within a specified frequency range. The audio product is analyzed to find segments which can mask the code based on tonality and a minimum signal energy. When the audio product with an embedded code is detected, decoding thereof involves finding candidate code signals which are checked against preset criteria. In particular, each symbol is made of at least two impulse functions with a preset spacing therebetween.

Term
Term ended
Projected expiry passed 10 July 2018, 8.2 years ago.
- Priority
- Filed
- Published
- Projected expiry
- Today
52 claims: 23 independent, 29 dependent
- 1A method of embedding a digital code in a digitized audio product, comprising the steps of:filtering the digitized audio product to a frequency band of interest;determining a tonality indication for each of a plurality of segments of the filtered audio product which indicates the extent to which power is distributed uniformly for frequencies in at least a portion of said band of interest;and inserting at least a portion of the digital code into a particular segment from said plurality of segments only if said tonality indication indicates a relatively uniform power distribution in said particular segment.
- 5A method of embedding a digitized code in a digitized audio product, comprising the steps of:filtering the digitized audio product to a frequency band of interest;providing a coding signal derived from a band-limited impulse function with a waveform having its energy confined to and evenly spread across at least a portion of said frequency band of interest;deriving said digitized code from said coding signal;and embedding said digitized code into said audio product.
- 10A method of providing a digitized code to be embedded in a digitized audio product, comprising the steps of:providing said digitized code as a series of binary bits;dividing said binary bits into groups, each group having a plurality of bits;providing coding signals to represent said bits, respectively;deriving a symbol from said coding signals for each of said groups, each symbol having a plurality of said coding signals with a preset spacing therebetween.
- 15A method of encoding and decoding a digitized code embedded in a digitized audio product, comprising the steps of:deriving said digitized code in a form of start, data and end symbol types, each symbol representing a plurality of bits, and each bit being associated with a coding signal of given polarity;generating said start type of symbol to consist of a plurality of said coding signals all of which have the same designated polarity;embedding said digitized code in said digitized audio product;detecting said digitized code embedded in said audio product;and decoding said detected digitized code by determining whether the polarity of the coding signals on said start type of symbol is said designated polarity and, if not, inverting the polarity of said coding signals in said data and end types of symbols.
- 16A method of embedding a digitized code in a digitized audio product, comprising the steps of:identifying segments of the digitized audio product into which the digitized code can be embedded based on predetermined criteria;generating portions of the digitized code for insertion into said segments, respectively;removing the digitized audio product within said identified segments except for a predetermined small percentage of amplitude to generate modified segments;and inserting said portions of the digitized code into said modified segments, respectively.
- 17A method of embedding a digitized code in a digitized audio product, comprising the steps of:analyzing the digitized audio product to derive measured values for designated characteristics thereof;locating segments of the digitized audio product, based on said derived measured values and a set of preselected parameters, into which the digitized code can be inserted so as to be masked;inserting the digitized code into said located segments;determining whether a degree of masking of the inserted digitized code meets a predetermined level and, if not, modifying values of at least one of said set of preselected parameters, and then performing said locating and inserting steps again with said modified values.
- 18A method of embedding a digitized code in an audio product, comprising the steps of:dividing said digitized code into preselected portions;representing said portions by a plurality of coding symbols, respectively;determining spacing of said coding symbols from each other to be used for embedding the digitized code within the audio product so that said spacing is greater than a predetermined minimum, and inserting the coding symbols within the audio product based on said determined spacing.
- 22A method of decoding an audio product into which a code of digitized coding signals has been embedded, comprising the steps of:obtaining a digitized audio product;comparing said digitized audio product with a template of a coding signal to identify candidate coding signals based on shape;comparing pairs of sequential candidate coding signals with each other based on preselected characteristics to identify which ones constitute the coding signals;and reconstructing said code from said coding signals identified by said comparing step.
- 25Apparatus for embedding signals representing a digitized code in an audio product, comprising:a bandpass filter receiving the audio product and having an output in a frequency band of interest;a signal generator outputting a coding signal derived from a band-limited impulse function with a waveform having its energy confined to and evenly spread across at least a portion of the frequency band of interest;means for deriving the signals for representing said digitized code from said coding signal;and means for embedding said signals representing the digitized code into said audio product.
- 29A method of providing a digitized code to be embedded in an audio product, comprising the steps of:representing said digitized code by a plurality of analog symbols to be embedded in the audio product;obtaining a plurality of data samples corresponding to a digitized audio product;filtering a portion of the plurality of data samples of the digitized audio product to a frequency band of interest;calculating an RMS envelope signal for said filtered portion of the digitized audio product;and controlling an amplitude level of said symbols in accordance with said calculated RMS envelope signal.
- 30A method of decoding an audio product into which a code of coding signals has been embedded, comprising the steps of:obtaining a digitized audio product with the code of coding signals being embedded therein;storing a digitized template of a coding signal as a given number of data samples;storing from one portion of the digitized audio product a number of data samples equal to said given number of data samples of said stored template;comparing corresponding data samples of the stored template and audio product with each other to determine an error function between said template and said stored portion of the digitized audio product;determining a scaling factor for the stored audio product which produces a minimum error from said error function;determining amplitude for said one portion of the audio product from said scaling factor;and combining said minimum error with said amplitude to recognize whether a coding signal is included in said stored portion of the digitized audio product.
- 32Apparatus for decoding an audio product into which a code of coding signals has been embedded, comprising:means for obtaining a digitized audio product with the code of coding signals being embedded therein;means for storing a digitized template of a coding signal as a given number of data samples;means for storing from one portion of the digitized audio product a number of data samples equal to said given number of data samples of said stored template;means for comparing corresponding data samples of the stored template and audio product with each other to determine an error function between said template and said stored portion of the digitized audio product;means for determining a scaling factor for the stored audio product which produces a minimum error from said error function;means for determining amplitude of the audio product from said scaling factor;and means for combining said minimum error with said amplitude to recognize whether a coding signal is included in said stored portion of the digitized audio product.
- 34Apparatus for providing a signal representing a digitized code to be embedded in an audio product, comprising:means for providing said digitized code as a series of binary bits;means for dividing said binary bits into groups, each group having a plurality of bits;means for providing coding signals to represent said bits, respectively;and means for deriving a symbol from said coding signals for each of said groups, each symbol having a plurality of said coding signals with a preset spacing therebetween.
- 39Apparatus for decoding an audio product into which coding signals representing a digitized code have been embedded, comprising:means for obtaining a digitized audio product with signals representing said digitized code being embedded therein;first means for comparing said digitized audio product with a template of a coding signal to identify candidate coding signals based on shape;second means for comparing pairs of sequential candidate coding signals with each other based on preselected characteristics to identify which ones constituted the coding signals;and means for reconstructing said code from said coding signals identified by said second comparing step.
- 42Apparatus for embedding a digitized code in an audio product, comprising:means for identifying segments of the audio product into which the digitized code can be embedded based on predetermined criteria;means for generating coding signals representing portions of the digitized code for insertion into said segments, respectively;means for removing the audio product within said identified segments except for a predetermined small percentage of amplitude to generate modified segments;and means for inserting said coding signals representing portions of the digitized code into said modified segments, respectively.
- 43Apparatus for embedding a digital code in an audio product, comprising:means for filtering the audio product to a frequency band of interest;means for determining a tonality indication for each of a plurality of segments of the filtered audio product which indicates the extent to which power is distributed uniformly for frequencies in at least a portion of said band of interest;means for representing said digital code with symbols;and means for inserting at least one of said symbols is not a particular segment from said plurality of segments only if said tonality indication indicates a relatively uniform power distribution in said particular segment.
- 44Apparatus for embedding a digitized code in a digitized audio product, comprising:means for analyzing the audio product to derive measured values for designated characteristics thereof;means for locating segments of the audio product, based on said derived measured values and a set of preselected parameters, into which signals representing the digitized code can be inserted so as to be masked;means for inserting said signals representing the digitized code into said located segments;and means for determining whether a degree of masking of the inserted digitized code meets a predetermined level and, if not, modifying values of at least one of said set of preselected parameters, and then performing said locating and inserting steps again based on said modified values.
- 45Apparatus for encoding and decoding a digitized code embedded in an audio product, comprising:means for representing said digitized code by symbols in a form of start, data and end symbol types, each of said symbols representing a plurality of bits, and each bit being associated with a coding signal of given polarity;means for generating said start type of symbol to consist of a plurality of said coding signals all of which have the same designated polarity;means for embedding the symbols representing said digitized code in said audio product;means for detecting said symbols embedded in said audio product;means for determining whether the polarity of the coding signals for said detected start type of symbol is said designated polarity and, if not, inverting the polarity of said coding signals in said data and end types of symbols;and means for decoding said digitized code based on the coding signals produced by said determining means.
- 46A method of providing a digitized code to be embedded in an audio product, comprising the steps of:representing said digitized code by a plurality of analog symbols to be embedded in the audio product;applying a frequency transform to said audio product to obtain a transform signal within a frequency band of interest;calculating power of the transform signal in each of a plurality of frequency groups, wherein each of said frequency groups includes a portion of said band of interest;and controlling an amplitude level of said symbols in accordance with said calculated power.
Independent claims23
162 paragraphs in 6 sections, as filed
0001The invention is directed to an improved technique for coding an audio signal and, in particular, to embedding a code into an audio signal so that a decoder can detect the code reliably despite signal degradation.
0002Audio signals are generated in a variety of ways, such as by radio and television stations, and transmitted in various ways, such as by means of airwaves, cable and satellite as well as distributed on magnetic tape and storage disc (e.g. optic, magnetic) media. Various benefits are derived from identifying these audio signals which constitute "audio products" in the form of programs or commercials, for example. The audio products can be broadcast by radio, television or cable stations and/or stored on tape, CD-ROM or other media for replay by the consumer. By being able to automatically distinguish one audio product from another, it becomes possible to perform a variety of services. For example, air time verification is possible to verify for an advertiser that a commercial has actually been broadcast, and that it was aired in its entirety, at the proper time and in the locations that were paid for. In addition, performance royalty revenues can be more accurately calculated based on the frequency with which a piece of music, say, has been broadcast. For these and other reasons, it is highly desirable to know when a particular audio product has been "performed" in the sense that it has been heard by any member(s) of a listening audience. Furthermore, the listening (or watching) audience can be measured by having individual members or individual households equipped with devices capable of identifying certain designated audio products, and then processing the resultant data. This can help measure the popularity of a program so that its value to advertisers can be assessed. Also, the exposure of an audience to a commercial can be measured this way, and such information can be combined with other data to determine the effectiveness of that commercial in terms of how well it is remembered and/or the resulting purchases made thereafter.
0003The automation of this identification by the prior art has involved various techniques for embedding a code in the audio product. The resulting signal is reproduced by, say, a speaker of a radio or television set. The embedded code is also reproduced by the speaker so that it can be detected by a sensing device for data storage and/or processing to yield the desired information. Various types of encoding schemes are known. However, they have proved to be unsatisfactory for one or more of the following reasons. If the code is easily removable without permission, then the accuracy of the desired measurement will obviously be skewed. Therefore, it is important for the embedded code to be "indelible" in the sense that it cannot be removed without seriously (or at least noticeably) damaging the audio product. Also, the code must not create any audible deterioration in the quality of the audio product itself, i.e. which can be discerned by a human listener. Furthermore, the code must have adequate immunity to noise which occurs during the sending, playback and receiving operations of the encoded audio product. For example, an audio product is typically exposed to various phase shifts and time shifts in the process of being recorded and/or broadcast. In addition, the audio product may be compressed by a bit rate reduction system based on psychoacoustic compression techniques, such as EUREKA 147, DOLBY AC3, and MPEG2. (The term "psychoacoustic" has to do with the human auditory response to a sound stimulus.) The code must withstand such processing while still maintaining its characteristics for enabling it to be reliably recovered by the decoder while remaining inaudible. Meeting all of these requirements has proven to be too tall of an order for the prior art, particularly when combined with the need to minimize the complexity of the apparatus and method, and to carry out the technique quickly and efficiently.
0004One aspect of the present invention provides an improved technique for identifying an audio product with an embedded code.
0005Another aspect of the present invention embeds the code indelibly.
0006A further aspect of the present invention embeds the code in such a way that it is not discernible to the listener when the audio product is reproduced audibly.
0007One other aspect provides an improved encoding technique.
0008Still another aspect of the present invention recovers the embedded code despite signal degradation.
0009Yet another aspect of the present invention recovers the embedded code despite signal compression.
0010One other aspect of the present invention provides an improved decoding technique.
0011Another aspect of the present invention enables adaptive masking of the code within the audio product.
0012One aspect of the invention provides a method and apparatus for embedding a digital code in a digitized audio product by filtering the digitized audio product to a frequency band of interest. A tonality indication is determined for each of a plurality of segments of the filtered audio product which indicates the extent to which power is distributed uniformly for frequencies in at least a portion of the band of interest. At least a portion of the digital code is inserted into a particular segment from the plurality of segments only if the tonality indication indicates a relatively uniform power distribution in that particular segment.
0013Another aspect of the present invention is directed to a method and apparatus for embedding a digitized code in a digitized audio product by filtering the digitized audio product to a frequency band of interest, and providing a coding signal derived from a band-limited impulse function with a waveform having its energy confined to and evenly spread across at least a portion of the frequency band of interest. The digitized code is derived from the coding signal, and the digitized code is inserted into the audio product.
0014Yet another aspect of the present invention is directed to a method and apparatus for providing a digitized code to be embedded in a digitized audio product by providing the digitized code as a series of binary bits, and dividing the binary bits into groups, each group having a plurality of bits. Coding signals are provided to represent the bits, respectively. A symbol is derived from the coding signals for each of the groups, each symbol having a plurality of the coding signals with a preset spacing therebetween.
0015One other aspect of the present invention is directed to a method and apparatus for encoding and decoding a digitized code embedded in a digitized audio product by deriving the digitized code in a form of start, data and end symbol types, each symbol representing a plurality of bits, and each bit being associated with a coding signal of given polarity. The start type of symbol is generated to consist of a plurality of the coding signals all of which have the same designated polarity. The digitized code is embedded in the digitized audio product. The digitized code embedded in the audio product is detected, and the detected digitized code is decoded by determining whether the polarity of the coding signals on the start type of symbol is the designated polarity and, if not, inverting the polarity of the coding signals in the data and end types of symbols.
0016Still another aspect of the present invention is directed to a method and apparatus for embedding a digitized code in a digitized audio product by identifying segments of the digitized audio product into which the digitized code can be embedded based on predetermined criteria. Portions of the digitized code are generated for insertion into the segments, respectively. The digitized audio product within the identified segments is removed, except for a predetermined small percentage of amplitude, to generate modified segments, and the portions of the digitized code are inserted into the modified segments, respectively.
0017A further aspect of the present invention is directed to a method and apparatus for embedding a digitized code in a digitized audio product by analyzing the digitized audio product to derive measured values for designated characteristics thereof. Segments of the digitized audio productare located, based on the derived measured values and a set of preselected parameters, into which the digitized code can be inserted so as to be masked. The digitized code is inserted into the located segments, and a determination is made whether a degree of masking of the inserted digitized code meets a predetermined level and, if not, modifying values of at least one of the set of preselected parameters. Then, the locating and inserting steps are performed again with the modified values.
0018A still further aspect of the present invention is directed to a method and apparatus for embedding a digitized code in a digitized audio product by dividing the digitized code into preselected portions, and representing the portions by a plurality of coding symbols, respectively. The spacing of the coding symbols from each other is determined to be used for embedding the digitized code within the audio product so that the spacing is greater than a predetermined minimum, and the coding symbols are inserted within the audio product based on the determined spacing.
0019One further aspect of the present invention is directed to a method and apparatus for decoding an audio product into which a code of digitized coding signals has been embedded by obtaining a digitized audio product and comparing the digitized audio product with a template of a coding signal to identify candidate coding signals based on shape. Pairs of sequential candidate coding signals are compared with each other based on preselected characteristics to identify which ones constitute the coding signals, and then reconstructing the code from the coding signals identified by the comparing step.
0020Since the present invention can be implemented as a computer program running on a conventional computer, the present invention can be embodied as a storage medium containing computer code, and as an electrical signal carrying such computer code. Further, the present invention encompasses an audio signal generated with embedded digital code as described herein above.
0021Embodiments of the present invention will now be described with reference to the accompanying drawings, in which: <ul id="ul0001" list-style="none" compact="compact"><li>Figure 1 is a general flow chart for the encoder of one embodiment of the invention.</li><li>Figure 2 is a flow chart for the Analyzer function.</li><li>Figure 3 is a flow chart of the Locator function.</li><li>Figure 4 is a flow chart of the Inserter function.</li><li>Figure 5 is a graph of the 2 ping symbol frame.</li><li>Figure 6 is a graph of the 3 ping symbol frame.</li><li>Figure 7 is a low pass filter impulse response for a filter such as is used for the Analyzer.</li><li>Figure 8 is a low pass filter frequency response for the filter of Fig. 7.</li><li>Figure 9 is a bandpass filter frequency response for a filter such as is used for the Analyzer.</li><li>Figure 10 is a bandpass filter impulse response for the filter of Fig. 9.</li><li>Figure 11 is a band pass filter frequency response for a filter such as is used for the Inserter.</li><li>Figure 12 is a band pass filter impulse response for the filter of Fig. 11.</li><li>Figure 13 is a ping waveform spectral content.</li><li>Figure 14 is a ping waveform, time domain.</li><li>Figure 15 is a general flow chart for the decoder of one embodiment of the invention.</li><li>Figure 16 is a flow chart for the filtering and normalization functions of the decoder.</li><li>Figure 17 is a flow chart for the ping identification function.</li><li>Figure 18 is a flow chart for the symbol identification function.</li></ul>
ENCODER
0022An embodiment of the invention includes an encoding technique for embedding alphanumeric codes in the sound waveform of a sampled audio product. This requires a modification of the sound waveform. However, the encoding technique is designed to render the modification inaudible in the sense that it cannot be discerned by a person with normal hearing. The encoding technique modifies only short portions of the sound waveform (the content of these modified portions is called a "symbol" which is used to form a code) and has no effect on the remaining waveform. Inaudibility of the symbols is achieved by careful selection of the symbol locations and the manner with which the code is inserted. The coding technique uses only a specific frequency band within the audio frequency range which has been selected to allow the embedded information to be recovered by a decoder (described below), even if the signal has passed through a low-quality transmission channel. The technique is also reasonably tolerant of frequency variations, such as produced by fluctuations in record/playback tape speeds.
OVERVIEW
0023A general description of the encoder of an embodiment of this invention is provided in relation to Fig. 1. The original sound waveform of the audio product is received as a serial stream of data and is stored into memory in the form of a digital audio Input File 1, e.g. in WAVE format (Multimedia programming interface and data specification No. V1.0 from IBM and Microsoft), which can be either mono or stereo. This is derived from a digital source of an audio signal or in a well known way by digitally sampling an analog audio signal. The sampling frequency is preferably either 44,100 samples/sec. or 48,000 samples/sec. The sampling frequency of 44,100 samples/sec. is the standard adopted for professional CD recordings and also by some radio stations. The sampling frequency of 48,000 samples/sec. is used by most radio stations and also is the standard adopted for digital TV. The encoded audio Output File 13 produced by the encoder is also stored in the form of a WAVE file.
0024The operation of the encoder is controlled by a number of selectable parameters 8. It may be necessary to change these parameters on occasion, for certain types of audio products. For example, audio products produced for the motion picture industry to be shown in theatres have a high dynamic range (e.g. 90 db) and high peak to average signal ratio, whereas the audio products produced for broadcast transmission have a reduced dynamic range (e.g. 40 db) and a low peak to average signal ratio. Each type requires parameter selection designed for optimal symbol insertion rates.
0025The encoder is preferably implemented to perform three separate functions which are called herein the Analyzer, Locator and Inserter functions. Referring to Fig. 1, the Analyzer 3 analyzes the Input File 1 and produces an intermediate file called Analysis File 5. This process of analysis is not affected by the selectable parameters 8. The Locator 7 reads the Analysis File 5 and decides exactly where and how the symbols should be inserted, so that they are psychoacoustically well masked by the audio product. This process is affected by receiving certain ones of parameters 8. A list of symbol description records is written to a file 9, called an Insertion File. The Inserter 11 reads the original Input File 1 and the Insertion File 9, and implements the symbol insertions described in the latter. This process is also affected by receiving certain ones of parameters 8. The resulting encoded audio is written to a WAVE format Output File 13.
0026In situations where the encoding needs to be tried repeatedly, with different values of the parameters, (such as for the adaptive masking described below or for verifying quality performance) the Analyzer 3 only needs to be run once, since its operation is not affected by the parameters 8. Since the Locator and the Inserter functions run faster than the Analyzer, this design allows such iterative insertion steps to be done efficiently and quickly.
0027The string of data signals constituting the code to be embedded is preferably a group of hexadecimal digits, each hexadecimal digit representing four bits, or two insertion symbols. The number of bits in the string must always be even. If the number is not a multiple of four, the last two bits are separated by a decimal point and expressed as a digit in the range 0..3. The order of symbol insertion is left to right in the string, and most significant to least significant within each digit. For instance, the string 75E8.2 corresponds to an 18-bit sequence as shown below in Table 1: <tables id="tabl0001" num="0001"><table frame="all"><title>Table 1</title><tgroup cols="9" colsep="1" rowsep="1"><colspec colnum="1" colname="col1" colwidth="17.50mm" /><colspec colnum="2" colname="col2" colwidth="17.50mm" /><colspec colnum="3" colname="col3" colwidth="17.50mm" /><colspec colnum="4" colname="col4" colwidth="17.50mm" /><colspec colnum="5" colname="col5" colwidth="17.50mm" /><colspec colnum="6" colname="col6" colwidth="17.50mm" /><colspec colnum="7" colname="col7" colwidth="17.50mm" /><colspec colnum="8" colname="col8" colwidth="17.50mm" /><colspec colnum="9" colname="col9" colwidth="17.50mm" /><thead valign="top"><row><entry namest="col1" nameend="col2" align="center">7</entry><entry namest="col3" nameend="col4" align="center">5</entry><entry namest="col5" nameend="col6" align="center">E</entry><entry namest="col7" nameend="col8" align="center">8</entry><entry namest="col9" nameend="col9" align="center">2</entry></row></thead><tbody valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" align="right">01</entry><entry namest="col2" nameend="col2" align="right">11</entry><entry namest="col3" nameend="col3" align="right">01</entry><entry namest="col4" nameend="col4" align="right">01</entry><entry namest="col5" nameend="col5" align="right">11</entry><entry namest="col6" nameend="col6" align="right">10</entry><entry namest="col7" nameend="col7" align="right">10</entry><entry namest="col8" nameend="col8" align="right">00</entry><entry namest="col9" nameend="col9" align="right">10</entry></row></tbody></tgroup></table></tables>
0028A single '+' character can be appended to any string up to 64 bits long. This causes 14 extra bits to be internally calculated and appended to the code. These bits are check digits generated by a (n+7,n,5) BCH code in the GF(2<sup>2</sup>) (quaternary) field, where n is the number of supplied bit-pairs, up to 32. This code can correct up to 2 erroneous symbols and detect all 3-error cases. The generation of the check code involves effectively zero-padding the supplied bit string on the left to a full 64 bits, performing the check digit calculation on those bits, and then discarding the padding bits. In other words, the 14 check digits generated for the string "31E4+" are identical to those generated for "00000000000031E4+".
0029The Inserter receives data from both the Input File 1 and the Insertion File 9 in order to generate Output File 13.
0030The following table is a list of the parameters 8, supplied to run the Locator function 7 and Inserter function 11. The parameters are listed along with their default values. The meaning and utilization of these parameters is explained below. <tables id="tabl0002" num="0002"><img file="EP0913952A2_D0001.tif" /></tables>
0031The encoder confines its operations to a frequency band of approximately 1000 Hz to 5000 Hz because it has the predominant amount of audio program energy content and is the least deteriorated by sending, playback and receiving. Thus, it is more robust in terms of resistance to distortion by various effects caused by the processing which the audio product must undergo, such as compression. Signal components outside this band are not affected by the encoding process, and are largely ignored by the signal analysis process of the Analyzer 3. This frequency band will be referred to as the "band of interest".
0032When a symbol is inserted, the sound waveform in the original audio product, in the band of interest only, is removed for a time period allotted for insertion of the symbol, called a symbol insertion period (used interchangeably herein with "segment"). The removal is not complete in the sense that some of the waveform of the original audio product is retained throughout this period, and the removal is implemented with a soft ramp at the beginning and end of the symbol insertion period. The removed audio is replaced by two, or sometimes three band-limited impulse functions, spaced at preselected intervals from each other. Data coding is performed by setting the polarity of these impulse functions. Each impulse function, called a 'ping', is an ideal mathematical impulse function to which a steep bandpass filter has been applied. The energy of the resulting waveform is confined to, and evenly spread across, the range of 1485 Hz to 3980 Hz.
0033Heard alone, these 'ping' symbols sound like a 'click' or 'pop'. The task of the Locator 7 is to find segments of the audio product in Input File 1 in the band of interest which are sufficiently spectrally rich (as defined below). When a ping waveform is added to such a segment, it sufficiently resembles the energy levels that were removed so that the modification is therefore difficult for a person to discern audibly. The magnitude of the inserted symbol is scaled to the RMS power of the in-band envelope signal in the symbol insertion period (the term "in-band" refers to the frequency range for the output signal of low pass filter step 20 in Fig. 2). This is done for two reasons: firstly, it helps provide a consistent 'replacement' power of the removed audio, to reduce the audibility. Secondly, the decoder (as described below) uses a normalization (or automatic gain) process which scales the signal it receives to provide a uniform RMS power level in the band of interest. By scaling the ping waveforms to the surrounding RMS, the encoder helps ensure that the ping waveforms appear in the decoder with a predictable amplitude, namely scaled to the amplitude of the surrounding audio. The ping symbols are sufficiently structured and unusual that they can be identified by the decoder with a high degree of accuracy within the surrounding audio, even after allowing for some distortion in the course of transmission.
0034The signal processing generally follows a model wherein a digitized signal is operated on by a signal processing function, the result being another digitized signal. This signal can then be passed to one or more further processing blocks. Generally speaking, a "signal" is a stream of 32-bit floating point numbers, or samples, representing the voltage on a hypothetical physical signal at equally spaced points in time. Due to the nature of the processing being performed, it is necessary to relate each output point to a specific time point in the Input File 1. In other words, all propagation delays through the signal paths need to be tracked very carefully. This is complicated by the fact that different signals have different sampling periods, and different signal processing elements have different delay characteristics. All sampling periods and delays are expressed in integral multiples of the "fundamental tick", or ftick. The ftick period is about 88.6 nsec. The exact value of this time period depends on the input file sample rate, as explained in detail below.
ANALYZER
0035The Analyzer 3 generates two measurements of the input signal, namely the in-band envelope and the Tonality Ratio. The in-band envelope is a moving-average measure of the RMS power in the in-band signal. The Tonality Ratio is a figure indicating whether the in-band signal appears to be spectrally rich, i.e. having relatively uniform power throughout the band, or whether it is tonal, i.e. having a mix of high and low powers. Tonal signals do not mask clicks and pops well.
0036The envelope measurement is done via a series of signal processing stages as described below. The process is designed to produce a signal averaging envelope in a way which matches what will be done in the decoder for the same audio product, as explained in detail below.
0037As shown in Fig. 2, step 20 converts the signal from its sampling rate of 44100 or 48000 samples/sec. to a sampling rate close to 11025 samples/sec. All later processing is based on the latter signal. Step 20 also applies a low pass filter which removes all frequencies above about 4950 Hz so that they have no effect on the encoding process.
0038Proceeding to signal path 22 of Fig. 2, the 11025 samples/sec. signal is passed through a bandpass filter 24 with a frequency range of 980 Hz to 4850 Hz. Then, a power measurement process 26 reduces the sampling rate by a decimating factor of 8. Step 26 takes in eight samples from the bandpass signal outputted by step 24 and sums the squares of each sample, and divides the result by 8. One result is outputted for each eight input samples. An 8 times decimating and low-pass filter 28 is then applied for smoothing the output of step 26. Filter 28 is a 31 tap filter with the fixed coefficients set forth in Table 3. <tables id="tabl0003" num="0003"><table frame="all"><title>Table 3</title><tgroup cols="4" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="39.37mm" /><colspec colnum="2" colname="col2" colwidth="39.37mm" /><colspec colnum="3" colname="col3" colwidth="39.37mm" /><colspec colnum="4" colname="col4" colwidth="39.37mm" /><thead valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" align="center"><b>OFFSET</b></entry><entry namest="col2" nameend="col2" align="left"><b>VALUE</b></entry><entry namest="col3" nameend="col3" align="center"><b>OFFSET</b></entry><entry namest="col4" nameend="col4" align="left"><b>VALUE</b></entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">0</entry><entry namest="col2" nameend="col2" align="char" char=".">0.00364725799282</entry><entry namest="col3" nameend="col3" align="right">16</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0610569733715</entry></row><row><entry namest="col1" nameend="col1" align="left">1</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0071953136762</entry><entry namest="col3" nameend="col3" align="right">17</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0596727757011</entry></row><row><entry namest="col1" nameend="col1" align="left">2</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0112656333407</entry><entry namest="col3" nameend="col3" align="right">18</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0574157779489</entry></row><row><entry namest="col1" nameend="col1" align="left">3</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0157909231222</entry><entry namest="col3" nameend="col3" align="right">19</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0543587323779</entry></row><row><entry namest="col1" nameend="col1" align="left">4</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0206811320698</entry><entry namest="col3" nameend="col3" align="right">20</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0505991154649</entry></row><row><entry namest="col1" nameend="col1" align="left">5</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0258259243044</entry><entry namest="col3" nameend="col3" align="right">21</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0462550106913</entry></row><row><entry namest="col1" nameend="col1" align="left">6</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0310981949734</entry><entry namest="col3" nameend="col3" align="right">22</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0414601700119</entry></row><row><entry namest="col1" nameend="col1" align="left">7</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0363584938162</entry><entry namest="col3" nameend="col3" align="right">23</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0363584938162</entry></row><row><entry namest="col1" nameend="col1" align="left">8</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0414601700119</entry><entry namest="col3" nameend="col3" align="right">24</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0310981949734</entry></row><row><entry namest="col1" nameend="col1" align="left">9</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0462550106913</entry><entry namest="col3" nameend="col3" align="right">25</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0258259243044</entry></row><row><entry namest="col1" nameend="col1" align="left">10</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0505991154649</entry><entry namest="col3" nameend="col3" align="right">26</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0206811320698</entry></row><row><entry namest="col1" nameend="col1" align="left">11</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0543587323779</entry><entry namest="col3" nameend="col3" align="right">27</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0157909231222</entry></row><row><entry namest="col1" nameend="col1" align="left">12</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0574157779489</entry><entry namest="col3" nameend="col3" align="right">28</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0112656333407</entry></row><row><entry namest="col1" nameend="col1" align="left">13</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0596727757011</entry><entry namest="col3" nameend="col3" align="right">29</entry><entry namest="col4" nameend="col4" align="char" char=".">0.0071953136762</entry></row><row><entry namest="col1" nameend="col1" align="left">14</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0610569733715</entry><entry namest="col3" nameend="col3" align="right">30</entry><entry namest="col4" nameend="col4" align="char" char=".">0.00364725799282</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">15</entry><entry namest="col2" nameend="col2" align="char" char=".">0.0615234375</entry><entry namest="col3" nameend="col3" /><entry namest="col4" nameend="col4" /></row></tbody></tgroup></table></tables>
0039The filtered result from the sum of the squares outputted by steps 26 and 28 is applied to step 29 which calculates the square root and inverts the signal. Step 30 re-inverts the signal generated by step 29 to produce the RMS in-band envelope signal 32. Signal 32 provides two envelope points for each of a plurality of periods of predesignated duration (e.g. symbol insertion periods), namely the RMS in-band envelope at the beginning and at the centre of such period.
0040The resulting signal 32 tracks the RMS level of the in-band signal, with a slow response time to reflect the response of the human auditory system to perceived loudness variations. The Locator 7 will not insert symbols unless this envelope level is above a certain adjustable threshold. The principle is that quiet material is more likely to be corrupted by noise in the transmission channel and, therefore, does not provide a safe insertion point for a symbol.
0041Proceeding to signal path 34 in Fig. 2, the Tonality Ratio is measured via a Fourier-Transform process 36 which operates on the signal produced by the step 20. A 1024 samples FFT (Fast Fourier Transform) is used at spacings of 128 samples, on the time domain 11025 samples/sec. data, which provides a frequency resolution of about 11 Hz in the frequency domain. The resultant FFT signal is divided into 512 frequency bins. However, of these only the 320 central frequency bins are used, and these 320 bins are divided into 16 groups of 20 bins each, per step 38. In step 40, the total power is calculated within each group. Also, within each group, a measure of the range of power values present in the group is made. This measure is the ratio of the second-highest bin power divided by the second lowest. A weighted sum of these measures is made across all 16 groups, per step 42, using the individual group powers as weights. The result is the Tonality Ratio.
0042The Tonality Ratio tends to be higher for a tonal signal, i.e. which contains a mix of high and low bin power values within each group, and lower for spectrally rich signals, i.e. which have relatively uniform bin power across each group. Tests have shown that this measure tends to correlate very well with the sound's ability to mask the symbols. Symbols will be inserted in locations where the Tonality Ratio is lower than a preset adjustable limit (i.e., in a spectrally rich sound waveform). Also, the Tonality Ratios generated by the preceding and following symbol insertion periods from the FFT analysis operations are compared against a less restrictive limit (i.e., a higher preset limit) than the one used for the present symbol insertion period. This technique ensures that the symbols are well hidden, or masked, in the audio product.
0043Step 43 determines the total in-band power based on the FFT signal. In particular, as explained below, this total power is a summation of the in-group powers.
0044Thus, for Analyzer 3 as shown in Fig. 2, the input is at 48000 or 44100 samples/sec., and the output is a stream of records 44, which are stored in the Analysis File 5. Each record contains two envelope points, one Tonality Ratio value and one value of the total in-band power from the FFT which are interleaved for a single symbol insertion period.
0045Further details regarding the sampling rate will now be provided. The system handles different sample rates by sample-rate converting the Input File 1 to a common internal sample rate, which is always very close to 11025 samples/sec. The Output File 13 is always at the same rate as the Input File 1, allowing the output to be numerically identical to the input, except where symbol insertion is being done.
0046To simplify the handling of different sample rates, the ftick is defined. This is a time period whose exact value depends on the audio sample rate. Given f<sub>w</sub>, the sample rate of the Input File 1, the value n is found, being the closest even integer to 11025·1024/f<sub>w</sub>.
0047The time period 1/nf<sub>w</sub> is known as the ftick. This will always be close to 88.6 ns. The ftick is used as the measure of time within the system. All sampled signals have periods which are multiples of the ftick. For instance, the low pass filter signal at the output of step 20 to which the input is sample-rate converted, has a period of 1024 fticks. Its sample rate will approximate 11025 samples/sec. to a few parts per thousand. The table below shows the rate of fticks, and the sample rate of the low pass filter for input rates of 44100 and 48000 samples/sec. which is the first signal after down-conversion. Most internal signals have rates equal to this, or decimated by a power of two. <tables id="tabl0004" num="0004"><table frame="all"><title>Table 4</title><tgroup cols="3" colsep="1" rowsep="1"><colspec colnum="1" colname="col1" colwidth="52.50mm" /><colspec colnum="2" colname="col2" colwidth="52.50mm" /><colspec colnum="3" colname="col3" colwidth="52.50mm" /><thead valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" align="left"><b>Input Sample Rate</b></entry><entry namest="col2" nameend="col2" align="left"><b>44100</b></entry><entry namest="col3" nameend="col3" align="left"><b>48000</b></entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">n</entry><entry namest="col2" nameend="col2" align="left">256</entry><entry namest="col3" nameend="col3" align="char" char=".">236</entry></row><row><entry namest="col1" nameend="col1" align="left">Fundamental Tick Rate</entry><entry namest="col2" nameend="col2" align="left">11289600</entry><entry namest="col3" nameend="col3" align="char" char=".">11328000</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">Low pass filter (Step 20)</entry><entry namest="col2" nameend="col2" align="left">11025</entry><entry namest="col3" nameend="col3" align="char" char=".">11062.5</entry></row></tbody></tgroup></table></tables>
0048The Analyzer has seven data members which are intermediate processing results. These members are described below. <tables id="tabl0005" num="0005"><table frame="all"><title>Table 5</title><tgroup cols="3" colsep="1" rowsep="1"><colspec colnum="1" colname="col1" colwidth="52.50mm" /><colspec colnum="2" colname="col2" colwidth="52.50mm" /><colspec colnum="3" colname="col3" colwidth="52.50mm" /><thead valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" align="center">Member</entry><entry namest="col2" nameend="col2" align="center">Sample Period (Fundamental ticks)</entry><entry namest="col3" nameend="col3" align="center">Description</entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">Input File 1</entry><entry namest="col2" nameend="col2" align="left">236 or 256</entry><entry namest="col3" nameend="col3" align="left">Input signal (48000 or 44100 samples/sec.)</entry></row><row><entry namest="col1" nameend="col1" align="left">Step 20</entry><entry namest="col2" nameend="col2" align="left">1024</entry><entry namest="col3" nameend="col3" align="left">Low-pass and sample-rate converted signal</entry></row><row><entry namest="col1" nameend="col1" align="left">Step 24</entry><entry namest="col2" nameend="col2" align="left">1024</entry><entry namest="col3" nameend="col3" align="left">Signal after band-pass filter</entry></row><row><entry namest="col1" nameend="col1" align="left">Step 26</entry><entry namest="col2" nameend="col2" align="left">8192</entry><entry namest="col3" nameend="col3" align="left">Signal after power measurement</entry></row><row><entry namest="col1" nameend="col1" align="left">Steps 28, 29</entry><entry namest="col2" nameend="col2" align="left">65536</entry><entry namest="col3" nameend="col3" align="left">Signal after filtering of power measurement and inversion</entry></row><row><entry namest="col1" nameend="col1" align="left">Step 30</entry><entry namest="col2" nameend="col2" align="left">65536</entry><entry namest="col3" nameend="col3" align="left">Signal after final filter and re-inversion</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">Step 36</entry><entry namest="col2" nameend="col2" align="left">65536</entry><entry namest="col3" nameend="col3" align="left">Signal generated by FFT analysis</entry></row></tbody></tgroup></table></tables>
0049Details of the steps in signal path 34 of Fig. 2 will now be provided.
0050To run the FFT operation of step 36, an FFT sample size of 1024 is read from the output of step 20 and a cosine (Von Hamm) window function is applied to the time domain data. An input pointer is moved by 128 samples after each FFT operation, so there is a substantial overlap between successive FFT operations. Each FFT operation performs the following function: <ul id="ul0002" list-style="none" compact="compact"><li>1. M real numbers are presented as a waveform to be transformed. M (i.e. 1024) is the FFT size used.</li><li>2. The time-domain window is applied to the waveform, the FFT is performed, and then the power for each of frequency bins from 0 to (M/2)-1 is calculated as the square of the magnitude of the complex FFT result. The resulting complex spectral image is simplified by retaining the square of the magnitude of each frequency bin and discarding the phase information.</li><li>3. M/2 real numbers are then retrieved. For M = 1024, these are the power values for frequency bins 0 to 511.</li></ul>
0051This FFT operation can be described mathematically as<maths id="math0001" num=""><img file="EP0913952A2_D0002.tif" /></maths> ... where x<sub>t</sub> is the input waveform, M is the FFT size, w(t) is the window function, and F<sub>f</sub> is the magnitude-squared result. No scaling is performed so, for instance, the output in bin zero is the square of the sum of the M inputs (after windowing).
0052Each FFT result is, thus, obtained in the form of a power spectrum: A set of frequency bins, numbered from 0 to 511, containing the square of the magnitude of the complex FFT result for the corresponding frequency. The n-th bin contains information for a frequency of<maths id="math0002" num=""><math display="block"><mrow><mtext mathvariant="italic">n</mtext><mfrac><mrow><mtext>11025</mtext></mrow><mrow><mtext>1024</mtext></mrow></mfrac><mtext></mtext><mtext mathvariant="italic">Hz</mtext><mtext> = </mtext><mtext mathvariant="italic">n</mtext><mtext> · (10.77 </mtext><mtext mathvariant="italic">Hz</mtext><mtext>)</mtext></mrow></math><img file="EP0913952A2_D0003.tif" /></maths>
0053In accordance with step 38, the subset of this power spectrum corresponding to the band of interest is divided into groups. There are 16 groups, each having 20 frequency bins. The lowest group starts at frequency bin 96. Bins 0-95, as well as 437-511, are discarded. So these 16 groups cover the frequency range from about 1034 Hz to about 4470 Hz, each group covering about 215 Hz.
0054Within each group, the following three determinations are made in accordance with step 40: <ul id="ul0003" list-style="none" compact="compact"><li>· The sum of the power values in each of the 20 bins (total group power)</li><li>· The second smallest power value in the 20 bins</li><li>· The second largest power value in the 20 bins.</li></ul>
0055Of course, the second smallest and second largest power values could be replaced by values of other bins, the main object being to discard the highest and lowest values as possible statistical aberrations. For each group, the second largest bin power is divided by the second smallest, and then the following non-linear clipping operation is performed: If the result exceeds 2000, then half the amount by which it exceeds 2000 is deducted. If the result of this operation exceeds 4000, then it is set to 4000. This provides a unitless measure of the power skew in the group. If the second smallest bin power is very small (as defined below in the equation for T<sub>i</sub> ), the power skew for the group is simply set to 4000 to avoid division by a very small number.
0056A weighted average is taken of the square roots of these ratios. The weighting value for each group is the total group power. The results provided by step 40 are squared and become the Tonality Ratio result for the whole <i>FFT</i> operation, as per step 42. It will always be at least one and no more than 4000. If P<sub>i</sub> is the total power obtained by summing the power of the bins in group i, and B<sub>i</sub> and L<sub>i</sub> are the second-largest and second-smallest bin powers, the calculation can be summarized as<maths id="math0003" num=""><img file="EP0913952A2_D0004.tif" /></maths><maths id="math0004" num=""><img file="EP0913952A2_D0005.tif" /></maths> .. where T' is the overall Tonality Ratio.
0057There is also an RMS power calculation for the total in-band power which is derived from the FFT signal. The calculation of such total in-band power is as below:<maths id="math0005" num=""><img file="EP0913952A2_D0006.tif" /></maths>
0058The division by 1024 corrects for power gain in the unscaled FFT operation, and the square root converts from a power measure to an RMS measure. The factor corrects for attenuation due to the cosine window. If the input is a sine wave of amplitude A, with a frequency in the band of interest, the resulting P' will be close to<maths id="math0006" num=""><math display="block"><mrow><mfrac><mrow><mtext>√2</mtext></mrow><mrow><mtext>2</mtext></mrow></mfrac><mtext mathvariant="italic">A</mtext></mrow></math><img file="EP0913952A2_D0007.tif" /></maths> which is the correct RMS measure for a sine wave.
0059A data record 44 corresponds to information about the sound waveform of the audio product for a symbol insertion period, or about 11.6 msec of real-time for a 44,100 samples/sec. rate.
0060There are four data values in the record: <ul id="ul0004" list-style="none" compact="compact"><li>1. The in-band envelope level (from step 32) at the beginning of the 11.6 msec period. This is in signal units and is approximately equal to the R.M.S. value of the in-band signal. It is rounded and stored as an unsigned 16-bit integer.</li><li>2. The in-band envelope level (from step 32) at the centre of the 11.6 msec period. Same units and scaling are used as for the first envelope point.</li><li>3. The Tonality Ratio (from step 42) for an FFT calculation centered about the beginning of the 11.6 msec period. This is a unitless number in the range 1-4000; it is scaled by 2<sup>3</sup> and stored as a 16-bit unsigned number.</li><li>4. The total in-band power (from step 43) based on the FFT signal for a time period centered about the beginning of the 11.6 msec period. This is in signal units and is approximately equal to the R.M.S. value of the in-band signal. It is rounded and stored as an unsigned 16-bit integer.</li></ul>
Mathematical Background
0061The following description supplies the mathematical background underlying some processes used in the Analyzer 3. General methods are given for <ul id="ul0005" list-style="none" compact="compact"><li>· Sample Rate conversion, by a rational ratio less than unity;</li><li>· Construction of a low-pass, linear phase FIR filter from arbitrary parameters;</li><li>· Construction of a band-pass, linear phase FIR filter from arbitrary parameters;</li></ul>
0062A down-sampling process of step 20 converts the Input File signal to the low pass filter signal, simultaneously reducing the sample rate by a rational factor and removing higher frequencies which cannot be represented in the lower sample-rate signal. The Input File 1 is resampled in such a way as to reduce the sample rate by a factor of K/V. K is the factor by which the original sample rate is multiplied. V is the decimation factor. It is assumed that K<V, but the same approach works for increasing the sample rate. The ratio must be in lowest terms; i.e. K and V have no divisors in common.
0063Conceptually, the signal is processed through the following individual steps: <ul id="ul0006" list-style="none" compact="compact"><li>1. The input signal is called x<sub>i</sub>.</li><li>2. The rate of y<sub>i</sub> is increased by a factor of K, giving the signal x'<sub>i</sub>. This is done by inserting K-1 zero samples after each sample:<maths id="math0007" num=""><img file="EP0913952A2_D0008.tif" /></maths></li><li>3. A low-pass FIR (Finite Impulse Response) filter with impulse response F<sub>k</sub> of length L·K is applied to this signal, giving the signal y'<sub>i</sub>:<maths id="math0008" num=""><img file="EP0913952A2_D0009.tif" /></maths></li><li>4. The result is decimated by discarding all samples except those whose indices are a multiple of V, leaving the signal y<sub>i</sub>:<maths id="math0009" num=""><math display="block"><mrow><msub><mrow><mtext>y</mtext></mrow><mrow><mtext>i</mtext></mrow></msub><msub><mrow><mtext> = y'</mtext></mrow><mrow><mtext>iV</mtext></mrow></msub></mrow></math><img file="EP0913952A2_D0010.tif" /></maths></li></ul>
0064These steps produce a rate-converted signal which is as close as possible to the mathematical ideal. The filter used in step 3 is ideally a 'brick-wall' low-pass which removes all frequencies too high to be represented at the new sample rate. Since an ideal filter has an infinite impulse response, the FIR can only approximate this ideal. A certain amount of signal aliasing will occur in step 4, which also arises because of the non-ideal FIR filter. Step 2 reduces the amplitude of the signal in the band of interest. This is compensated in step 3 by arranging the filter F to have a passband gain numerically equal to K.
0065The process described just above can be simplified by capitalizing on the fact that many of the x'<sub>i</sub> samples are zero and many of the y'<sub>i</sub> samples are discarded.
0066The FIR filter F<sub>k</sub> used in step 3 can be rearranged into matrix form:<maths id="math0010" num=""><img file="EP0913952A2_D0011.tif" /></maths> so<maths id="math0011" num=""><img file="EP0913952A2_D0012.tif" /></maths> x'<sub>i</sub> is zero except when i is a multiple of K, i.e. when <maths id="math0012" num=""><math display="inline"><mrow><mtext>(i-k-Kj)MOD K = 0</mtext></mrow></math><img file="EP0913952A2_D0013.tif" /></maths> in the equation above. An equivalent condition is <maths id="math0013" num=""><math display="inline"><mrow><mtext>k = i MOD K</mtext></mrow></math><img file="EP0913952A2_D0014.tif" /></maths>. Thus, the outer summation can be eliminated, using a single value for the index variable k:<maths id="math0014" num=""><img file="EP0913952A2_D0015.tif" /></maths> where <maths id="math0015" num=""><math display="inline"><mrow><mtext>k = i MOD K</mtext></mrow></math><img file="EP0913952A2_D0016.tif" /></maths>.
0067With this definition of k, we have<maths id="math0016" num=""><img file="EP0913952A2_D0017.tif" /></maths> So,<maths id="math0017" num=""><img file="EP0913952A2_D0018.tif" /></maths> where <maths id="math0018" num=""><math display="inline"><mrow><mtext>k = i MODK</mtext></mrow></math><img file="EP0913952A2_D0019.tif" /></maths>. From the definition of x'<sub>i</sub>,<maths id="math0019" num=""><img file="EP0913952A2_D0020.tif" /></maths> and, from the definition of Y<sub>i</sub>;<maths id="math0020" num=""><img file="EP0913952A2_D0021.tif" /></maths>
0068This last equation performs the whole conversion in a single step. By substituting<maths id="math0021" num=""><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">k</mtext></mrow><mrow><mtext mathvariant="italic">i</mtext></mrow></msub><mtext mathvariant="italic"> = iV MOD K</mtext></mrow></math><img file="EP0913952A2_D0022.tif" /></maths> and<maths id="math0022" num=""><img file="EP0913952A2_D0023.tif" /></maths> the last equation can be rewritten as<maths id="math0023" num=""><img file="EP0913952A2_D0024.tif" /></maths>
0069Each summation operation is equivalent to applying a size L FIR filter to the input signal x starting at offset q<sub>i</sub>. The coefficients of the FIR --its impulse response--are the row of G selected by k<sub>i</sub>. Since the overall filter F has a gain of K, each row of G has a passband gain approximately equal to unity.
0070Assuming that the FIR is a symmetrical, zero phase low pass design, the delay incurred from signal x'<sub>i</sub> to y'<sub>i</sub> is (LK-1)/2 samples. The other conversions do not introduce delay, but they change the sample rates. The overall delay is<maths id="math0024" num=""><math display="block"><mrow><mfrac><mrow><mtext mathvariant="italic">L</mtext><mtext>-</mtext><mfrac><mrow><mtext>1</mtext></mrow><mrow><mtext mathvariant="italic">K</mtext></mrow></mfrac></mrow><mrow><mtext>2</mtext></mrow></mfrac></mrow></math><img file="EP0913952A2_D0025.tif" /></maths> input samples, or<maths id="math0025" num=""><math display="block"><mrow><mfrac><mrow><mtext mathvariant="italic">LK</mtext><mtext>-1</mtext></mrow><mrow><mtext>2</mtext><mtext mathvariant="italic">V</mtext></mrow></mfrac></mrow></math><img file="EP0913952A2_D0026.tif" /></maths> output samples.
0071The rate conversion done on the input sample rate is a reduction by a factor of n/1024, where n is the number of fticks in the period of the input audio file. Thus, the conversion technique can be applied with<maths id="math0026" num=""><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><mtext mathvariant="italic">K</mtext><mtext>=</mtext><mfrac><mrow><mtext mathvariant="italic">n</mtext></mrow><mrow><mtext mathvariant="italic">C</mtext></mrow></mfrac></mrow></mtd></mtr><mtr><mtd><mrow><mtext mathvariant="italic">V</mtext><mtext>=</mtext><mfrac><mrow><mtext>1024</mtext></mrow><mrow><mtext mathvariant="italic">C</mtext></mrow></mfrac></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP0913952A2_D0027.tif" /></maths> where C is the greatest common factor of 1024 and n. The delay, expressed in output samples is thus<maths id="math0027" num=""><img file="EP0913952A2_D0028.tif" /></maths> or<maths id="math0028" num=""><math display="block"><mrow><mfrac><mrow><mtext mathvariant="italic">nL</mtext><mtext>-</mtext><mtext mathvariant="italic">C</mtext></mrow><mrow><mtext>2·1024</mtext></mrow></mfrac><mtext>;</mtext></mrow></math><img file="EP0913952A2_D0029.tif" /></maths>
0072In terms of fticks, the delay of the conversion process is (nL - c)/2 fticks. Since n is even, C will also be even, so this will be a whole number.
0073A generalized low-pass FIR filter with linear phase delay can be constructed using the general equation<maths id="math0029" num=""><img file="EP0913952A2_D0030.tif" /></maths> where<maths id="math0030" num=""><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">i</mtext></mrow><mrow><mtext mathvariant="italic">0</mtext></mrow></msub><mtext> =</mtext><mfrac><mrow><mtext mathvariant="italic">L</mtext><mtext>-1</mtext></mrow><mrow><mtext>2</mtext></mrow></mfrac><mtext>, </mtext><mtext mathvariant="italic">sinc</mtext><mtext>(</mtext><mtext mathvariant="italic">x</mtext><mtext>) = </mtext><mfrac><mrow><mtext>sin(π</mtext><mtext mathvariant="italic">x</mtext><mtext>)</mtext></mrow><mrow><mtext>π</mtext><mtext mathvariant="italic">x</mtext></mrow></mfrac></mrow></math><img file="EP0913952A2_D0031.tif" /></maths> L is the length of the filter, f is the sampling frequency, fc is the cutoff frequency, and w is a window function which applies over the range [OK L - 1]. The Kaiser-Bessel window function<maths id="math0031" num=""><img file="EP0913952A2_D0032.tif" /></maths> is useful because the beta value can be adjusted to control the trade off between sharp cutoff and good out-of-band rejection for a given filter length. IO(x) is a modified Bessel function.
0074All frequencies are delayed ½(L - 1) samples by such a filter.
0075It should be noted that sinc(x) needs to be evaluated as 1, or, more accurately, as 1-1/6(πx)<sup>2</sup>, for values of x close to zero.
0076By multiplying the low-pass filter with the centre frequency of the passband, a generalized band pass FIR filter can be realized as<maths id="math0032" num=""><img file="EP0913952A2_D0033.tif" /></maths> where<maths id="math0033" num=""><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">i</mtext></mrow><mrow><mtext>0</mtext></mrow></msub><mtext> = </mtext><mfrac><mrow><mtext mathvariant="italic">L</mtext><mtext>-1</mtext></mrow><mrow><mtext>2</mtext></mrow></mfrac><mtext>, </mtext><mtext mathvariant="italic">sinc(x)</mtext><mtext> = </mtext><mfrac><mrow><mtext>sin(π</mtext><mtext mathvariant="italic">x</mtext><mtext>)</mtext></mrow><mrow><mtext>π</mtext><mtext mathvariant="italic">x</mtext></mrow></mfrac></mrow></math><img file="EP0913952A2_D0034.tif" /></maths> as before; L is the length of the filter, fs is the sampling frequency, fw is the width of the pass band, fc is the centre frequency of the pass band, and w is a window function.
LOCATOR
0077As shown in Fig. 3, the Locator analyses records 44 from the Analysis File 5. As stated above, each record 44 contains information for about 11.6 msec of the audio product. The Locator reads every one of these records in sequence. As each record is read, a decision is made as to whether to insert a symbol at that point. The Locator is divided into three separate processes: <ul id="ul0007" list-style="none" compact="compact"><li>· The Spacing process guarantees a minimum spacing between consecutive symbols, and prevents symbols from being inserted at regular intervals. This process does not examine the Input File characteristics.</li><li>· The Masking Test process examines the signal characteristics at each possible insertion point, as determined by the spacing process, to determine whether a symbol inserted at that point would be masked well. This process does not consider the spacing between insertions.</li><li>· The Code Sequencing process is responsible for sequencing the binary codes represented by the symbols. When a decision is made to insert a symbol, the Code Sequencing process determines the type of symbol to be inserted, as explained below, and the binary data it is to carry.</li></ul>
0078The spacing determination is made first to identify the minimum spacing for locating the next symbol. The masking test is not performed until a record 44 is reached for which this minimum spacing requirement is met.
Spacing Process
0079The ping spacing process of step 60 (Fig. 3) is controlled by the following four parameters: <ul id="ul0008" list-style="none" compact="compact"><li>· MinPingSpacing (also referred to as "MPS"), expressed in seconds;</li><li>· PingSpacingAlpha and PingSpacingBeta, unitless ratios; and</li><li>· PingDither, expressed in seconds.</li></ul>
0080MinPingSpacing is the minimum time between symbol insertions. The other parameters combine to increase the minimum spacing in various ways. The earliest time the i-th symbol can be inserted is given by minimum spacing in various ways. The earliest time the i-th symbol can be inserted is given by<maths id="math0034" num=""><img file="EP0913952A2_D0035.tif" /></maths><ul id="ul0009" list-style="none" compact="compact"><li>where t<sub>i</sub> is the insertion time of the i-th symbol</li><li>α = MinPingspacingAlpha</li><li>β = MinPingspacingBeta</li><li>r<sub>i</sub> is a random value uniformly distributed in [0,1].</li></ul> Values of t<sub>i,</sub> where i<0, are assumed to be zero. The r<sub>i</sub> random variable is generated each time a new symbol is inserted, and its effect is to ensure that the interval between symbols is random.
0081Typical audio products contain a continuous sequence of segments which are suitable for symbol insertion. This Spacing Process prevents rapid, regularly spaced insertion of symbols, since such are detectable to the ear because of their regularity. Selection of α and β is made empirically by listening to their effect on audibility.
0082The following table has been derived for illustrative purposes only. The arbitrarily chosen parameter values are: MPS=3, α=2 and β=1. For the sake of simplicity, r<sub>i</sub> is not taken into account in this example. <tables id="tabl0006" num="0006"><table frame="all"><title>Table 6</title><tgroup cols="6" colsep="1" rowsep="1"><colspec colnum="1" colname="col1" colwidth="26.25mm" /><colspec colnum="2" colname="col2" colwidth="26.25mm" /><colspec colnum="3" colname="col3" colwidth="26.25mm" /><colspec colnum="4" colname="col4" colwidth="26.25mm" /><colspec colnum="5" colname="col5" colwidth="26.25mm" /><colspec colnum="6" colname="col6" colwidth="26.25mm" /><thead valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" align="center">Symbol</entry><entry namest="col2" nameend="col2" align="center">t<sub>i-1</sub>+MPS</entry><entry namest="col3" nameend="col3" align="center">t<sub>i-2</sub>+MPS(1+α)</entry><entry namest="col4" nameend="col4" align="center">t<sub>i-3</sub>+ MPS(1+α+β)</entry><entry namest="col5" nameend="col5" align="center">Min t<sub>i</sub> based on Spacing Test</entry><entry namest="col6" nameend="col6" align="center">Actual t<sub>i</sub> based on Masking Test</entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="right">1</entry><entry namest="col2" nameend="col2" align="center">-</entry><entry namest="col3" nameend="col3" align="left">-</entry><entry namest="col4" nameend="col4" align="left">-</entry><entry namest="col5" nameend="col5" align="right">-</entry><entry namest="col6" nameend="col6" align="right">0</entry></row><row><entry namest="col1" nameend="col1" align="right">2</entry><entry namest="col2" nameend="col2" align="center">0+3=3</entry><entry namest="col3" nameend="col3" align="left">-</entry><entry namest="col4" nameend="col4" align="left">-</entry><entry namest="col5" nameend="col5" align="right">3</entry><entry namest="col6" nameend="col6" align="right">3</entry></row><row><entry namest="col1" nameend="col1" align="right">3</entry><entry namest="col2" nameend="col2" align="center">3+3=6</entry><entry namest="col3" nameend="col3" align="left">0+3(3)=9</entry><entry namest="col4" nameend="col4" align="left">-</entry><entry namest="col5" nameend="col5" align="right">9</entry><entry namest="col6" nameend="col6" align="right">12</entry></row><row><entry namest="col1" nameend="col1" align="right">4</entry><entry namest="col2" nameend="col2" align="center">12+3=15</entry><entry namest="col3" nameend="col3" align="left">3+3(3)=12</entry><entry namest="col4" nameend="col4" align="left">0+3(4)=12</entry><entry namest="col5" nameend="col5" align="right">15</entry><entry namest="col6" nameend="col6" align="right">16</entry></row><row><entry namest="col1" nameend="col1" align="right">5</entry><entry namest="col2" nameend="col2" align="center">16+3=19</entry><entry namest="col3" nameend="col3" align="left">12+3(3)=21</entry><entry namest="col4" nameend="col4" align="left">3+3(4)=15</entry><entry namest="col5" nameend="col5" align="right">21</entry><entry namest="col6" nameend="col6" align="right">23</entry></row><row><entry namest="col1" nameend="col1" align="right">6</entry><entry namest="col2" nameend="col2" align="center">23+3=26</entry><entry namest="col3" nameend="col3" align="left">16+3(3)=25</entry><entry namest="col4" nameend="col4" align="left">12+3(4)=24</entry><entry namest="col5" nameend="col5" align="right">26</entry><entry namest="col6" nameend="col6" align="right">26</entry></row><row><entry namest="col1" nameend="col1" align="right">7</entry><entry namest="col2" nameend="col2" align="center">26+3=29</entry><entry namest="col3" nameend="col3" align="left">23+3(3)=32</entry><entry namest="col4" nameend="col4" align="left">16+3(4)=28</entry><entry namest="col5" nameend="col5" align="right">32</entry><entry namest="col6" nameend="col6" align="right">32</entry></row><row><entry namest="col1" nameend="col1" align="right">8</entry><entry namest="col2" nameend="col2" align="center">32+3=35</entry><entry namest="col3" nameend="col3" align="left">26+3(3)=35</entry><entry namest="col4" nameend="col4" align="left">23+3(4)=35</entry><entry namest="col5" nameend="col5" align="right">35</entry><entry namest="col6" nameend="col6" align="right">35</entry></row><row><entry namest="col1" nameend="col1" align="right">9</entry><entry namest="col2" nameend="col2" align="center">35+3=38</entry><entry namest="col3" nameend="col3" align="left">32+3(3)=41</entry><entry namest="col4" nameend="col4" align="left">26+3(4)=38</entry><entry namest="col5" nameend="col5" align="right">41</entry><entry namest="col6" nameend="col6" align="right">46</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="right">10</entry><entry namest="col2" nameend="col2" align="center">46+3=49</entry><entry namest="col3" nameend="col3" align="left">35+3(3)=44</entry><entry namest="col4" nameend="col4" align="left">32+3(4)=44</entry><entry namest="col5" nameend="col5" align="right">49</entry><entry namest="col6" nameend="col6" align="right">50</entry></row></tbody></tgroup></table></tables>
0083Often used values for these parameters are: MPS = 0.1 secs, α = 1.3 secs, β = 2.4 secs.
0084If step 62 indicates that a particular record meets the minimum spacing requirement, then the masking test is performed on that record and all subsequent records until a symbol is inserted. Then the ping spacing process of step 60 is performed again in order for a new minimum spacing to be calculated and applied.
Masking Test Process
0085The Masking Test process 64 compares the signal characteristics for records obtained by step 62 from the Analysis File 5 against limits set by the encoder parameters 8. This process is controlled by the following parameters: <ul id="ul0010" list-style="none" compact="compact"><li>· MinRatio and MaxRatio control the acceptable limits of the Tonality Ratio.</li><li>· MaxSideRatio sets the acceptable maximum for the Tonality Ratio in adjacent measurements. The Locator has one frame of 'look-ahead', so it must read the next record before deciding whether to insert a symbol at the time corresponding to the present record.</li><li>· MinEnv sets the minimum acceptable value of the signal envelope measurement.</li></ul>
0086MinEnv is in signal units; the others are unitless.
0087If the symbol V<sub>i</sub> represents the Tonality Ratio as retrieved by step 64 from the i-th record in the Analysis File 5, and e<sub>i</sub> is the in-band envelope estimate for the same point in time, then a symbol can be inserted at the corresponding time point if<maths id="math0035" num=""><img file="EP0913952A2_D0036.tif" /></maths> "MinEnv" should be set with care; it needs to be adapted to the signal input level in use. If the signal input level is reduced by half, for instance (down 6db), the encoder will perform fewer insertions. Dividing MinEnv in half will restore the original operation. The tonality measurements are not affected by the input level.
0088As discussed above, each record 44 has two in-band envelope levels. Both levels must meet the above-stated threshold for e<sub>i</sub>.
0089The purpose of MinEnv is to prevent the encoder from inserting symbols into portions of the audio product which are so quiet that they may be overwhelmed by noise in the transmission channel.
0090The other conditions ensure that the proposed insertion site, and the surrounding area of the signal, are sufficiently non-tonal or have sufficient psychoacoustics to mask the symbol well.
0091MaxSideRatio ("MSR") is expressed as a ratio relative to MaxRatio ("MR"). Normally MSR/MR is >1.
0092The closer the Tonality Ratio approaches 1, the more spectrally rich (in the sense of having substantially uniform power in the band of interest) is the audio product. MinRatio establishes the noise floor for symbol insertion. If a segment is extremely noisy and is then subjected to noise reduction or removal systems, symbols inserted into such a noisy segment could be removed and lost through the same process. By defining the MinRatio for Tonality, it can be ensured that symbols are acted upon as "real" audio and therefore enhance recovery by the decoder.
0093Additional, more extensive, well known masking parameters can be added which use the signal characteristics data obtained from the Analysis file 5 to define temporal masking values of the bandpass signal. This more elaborate type of masking test employs more precise psychoacoustic masking effects of the signal immediately around the symbol insertion time segment.
0094If the masking test is met, as determined by step 66, then step 68 of Fig. 3 is responsible for determining the RMS level of the "ping" waveforms required for symbol insertion. This level is calculated based on the parameters PingGain and PingGainMode from among parameters 8: <ul id="ul0011" list-style="none" compact="compact"><li>· If PingGainMode is 1, the insertion level is PingGain times the in-band envelope level at the insertion time (i.e. output of step 32).</li><li>· If PingGainMode is 2, the insertion level is PingGain times the total in-band power as estimated by the Fourier Transform at the insertion time (i.e. output of step 43).</li></ul>
0095The total in-band power as estimated by the FFT at the time of insertion with step 43, is a more accurate measure of the power of the audio signal than that of the more averaged envelope level outputted by step 32. This higher degree of accuracy is required as more precise psychoacoustic masking decisions are used. This allows for careful control of the amplitude of inserted symbols so that codes are less likely to be lost when psychoacoustic compression systems are used in the audio delivery chains.
0096The value of PingGain is set empirically based on tests of program types and signal characteristics.
Code Sequencing
0097The encoder can insert any binary code, any even number of bits in length. Each symbol carries two bits, except for the start and end symbols.
0098The codeword to be encoded, 2<i>n</i> bits in length, is broken up into <i>n</i> 2-bit sections, referred to as "dits" (for double-bits). The codeword is then encoded using <ul id="ul0012" list-style="none" compact="compact"><li>· A <i>start</i> symbol, which serves to mark the start of the codeword, but carries no information. This also establishes a reference in the receiver, indicating whether the channel has inverted the signal.</li><li>· n-1 <i>data</i> symbols, which encode 2 bits each;</li><li>· An <i>end</i> symbol, which encodes the last 2 bits of the codeword and also serves to mark the end of the codeword with the addition of a conditional ping.</li></ul>
0099The <i>start</i> and <i>end</i> symbols are each coded as 3-ping symbols, while the data symbol is a 2-ping symbol. The <i>start</i> symbol is coded by the bit pattern '000', meaning three negative pings. The two pings in a <i>data</i> symbol are coded according to the two bits being encoded. In an <i>end</i> symbol, the first two pings are encoded according to the <i>data</i>, and the third ping is the inverse of the second ping of the symbol.
0100The table below shows an example where the 12-bit sequence '0110 1100 1110' is encoded with seven symbols: <tables id="tabl0007" num="0007"><table frame="all"><title>Table 7</title><tgroup cols="4" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="39.37mm" /><colspec colnum="2" colname="col2" colwidth="39.37mm" /><colspec colnum="3" colname="col3" colwidth="39.37mm" /><colspec colnum="4" colname="col4" colwidth="39.37mm" /><thead valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" align="center"><b>Bits</b></entry><entry namest="col2" nameend="col2" align="center"><b>Coded</b></entry><entry namest="col3" nameend="col3" align="center"><b>Ping Polarities</b></entry><entry namest="col4" nameend="col4" align="center"><b>Symbol Type</b></entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" /><entry namest="col2" nameend="col2" align="left">000</entry><entry namest="col3" nameend="col3" align="left">- - -</entry><entry namest="col4" nameend="col4" align="left">Start</entry></row><row><entry namest="col1" nameend="col1" align="right">01</entry><entry namest="col2" nameend="col2" align="left">01</entry><entry namest="col3" nameend="col3" align="left">- +</entry><entry namest="col4" nameend="col4" align="left">Data</entry></row><row><entry namest="col1" nameend="col1" align="right">10</entry><entry namest="col2" nameend="col2" align="left">10</entry><entry namest="col3" nameend="col3" align="left">+ -</entry><entry namest="col4" nameend="col4" align="left">Data</entry></row><row><entry namest="col1" nameend="col1" align="right">11</entry><entry namest="col2" nameend="col2" align="left">11</entry><entry namest="col3" nameend="col3" align="left">+ +</entry><entry namest="col4" nameend="col4" align="left">Data</entry></row><row><entry namest="col1" nameend="col1" align="right">00</entry><entry namest="col2" nameend="col2" align="left">00</entry><entry namest="col3" nameend="col3" align="left">- -</entry><entry namest="col4" nameend="col4" align="left">Data</entry></row><row><entry namest="col1" nameend="col1" align="right">11</entry><entry namest="col2" nameend="col2" align="left">11</entry><entry namest="col3" nameend="col3" align="left">+ +</entry><entry namest="col4" nameend="col4" align="left">Data</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="right">10</entry><entry namest="col2" nameend="col2" align="left">101</entry><entry namest="col3" nameend="col3" align="left">+ - +</entry><entry namest="col4" nameend="col4" align="left">End</entry></row></tbody></tgroup></table></tables>
0101Thus, in step 70 of Fig. 3, the data string of code sequencing determines the present position reached in the code to be embedded during the embedding operation of the encoder, as shown above in Table 1. If the operation is at the beginning of such code, then step 70 will provide the start symbol for insertion. Likewise, if a data bit is to be encoded, as per the table presented above, the corresponding code symbol type and code will provided. Step 71 stores into Insertion File 9 the symbol type and data code received from step 70 as well as the ping level from step 68. This is stored in association with a particular segment of, or location in, the sound waveform of the audio product.
0102When specified conditions for symbol insertion have been met and a symbol is to be inserted, step 72 causes the spacing process and code sequencing to be updated.
INSERTER
0103The Inserter 11 reads the Input File 1 and writes a new WAVE audio file which is identical to the Input File 1, except for short sections which are modified by symbol insertions made according to the information in the Insertion File 9.
0104The Insertion File 9 provides the following information for each symbol: <ul id="ul0013" list-style="none" compact="compact"><li>· Insertion time (given in fticks)</li><li>· Insertion Gain (as an R.M.S. level)</li><li>· Symbol type, and data bits to be coded.</li></ul>
0105The Output File 13 must always have the same sample rate and format as the Input File 1; e.g. if the Input File is 16-bit stereo at 48000 samples/sec., then the Output File has the same characteristics.
0106A symbol is inserted into the original audio product by the two processes, Band Removal and Ping Addition, described in detail below. The nominal insertion time is the midpoint of the area in which the insertion is performed.
Band Removal
0107As shown in Fig. 4, a bandpass signal is derived by applying a bandpass FIR filter to the original signal from Input File 1 to remove frequencies outside the range 1000-4800 Hz approximately. This is done per step 80 by using a symmetrical, effectively non-causal filter with zero phase response. This filter requires (N-1)/2 samples before and after the modified section of the signal where N is the filter length, which is odd.
0108In step 84, a modified bandpass signal derived by step 82 (as explained below) is subtracted from the original signal over a period of 7T or 10T. Each "T" is 256 samples at 44100 samples/sec., or about 1.451 msec. As shown in Figs. 5 and 6, a 2-ping symbol occupies 5T and a 3-ping symbol occupies 8T. The duration of signal represented by a record 44 is 8T, or 11.6 msec.
0109In step 82, first and last sections of the bandpass signal, of length "T" each, are tapered with a raised cosine window. The windowing operation ensures that no transients are introduced into the signal. Thus, as shown in Figs. 5 and 6, 7T is used for the 2-ping symbol (i.e. for data type) and the 10T is used for the 3-ping symbol (i.e. for start type and end type). Also, the bandpass signal is multiplied by <i>BandRemoveFac</i>, an empirically set parameter that is one of parameters 8, which is just less than 1. This causes the in-band signal to be almost entirely removed in the symbol insertion segment. The retention of some contextual component of the audio product has been empirically determined to have a psychoacoustic advantage in masking the removal of the audio and the insertion of the symbol. The retained components should be in the range of 2% - 5% of the amplitude of the audio product in the symbol insertion segment.
Ping Addition
0110Once the band-removal is completed, a fixed 'ping' waveform is scaled per step 86, the symbol is derived per step 88 and inserted per step 90 in the signal. Two or three pings (depending on the symbol type) are spaced 3T apart from each other and centered in the segment from which the band was removed.
0111Scaling of the ping in step 86 is based on two factors: <ul id="ul0014" list-style="none" compact="compact"><li>1. Polarity: '0' bits have negative polarity, while '1' bits have positive polarity. This information is obtained from Insertion File 9. The start symbol establishes a reference in case the process of transmission and reception inverts the signal.</li><li>2. Magnitude: This is calculated based on PingGainMode using the total in-band power or the in-band envelope in the symbol insertion area, as per step 68 described above, to mask the audibility of the ping while maintaining its recoverability. The magnitude is given as an RMS level, averaged across a 3T period centered on the ping, and it is obtained from Insertion File 9.</li></ul>
0112Step 88 derives the symbol from the symbol type and data code information stored in Insertion File 9, and based on the scaled ping outputted by step 86. The result is inputted to step 90 which proceeds to perform the actual insertion, or embedding, of the symbol.
0113Figs. 5 and 6 show a 2-ping symbol and a 3-ping symbol, respectively. The ping waveform is derived from a template which has a width of 4T. However, it is almost zero outside the 2T centre area, as shown. The ping waveform template will be discussed below in further detail.
Bandpass Filter
0114This filter is used for step 80. It is constructed using the method given above in the Mathematical Background section, with parameters as follows: <ul id="ul0015" list-style="none" compact="compact"><li>· Passband from 950 Hz to 4850 Hz</li><li>· Kaiser Window with parameter of 7</li><li>· FIR Length: 7.78 msec. This is converted to a number of samples at the current sample rate. The result is rounded to the nearest integer. If the result is even, one is subtracted.</li></ul>
Cosine Window Template
0115The template for the cosine window of step 82 has for its length a number of samples equivalent to T (1.451 msec), regardless of sample rate. Thus, the number of samples varies with the sample rate. The template fades from 0 to 1 based on the relationship
0116The template is used to fade the beginning and end of the band removal process.<maths id="math0036" num=""><math display="block"><mrow><msub><mrow><mtext mathvariant="italic">Template</mtext></mrow><mrow><mtext mathvariant="italic">i</mtext></mrow></msub><mtext> = </mtext><mfrac><mrow><mtext>1</mtext></mrow><mrow><mtext>2</mtext></mrow></mfrac><mtext> (1 - cos(</mtext><mfrac><mrow><mtext>π</mtext><mtext mathvariant="italic">i</mtext><mtext> + </mtext><mfrac><mrow><mtext>1</mtext></mrow><mrow><mtext>2</mtext></mrow></mfrac></mrow><mrow><mtext mathvariant="italic">TempLength</mtext></mrow></mfrac><mtext>))</mtext></mrow></math><img file="EP0913952A2_D0037.tif" /></maths>
Ping Waveform
0117This is constructed as a bandpass FIR filter, using the method given above in the Mathematical Background section, with parameters as follows: <ul id="ul0016" list-style="none" compact="compact"><li>· Passband from 1485 Hz to 3980 Hz</li><li>· Kaiser Window with parameter of 8.5</li><li>· FIR Length: 5.804 msec. This is converted to a number of samples at the current sample rate. The result is rounded to the nearest integer. If the result is even, one is subtracted..</li></ul>
0118The resulting array of samples is scaled so that it has an R.M.S. power of 1, average over the middle "3T" (4.353 msec) portion of the WAVE file.
Filter Plots
0119Frequency-domain and time-domain response plots for the three linear filters used in the system will now be described.
0120The frequency response plots are in decibels against Hz. All of the filters are symmetrical linear phase FIR filters, meaning that they delay all frequencies equally, so no phase response is shown. The time-domain plots are impulse response waveforms. These show the output from the filter, for an input consisting of a single input sample of value '1' at t=0, all other input samples being zero. The time scale is in milliseconds for all plots.
0121Fig. 7 shows the time domain response of the filter which is applied to the input signal before rate conversion (see step 20). It removes frequencies which cannot be represented at a sample rate of 11025. Fig. 8 shows the frequency response of the same filter.
0122The bandpass filter of step 24 is used in the beginning of the signal path 22 to extract the band of interest. Figs. 9 and 10 show its frequency response and time domain response, respectively.
0123The bandpass filter of step 80 is used in the Locator to remove the portion of the signal in the band of interest. Figs. 11 and 12 show its frequency response and time domain response, respectively. The length of the filter, as a number of taps, depends on the sample rate. The plots are for 48000 Hz. The shape of the graphs will change only slightly for other sample rates.
Ping Waveform
0124Figs. 13 and 14 show a signal template for the ping waveform which is used in the insertion process. It is related to the filter response plots of Figs. 7-12 because band-pass filter design techniques are used to generate the ping waveform. Its band-limited spectral content is important to the invention because it must be within the bounds of the bandpass filter techniques described herein for creation and detection of the code. The Ping Waveform Spectral Content is shown in Fig. 13. The Ping Waveform Time Domain is shown in Fig. 14.
Adaptive Masking
0125Another important feature will now be explained in connection with Fig. 1. The data in Output File 13 generates audio sound, when reproduced through suitable equipment, which is used by step 15 of Fig. 1 to perform a subjective audio quality test based on psychoacoustic factors. Thus, testing process 15 could involve a group of human test subjects who listen to the audio and provide a descriptive feedback of audio quality, such as "I hear popping noises" or "I hear dropouts". The severity of each quality impairment is also ascertained on a scale of, say, 1 to 5 with 5 being the worst.
0126Based on the derived feedback information of (1) the nature of the impairment and (2) its severity, a decision is made by step 17 regarding whether and how parameters 8 are to be modified. One embodiment of parameter control process 17 relies on a human operator who utilizes the feedback information and a set of empirically derived rules for modifying parameters 8. As an example of such rules, for popping noises assigned a value of 3 on the scale of 1 to 5, the PingGain is reduced by 10%.
0127Another embodiment automates process 17 by developing a lookup table using the feedback information from step 17 as inputs. Step 17 then outputs control signals to suitably vary the parameters 8.
0128The modified parameters 8 are used to embed the code as Locator 7 and Inserter 11 are performed once again to derive a new Output File 13. Test 15 and process 17 can continue to be applied iteratively for modifying parameters 8 until an Output File 13 is derived which generates audio that satisfies the assigned audio quality requirements.
DECODER
0129The decoder processes digital information derived from a received audio signal, including a waveform with an embedded code, typically it is picked up from an RF receiver. The analog signal is digitized to derive a Decoder Input File in WAVE format, comparable to Input File 1.
0130As shown in Fig. 15, the Encoded Audio Input File 118 is processed by step 120 which is analogous to step 20 of Fig. 2. Step 124 of Fig. 16 is analogous to step 24 to provide a bandpass filter output. Operation 125 provides signal normalization, as explained below, and a normalized input signal is outputted by step 132.
0131Ping identification is performed by step 134, which isolates candidate pings from the band-limited, power-normalized signal. Each candidate ping is associated with a time point and an amplitude, both of which are determined via a template correlation process, as explained below.
0132In symbol identification step 136, the sequence of pings, identified in the first stage are examined to find pairs of pings, each pair of which forms a symbol. This is necessary because "false" pings occur with some regularity in the audio product source material itself. The decoder detects symbols by looking for pairs of pings with the correct relationship to each other. Once the symbols are identified, code assembly step 138 then reconstitutes the embedded code detected in the audio signal.
0133Normalization operation 125 includes the various steps shown in Fig. 16. These are designed to match steps 26-30 of Fig. 2 so that the signals outputted by the encoder and processed by the decoder are matched as well. More specifically, step 126 is comparable to step 26. Step 128 is comparable to step 28. Step 129 is comparable to step 29. However, step 130 differs from step 30 in that step 30 includes inversion, but step 130 does not. Therefore, the signal from step 130 is the inverse of the output from step 30. This inversion by the decoder constitutes an amplitude normalization which removes variations due to gain or attenuation experienced during sending, playback and receiving operations for the audio product.
0134Details of steps 134, 136 and 138 will now be provided.
0135Ping Identification step 134 is shown in detail by Fig. 17. It compares the normalized input signal derived by step 132 with a ping waveform template, as per step 150 in Fig. 17. Details of this template have been provided above. A circulating buffer stores as many samples of the normalized input signal as there are data samples in the ping waveform template. Each sample of the input signal is compared with its respective template data sample. The RMS error for each sample comparison is calculated to derive an error function E<sub>i</sub> and an overall scaling factor K<sub>i</sub> per step 152, as described below.
0136The comparison algorithm finds the value of k<sub>i</sub> which minimizes the error function<maths id="math0037" num=""><img file="EP0913952A2_D0038.tif" /></maths> where t<sub>j</sub> is the fixed template and x<sub>i+j</sub> is the normalized input signal being analyzed. This can be expanded as<maths id="math0038" num=""><img file="EP0913952A2_D0039.tif" /></maths> This is minimized by setting the derivative with respect to K<sub>i</sub> to zero, resulting in:<maths id="math0039" num=""><img file="EP0913952A2_D0040.tif" /></maths>
0137Since t<sub>j</sub> is a fixed template, the denominator in the above is a constant which can be pre-calculated.
0138Calculation of<maths id="math0040" num=""><img file="EP0913952A2_D0041.tif" /></maths> allows k<sub>i</sub> to be calculated. The polarity of K<sub>i</sub> determines the polarity of the received ping. Additionally, calculation of<maths id="math0041" num=""><img file="EP0913952A2_D0042.tif" /></maths> allows E<sub>i</sub> to be found.
0139The decoder performs this comparison to search for pings on an 11025 Hz signal. The search is actually done to a resolution of 44100 Hz. This is done by using four separate templates (representing 1/4-sample shifts of the ideal ping template relative to 11025 Hz). At each iteration, the template with the largest<maths id="math0042" num=""><img file="EP0913952A2_D0043.tif" /></maths> and, thus, the largest k and lowest E, is found. This provides a higher position resolution for locating pings, and a more accurate measurement of the ping's magnitude and closeness of match.
0140Thus, the calculated value of K<sub>i</sub> minimizes the error E<sub>i</sub> between the input signal and the ping template. That same value of K<sub>i</sub> is used to scale the magnitude of the ping template, and K<sub>i</sub> is regarded as the ping magnitude.
0141In order for a ping to be recognized as a candidate and passed to the next phase, the following two conditions must be met: <ul id="ul0017" list-style="none" compact="compact"><li>· The error must be sufficiently small relative to the ping magnitude. The ping magnitude is divided by the square root of the error. This result is effectively a "shape matching" metric; scaling the input has no effect on this ratio. The ping is rejected, per step 154, if the ratio is less than parameter PingRatThresh (labeled "A" in Fig. 17 for convenience), which is dimensionless. A high ping magnitude value with a low error value constitutes a good match.</li><li>· The magnitude of the ping must be at least MinPingMag (labeled "B" in Fig. 17 for convenience), as per step 156. This is in signal units.</li></ul>
0142If the decisions in steps 154 and 156 are favorable, then step 158 outputs this portion of the input signal as a candidate ping for further processing by symbol identification step 136.
0143Even though a portion of the input signal has been accepted as a candidate ping, it may in fact be an impostor. To aid in the determination of proper pings, the coding method uses a pairing of pings to create symbols. The symbols that are inserted by the encoder have very clear and unique characteristics that make detection of false pings easier.
0144Details of symbol identification are shown in Fig. 18. Test 160 compares the time between two consecutive candidate pings against a threshold C which is less than the fixed time between consecutive pings (as explained below). If the spacing is greater than the threshold, step 161 outputs the signal as a real ping for further processing in connection with symbol identification. If the two pings occur too close to each other for them to be a symbol pair, a test 162 is performed to determine which ping is to be rejected. The magnitude of the first ping is multiplied by the parameter "NewPingShadow" (called "D" in Fig. 18 for convenience), which is normally set to 0.1. If the amplitude of the second ping is less than the result, it is discarded as a false ping. If it is larger, then it is considered per step 164 to be the start of a new symbol frame to be outputted as a ping by step 161.
0145Pings that are inserted as symbols will have the same amplitude at the time of insertion, as explained above in connection with the encoder. If they do not have the same amplitude during decoding, step 166 determines which of two consecutive pings is larger. The ratio of the amplitude of the larger ping to the smaller is compared by step 168 to the "MaxPingSkew" parameter (labeled "E" in Fig. 17 for convenience). The result must not exceed the threshold set by this parameter; otherwise, the pings are considered not to be a symbol pair.
0146The spacing between ping pairs in a symbol is fixed at 4.354 msec. The spacing between consecutive pings is calculated and compared in step 170 to this fixed spacing. The absolute discrepancy between the calculated spacing and the fixed spacing must not exceed the "MaxPingSpacDev" parameter (labeled "F" in Fig. 18 for convenience).
0147Symbol insertion creates a "quiet" portion between pings. The power of the band-limited, normalized, signal is measured by step 172 within a one T time window about a point halfway between the candidate pings. In a true symbol, there is very little signal energy there. The product of the magnitude of the two pings is divided by the measured power signal. The result, as determined by step 174, must exceed the "MaxGapRatio" parameter (labeled "G" in Fig. 18 for convenience) for the two pings to be considered a true symbol. If so, step 176 outputs the pings as a true symbol.
0148The true symbols outputted by step 136 are then collected and the resultant code is determined by code assembly step 138 by applying the information set forth above in Table 7.
0149Representative values of the decoder parameters are provided in the following table. <tables id="tabl0008" num="0008"><table frame="all"><title>Table 8</title><tgroup cols="2" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="78.75mm" /><colspec colnum="2" colname="col2" colwidth="78.75mm" /><thead valign="top"><row rowsep="1"><entry namest="col1" nameend="col1" align="left"><b>Parameter</b></entry><entry namest="col2" nameend="col2" align="left"><b>Value</b></entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">PingRatThresh</entry><entry namest="col2" nameend="col2" align="char" char=".">10</entry></row><row><entry namest="col1" nameend="col1" align="left">MinPingMag</entry><entry namest="col2" nameend="col2" align="char" char=".">200</entry></row><row><entry namest="col1" nameend="col1" align="left">Threshold C</entry><entry namest="col2" nameend="col2" align="char" char=".">3T-181 µsec.</entry></row><row><entry namest="col1" nameend="col1" align="left">NewPingShadow</entry><entry namest="col2" nameend="col2" align="char" char=".">0.1</entry></row><row><entry namest="col1" nameend="col1" align="left">MaxPingSkew</entry><entry namest="col2" nameend="col2" align="char" char=".">5.0</entry></row><row><entry namest="col1" nameend="col1" align="left">MaxPingSpacDev</entry><entry namest="col2" nameend="col2" align="char" char=".">181 µsec.</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">MaxGapRatio</entry><entry namest="col2" nameend="col2" align="char" char=".">250</entry></row></tbody></tgroup></table></tables>
0150Although specific embodiments of the invention have been described above in detail, it should be understood that various modifications thereto can readily be made by anyone with ordinary skill in the art. For example, operation of the encoder is not done in real time relative to, for example, live broadcast of an audio product. However, if processing delay is of a fixed and acceptable amount then the encoding could be done in real time. Operation of the decoder is normally done in real time. Implementation of the encoder and decoder can be in hardware (e.g. digital signal processors) or software depending on the specific requirements and tolerances of the particular application. The locator function has been described as performing the minimum spacing test first and then the masking test. However, this sequence can be inverted. Each record 44 stores two in-band envelope levels, but it is also contemplated that storing only one would suffice. Also, rather than having parallel signal paths 22 and 34, these could be implemented to operate sequentially. All such modifications are intended to fall within the scope of the invention, as defined by the following claims.
Contents6
57 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13 Sheet 14 Sheet 15 Sheet 16 Sheet 17 Sheet 18 Sheet 19 Sheet 20 Sheet 21 Sheet 22 Sheet 23 Sheet 24 Sheet 25 Sheet 26 Sheet 27 Sheet 28 Sheet 29 Sheet 30 Sheet 31 Sheet 32 Sheet 33 Sheet 34 Sheet 35 Sheet 36 Sheet 37 Sheet 38 Sheet 39 Sheet 40 Sheet 41 Sheet 42 Sheet 43 Sheet 44 Sheet 45 Sheet 46 Sheet 47 Sheet 48 Sheet 49 Sheet 50 Sheet 51 Sheet 52 Sheet 53 Sheet 54 Sheet 55 Sheet 56 Sheet 57
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| US7634031B2 | Cited by | United States of America | Applicant |
| WO0106755A2 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| EP1703461A1 | Cited by | European Patent Office (EPO) | Search report |
| US7266697B2 | Cited by | United States of America | Applicant |
| TWI403974B | Cited by | Taiwan Province of China | Examiner |
| US7197368B2 | Cited by | United States of America | Applicant |
| EP1703461A1 | Cited by | European Patent Office (EPO) | Search report |
| US7552336B2 | Cited by | United States of America | Applicant |
| KR101225342B1 | Cited by | Republic of Korea | Search report |
| EP1703460A1 | Cited by | European Patent Office (EPO) | Search report |
| EP1213912A3 | Cited by | European Patent Office (EPO) | Search report |
| WO02080415A2 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| EP1213912A2 | Cited by | European Patent Office (EPO) | Search report |
| US7543148B1 | Cited by | United States of America | Applicant |
| US7206649B2 | Cited by | United States of America | Applicant |
| US7543148B1 | Cited by | United States of America | Applicant |
| WO0106755A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US7068810B2 | Cited by | United States of America | Applicant |
| WO0106755A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US7020285B1 | Cited by | United States of America | Applicant |
| US6738744B2 | Cited by | United States of America | Applicant |
| US6952774B1 | Cited by | United States of America | Applicant |
| WO02080415A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US7543148B1 | Cited by | United States of America | Applicant |
| WO0072321A1 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| EP1703460A1 | Cited by | European Patent Office (EPO) | Search report |
| WO0072321A1 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US8878041B2 | Cited by | United States of America | Applicant |
| US7448650B2 | Cited by | United States of America | Applicant |
| EP0740428B1 | Cites | European Patent Office (EPO) | Search report |
| FR2734977A1 | Cites | France | Search report |
| US6035177A | Cites | United States of America | Search report |
5 members in 4 offices; this record represents the family
Priority claims6
| Document | Office | Kind | Date |
|---|---|---|---|
| 96129797 | United States of America | A | |
| 961297 | United States of America | – | |
| 9907486 | United States of America | W | |
| US19970961297 | – | – | – |
| WO1999US07486 | – | – | – |
| 961297 | – | – | – |
Members5
| Document | Office | Kind | |
|---|---|---|---|
| EP0913952A2This record | European Patent Office (EPO) | A2 | |
| US5945932A | United States of America | A | |
| EP0913952A3 | European Patent Office (EPO) | A3 | |
| WO0060747A1 | World Intellectual Property Organization (WIPO) | A1 | |
| AU3549299A | Australia | A |
12 legal events, as 2 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Applications withdrawn, deemed to be withdrawn, or refused after publication in hong kongWithdrawnWD | WD | HK | |
| Application deemed to be withdrawnWithdrawn18D | 18D | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWNSTAA | STAA | EP | |
| Designation fees paidBE CH DE DK ES FR GB IE IT LI NL PT SEAKX | AKX | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | EP | |
| Information provided on ipc code assigned before grant7H 04B 1/66 A, 7H 04H 1/00 BRIC1 | RIC1 | EP | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | EP | |
| Party data changed (applicant data changed or rights of an application transferred)RAP1 | RAP1 | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP |
Numbers
- Publication
- 0913952
- Publication, DOCDB
- 0913952
- Publication, EPODOC
- EP0913952
- Application
- 98305532
- Application, DOCDB
- 98305532
- Application, EPODOC
- EP19980305532
Titles3
- German
- Verfahren zum Einbetten eines Kodes in ein Tonsignal und zum Detektieren des eingebettenen Kodes
- English
- Technique for embedding a code in an audio signal and for detecting the embedded code
- French
- Procédé pour intégrer un code en un signal audio et pour détecter le signal intégré
Classification
- CPC, 3
- G10L19/018
- G11B20/00891
- H04B1/665
- IPC, 2
- G10L19 00
- H04B1 66
Designated states25
- Contracting states, 19
- Belgium
- Switzerland
- Germany
- Denmark
- Spain
- France
- United Kingdom
- Ireland
- Italy
- Liechtenstein
- Netherlands (Kingdom of the)
- Portugal
- Sweden
- Austria
- Cyprus
- Finland
- Greece
- Luxembourg
- Monaco
- Extension states, 6
- Albania
- Lithuania
- Latvia
- North Macedonia
- Romania
- Slovenia