Audio synchronization in an audio distribution system

WO2024212122A1PCT designated stage expired Publication Date: 2024-10-17HARMAN INT IND INC +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/087761
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2024-10-17

Smart Images

  • Figure CN2023087761_17102024_PF_FP_ABST
    Figure CN2023087761_17102024_PF_FP_ABST
Patent Text Reader

Abstract

A computer-implemented method of audio playback at a secondary audio device in an audio distribution system includes: receiving, from a primary audio device in the audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets; receiving, from the primary audio device, a start playback time; in response to receiving the start playback time, determining a current audio clock time at the secondary audio device; based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; and pushing the selected audio playback packet to an audio sink included in the secondary audio device.
Need to check novelty before this filing date? Find Prior Art

Description

AUDIO SYNCHRONIZATION IN AN AUDIO DISTRIBUTION SYSTEMBACKGROUND

[0001] Field of the Various Embodiments

[0002] The various embodiments relate generally to audio systems and, more specifically, to techniques for audio synchronization in an audio distribution system.

[0003] Description of the Related Art

[0004] Audio distribution systems, in which audio is distributed through multiple speakers located in different parts of a venue, are commonly employed in concert halls, movie theaters, public address systems, and the like. In such systems, to ensure a seamless and cohesive audio experience for the listener, audio synchronization is oftentimes employed, so that the audio is played in perfect synchronization across all speakers, without any delays or offsets between them. With the advent of networked audio systems, in which audio is distributed over a network to multiple speakers, audio synchronization has become even more important.

[0005] One challenge for precise audio synchronization in networked audio systems is that any network inherently includes signal latency, which is the delay in audio packet arrival at a specified destination in the network. A further challenge for precise audio synchronization is that such latency can vary unpredictably over time, a network property referred to as “jitter. ” Together, latency and jitter in a networked audio system can result in audio that is played by different speakers being out of sync.

[0006] To address this issue, various techniques and protocols have been developed to achieve audio synchronization, such as clock synchronization at each speaker and various audio streaming protocols for the transmission of audio packets between networked speakers. However, these techniques can fail due to unexpected and / or variable network delays that can cause different speakers to receive start playback commands at different times, resulting in asynchronous playback of audio by networked speakers. Worse, such network delays can cause a speaker to receive a start playback command after the time indicated by the start playback command, further impacting playback synchronization.

[0007] As the foregoing illustrates, there is a need in the art for improved techniques  for audio synchronization in networked audio systems.

[0008] SUMMARY

[0009] Acomputer-implemented method of audio playback at a secondary audio device in an audio distribution system includes: receiving, from a primary audio device in the audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets; receiving, from the primary audio device, a start playback time; in response to receiving the start playback time, determining a current audio clock time at the secondary audio device; based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; and pushing the selected audio playback packet to an audio sink included in the secondary audio device.

[0010] At least one technical advantage of the disclosed techniques relative to the prior art is that the disclosed techniques enable audio synchronization in a networked audio system is that is not affected by unexpected and / or variable network delays between different audio devices within a networked audio system. Audio playback from multiple audio devices or channels of the networked audio system is synchronized so that the sound from each audio device or channel is emitted by each audio device at the same time. As a result, a seamless, unified audio experience is created in which the soundstage (or speaker image) is consistent and coherent. These technical advantages provide one or more technological advancements over prior art approaches.BRIEF DESCRIPTION OF THE DRAWINGS

[0011] So that the manner in which the above recited features of the various embodiments can be understood in detail, a more particular description of the inventive concepts, briefly summarized above, may be had by reference to various embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of the inventive concepts and are therefore not to be considered limiting of scope in any way, and that there are other equally effective embodiments.

[0012] Figure 1 illustrates a networked audio system configured to implement one or more aspects of the various embodiments;

[0013] Figure 2 is a more detailed illustration of a primary audio device of the networked audio system of Figure 1, according to various embodiments;

[0014] Figure 3 sets forth a flowchart of method steps for associating a frame or an audio playback packet with a receipt time, according to various embodiments;

[0015] Figure 4 is a more detailed illustration of a secondary audio device of the networked audio system of Figure 1, according to various embodiments;

[0016] Figure 5 sets forth a flowchart of method steps for synchronizing playback of audio in the networked audio system of Figure 1, according to various embodiments;

[0017] Figure 6 is a schematic illustration of an audio playback packet and a modified audio playback packet, according to various embodiments; and

[0018] Figure 7 is a block diagram of a computing device configured to implement one or more aspects of the various embodiments.

