Audio sampling clock synchronization
By synchronizing the clock between the audio system and the recording device, and using pseudo-random signals to calculate the clock difference and resample, the problem of clock asynchrony when the audio system is measured at different locations is solved, and more accurate impulse response measurement is achieved.
Patent Information
- Application Number
- CN202180072156.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-17
- Filing Date
- 2021-12-16
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2041-12-16
AI Technical Summary
In the prior art, when the frequency response of an audio system is measured at different locations, the performance of the impulse response measurement deteriorates due to the asynchronous clocks of the playback and recording devices, especially at high frequencies where the Fourier transform of the frequency response is inaccurate.
By playing the same pseudo-random signal between the audio system and the recording device, the clock difference is calculated using the statistical properties of the signal, and clock synchronization of the audio system is achieved by resampling the clock.
It improves the accuracy of impulse response measurement in audio systems, especially at high frequencies, ensuring precise measurement of frequency response.
Smart Images

Figure CN116349170B_ABST
Abstract
Description
Background Technology
[0001] Enhancing the factory sound tuning of audio systems such as televisions (TVs) or high-fidelity stereo systems to account for the auditory effects and conditions of any particular room presents several challenges for designers. The system's processing bandwidth, along with the audio system's clock rate and associated sampling rate, are all influencing factors. One approach to tuning an audio system is to identify its frequency response within its operating frequency range.
[0002] The impulse response of an audio system is typically measured using a maximum-length sequence (MLS) as excitation. An MLS signal is a pseudo-random binary sequence. This sequence is played back at the sampling rate of the playback device. The speaker output is recorded, sampled, and analyzed to determine the system's impulse response. Impulse response measurements can be degraded when the playback and recording devices are not using synchronized clocks. When the clocks (and associated sampling rates) are out of sync, the resulting measured frequency response (the Fourier transform of the impulse response) tends to decrease at higher frequencies. For example, when measuring the frequency response of a television speaker at different locations in a room, playback might be based on the television clock, while recording might be based on the clock of an external device such as a remote control or smartphone. External devices can utilize less expensive crystal-based timing references without requiring the accuracy or tolerance ratings of the reference in the television. For example, using a wired microphone connected to the audio source might be unreasonable or undesirable when performing impulse response measurements at various points in a room. Summary of the Invention
[0003] Embodiments of this disclosure provide the ability to efficiently adapt a factory “off-the-shelf” audio system to any given room.
[0004] One aspect of this disclosure relates to systems and algorithms for estimating the sampling clock difference between audio playback and recording devices. The sampling clock difference can be determined by sequentially playing the same pseudo-random signal and utilizing the statistical properties of the signal in the recording.
[0005] Exemplary embodiments or examples of this disclosure may utilize a maximum-length sequence (MLS) of pseudo-random signals. While MLS sequences are a good choice for clock synchronization, other pseudo-random sequences may be used within the scope of this disclosure. The preferred sequences have sharp correlation peaks that are clearly identifiable even with single-sample shifts and are of sufficient length to support the expected clock drift.
[0006] Exemplary embodiments of this disclosure include a system for synchronizing audio playback and recording clocks, the system comprising: a memory including computer-executable instructions; and a processor coupled to the memory and operable to execute the computer-executable instructions, the computer-executable instructions causing the processor to perform operations including: (a) repeatedly playing the same pseudo-random sequence over an audio system including a clock having a clock rate and one or more speakers, wherein multiple versions of the sequence are played; (b) recording the played pseudo-random sequence with a recording device including a clock having a clock rate; (c) calculating a hysteresis at a correlation maximum using the multiple versions of the sequence; (d) calculating an estimate of the difference between the clock rate of the audio system and the clock rate of the recording device using the maximum correlation hysteresis; and (e) resampling the recorded sequence and / or subsequently recorded audio to produce a resampled audio recording to synchronize the clocks of the audio system and the recording device.
[0007] The pseudo-random sequence may include an MLS sequence. The maximum correlation hysteresis can be calculated based on the maximum correlation between the nominal pseudo-random sequences of two records. Splines (e.g., cubic splines or others) can be used to calculate the maximum correlation point. Resampling the recorded audio to synchronize the clock may include multiplying the recording device clock rate by a resampling ratio based on the nominal offset and the maximum correlation hysteresis. The resampling ratio can be calculated as a ratio where the numerator includes the difference between the nominal offset and the maximum correlation hysteresis, and the denominator includes the nominal offset. The computer-executable instructions may also include instructions that cause the processor to perform the operation of calculating the impulse response of the audio system based on the resampled sequence of records.
[0008] Further exemplary embodiments include a system for measuring an audio impulse response at a listener's location using an MLS sequence, the system comprising: (a) a memory including computer-executable instructions; and (b) a processor coupled to the memory and operable to execute the computer-executable instructions, the computer-executable instructions causing the processor to perform operations including: determining (i) a clock of a playback device for a nominal MLS sequence recorded in a playback sequence and (ii) a clock difference between a recording device for recording an MLS sequence played by the playback device.
[0009] The processor is operable to calculate the maximum correlation hysteresis at the maximum correlation value to determine the clock difference, and uses this difference to synchronize the clock by resampling the recorded sequence. The maximum correlation hysteresis can be calculated based on the correlation between the nominal MLS sequences of two records. Splines can be used to calculate the maximum correlation hysteresis. Resampling the recorded sequence to synchronize the clock may include multiplying the recording device clock rate by a resampling ratio based on the nominal offset and the maximum correlation hysteresis. The resampling ratio can be calculated as a ratio where the numerator includes the difference between the nominal offset and the maximum correlation hysteresis, and the denominator includes the nominal offset.
[0010] Another exemplary embodiment includes a method or algorithm (method / algorithm) for synchronizing audio playback and recording clocks, the method comprising: (a) repeatedly playing the same pseudo-random sequence (as an excitation signal / sequence) on an audio system including a clock having (e.g., a first) clock rate and one or more speakers, wherein multiple versions of the sequence are played; (b) recording the played pseudo-random sequence with a recording device including a clock having (e.g., a second) clock rate; (c) calculating a hysteresis at a relevant maximum value among the multiple versions of the sequence (excitation signal / sequence); (d) using the hysteresis to calculate an estimate of the difference between the clock rate of the audio system and the clock rate of the recording device; and (e) resampling the recorded sequence and / or subsequently recorded audio to produce resampled recorded audio to synchronize the clocks.
[0011] The method / algorithm may include: calculating the impulse response of an audio system based on a resampled recorded sequence. Resampling the recorded sequence and / or subsequently recorded audio to synchronize the clock may include: multiplying the recording device clock rate by a resampling ratio based on a nominal offset and a maximum-valued correlated hysteresis. The resampling ratio is calculated such that the numerator includes the difference between the nominal offset and the maximum-valued correlated hysteresis, and the denominator includes the nominal offset.
[0012] Further exemplary embodiments include a computer-readable non-transitory storage medium including instructions that, when executed by a computer, cause the computer to perform the steps of the method described above (or elsewhere herein). Attached Figure Description
[0013] The manner and process of making and using the disclosed embodiments can be understood by referring to the figures in the accompanying drawings. It should be understood that the components and structures shown in the figures are not necessarily to scale, but rather the focus is on illustrating the principles of the concepts described herein. Similar reference numerals designate corresponding parts in different views. Furthermore, embodiments are shown in the figures by way of example rather than limitation, wherein:
[0014] Figure 1This is a diagram illustrating the application of an audio excitation signal to a general audio system for audio system clock synchronization according to an embodiment of the present disclosure;
[0015] Figure 2 This is a diagram illustrating the three clock variations of the MLS playback / recording system according to this disclosure;
[0016] Figure 3 This is a graph illustrating an example cross-correlation of asynchronous clocks according to this disclosure;
[0017] Figure 4 It is a graph showing the interpolation of cross-correlation data according to exemplary embodiments of the present disclosure;
[0018] Figure 5 It is a graph showing the frequency response of measurements before and after resampling according to an exemplary embodiment of the present disclosure;
[0019] Figure 6 It is a schematic diagram of an example computer system capable of performing all or at least a portion of the methods, algorithms, and processes according to this disclosure. Detailed Implementation
[0020] The features and advantages described herein are not exhaustive; many additional features and advantages will be apparent to those skilled in the art from the accompanying drawings, description, and claims. Furthermore, it should be noted that the language used in the specification has been chosen primarily for readability and directive purposes, and not in any way to limit the scope of the subject matter. This subject matter is susceptible to many embodiments. The following is a description of the scope of the subject matter, but it is not exhaustive.
[0021] As mentioned above, audio playback systems and recording devices can have different clock rates, which can degrade the performance of impulse response measurements of the audio system. For example, when measuring the frequency response of a television speaker at different locations in a room, playback can be based on the television clock, while recording can be based on the clock of an external device such as a remote control or smartphone. External devices can utilize less expensive crystal-based timing references without requiring the accuracy or tolerance ratings of the reference in the television. For example, using a wired microphone connected to the audio source may be impractical or undesirable when performing impulse response measurements at various points in the room. Impulse response measurements can be degraded when the playback and recording devices do not use synchronized clocks. When clocks are not synchronized, the resulting measured frequency response (the Fourier transform of the impulse response) tends to decrease at higher frequencies.
[0022] One aspect of this disclosure relates to systems and algorithms for estimating the sampling clock difference between audio playback and recording devices. The sampling clock difference is determined by sequentially playing (the same) pseudo-random signal (PRS) or binary sequence (PRBS) and utilizing the statistical properties of the signal / sequence in the recording. Therefore, embodiments of this disclosure can be used to measure the impulse response of an audio system more accurately than existing methods / techniques. A pseudo-random binary sequence (e.g., MLS) can be used in the measurement process. Such a sequence is played at the sampling rate of the playback device (audio system). The speaker output is recorded, sampled, and analyzed to determine the system's impulse response. Embodiments of this disclosure can be used to correct this clock rate mismatch.
[0023] Exemplary embodiments utilize a maximum-length binary sequence (MLS) of pseudo-random signals / sequences. While MLS sequences are a good choice for clock synchronization, other pseudo-random sequences may also be used. Examples may include, but are not limited to, Kasami sequences, Gold sequences, and / or JPL sequences; of course, other pseudo-random sequences / signals may be used within the scope of this disclosure. The signal or sequence (the term "sequence" may include "signal") preferably has a sharp correlation peak (when correlated with itself in an autocorrelation step or process), which is clearly identifiable even with a single sample shift, and has sufficient length to support the expected clock drift.
[0024] Figure 1 Figure 100 illustrates the application of a system / method / algorithm 100 for audio clock synchronization of an audio excitation signal, according to an embodiment of the present disclosure, to a general audio system 110 for audio system clock synchronization. The impulse response and frequency response of the audio system 110 are measured in an audio environment (e.g., representative room 1—representing a unique audio environment with furniture 2 or other accessories, doors 3, etc.), and audio system clock synchronization is applied. Components of the general audio system 110 may include one or more speakers 120 that play recordings of repeating PRBS (e.g., MLS) sequences. In an exemplary embodiment, the speakers may be included in or part of a TV, with each speaker playing a recording. However, in other embodiments, the speakers 120 may be standalone wireless speakers, wired speakers, or soundbars, etc. A recording device 130 with a microphone is used to record the played recordings. In an exemplary embodiment or example of this disclosure, the recording device 130 may be a smartphone or remote control with a wireless communication unit or function (e.g., implementing wireless transmission protocols such as Bluetooth, 5G, 6G, 4G LTE, etc.) located at a desired location (e.g., location A, B, or C) in room 1; the location may correspond to a typical or desired location of the listener.
[0025] The system includes a processing device or system 140 operable / used to calculate room impulse response and frequency response after implementing an embodiment (inventive technique) for synchronized playback and recording clocks according to this disclosure. In exemplary embodiments or instances of this disclosure, a smartphone (processing its own recordings), a TV (processing recordings wirelessly transmitted by a recording device), or a cloud-based server (processing recordings transmitted via the Internet) may include or constitute the processing system or device 140. For impulse response measurement using MLS, the audio path is preferably uncompressed; that is, all compression should be turned off.
[0026] Exemplary embodiments of this disclosure provide an algorithm or method (and system) for using a raw or initial excitation signal / sequence (e.g., such as...) Figure 2 The sampling clock rate of the recording device is estimated by comparing the played MLS sequence (shown in the image) with the recorded signal / sequence (excitation signal / recorded sequence). The recording can be resampled using conventional resampling algorithms. Compared to existing techniques, the resampled recording can be used to calculate a more accurate impulse response.
[0027] like Figure 2 As shown, the excitation signal (the signal being played) can be a given MLS sequence repeated multiple times. In this example, an MLS sequence of order 16 is repeated 4 times. However, other orders can be used, and the number of repetitions can vary. Generally, higher orders and more repetitions will be less susceptible to noise and will provide a more accurate overall impulse response measurement, but will require more time for playback, recording, and computation.
[0028] exist Figure 2 In the example excitation signal (the signal being played), the number of samples between the first sample of the first MLS sequence and the first sample of the last MLS sequence is given by the following formula:
[0029] Nominal Offset = (2 order -1)*(reps-1)=(2 16 -1)*(4-1)=196,605 samples (Equation 1)
[0030] The first 65,535 samples selected from the stimulus are given as the first MLS sequence. The fourth MLS sequence is given as the 65,535 samples selected starting from the 196,606th sample. If cross-correlation is performed between these two identical datasets (playing MLS 1 and MLS 4), they will have their maximum correlation at their aligned hysteresis of 0.
[0031] Figure 2Figure 200 illustrates an example of three clock variations for an MLS playback / recording system according to an embodiment of this disclosure. It is assumed that compensation has been made for any system delays, and therefore the starting point of MLS 1 in the recorded sequence is known. The nominal starting point of the MLS 4 sequence is estimated by counting 196,605 samples starting from the recorded MLS 1. In the case of synchronized sampling clocks, the nominal starting point of the recorded MLS 4 sequence will be perfectly aligned with the played MLS 4 sequence. Performing a cross-correlation between these two datasets (the recorded nominal MLS 1 and 4) will also result in a maximum value at hysteresis 0. However, if the clocks are asynchronous, the second dataset will not be perfectly aligned. Over time, each repeated playback of the MLS sequence will drift further from the starting point calculated by counting samples in the recording. The fourth nominal MLS sequence will be more misaligned than the previous sequences.
[0032] like Figure 2 As shown, when the recording sampling clock is slower, the 196,606th sample will occur before the start of the played MLS 4 sequence. When the recording sampling clock is faster, the 196,606th sample will occur after the start of the played MLS 4 sequence. Performing a cross-correlation on these sequences (the nominally recorded MLS 1 and 4) will give the maximum value at a non-zero hysteresis. This hysteresis can be used to calculate the relative difference between the sampling clocks of the playback and recording devices.
[0033] Figure 3 This is a graph 300 showing the cross-correlation between MLS sequences offset in timing, according to an example of this disclosure. Figure 3 In the example shown, the maximum value appears at a lag of -10 samples.
[0034] The lag, which can be called the maximum-related lag, can be calculated more accurately by taking the three points closest to the maximum value (lags of -11, -10, and -9) and interpolating between them using cubic splines. In this example, we calculate 100 points between each lag and identify that the maximum value of the interpolation occurs at a lag of -9.59, as shown below. Figure 4 As shown.
[0035] The relative sampling rate of the recording device to the playback device can be calculated as follows:
[0036] F sRel =Lapsis / Nominal Offset (Equation 2)
[0037] =-9.59 / 196,605
[0038] = -48.78ppm
[0039] Therefore, in this scenario, the recorded sampling rate is 48.78 ppm slower than the replay sampling rate.
[0040] Records can be resampled at the resampling rate given by the following formula:
[0041] Resampling rate = (Nominal offset - hysteresis) / Nominal offset (Equation 3)
[0042] = (196,605 + 9.59) / 196,605 = 1.00004878
[0043] According to this disclosure, resampling can be performed using cubic splines or other suitable splines. In alternative embodiments, polynomial interpolation or other types of interpolation (or other suitable numerical methods) can be used for resampling.
[0044] For an example of measuring the impulse response of television audio at different locations in a room, the system configuration may include a television with Bluetooth / WiFi capability and a smartphone with Bluetooth / WiFi capability. When the application on the smartphone is launched, the television can play audio bursts of a repeating 16th-order MLS sequence at a sampling rate of 48 kHz (based on the television's internal clock). When the smartphone is located at the desired location in the room, the audio bursts are recorded at a sampling rate of 48 kHz (based on the smartphone's internal clock). Using the technique of this invention, the smartphone CPU can calculate the impulse response of the listening environment and the resulting frequency response from the recording. Alternatively, the smartphone can send the recorded samples to the television via Bluetooth or WiFi, and the television CPU can use the recording to calculate the impulse response and the resulting frequency response. Alternatively, by sending the recordings to a server on a network, the desired response can be calculated using "cloud computing."
[0045] Figure 5 This is graph 500 showing the high-frequency drop that occurs when the playback and recording clocks are asynchronous. The original graph represents a smoothed Fourier transform of the impulse response derived from the original MLS sequence recording using a recording device sampling rate that is 43 ppm slower than the playback rate. The resampling graph shows the frequency response measured after resampling the recording based on the measured difference, using the method described herein. The resampling graph is a reasonable measurement of the frequency response of a real system. It can be seen that before resampling, the frequency response begins to drop significantly after approximately 1 kHz.
[0046] Figure 6This is a schematic diagram of an example computer system 600, which can perform all or at least a portion of processing (e.g., steps in the algorithms and methods described herein and / or solving any equations described herein (e.g., equations 1-3)). The computer system 600 includes a processor 602, volatile memory 604, non-volatile memory 606 (e.g., a hard disk), output device 608, and user input or interface (UI) 610 (e.g., a graphical user interface (GUI)), mouse, keyboard, display, or any common user interface, etc. The non-volatile memory (non-transitory storage medium) 606 stores computer instructions 612 (also known as machine-readable instructions or computer-readable instructions), such as software (computer program product), operating system 614, and data 616. In one example, the computer instructions 612 are executed by the processor 602 from the volatile memory 604. In one embodiment, the article of manufacture 618 (e.g., a storage device or medium such as a hard disk, optical disk, magnetic storage tape, optical storage tape, flash drive, etc.) includes or stores non-transitory computer-readable instructions. Bus 620 is also shown.
[0047] Processing can be implemented using hardware, software, or a combination of both. Processing can be implemented in a computer program that executes on a programmable computer / machine, each programmable computer / machine including a processor, storage media or other article of manufacture readable by the processor (including volatile and non-volatile memory and / or storage elements), and optionally at least one input device and one or more output devices. Program code can be applied to data input using input devices or input connections (e.g., ports or buses) to perform processing and generate output information.
[0048] System 600 may execute processing at least in part via a computer program product (e.g., in a machine-readable storage device) for execution or control of its operation by a data processing apparatus (e.g., a programmable processor, a computer, or multiple computers). Each such program may be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, the program may be implemented in assembly language or machine language. The language may be a compiled or interpreted language and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. The computer program may be deployed to execute on a single computer or on multiple computers distributed across multiple sites and interconnected by a communication network. The computer program may be stored on a storage medium or device (e.g., a CD-ROM, hard disk, or magnetic disk) readable by a general-purpose or special-purpose programmable computer for configuring and operating the computer when the computer reads the storage medium or device. The processing may also be implemented as a machine-readable storage medium configured with a computer program, wherein, upon execution, instructions in the computer program cause the computer to operate.
[0049] The processing can be performed by one or more programmable processors that execute one or more computer programs to perform system functions. All or part of the system can be implemented as special-purpose logic circuits (e.g., FPGA (Field Programmable Gate Array) and / or ASIC (Application-Specific Integrated Circuit)).
[0050] Therefore, embodiments of the subject matter of this invention can provide advantages over the prior art. Such advantages may include, but are not limited to, adapting off-the-shelf audio systems (e.g., in high-end televisions) to a given, specific room or other physical location that presents a particular or unique auditory environment with a set of acoustic characteristics.
[0051] The foregoing description, with reference to the accompanying drawings, illustrates various embodiments of the concepts, systems, devices, structures, and techniques for which protection is sought. Alternative embodiments may be devised without departing from the scope of the described concepts, systems, devices, structures, and techniques. Note that various connections and positional relationships (e.g., above, below, adjacent, etc.) may be used to describe elements in the specification and drawings. Unless otherwise specified, these connections and / or positional relationships may be direct or indirect, and the described concepts, systems, devices, structures, and techniques are not intended to be limiting in this respect. Thus, coupling of entities may refer to direct or indirect coupling, and positional relationships between entities may be direct or indirect positional relationships.
[0052] As an example of an indirect positional relationship, placing element "A" above element "B" can include one or more intermediate elements (e.g., element "C") located between element "A" and element "B", as long as the relevant characteristics and functions of elements "A" and "B" are not substantially altered by the intermediate elements.
[0053] In addition, the following definitions and abbreviations are used to interpret the claims and the specification. The terms “comprise,” “comprises,” “comprising,” “include,” “includes,” “including,” “has,” “having,” “contains,” or “containing,” or any other variation thereof, are intended to cover non-exclusive inclusion. For example, an apparatus, method, composition, mixture, or article that includes a list of elements is not necessarily limited to those elements, but may include other elements not expressly listed or inherent to such apparatus, method, composition, mixture, or article.
[0054] Furthermore, the term "exemplary" means "used as an example, instance, or illustration." Any embodiment or design described as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms "one or more" and "at least one" mean any integer greater than or equal to one, i.e., one, two, three, four, etc. The term "multiple" means any integer greater than one. The term "connection" can include both indirect and direct "connections."
[0055] References to "embodiment," "an embodiment," "an exemplary embodiment," "example," "instance," "one aspect," etc., in the specification indicate that the described embodiments may include specific features, structures, or characteristics; however, each embodiment may or may not include that specific feature, structure, or characteristic. Furthermore, these phrases do not necessarily refer to the same embodiment. Moreover, when a specific feature, structure, or characteristic is described in connection with an embodiment, it may affect such a feature, structure, or characteristic in other embodiments, whether or not it is explicitly described.
[0056] The relative or positional terms, including but not limited to the terms “up,” “down,” “right,” “left,” “vertical,” “horizontal,” “top,” “bottom,” and their derivatives, relate to the structures and methods shown in the figures. The terms “cover,” “on top,” “on top of,” “positioned on,” or “positioned on top” indicate that a first element (e.g., a first structure) is present on a second element (e.g., a second structure), wherein an intermediate element, such as an interface structure, may be present between the first and second elements. The term “direct contact” means that the first element (e.g., the first structure) and the second element (e.g., the second structure) are connected without any intermediate element.
[0057] The use of ordinal terms such as “first,” “second,” and “third” to modify claim elements in claims does not imply any priority, precedence, or order of one claim element relative to another, or the temporal order of the actions of the method, but is merely used as markers to distinguish one claim element with a specific name from another element with the same name (but using ordinal terms) to differentiate claim elements.
[0058] The terms "approximately" and "about" may be used in some embodiments to refer to values within ±20% of a target value, within ±10% of a target value, within ±5% of a target value, and within ±2% of a target value. The terms "approximately" and "about" may include the target value. The term "substantially equal" may be used to refer to values that are within ±20% of each other, within ±10% of each other, within ±5% of each other, and within ±2% of each other in some embodiments.
[0059] The term "substantially" can be used to refer to a value within ±20% of a relative measurement in some embodiments, within ±10% in some embodiments, within ±5% in some embodiments, and within ±2% in some embodiments. For example, "substantially" a first direction perpendicular to the second direction can refer to a first direction within ±20% of a 90° angle to the second direction in some embodiments, within ±10% of a 90° angle to the second direction in some embodiments, within ±5% of a 90° angle to the second direction in some embodiments, and within ±2% of a 90° angle to the second direction in some embodiments.
[0060] The disclosed subject matter is not limited to its application to the construction details and component arrangements described in the following description or shown in the accompanying drawings. The disclosed subject matter can be other embodiments and can be practiced and implemented in various ways.
[0061] Furthermore, the wording and terminology used in this patent are for illustrative purposes and should not be considered limiting. Therefore, the concepts upon which this disclosure is based can readily be used as the basis for designing other structures, methods, and systems for performing several purposes of the disclosed subject matter. Thus, the claims should be considered to include such equivalent constructions, provided they do not depart from the spirit and scope of the disclosed subject matter.
[0062] While the disclosed subject matter has been described and illustrated in the foregoing exemplary embodiments, this disclosure is by way of example only. Therefore, many changes may be made to the details of the implementation of the disclosed subject matter without departing from the spirit and scope thereof.
[0063] Therefore, the scope of this patent should not be limited to the described implementation, but should be defined only by the spirit and scope of the appended claims.
[0064] All publications and references cited in this patent are explicitly incorporated by way of citation.
Claims
1. A system for synchronizing audio playback and recording a clock, the system comprising: Memory, which includes computer-executable instructions; as well as A processor coupled to the memory and operable to execute the computer-executable instructions, the computer-executable instructions causing the processor to perform operations, the operations including: a. Repeatedly playing the same pseudo-random sequence on an audio system comprising a clock with a clock rate and one or more speakers, wherein the sequence has sharp correlation peaks and is of sufficient length to support the amount of clock drift to be measured; b. Record the played pseudo-random sequence using a recording device that includes a clock with a clock rate; c. Calculate the lag at the correlation maximum by using multiple repetitions of the recorded pseudo-random sequence; d. Calculate an estimate of the difference between the clock rate of the audio system and the clock rate of the recording device using maximum correlation hysteresis; and e. Resample the recorded sequence and / or subsequently recorded audio to produce a resampled audio recording to synchronize the clocks of the audio system and the recording device.
2. The system of claim 1, wherein, The pseudo-random sequence includes the longest sequence.
3. The system of claim 1, wherein, The maximum correlation lag is calculated based on the maximum correlation between the nominal pseudo-random sequences of the two records.
4. The system of claim 1, wherein, Use splines to calculate the points related to the maximum value.
5. The system of claim 1, wherein, Resampling the recorded audio to synchronize the clock includes multiplying the recording device clock rate by a resampling ratio, the resampling ratio being based on a nominal offset and the maximum associated hysteresis.
6. The system of claim 5, wherein, The resampling ratio is calculated as a ratio in which the numerator includes the difference between the nominal offset and the maximum value correlation hysteresis, and the denominator includes the nominal offset.
7. The system of claim 1, wherein, The computer-executable instructions also include instructions that cause the processor to perform operations including: calculating the impulse response of the audio system based on a sequence of resampled records.
8. A system for measuring the audio impulse response at a listener's location using a maximum length sequence, the system comprising: a. Memory, which includes computer-executable instructions; as well as b. A processor coupled to the memory and operable to execute the computer-executable instructions, the computer-executable instructions causing the processor to perform operations, the operations including: The clock difference between (i) the clock of the playback device that plays the nominal maximum length sequence of the sequence and (ii) the clock of the recording device that records the nominal maximum length sequence of the sequence played by the playback device is determined by calculating the maximum correlation lag at the maximum correlation lag at the maximum correlation lag; and the clock is synchronized by resampling the recorded sequence using the clock difference.
9. The system according to claim 8, wherein, Maximum correlation lag is calculated based on the correlation between the nominal maximum length sequences of two records.
10. The system according to claim 9, wherein, The maximum correlation lag is calculated using splines.
11. The system according to claim 8, wherein, Resampling the recorded sequence to synchronize the clock includes multiplying the recording device clock rate by a resampling ratio, the resampling ratio being based on a nominal offset and the maximum associated hysteresis.
12. The system according to claim 11, wherein, The resampling ratio is calculated as a ratio in which the numerator includes the difference between the nominal offset and the maximum value correlation hysteresis, and the denominator includes the nominal offset.
13. A method for synchronizing audio playback and recording a clock, the method comprising: a. Repeatedly playing the same pseudo-random sequence on an audio system comprising a clock with a clock rate and one or more speakers, wherein the sequence has sharp correlation peaks and is of sufficient length to support the amount of clock drift to be measured; b. Record the played pseudo-random sequence using a recording device that includes a clock with a clock rate; c. Calculate the lag at the correlation maximum by using multiple repetitions of the recorded pseudo-random sequence; d. Using the hysteresis, calculate an estimate of the difference between the clock rate of the audio system and the clock rate of the recording device; and e. Resample the recorded sequence and / or subsequently recorded audio to produce resampled recorded audio for clock synchronization.
14. The method of claim 13, further comprising: The impulse response of the audio system is calculated based on a sequence of resampled records.
15. The method according to claim 13, wherein, Resampling the recorded sequence and / or subsequently recorded audio to synchronize the clock includes multiplying the recording device clock rate by a resampling ratio based on nominal offset and maximum value-related hysteresis.
16. The method according to claim 15, wherein, The resampling ratio is calculated as a ratio in which the numerator includes the difference between the nominal offset and the maximum value correlation hysteresis, and the denominator includes the nominal offset.
17. A computer-readable non-transitory storage medium comprising instructions that, when executed by a computer, cause the computer to perform the steps of the method according to claim 13.
Citation Information
Patent Citations
Data signal quality evaluating device
JP2011232217A
Probability estimating apparatus and method for peak-to-peak clock skews
US20030031284A1