[0019] For clarity, identical reference numbers have been used, where applicable, to designate identical elements that are common between figures. It is contemplated that features of one embodiment may be incorporated in other embodiments without further recitation.DETAILED DESCRIPTION

[0020] In the following description, numerous specific details are set forth to provide a more thorough understanding of the various embodiments. However, it will be apparent to one of skill in the art that the inventive concepts may be practiced without one or more of these specific details.

[0021] System Overview

[0022] Figure 1 illustrates a networked audio system 100 configured to implement one or more aspects of the various embodiments. Networked audio system 100 plays back audio content over multiple audio devices (such as loudspeakers) and / or channels. In addition, networked audio system 100 distributes the audio content being played back  to the multiple audio devices and / or channels in a digital format via a network. For example, in some embodiments, networked audio system 100 distributes audio content via audio packets that include audio data. The network can include a wireless local area network (WLAN) , a cellular network, a wired communication network (such as a local area network) , or any combination thereof. As shown, networked audio system 100 includes, without limitation, a primary audio device 120 and a plurality of K secondary audio devices 130. Networked audio system 100 receives audio content from an audio service 101 (e.g., Spotify, Apple Music, Pandora, YouTube Music, Tidal and / or other audio content streaming services) or other audio source, such as one or more audio input devices (e.g., microphones) , one or more storage devices, or the like.

[0023] Primary audio device 120 can operate as both an audio source and an audio sink. In the role of audio source, primary audio device 120 pushes audio playback packets 102 to each secondary audio device 130 included in networked audio system 100. In the role of audio sink, primary audio device 120 consumes audio playback packets 102 received from audio service 101, resulting in the playback of the audio content included in audio playback packets 102. In some embodiments, primary audio device 120 performs other functions for enabling the operation of networked audio system 100 and for implementing various embodiments described herein. One embodiment of primary audio device 120 is described in greater detail below in conjunction with Figure 2.

[0024] Each of the K secondary audio devices 130 operates as an audio sink. Thus, each secondary audio device 130 consumes audio playback packets 102 received from primary audio device 120, resulting in the playback of the audio content included in audio playback packets 102. In some embodiments, secondary audio device 130 performs other functions for enabling the operation of networked audio system 100 and for implementing various embodiments described herein. One embodiment of a secondary audio device 130 is described in greater detail below in conjunction with Figure 4.

[0025] Figure 2 is a more detailed illustration of primary audio device 120, according to various embodiments. Primary audio device 120 processes and plays back audio data  and performs other functions for enabling the operation of networked audio system 100 and for implementing various embodiments described herein. In addition, primary audio device 120 performs operations that enable clock synchronization and drift compensation.

[0026] For clock synchronization, primary audio device 120 performs operations that enable audio clock alignment between primary audio device 120 and secondary audio devices 130, for example via Precision Time Protocol (PTP) . PTP uses a master-slave architecture, in which a master clock provides the reference time to one or more slave clocks. Specifically, in PTP, audio signals from primary audio device 120 are transmitted over the network of networked audio system 100 to a secondary audio device 130. In this way, the audio clocks of both audio devices can be synchronized. Typically, the process starts with primary audio device 120 transmitting an audio signal to a particular secondary audio device 130. The particular secondary audio device 130 receives the audio signal and uses PTP to synchronize the audio clock (not shown in Figure 2) of secondary audio device 130 with an audio clock 211. Once these two audio clocks are synchronized, audio signals from the particular secondary audio device 130 are transmitted back to primary audio device 120, thereby ensuring that the audio output from both audio devices is in sync. Alternatively, primary audio device 120 performs operations that enable audio clock alignment between primary audio device 120 and secondary audio devices 130 via a Timing Synchronization Function (TSF) .

[0027] Drift compensation is a technique used to synchronize the audio playback of primary audio device 120 and secondary audio devices 130. For drift compensation in networked audio system 100, primary audio device 120 resamples the audio on secondary audio devices 130 based on a calculated drift. For example, by adjusting the sample rate of one or more secondary audio devices 130 based on the calculated drift, audio output of the one or more secondary audio devices 130 can be better aligned with the audio output of primary audio device 120, resulting in a more synchronized listening experience. In some embodiments, primary audio device 120 performs operations to enable drift compensation, such as returning audio clock signals to a secondary audio device 130 when that secondary audio device 130 is performing drift compensation. An example drift compensation process is described below.

[0028] In the embodiment illustrated in Figure 2, primary audio device 120 includes, without limitation, an audio clock generator 221, an input synchronizer 222, an output synchronizer 223, a packet manager 224, a memory 225, and an audio sink 226. Audio clock generator 221 (also referred to as an “audio clock manager” ) can be a hardware device that determines the rate at which audio data (such as audio data included in audio playback packets 102) is sampled and played back by primary audio device 120. Thus, audio clock generator 221 generates an audio clock 211. In some embodiments, audio clock generator 221 also manages and tracks a current time value for primary audio device 120 based on audio clock 211. The frequency of audio clock 211 is usually expressed in samples per second (e.g., 44.1 kHz or 48kHz) . Alternatively audio clock 211 is derived from a reference clock provided by the operating system associated with primary audio device 120 or networked audio system 100.

[0029] Audio sink 226 is an audio output device, such as a loudspeaker, for playing back audio content included in audio playback packets 102. Input synchronizer 222 is a software or firmware module included in primary audio device 120. In some embodiments, input synchronizer 222 receives audio playback packets 102 or frames from audio service 101 and queries packet manager 224 for the current packet number or frame number. Output synchronizer 223 pushes audio playback packets 102 to audio sink 226 for playback of audio content. Memory 225 stores data for enabling implementation of various embodiments described herein, such as input association information 202 (described below) for certain frames or packets received by primary audio device 120.

[0030] According to various embodiments, primary audio device 120 generates input association information 202 for certain frames or packets received by primary audio device 120. In such embodiments, primary audio device 120 associates a current audio clock value tassociation with a particular frame or packet received from audio service 101, such as an audio playback packet 102. Thus, input association information 202 includes an identifier for a specific frame or audio playback packet that has been received and buffered by secondary audio device 130 as well as an audio clock value associated with the specific frame or audio playback packet. In such embodiments, the current audio clock time tassociation that is associated with the particular frame or packet  received from audio service 101 is the audio clock value that corresponds to the time at which the particular frame or packet is received. Thus, in such embodiments, input association information 202 includes a specific audio clock value tassociation and an associated frame or audio playback packet 102. Further, in such embodiments, primary audio device 120 transmits input association information 202 to secondary audio devices 130, where the input association information 202 is employed by secondary audio devices 130 to perform an output synchronization process as described below. In some embodiments, input association information 202 is transmitted along with audio playback packets 102. One embodiment of such an association process is described below in conjunction with Figure 3.

[0031] According to various embodiments, primary audio device 120 also determines a start playback time tstart-playback. tstart-playback indicates an audio clock value at which audio content begins to be played back by primary audio device 120 and all secondary audio devices 130. Primary audio device 120 calculates tstart-playback based on tassociation for a specific audio playback packet 102 and a time delay value tdelay. In some embodiments, tstart-playback = tassociation –tdelay. tdelay compensates for network jitter and other related delays associated with networked audio system 100.

[0032] In some embodiments, primary audio device 120 determines a suitable value of tdelay based on one or more network environmental factors and / or other network requirements, such as transmission delay and jitter. The data transmission delay between devices can vary based on network type. For example, transmission delay in Ethernet networks is better than transmission delay in peer-to-peer (P2P) networks, which in turn is better than transmission delay in Wi-Fi networks. Further, in a given wireless network environment, the transmission delay also has jitter. To ensure that there is enough buffer, in some embodiments, primary audio device 110 adjusts tdelay accordingly. For example, in an instance in which the maximum ping latency is 10 ms, primary audio device 120 can set tdelay to 40 ms; when the maximum latency changes to 20 ms, primary audio device 120 can set tdelay to 60ms; when the maximum latency returns to 10ms, primary audio device 120 can reduce tdelay back to 40ms. Thus, in some embodiments, tdelay can vary dynamically according to changes in one or more network environmental factors and / or other network requirements. In other  embodiments, tdelay can be a fixed value for networked audio system 100. To begin playback of audio content, in addition to audio playback packets 102, primary audio device 120 transmits start playback time tstart-playback to each secondary audio device 130.

[0033] Input Association Process

[0034] Figure 3 sets forth a flowchart of method steps for associating a frame or an audio playback packet with a receipt time, according to various embodiments. Although the method steps are described in conjunction with the system of Figures 1 –2, persons skilled in the art will understand that any suitable system configured to perform the method steps, in any order, is within the scope of the embodiments.

[0035] Acomputer-implemented method 300 begins at step 301, where primary audio device 120 receives a unit of data from audio service 101, such as an association frame or other control frame, or a data packet, such as an audio playback packet 102 of Figure 1. Generally, the data unit is received over a data link of the network of networked audio system 100 by input synchronizer 222.

[0036] In step 302, input synchronizer 222 of primary audio device 120 retrieves information identifying the unit of data received in step 301, such as a frame number or data packet number. In some embodiments, input synchronizer 222 queries packet manager 224 for such information and receives the identifying information.

[0037] In step 303, input synchronizer 222 retrieves timing information associated with receipt of the unit of data received in step 301. In some embodiments, input synchronizer 222 queries audio clock generator 421 for the timing information and receives the timing information.

[0038] In step 304, input synchronizer 222 generates input association information 202. Specifically, input synchronizer 222 sets an input association between the unit of data received in step 301 and the timing information retrieved in step 303. In some embodiments, primary audio device 120 stores input association information 202.

[0039] In step 305, primary audio device 120 transmits the input association information 202 generated in step 304 to a secondary audio device 130 for use in an output synchronization process as described below in conjunction with Figure 5.

[0040] Figure 4 is a more detailed illustration of secondary audio device 130 of the networked audio system of Figure 1, according to various embodiments. Secondary audio device 130 processes and plays back audio data and performs other functions for enabling the operation of networked audio system 100 and for implementing various embodiments described herein. In some embodiments, secondary audio device 130 performs operations that enable audio clock alignment between secondary audio device 130 and primary audio device 120 (clock synchronization) , for example via PTP or a TSF.

[0041] In some embodiments, secondary audio device 130 performs operations that enable drift compensation in networked audio system 100. In such embodiments, once audio clock alignment between primary audio device 120 and secondary audio devices 130 has been established for the first time, a particular secondary audio device 130 can calculate audio clock drift every tinterval seconds. Audio clock drift tdrift between the particular secondary audio device 130 and primary audio device 120 in tinterval can be calculated using a first signal sent by the particular secondary audio device 130 to primary audio device 120 and a second signal sent by primary audio device 120 back to the particular secondary audio device 130 in response to the first signal. For example, in some embodiments, a sink resampling ratio RResampling can be calculated as: RResampling =(1 + tdrift / tinterval) . To smoothly adjust the playback rate of the audio at the particular secondary audio device 130 to match a desired rate, the particular secondary audio device 130 can employ a PID controller to measure the difference between the actual playback rate and the desired playback rate, and then adjust the resampling algorithm to reduce this difference.

[0042] In the embodiment illustrated in Figure 4, secondary audio device 130 includes, without limitation, an audio clock generator 421, an output synchronizer 423, a packet manager 424, a memory 425, and an audio sink 426. Audio clock generator 421 can be similar in configuration and operation to audio clock generator 221 of Figure 2 and generates an audio clock 411. Output synchronizer 423 can be similar in configuration and operation to output synchronizer 223 of Figure 2, packet manager 424 can be similar in configuration and operation to packet manager 224 of Figure 2, memory 425 can be similar in configuration and operation to memory 225 of Figure 2, and audio sink  426 can be similar in configuration and operation to audio sink 226 of Figure 2.

[0043] According to various embodiments, secondary audio device 130 employs input association information 202 received from primary audio device 120 to perform an output synchronization process as described below in conjunction with Figure 5.

[0044] Output Synchronization Process

[0045] Figure 5 sets forth a flowchart of method steps for synchronizing playback of audio in networked audio system 100, according to various embodiments. Although the method steps are described in conjunction with the system of Figures 1 –4, persons skilled in the art will understand that any suitable system configured to perform the method steps, in any order, is within the scope of the embodiments. In some embodiments, a computer-implemented method 500 is performed for each secondary audio device 130 in networked audio system 100.

[0046] Computer-implemented method 500 begins at step 501, where secondary audio device 130 receives, from primary audio device 120, one or more audio playback packets 102. In addition, secondary audio device 130 receives, from primary audio device 120, input association information 202 for the one or more audio playback packets 102. In some embodiments, secondary audio device 130 receives the one or more audio playback packets 102 prior to receiving input association information 202. In other embodiments, secondary audio device 130 receives input association information 202 interspersed among the one or more audio playback packets 102.

[0047] In step 502, secondary audio device 130 buffers the one or more audio playback packets 102, for example in memory 425. In some embodiments, secondary audio device 130 also stores input association information 202 in memory 425.

[0048] In step 503, secondary audio device 130 receives a start playback time tstart-playback from primary audio device 120. In step 504, in response to receiving the start playback time tstart-playback from primary audio device 120, secondary audio device 130 begins pushing silence samples to audio sink 226 of secondary audio device 130 until the current audio clock time reaches the start playback time tstart-playback. As a result, audio sink 226 begins playing back the silence samples. In some embodiments, secondary audio device 130 pushes silence samples to audio sink 226 of secondary  audio device 130 prior to computer-implemented method 500. In such embodiments, in step 503, secondary audio device 130 continues pushing silence samples to audio sink 226.

[0049] In step 505, secondary audio device 130 determines the audio clock time tmark, which is the time at which the start playback time tstart-playback is received in step 503. Tmark enables the determination of the playback frame number fmark that is marked as the starting frame for playback of audio.

[0050] In step 506, secondary audio device 130 selects the playback frame number fmark based on tmark determined in step 505 and the start playback time tstart-playback received in step 503. For example, in some embodiments, fmark = [tmark –tstart-playback]  / tframe, where tframe is the time per frame or time per audio playback packet 102. In some embodiments, the time per frame tframe can be on the order of about 5 ms, such as when an audio playback packet 102 includes 240 audio samples and the sample rate is 48 kHz. Based on the value of fmark and input association information 202, an appropriate frame or audio playback packet 102 is selected from the one or more audio playback packets 102 buffered in step 502. It is noted that, due to unexpected and / or variable network delay in networked audio system 100, the start playback time tstart-playback can be received by secondary audio device 130 at an audio clock time that is after the time indicated by start playback time tstart-playback.

[0051] In step 507, secondary audio device 130 modifies the audio playback packet 102 for synchronized playback. In some embodiments, secondary audio device 130 generates a modified frame or audio playback packet by removing elapsed audio samples from the frame or audio playback packet 102 selected in step 506. In such embodiments, the number of elapsed audio samples corresponds to the number of silence samples played back by secondary audio device 130 after start playback time tstart-playback has occurred. For example, in some instances, unexpected and / or variable network delay causes the start playback time tstart-playback to be received by secondary audio device 130 at an audio clock value at secondary audio device 130 that is after the time indicated by start playback time tstart-playback. In such instances, silence samples are played by audio sink 226 until synchronized playback by secondary audio device 130 of  the modified frame or audio playback packet begins. These silence samples correspond to the elapsed audio samples that are removed from the frame or audio playback packet 102 selected in step 506. Thus, when the current audio clock time at secondary audio device 130 (audio clock time tmark) is later than the start playback time tstart-playback, the one or more elapsed audio samples are associated with times prior to the current audio clock time, and these elapsed audio samples are not played back by audio sink 226. An embodiment of a modified audio playback packet is described below in conjunction with Figure 6.

[0052] Figure 6 is a schematic illustration of an audio playback packet 610 and a modified audio playback packet 620, according to various embodiments. Audio playback packet 610 includes a plurality of audio samples 611 that correspond to audio data that play back over a time interval 612. Modified audio playback packet 620 includes a plurality of audio samples 621 that correspond to audio data that play back over a time interval 622. Modified audio playback packet 620 is a modified version of audio playback packet 610. As shown, time interval 622 is shorter than time interval 612. In addition, the plurality of audio samples 621 included in modified audio playback packet 620 are identical to the audio samples included in a final portion 614 of audio playback packet 610. Thus, modified audio playback packet 620 is equivalent to audio playback packet 610 after the removal of the audio samples included in an initial portion 613 of audio playback packet 610.

[0053] Returning to Figure 5, in step 508, secondary audio device 130 pushes the modified audio playback packet to audio sink 226 and the modified audio playback packet is consumed, i.e., converted to audio by audio sink 226. Because the modified audio playback packet includes audio samples from the final portion of the audio playback packet selected in step 506, the audio data being consumed by audio sink 226 is synchronized with audio data being played back by other secondary audio devices 130 in networked audio system 100, even though playback may begin at a different audio clock time for each different secondary audio device 130.

[0054] Exemplary Computing Device

[0055] Figure 7 is a block diagram of a computing device 700 configured to implement  one or more aspects of the various embodiments. Thus, computing device 700 can be a computing device associated with networked audio system 100, such as primary audio device 120 and / or a secondary audio device 130. Computing device 700 may be a desktop computer, a laptop computer, a tablet computer, or any other type of computing device configured to receive input, process data, generate control signals, and display images. Computing device 700 is configured to perform operations associated with computer-implemented method 300, computer-implemented method 500, and / or other suitable software applications, which can reside in a memory 710 depending upon whether computing device 700 is a primary audio device 120 or a secondary audio device 130. For example, when computing device 700 is associated with primary audio device 120, computing device 700 is configured to perform operations associated with computer-implemented method 300, and when computing device 700 is associated with secondary audio device 130, computing device 700 is configured to perform operations associated with computer-implemented method 500. It is noted that the computing device described herein is illustrative and that any other technically feasible configurations fall within the scope of the present disclosure.

[0056] As shown, computing device 700 includes, without limitation, an interconnect (bus) 740 that connects a processing unit 750, an input / output (I / O) device interface 760 coupled to input / output (I / O) devices 780, memory 710, a storage 730, and a network interface 770. Processing unit 750 may be any suitable processor implemented as a central processing unit (CPU) , a graphics processing unit (GPU) , an application-specific integrated circuit (ASIC) , a field programmable gate array (FPGA) , any other type of processing unit, or a combination of different processing units, such as a CPU configured to operate in conjunction with a GPU. In general, processing unit 750 may be any technically feasible hardware unit capable of processing data and / or executing software applications, including processes associated with computer-implemented method 500. Further, in the context of this disclosure, the computing elements shown in computing device 700 may correspond to a physical computing system (e.g., a system in a data center) or may be a virtual computing instance executing within a computing cloud.

[0057] I / O devices 780 may include devices capable of providing input, such as a  keyboard, a mouse, a touch-sensitive screen, and so forth, as well as devices capable of providing output, such as a display device 781. Additionally, I / O devices 780 may include devices capable of both receiving input and providing output, such as a touchscreen, a universal serial bus (USB) port, and so forth. I / O devices 780 may be configured to receive various types of input from an end-user of computing device 700, and to also provide various types of output to the end-user of computing device 700, such as one or more graphical user interfaces (GUI) , displayed digital images, and / or digital videos. In some embodiments, one or more of I / O devices 780 are configured to couple computing device 700 to a network 705.

[0058] Memory 710 may include a random access memory (RAM) module, a flash memory unit, or any other type of memory unit or combination thereof. Processing unit 750, I / O device interface 760, and network interface 770 are configured to read data from and write data to memory 710. Memory 710 includes various software programs that can be executed by processing unit 750 and application data associated with said software programs, including with computer-implemented method 300 and / or computer-implemented method 500.

[0059] In sum, the various embodiments described herein provide techniques for audio synchronization in a networked audio system. A primary audio device in the networked audio system generates input association information for a frame or packet of audio data and provides the input association information to the secondary audio devices of the networked audio system. The input association information associates a time that the frame or packet was received by the primary audio device with that frame or packet. The input association information is used by the secondary audio devices to perform an output synchronization process in which the frame or packet is modified at the secondary audio device by the removal of elapsed audio samples from the frame or audio playback packet before being pushed to an audio sink of the secondary audio device in synchronization with the corresponding audio samples being pushed to the audio sinks of the other audio devices in the networked audio system.

[0060] At least one technical advantage of the disclosed techniques relative to the prior art is that the disclosed techniques enable audio synchronization in a networked  audio system is that is not affected by unexpected and / or variable network delays between different audio devices within a networked audio system. Audio playback from multiple audio devices or channels of the networked audio system is synchronized so that the sound from each audio device or channel is emitted by each audio device at the same time. As a result, a seamless, unified audio experience is created in which the soundstage (or speaker image) is consistent and coherent. These technical advantages provide one or more technological advancements over prior art approaches.

[0061] 1. In some embodiment, a computer-implemented method of audio playback at a secondary audio device in an audio distribution system includes: receiving, from a primary audio device in the audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets; receiving, from the primary audio device, a start playback time; in response to receiving the start playback time, determining a current audio clock time at the secondary audio device; based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; and pushing the selected audio playback packet to an audio sink included in the secondary audio device.

[0062] 2. The computer-implemented method of clause 1, further comprising buffering the one or more audio playback packets at the secondary audio device.

[0063] 3. The computer-implemented method of clauses 1 or 2, further comprising, in response to receiving the start playback time, pushing one or more silence samples to the audio sink included in the secondary audio device until the current audio clock time is the start playback time.

[0064] 4. The computer-implemented method of any of clauses 1-3, wherein the input association information includes an identifier for a specific audio playback packet included in the one or more audio playback packets and an audio clock value associated with the specific audio playback packet.

[0065] 5. The computer-implemented method of any of clauses 1-4, wherein the audio clock value indicates a time at which the specific audio playback packet is received by the primary audio device.

[0066] 6. The computer-implemented method of any of clauses 1-5, further comprising modifying the selected audio playback packet based on the current audio clock time by resampling the selected audio playback packet based on a calculated drift between the primary audio device and the secondary audio device.

[0067] 7. The computer-implemented method of any of clauses 1-6, further comprising modifying the selected audio playback packet based on the current audio clock time by removing one or more elapsed audio samples from the selected audio playback packet.

[0068] 8. The computer-implemented method of any of clauses 1-7, further comprising determining a number of elapsed audio samples based on the current audio clock time at the secondary device and the start playback time.

[0069] 9. The computer-implemented method of any of clauses 1-8, wherein the number of elapsed audio samples corresponds to a number of silence samples played back by the secondary audio device after a time indicated by the start playback time.

[0070] 10. The computer-implemented method of any of clauses 1-9, wherein the one or more elapsed audio samples are not played back by the audio sink.

[0071] 11. The computer-implemented method of any of clauses 1-10, wherein the one or more elapsed audio samples are associated with times prior to the current audio clock time when the current audio clock time is later than the start playback time.

[0072] 12. The computer-implemented method of any of clauses 1-11, selecting the audio playback packet from the one or more audio playback packets is based on a difference between the current audio clock time at the secondary device and the start playback time.

[0073] 13. In some embodiments, a non-transitory computer readable medium includes a set of instructions which, in response to execution by a processor of a computer system, cause the processor to perform the steps of: receiving, from a primary audio device in an audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets; receiving, from the primary audio device, a start playback time; in response to receiving  the start playback time, determining a current audio clock time at the secondary audio device; based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; and pushing the selected audio playback packet to an audio sink included in the secondary audio device.

[0074] 14. The non-transitory computer readable medium of clause 13, further comprising instructions which, in response to execution by the processor, cause the processor to perform the step of buffering the one or more audio playback packets at the secondary audio device.

[0075] 15. The non-transitory computer readable medium of clauses 13 or 14, further comprising instructions which, in response to execution by the processor, cause the processor to perform the step of, in response to receiving the start playback time, pushing one or more silence samples to the audio sink included in the secondary audio device until the current audio clock time is the start playback time.

[0076] 16. The non-transitory computer readable medium of any of clauses 13-15, wherein the input association information includes an identifier for a specific audio playback packet included in the one or more audio playback packets and an audio clock value associated with the specific audio playback packet.

[0077] 17. The non-transitory computer readable medium of any of clauses 13-16, further comprising instructions which, in response to execution by the processor, cause the processor to perform the step of modifying the selected audio playback packet based on the current audio clock time by removing one or more elapsed audio samples from the selected audio playback packet.

[0078] 18. The non-transitory computer readable medium of any of clauses 13-17, further comprising instructions which, in response to execution by the processor, cause the processor to perform the step of determining a number of elapsed audio samples based on the current audio clock time at the secondary audio device and the start playback time.

[0079] 19. The non-transitory computer readable medium of any of clauses 13-18,  wherein the one or more elapsed audio samples are not played back by the audio sink.

[0080] 20. In some embodiments, a system, includes: a memory that stores instructions; and a processor that is communicatively coupled to the memory and is configured to, when executing the instructions, perform the steps of: receiving, from a primary audio device in an audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets; receiving, from the primary audio device, a start playback time; in response to receiving the start playback time, determining a current audio clock time at the secondary audio device; based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; and pushing the selected audio playback packet to an audio sink included in the secondary audio device.

[0081] Any and all combinations of any of the claim elements recited in any of the claims and / or any elements described in this application, in any fashion, fall within the contemplated scope of the present invention and protection.

[0082] The descriptions of the various embodiments have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.

[0083] Aspects of the present embodiments may be embodied as a system, method or computer program product. Accordingly, aspects of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc. ) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “module, ” a “system, ” or a “computer. ” In addition, any hardware and / or software technique, process, function, component, engine, module, or system described in the present disclosure may be implemented as a circuit or set of circuits. Furthermore, aspects of the present disclosure may take the form of a computer program product embodied in one or more computer readable medium (s) having computer readable program code  embodied thereon.

[0084] Any combination of one or more computer readable medium (s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (anon-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM) , a read-only memory (ROM) , an erasable programmable read-only memory (EPROM or Flash memory) , an optical fiber, a portable compact disc read-only memory (CD-ROM) , an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

[0085] Aspects of the present disclosure are described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine. The instructions, when executed via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / acts specified in the flowchart and / or block diagram block or blocks. Such processors may be, without limitation, general purpose processors, special-purpose processors, application-specific processors, or field-programmable gate arrays.

[0086] The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and  computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function (s) . It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustration, and combinations of blocks in the block diagrams and / or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

[0087] While the preceding is directed to embodiments of the present disclosure, other and further embodiments of the disclosure may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims

1.A computer-implemented method of audio playback at a secondary audio device in an audio distribution system, the method comprising:receiving, from a primary audio device in the audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets;receiving, from the primary audio device, a start playback time;in response to receiving the start playback time, determining a current audio clock time at the secondary audio device;based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; andpushing the selected audio playback packet to an audio sink included in the sec-ondary audio device.2.The computer-implemented method of claim 1, further comprising buffering the one or more audio playback packets at the secondary audio device.3.The computer-implemented method of claim 1, further comprising, in response to receiving the start playback time, pushing one or more silence samples to the audio sink included in the secondary audio device until the current audio clock time is the start playback time.4.The computer-implemented method of claim 1, wherein the input association information includes an identifier for a specific audio playback packet included in the one or more audio playback packets and an audio clock value associated with the specific audio playback packet.5.The computer-implemented method of claim 4, wherein the audio clock value indicates a time at which the specific audio playback packet is received by the primary audio device.6.The computer-implemented method of claim 1, further comprising modifying the selected audio playback packet based on the current audio clock time by resampling the selected audio playback packet based on a calculated drift between the primary audio device and the secondary audio device.7.The computer-implemented method of claim 1, further comprising modifying the selected audio playback packet based on the current audio clock time by removing one or more elapsed audio samples from the selected audio playback packet.8.The computer-implemented method of claim 7, further comprising determining a number of elapsed audio samples based on the current audio clock time at the secondary audio device and the start playback time.9.The computer-implemented method of claim 8, wherein the number of elapsed audio samples corresponds to a number of silence samples played back by the secondary audio device after a time indicated by the start playback time.10.The computer-implemented method of claim 8, wherein the one or more elapsed audio samples are not played back by the audio sink.11.The computer-implemented method of claim 8, wherein the one or more elapsed audio samples are associated with times prior to the current audio clock time when the current audio clock time is later than the start playback time.12.The computer-implemented method of claim 1, wherein selecting the audio playback packet from the one or more audio playback packets is based on a difference between the current audio clock time at the secondary audio device and the start playback time.13.A non-transitory computer readable medium that includes a set of instructions which, in response to execution by a processor of a computer system, cause the  processor to perform the steps of:receiving, from a primary audio device in an audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets;receiving, from the primary audio device, a start playback time;in response to receiving the start playback time, determining a current audio clock time at a secondary audio device;based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; andpushing the selected audio playback packet to an audio sink included in the sec-ondary audio device.14.The non-transitory computer readable medium of claim 13, further comprising instructions which, in response to execution by the processor, cause the processor to perform the step of buffering the one or more audio playback packets at the secondary audio device.15.The non-transitory computer readable medium of claim 13, further comprising instructions which, in response to execution by the processor, cause the processor to perform the step of, in response to receiving the start playback time, pushing one or more silence samples to the audio sink included in the secondary audio device until the current audio clock time is the start playback time.16.The non-transitory computer readable medium of claim 13, wherein the input association information includes an identifier for a specific audio playback packet included in the one or more audio playback packets and an audio clock value associated with the specific audio playback packet.17.The non-transitory computer readable medium of claim 13, further comprising instructions which, in response to execution by the processor, cause the processor to  perform the step of modifying the selected audio playback packet based on the current audio clock time by removing one or more elapsed audio samples from the selected audio playback packet.18.The non-transitory computer readable medium of claim 17, further comprising instructions which, in response to execution by the processor, cause the processor to perform the step of determining a number of elapsed audio samples based on the current audio clock time at the secondary audio device and the start playback time.19.The non-transitory computer readable medium of claim 18, wherein the one or more elapsed audio samples are not played back by the audio sink.20.A system, comprising:a memory that stores instructions; anda processor that is communicatively coupled to the memory and is configured to,when executing the instructions, perform the steps of:receiving, from a primary audio device in an audio distribution system, one or more audio playback packets and input association information for the one or more audio playback packets;receiving, from the primary audio device, a start playback time;in response to receiving the start playback time, determining a current audio clock time at a secondary audio device;based on the current audio clock time at the secondary audio device, the input association information, and the start playback time, selecting an audio playback packet from the one or more audio playback packets; andpushing the selected audio playback packet to an audio sink included in the secondary audio device.

Citation Information

Patent Citations

  • Method of Managing an Audio Stream Read in a Manner That is Synchronized on a Reference Clock

    US20210311692A1

  • Method and apparatus for synchronizing playback of streaming media in multiple output devices

    WO2006074274A2