Dynamically determining volume balance in multi-channel audio systems
Patent Information
- Application Number
- PCT/CN2023/087829
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-17
Smart Images

Figure CN2023087829_17102024_PF_FP_ABST
Abstract
Description
DYNAMICALLY DETERMINING VOLUME BALANCE IN MULTI-CHANNEL AUDIO SYSTEMSBACKGROUND
[0001] Field of the Embodiments of the Present Disclosure
[0002] Embodiments of the present disclosure relate generally to audio processing systems and, more specifically, to techniques for dynamically determining volume balance in multi-channel audio systems.
[0003] Description of the Related Art
[0004] Entertainment systems, such as audio / video systems implemented in movie theaters, advanced home theaters, music venues, and / or the like, continue to provide increasingly immersive experiences that include high-resolution video and multi-channel audio soundtracks. For example, commercial movie theater systems commonly enable multiple, distinct audio channels that are transmitted to separate speakers placed in front of, behind, and to the sides of the listeners. Such audio / video systems can also include audio channels that are transmitted to separate speakers placed above and below the listeners. As a result, listeners experience a full three-dimensional (3D) sound field that surrounds the listeners on all sides.
[0005] Audio content, such as an audio soundtrack, can include multiple audio tracks having desired relative volume levels. For example, the tracks of the audio content can have the same relative volume levels. The set of relative volume levels are typically adjusted to create a desired volume balance between the audio channels. To reproduce the audio content, the audio system sends sound data based on each audio track to a respective speaker via a respective audio channel. The configuration of a particular audio system, such as the locations and characteristics of speakers, can affect the sound field heard by the listener. Consequently, to accurately reproduce the audio content, the audio system adjusts the volume balance between the audio channels such that a listener hears the tracks of the content via the audio channels at the desired audio balance. For example, for a desired audio volume balance in which the tracks are to have the same relative volume levels, the audio system adjusts the volume balance between the audio channels such that a listener hears the tracks at the same relative volume levels.
[0006] Multi-channel audio systems often employ various techniques to adjust volume balance. One such technique involves adjusting the volume levels of the sound data sent via the audio channels to appropriate target volume levels. For example, the audio system can set the volume level of each audio channel to a target volume level by configuring an audio source to generate an audio signal having the specified volume level for the audio channel. The target volume levels are determined such that the listener hears the audio tracks at the desired volume levels.
[0007] A human user can use a digital audio workstation or other application program that supports multichannel mixing. Using the digital audio workstation, the user can adjust the levels of each individual audio source on each channel, and use panning and other effects to adjust the balance between channels. This technique involves manually adjusting fader controls and pan controls in the digital audio workstation interface. As an alternative to a digital audio workstation, a mixing console can be used by a human user to adjust the levels and panning of multiple audio sources on individual channels. As another alternative, digital signal processing tools can be used by a human user to dynamically adjust the levels and balance of multiple audio sources on individual channels. For example, multiband compressors and dynamic equalizers can be used to selectively boost or cut certain frequency ranges for specified channels.
[0008] Adjusting volume balance in multichannel audio systems can be a complex process that involves a human user determining volume levels for many different tracks or other sources of audio. Although tools such as digital audio workstations can provide interfaces for adjusting parameters such as fader control pan controls, determining the volume levels involves a manual process in which a human user determines the target volume levels. The manual process can be time-consuming and can require someone with special skills to perform. For example, the performing the manual process can require knowledge of complex acoustic characteristics of speakers.
[0009] As the foregoing illustrates, improved techniques for adjusting volume balance in multichannel audio systems would be useful.
[0010] SUMMARY
[0011] Various embodiments of the present disclosure set forth a computer-implemented method for adjusting volume balance. The method includes determining, for each speaker in a plurality of speakers of an audio system, an amplitude-distance value of a plurality of amplitude-distance values, wherein the amplitude-distance value determined for the speaker is based on an amplitude of a first tone detected by a microphone and a distance value determined based on a pair of second tones detected by the microphone. The method further includes identifying a minimum amplitude-distance value of the plurality of amplitude-distance values. The method further includes determining, for each speaker in the plurality of speakers, a gain factor for the speaker based on a ratio of the minimum amplitude-distance value to the amplitude-distance value determined for the speaker. The method further includes adjusting a volume level of each speaker based on the gain factor determined for the speaker.
[0012] Other embodiments include, without limitation, a system that implements one or more aspects of the disclosed techniques, and one or more computer readable media including instructions for performing one or more aspects of the disclosed techniques.
[0013] At least one technical advantage of the disclosed techniques relative to the prior art is that, with the disclosed techniques, volume balance can be adjusted in a multi-channel audio system by the system itself, without relying on a human user to determine the appropriate volume balance between channels. For example, digital audio workstations can use the disclosed techniques to adjust volume balance without user input. As a result, digital audio workstations can perform volume balancing in an automated way, thereby improving ease of use and efficiency. The volume balancing determines suitable volume levels for channels without trial-and-error or experimentation with parameters. Further, there is no need to store volume balance tables in speaker devices, and no need for users to understand the acoustic characteristics of speakers. These technical advantages provide one or more technological improvements over prior art approaches.
[0014] BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
[0015] So that the manner in which the recited features of the one or more embodiments set forth above can be understood in detail, a more particular description of the one or more embodiments, briefly summarized above, can be had by reference to certain specific embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments and are therefore not to be considered limiting of its scope in any manner, for the scope of the disclosure subsumes other embodiments as well.
[0016] Figure 1 illustrates a computing system configured to implement one or more aspects of the various embodiments;
[0017] Figure 2 is a block diagram of an audio system having a balance adjustment module that balances speaker volume levels, according to various embodiments;
[0018] Figure 3 is a block diagram of an audio system showing speaker amplitude and distance measurements, according to various embodiments;
[0019] Figure 4 is a diagram of audio tones produced by speakers over time, according to various embodiments;
[0020] Figure 5 is a diagram of time shift measurements of audio tones, according to various embodiments;
[0021] Figure 6A is a diagram of amplitude measurements of audio tones at a primary microphone over time, according to various embodiments;
[0022] Figure 6B is a diagram of amplitude measurements of audio tones at a secondary microphone over time, according to various embodiments;
[0023] Figure 7 is a flow diagram of method steps for adjusting balance of multiple speakers based on respective determined amplitude-distance values for the speakers, according to various embodiments;
[0024] Figure 8 is a flow diagram of method steps for determining amplitude-distance values for auxiliary speakers relative to a primary microphone, according to various embodiments; and
[0025] Figure 9 is a flow diagram of method steps for determining an amplitude-distance value for a primary speaker relative to a primary microphone, according to various embodiments.DETAILED DESCRIPTION
[0026] In the following description, numerous specific details are set forth to provide a more thorough understanding of certain specific embodiments. However, it will be apparent to one of skill in the art that other embodiments can be practiced without one or more of these specific details or with additional specific details.
[0027] Figure 1 illustrates a computing device 100 configured to implement one or more aspects of the various embodiments. As shown, the computing device 100 includes, without limitation, a processor 102, storage 104, an input / output (I / O) devices interface 106, a network interface 108, an interconnect 110, and a system memory 112.
[0028] The processor 102 retrieves and executes programming instructions stored in the system memory 112. Similarly, the processor 102 stores and retrieves application data residing in the system memory 112. The interconnect 110 facilitates transmission, such as of programming instructions and application data, between the processor 102, I / O devices interface 106, storage 104, network interface 108, and system memory 112. The I / O devices interface 106 is configured to receive input data from user I / O devices 122. Examples of user I / O devices 122 can include one or more buttons, a keyboard, a mouse or other pointing device, and / or the like. The I / O devices interface 106 can also include an audio output unit configured to generate an electrical audio output signal, and user I / O devices 122 can further include a speaker configured to generate an acoustic output in response to the electrical audio output signal. Another example of a user I / O device 122 is a display device that generally represents any technically feasible means for generating an image for display. For example, the display device could be a liquid crystal display (LCD) display, organic light-emitting diode (OLED) display, or digital light processing (DLP) display. The display device can be a TV that includes a broadcast or cable tuner for receiving digital or analog television signals. The display device can be included in a head-mounted display (HMD) assembly such as a VR / AR headset or a heads-up display (HUD) assembly. Further, the display device can project an image onto one or more surfaces, such as walls, projection screens or a windshield of a vehicle. Additionally or alternatively, the display device can project an image directly onto the eyes of a user (e.g., via retinal projection) .
[0029] The processor 102 is included to be representative of a single central processing unit
[0030] (CPU) , multiple CPUs, a single CPU having multiple processing cores, digital signal processors (DSPs) , field-programmable gate arrays (FPGAs) , graphics processing units (GPUs) , tensor processing units, and / or the like. And the system memory 112 is generally included to be representative of a random-access memory. The storage 104 can be a disk drive storage device. Although shown as a single unit, the storage 104 can be a combination of fixed and / or removable storage devices, such as fixed disc drives, floppy disc drives, tape drives, removable memory cards, or optical storage, network attached storage (NAS) , or a storage area-network (SAN) . The processor 102 communicates to other computing devices and systems via the network interface 108, where the network interface 108 is configured to transmit and receive data via a communications network.
[0031] The system memory 112 includes, without limitation, a balance adjustment module 132, an audio source module 134, and a data store 140. The data store 140 includes, without limitation, amplitude values 142, distance values 144, amplitude-distance values 146, and gain factor 148. Each amplitude-distance value 146 can be a product of a respective amplitude value 142 and a respective distance value 144. The balance adjustment module 132 and audio source module 134, when executed by the processor 102, perform one or more operations associated with the techniques described herein.
[0032] The audio source module 134 provides audio data that the computing device 100 sends to speakers (not shown) . The speakers produce audio tones at times specified by the balance adjustment module 132 using the audio data provided by the audio source module 134. The balance adjustment module 132 determines the amplitude values 142 and distance values 144 based on audio data received from microphones associated with computing device 100. The audio data can include encodings of tones detected by the microphones.
[0033] The balance adjustment module 132 can receive one or more of the amplitude values 142, distance values 144, and / or amplitude-distance values 146 from one or more other computing devices. Alternatively or additionally, the balance adjustment module 132 can determine one or more of the amplitude values 142 and distance values 144 based on data received from one or more other computing devices. The data received from the other computing device (s) can include amplitude values and / or distance values determined by the other computing device (s) , and / or audio tone data representing audio tones detected by one or more microphones associated with the other computing device (s) . The balance adjustment module 132 can determine the amplitude-distance values 146 by multiplying respective amplitude values 142 and distance values 144, and determine the gain factor 148 based on the respective amplitude-distance values 146.
[0034] When performing operations associated with the balance adjustment module 132, the processor 102 stores data in and retrieves data from portions of the data store 140, such as the amplitude values 142, the distance values 144, the amplitude-distance values 146, and the gain factor 148. When performing operations associated with the audio source module 134, the processor 102 stores data in and retrieves data from portions of the data store 140, such as audio data (not shown) .
[0035] Figure 2 is a block diagram of an audio system 200 having a balance adjustment module 132 that balances speaker volume levels, according to various embodiments. The audio system 200 includes a computing device 100 that includes a balance adjustment module 132 and an audio source module 134. The computing device 100 performs operations associated with balance adjustment module 132 and audio source module 134 to adjust the volume balance of speakers 204 so that, for example, a listener 210 hears the audio produced from each of the speakers 204 at the same relative volume level.
[0036] The audio system 200 includes a primary speaker 204A, a secondary speaker 204B (also referred to herein as a first auxiliary speaker 204B) ) , a second auxiliary speaker 204C, and a third auxiliary speaker 204N. The speakers are also referred to as speaker A 204A, speaker B 204B, speaker C 204C, and speaker N 204N, respectively, for brevity. Although four speakers 204 are shown, the audio system 200 can include any suitable number of speakers 204. The computing device 100 sends audio data to each of the speakers 204 via a respective audio interface 208. Audio interface 208A can be used when sending audio data to speaker 204A via audio channel 202A. Similarly, audio interfaces 208B, 208C, 208N can be used when sending audio data to speakers 204B, 204C, 204N via audio channels 202B, 202C, 202N, respectively. Each audio interface 208 can use a wired connection or wireless radio frequency, for example. An audio source module 134 generates audio data to be sent to each speaker 204 via the respective audio interface 208. The audio data can be encoded audio in a suitable format or other representation of sound having specified characteristics, such as a specified amplitude and frequency.
[0037] The audio system 200 also includes at least two microphones 206, referred to as a primary microphone 206A and a secondary microphone 206B. The primary microphone 206A is located near the primary speaker 204A, and the secondary microphone 206B is located near the secondary speaker 204B. Each microphone 206 can be located within a threshold distance of the respective speaker 204. A speaker 204 and the associated microphone 206 can be in the same physical enclosure, or can be physically separate devices. A microphone 206 and the respective speaker 204 can communicate via an interface such as the audio interface 208 to enable sound data captured by the microphone 206 to be sent to the computing device 100 via the speaker 204 for processing by the balance adjustment module 132. Alternatively or additionally, a microphone 206 can communicate with the computing device 100 via an interface independently of the respective speaker 204. Each audio interface 208 provides communication between the computing device 100 and a respective speaker 204 for a respective audio channel 202. The balance adjustment module 132 and other modules on computing device 100 can address each speaker 204 by specifying an identifier of the respective audio channel 202. For example, balance adjustment module 132 can specify that a stream of audio data is to be sent to audio channel 202A, and audio source module 134 or other module accordingly sends the audio data to the speaker 204 that corresponds to audio channel 202A, which is primary speaker 204A in this example.
[0038] The audio system 200 adjusts volume balance between the speakers 204 by determining a gain factor 148 for each audio channel 202 and amplifying an initial volume level associated with the audio channel 202 by the gain factor 148. Amplifying the volume level by the gain factor increases or decreases the volume (e.g., amplitude) of sound produced by the speaker 204 that corresponds to the audio channel 202. To facilitate computation of the gain factors, each speaker generates a reference audio tone at determined times, as described below. The balance adjustment module 132 measures characteristics of the tones as detected by the microphones 206 and determines a gain factor for each audio channel 202 that equalizes the volume levels of the speakers as heard at a particular location, such as the location of the listener 210.
[0039] The balance adjustment module 132 determines a gain factor 148 for each audio channel based on a quantity referred to herein as an amplitude-distance value 146 of the speaker 204 associated with the audio channel 202 with respect to a given microphone location. The amplitude-distance value 146 of a speaker represents a relationship between sound wave amplitude and distance from the source of the sound wave. Sound wave amplitude is inversely proportional to distance from the source, so as the source distance increases, the sound wave amplitude decreases. The amplitude-distance value 146 of a speaker 204 with respect to a given microphone 205 that measures sound from the speaker 204 is calculated as a product of a measured amplitude value 142 of sound produced by the speaker 204, as measured by the microphone 206, and a distance value 144 between the speaker 204 and the microphone 206. The sound can be the reference audio tone, for example. The distance can be determined based on a phase difference between the tones produced by two speakers as measured by a microphone 206. The amplitude-distance can represent an amplitude per unit of distance. The relationship between amplitude and distance of a spherical wave sound wave can be expressed by the sound wave attenuation formula: A = A0 / (r *d) .
[0040] In the attenuation formula, A is the amplitude of a sound wave at a distance r, where r is the distance the sound wave travels. A0 is the amplitude of the sound wave at distance d, where d is a reference distance. According to the attenuation formula, the amplitude of a sound wave decreases with distance. If the reference distance d is 1, then the unit amplitude A0 is A*r. Thus, the product A*r represents an amplitude per unit distance.
[0041] Because each audio channel 202 is associated with a respective speaker 204, the gain factor 148 for each audio channel 202 is also referred to herein as a gain factor 148 for the speaker 204. The balance adjustment module 132 determines the gain factor of each auxiliary speaker 204 based on measurements made by the primary microphone 206A. Because the gain factor for each speaker 204 should be determined based on measurements from the same microphone, the balance adjustment module 132 also needs to determine the gain factor of the primary speaker 204A based on measurements made by the primary microphone 206A. The primary speaker 204A is located in close proximity to its own microphone (e.g., primary microphone 206A. Thus, calculating the relationship between sound amplitude and distance for the primary speaker 204A using the primary microphone 206A is difficult. The audio system 200 thus uses one of the secondary speakers and the secondary microphones and additional measurements to derive the gain factor for the primary speaker 204A as would be measured by the primary microphone 206A. The other measurements are made by the secondary microphone 206B and the primary microphone 206A. The other measurements include an amplitude-distance value of an auxiliary speaker as measured by the primary microphone 206A, an amplitude-distance value of the primary speaker 204A as measured by the secondary microphone 206B, and an amplitude-distance value of the auxiliary speaker 204C as measured by the secondary microphone 206B. The audio system 200 then determines the gain factor of the primary speaker 204A based on the derived amplitude-distance value of the primary speaker 204A with reference to the primary microphone 206A, as described in further detail below.
[0042] The balance adjustment module 132 determines the gain factor 148 of each auxiliary speaker 204 based on a product of an amplitude of the reference tone produced by the auxiliary speaker 204, as measured by the primary microphone 206A, and a distance of the auxiliary speaker 204 from the primary microphone 206A.
[0043] The balance adjustment module 132 determines the distance between two speakers by causing each of the speakers 204 to generate a reference tone. For example, the balance adjustment module 132 can cause the audio source module 134 to send audio data representing the reference tone to each speaker 204 that is to generate the reference tone, and instruct the speaker to produce the reference tone at a specified time and for a specified duration. Each speaker 204 that receives the audio data can use an initial volume level (e.g., the current volume level of the speaker) to produce the reference tone. A microphone 206 associated with one of the speakers 204 records the reference tones produced by the speakers. The system calculates the distance between the speakers based on the phase difference between the tones produced by the speakers. The phase difference corresponds to the amount of time for the sound to travel between the speakers. The distance between the speakers is calculated by multiplying the speed of sound in air by the phase difference.
[0044] The balance adjustment module 132 determines the amplitude-distance for a given speaker as measured at another speaker (using the microphone associated with the other speaker) by multiplying the amplitude of the given speaker, as measured at the other speaker, by the distance between the speakers. For example, for three speakers A 204A, B 204B, and C 204C, where A is the primary speaker and B and C are auxiliary speakers, an amplitude-distance is determined for each speaker A, B, and C as measured at speaker A (except that the amplitude-distance determined for speaker A as measured at speaker A is determined using an auxiliary speaker B and without multiplying the amplitude by a distance) . The balance adjustment module 132 identifies the minimum of the amplitude-distances of the speakers. The balance adjustment module 132 determines the gain factor for each audio channel 202 by dividing the minimum amplitude-distance by the amplitude-distance determined for the speaker 204 associated with the audio channel 202. For example, the gain factor Ga for speaker A 204A can be determined by dividing the minimum amplitude by the amplitude-distance determined for speaker A as measured at speaker A. As another example, the gain factor Gb for speaker B 204B can be determined by dividing the minimum amplitude by the amplitude-distance determined for speaker B as measured at speaker A. The system can adjust the volume balance based on the respective determined gain factor for each respective speaker. For example, if the audio system volume is to be set to a value G, then the gain G*Ga can be applied by the audio source module 134 for audio data sent via channel A to speaker A 204A, the gain G*Gb can be applied by the audio source module 134 for audio data sent via channel B to speaker B 204B, and the gain G*Gc can be applied by the audio source module 134 for audio data sent via channel C to speaker C 204C.
[0045] Figure 3 is a block diagram of an audio system 300 showing speaker amplitude and distance measurements 302, according to various embodiments. The audio system 300 includes four speakers: primary speaker 204A, secondary speaker 204B, auxiliary speaker 204C, and auxiliary speaker 204N. To equalize the volumes of the speakers, the audio system 200 determines a gain factor 148 for each audio channel 202 and amplifies an initial volume level associated with the audio channel 202 by the gain factor 148. The gain factor 148 for each channel is determined based on an amplitude-distance value 146 of the speaker 204 associated with the audio channel 202 with respect to a given microphone location. The amplitude-distance value 146 of a speaker 204 with respect to a given microphone 205 that measures sound from the speaker 204 is calculated as a product of a measured amplitude value 142 of sound produced by the speaker 204, as measured by the microphone 206, and a distance value 144 between the speaker and the microphone. The balance adjustment module 132 determines the measured amplitude value 142 and distance value 144 for the four-speaker audio system 300 using the measurements shown in amplitude and distance measurements 302A and 302B.
[0046] For the 4-speaker audio system 300, the balance adjustment module 132 determines the gain factor of each of the auxiliary speakers 204B, 204C, 204N based on amplitude and distance measurements 302A made by the primary microphone 206A. Because the primary speaker 204A is located in close proximity to its own microphone, calculating the relationship between sound amplitude and distance for the primary speaker using its own microphone is difficult. The balance adjustment module 132 thus uses the secondary microphone 206B and additional amplitude and distance measurements 302 made by the secondary microphone 206B to derive the gain factor for the primary speaker 204A as would be measured by the primary microphone 206A.
[0047] The amplitude and distance measurements 302A are determined by the balance adjustment module 132 using the primary microphone 206A. Amplitude and distance measurements 302B are determined by the balance adjustment module 132 using the secondary microphone 206B. As described herein with respect to Figure 2, the computing device 100 can send audio data to each speaker 204 using a respective audio interface 208 and also receive data from each microphone 206 using the same respective audio interface or another audio interface dedicated to communication with the microphone 206. The amplitude and distance measurements 302A determined using the primary microphone 206A are shown in a table having three rows. The notation AAmic-B is used herein to represent an amplitude ( “A” ) of a speaker as measured by a microphone, such as the amplitude of speaker B as measured by microphone A. The notation DAB represents a distance, such as the distance between microphone A and speaker B. The audio data and timing for the distance measurement are shown in Figure 4. The audio data and timing for the amplitude measurement are shown in Figure 6. The first row of the table contains an amplitude measurement AAmic-B 610 and a distance measurement DAB 304 of the secondary speaker 204B made using the primary microphone 206A. The second row contains an amplitude measurement AAmic-C 612 and a distance measurement DAC 306 of the auxiliary speaker 204C made using the primary microphone 206A, and the third row contains an amplitude measurement AAmic-N 614 and a distance measurement DAN 306 of the auxiliary speaker 204N made using the primary microphone 206A.
[0048] To determine the amplitude AAmic-B 610 and distance DAB 304 shown in the first row of the table, the balance adjustment module 132 sends audio data specifying a tone 410B (shown in Figure 4) to the secondary speaker 204B according to specified timing. The amplitude and distance measurements are measurements of sound produced by the secondary speaker 204B. For both the amplitude and distance measurements, the secondary speaker 204B produces an audible tone 410B based on the audio data with the specified timing, and the primary microphone 206A captures the audible tone 410B.
[0049] For the distance measurement that determines the distance DAB 304, Figure 4 shows a representation of the audio data used to generate a tone 410A at speaker 204A and a tone 410B at speaker 204B for measuring the distance between speakers A and B. The timing 402 shown in Figure 4 specifies that the tones 410A and 410B are to be produced simultaneously by speakers 204A and 204B. To measure the tones 410A and 410B, the balance adjustment module 132 causes the primary microphone 206A to capture audio during the time that the tones 410A and 410B are being generated by the speakers 204A and 204B. The balance adjustment module 132 then receives audio representations of the tones 410A and 410B from the primary microphone 206A. The balance adjustment module 132 determines the distance DAB from the received audio representations of the tones 410A and 410B by measuring the phase difference between the two tones. Because the phase difference corresponds to the amount of time for the sound to travel between the speakers 204A and 204B, the distance DAB between the speakers is calculated by multiplying the speed of sound in air by the phase difference.
[0050] The measurements that determine the distances DAC 306 and DAN 308 shown in the second and third rows of the table, respectively, are performed similarly to the measurement of the distance DAB. For the distance measurement that determines the distance DAC 306, Figure 4 shows a representation of the audio data used to generate a tone 410A at speaker 204A and a tone 410C at speaker 204C for measuring the distance between speakers A and C. The timing 404 shown in Figure 4 specifies that the tones 410A and 410C are to be produced simultaneously by speakers 204A and 204C. To measure the tones 410A and 410C, the balance adjustment module 132 causes the primary microphone 206A to capture audio during the time that the tones 410A and 410C are being generated by the speakers 204A and 204C. The balance adjustment module 132 then receives audio representations of the tones 410A and 410C from the primary microphone 206A. The balance adjustment module 132 determines the distance DAC from the received audio representations of the tones 410A and 410C by measuring the phase difference between the two tones. Because the phase difference corresponds to the amount of time for the sound to travel between the speakers 204A and 204C, the distance DAC between the speakers is calculated by multiplying the speed of sound in air by the phase difference.
[0051] For the distance measurement that determines the distance DAN 308, Figure 4 shows a representation of the audio data used to generate a tone 410A at speaker 204A and a tone 410N at speaker 204N for measuring the distance between speakers A and N. The timing 406 shown in Figure 4 specifies that the tones 410A and 410N are to be produced simultaneously by speakers 204A and 204N. To measure the tones 410A and 410N, the balance adjustment module 132 causes the primary microphone 206A to capture audio during the time that the tones 410A and 410N are being generated by the speakers 204A and 204N. The balance adjustment module 132 then receives audio representations of the tones 410A and 410N from the primary microphone 206A. The balance adjustment module 132 determines the distance DAN from the received audio representations of the tones 410A and 410N by measuring the phase difference between the two tones. Because the phase difference corresponds to the amount of time for the sound to travel between the speakers 204A and 204N, the distance DAN between the speakers is calculated by multiplying the speed of sound in air by the phase difference.
[0052] For the amplitude measurements that determines the amplitude AAmic-B, a representation of the audio data used to generate the tone 410B for measuring the amplitude AAmic-B is shown in Figure 6A. The amplitude specified in the audio data is shown as AAmic-B 610. The timing shown in Figure 6A specifies that the tone 410B is to be produced by speaker 204B prior to tones for speakers C and N. To measure the tone 410B, the balance adjustment module 132 causes the primary microphone 206A to capture audio during the time that the tone 410B is being produced by the secondary speaker 204B. The balance adjustment module 132 then receives an audio representation of the tone 410B from the primary microphone 206A. The balance adjustment module 132 determines the amplitude AAmic-B 610 from the received audio representation of the tone 410B. For example, the amplitude 610 can be identified by finding the peak of the sine wave representation of the tone 410B and measuring the distance between the x-axis and the peak.
[0053] For the amplitude measurements that determines the amplitude AAmic-C, a representation of the audio data used to generate the tone 410C for measuring the amplitude AAmic-C is shown in Figure 6A. The amplitude specified in the audio data is shown as AAmic-C 612. The timing shown in Figure 6A specifies that the tone 410C is to be produced by speaker 204C between tones for speakers B and N. To measure the tone 410C, the balance adjustment module 132 causes the primary microphone 206A to capture audio during the time that the tone 410C is being produced by the speaker 204C. The balance adjustment module 132 then receives an audio representation of the tone 410C from the primary microphone 206A. The balance adjustment module 132 determines the amplitude AAmic-C 612 from the received audio representation of the tone 410C. For example, the amplitude 612 can be identified by finding the peak of the sine wave representation of the tone 410C and measuring the distance between the x-axis and the peak. The amplitude AAmic-N is determined similarly, by causing speaker 402N to produce a tone 410N. The balance adjustment module 132 determines the amplitude AAmic-N 614 from the received audio representation of the tone 410N.
[0054] The amplitude and distance measurements 302B determined using the secondary microphone 206B are shown in a table having two rows. The first row contains amplitude and distance measurements of the primary speaker 204A made using the secondary microphone 206B. To determine the amplitude ABmic-A618 shown in the first row of the table, the balance adjustment module 132 sends audio data specifying a tone 410A (shown in Figure 4) to the primary speaker 204A according to specified timing 402. The tone 410A used to determine the amplitude ABmic-A618 should be produced by the primary speaker 204A during a time in which none of the other speakers are producing tones.
[0055] To determine the amplitude ABmic-C 622 shown in the second row of the table of measurements 302B, the balance adjustment module 132 sends audio data specifying a tone 410C (shown in Figure 4) to the auxiliary speaker 204C according to specified timing 408. The tone 410C used to determine the amplitude ABmic-C 622 should be produced by the auxiliary speaker 204C during a time in which none of the other speakers are producing tones.
[0056] The distance DBA 312 can be determined similarly to the distance DAB 304 as described herein. Alternatively, because the distances DBA 312 and DAB 304 are similar or the same, the previously determined value distance DAB 304 can be used as the distance DBC 314. For the distance measurement that determines the distance DBC for the second row of the table, Figure 4 shows a representation of the audio data used to generate a tone 410C at speaker 204C and a tone 410B at speaker 204B for measuring the distance between speakers B and C. The timing 408 shown in Figure 4 specifies that the tones 410B and 410C are to be produced simultaneously by speakers 204B and 204C. To measure the tones 410B and 410C, the balance adjustment module 132 causes the secondary microphone 206B to capture audio during the time that the tones 410B and 410C are being generated by the speakers 204B and 204C. The balance adjustment module 132 then receives audio representations of the tones 410B and 410C from the secondary microphone 206B. The balance adjustment module 132 determines the distance DBC from the received audio representations of the tones 410B and 410C by measuring the phase difference between the two tones. Because the phase difference corresponds to the amount of time for the sound to travel between the speakers 204B and 204C, the distance DBC between the speakers is calculated by multiplying the speed of sound in air by the phase difference.
[0057] As described herein with respect to Figure 2, the balance adjustment module 132 determines the gain factor 148 of each auxiliary speaker 204 based on a product of the amplitude of the reference tone produced by the auxiliary speaker 204, as measured by the primary microphone 206A, and the distance of the auxiliary speaker 204 from the primary microphone 206A. Each amplitude-distance value 146 is a product of a respective amplitude value 142 and a respective distance value 144. More specifically, the amplitude-distance value 146 of a speaker 204 with respect to a given microphone 205 that measures sound from the speaker 204 is calculated as a product of a measured amplitude value 142 of sound produced by the speaker 204, as measured by the microphone 206, and a distance value 144 between the speaker and the microphone.
[0058] The amplitude-distances of the auxiliary speakers 204 as measured by the primary microphone 206 (referred to as microphone A) are:
[0059] amplitude-distance of speaker B = AAmic-B *DAB,
[0060] amplitude-distance of speaker C = AAmic-C *DAC, and
[0061] amplitude-distance of speaker N = AAmic-N *DAN.
[0062] Because the gain factor for each speaker 204 should be determined based on measurements from the same microphone, the balance adjustment module 132 also needs to determine the gain factor of the primary speaker 204A based on measurements made by the primary microphone 206A. The primary speaker is located in close proximity to its own microphone, however, and calculating the relationship between sound amplitude and distance for the primary speaker using its own microphone is difficult. The system thus uses the secondary microphone 206B and additional measurements to derive the gain factor for the primary speaker 204A as would be measured by the primary microphone 206A.
[0063] The amplitudes of speaker A and speaker C as measured by microphone B correspond to the amplitude of the reference audio sine wave. The microphone gain of speaker A and speaker B can be different, so speaker A and speaker B measure the amplitudes of audio played by speaker C as a microphone gain calibration. The ratio of the amplitude of speaker A as measured by a given microphone A to the amplitude of speaker A as measured by another given microphone B is referred to as a microphone gain ratio that relates the microphone gain of microphone A to the microphone gain of microphone B. This ratio is the same for different speakers, so the ratios for different speakers can be equated. By using microphones A and B to measure the amplitude of two different speakers, an equation that includes the unknown amplitude of speaker A as measured at microphone A can be constructed.
[0064] More specifically, the microphone gain ratio of microphone A to microphone B when measuring the amplitude of speaker A can be equated to the microphone gain ratio of microphone A to microphone B when measuring the amplitude of speaker C. By substituting the amplitude-distances in place of the amplitudes, an equation between the microphone gains when measuring two different speakers A and C is: (AAmic-A) / (ABmic-A*DAB) = (AAmic-C *DAC) / (ABmic-C *DBC)
[0065] The amplitude-distance AAmic-A represents the unknown amplitude-distance, which is the amplitude-distance of speaker A as would be measured at microphone A multiplied by the distance between speaker A and microphone A. Because the amplitude-distance AAmic-A is derived from other measurements instead of being measured directly using microphone A, the amplitude-distance AAmic-A is referred to herein as the amplitude-distance for the primary speaker 204A relative to the primary microphone 206A. Solving for the AAmic-A yields the following equation for AAmic-A in terms of known amplitude-distances: AAmic-A= (AAmic-C *DAC) * (ABmic-A*DAB) / (ABmic-C *DBC)
[0066] The known amplitude-distances in the above equation are ABmic-A*DAB, AAmic-C *DAC, and ABmic-C *DBC. The values of these amplitudes and distances are determined by the measurements 302A and 302B as shown in Figure 3. Thus, the amplitude of speaker A as measured at microphone A (AAmic-A) can be determined based on known amplitude-distances using the equation above.
[0067] The gain factor for each channel is determined by identifying a minimum gain factor of the gain factors for the audio channels 202 in the audio system 200. In the example audio system 200 shown in Figure 2, there are four channels, which include an audio channel 202A (associated with primary microphone 206A) , an audio channel 202B (associated with a secondary microphone 206B) , an audio channel 202C (associated with an auxiliary speaker 204C) , and an audio channel 202N (associated with an auxiliary speaker 204N) . The amplitude-distances for the four example channels are AAmic-A for channel A, AAmic-B *DAB for channel B, AAmic-C *DAC for channel C, and AAmic-N *DAN for channel N. The minimum gain factor, referred to herein as AAmic-min, is the minimum of the amplitude-distances: AAmic-min = min (AAmic-A, AAmic-B*LAB, AAmic-C*LAC, AAmic-N*LAN)
[0068] The minimum of the amplitude-distances is used to prevent the occurrence of sound wave clipping. Alternatively, a maximum of the amplitude-distances can be used, but there would be a possibility of sound wave clipping. Each gain factor of the gain factors GA, GB, GC, GN for a respective channel A, B, C, N, is determined by dividing the minimum amplitude-distance by the amplitude-distance of the respective channel: GA = AAmic-min / AAmic-A, GB = AAmic-min / (AAmic-B *LAB) ,
[0069] GC = AAmic-min / (AAmic-C *LAC) , and GN = AAmic-min / (AAmic-N *LAN) .
[0070] The balance adjustment module 132 or other suitable component (e.g., primary speaker 204A) sends all the channel gain ratio set (GA, GB, GC, GN) to audio source which will reprocess each channel according to these parameters and distribute to the corresponding speaker. The balance adjustment module 132 can adjust the volume of the audio system 200 to a specified target volume Gvolume by applying the specified volume to each audio channel 202. To apply the specified volume, the balance adjustment module 132 determines the equalized volume for each channel by multiplying the specified volume by the gain factor of the channel:
[0071] Adjusting system volume using a uniform variable gain applied to all channels in the audio source module 134, for example Gvolume applied to the gain ratio set as (Gvolume*GA, Gvolume*GB, Gvolume*GC, Gvolume*GN) , the above algorithm can achieve volume equalization adjustment for a multichannel audio system.
[0072] The balance adjustment module 132 can set the volume of each of the channels GA, GB, GC, GN to the respective equalized volume by providing the equalized volumes Gvolume*GA, Gvolume*GB, Gvolume*GC, Gvolume*GN of the channels to the audio source module 134. The audio source module 134 increases or decreases the volume level applied to each channel by the gain factor, and the volume level of sound produced by the corresponding speaker increases or decreases in accordance with the equalized volume level.
[0073] As an example, volume balancing can be performed in an audio system having three or more speakers, such as that shown in Figure 3, as follows. The balance adjustment module 132 determines, using audio tones generated by the primary speaker 204A and the first auxiliary speaker 204B and captured by the primary microphone 206A, an amplitude-distance value for the first auxiliary speaker 204B (e.g., AAmic-B *DAB) relative to the primary microphone 206A. The amplitude-distance value for speaker 204B is a product of an amplitude AAmic-B of speaker 204B relative to microphone 206A and a distance (DAB) between speaker 204B and microphone 206A. The amplitude is determined using the audio tones generated by speaker 204B. The distance is determined using the phase difference between the audio tones generated by speakers 204A and 204B.
[0074] The balance adjustment module 132 also determines, using audio tones generated by the primary speaker 204A and the second auxiliary speaker 204C and captured by the primary microphone 206A, an amplitude-distance value for the second auxiliary speaker 204C (e.g., AAmic-C *DAC) relative to the primary microphone 206A. The amplitude-distance value for speaker 204C is a product of an amplitude AAmic-C of speaker 204C relative to microphone 206A and a distance (DAC) between speaker 204C and microphone 206A. The amplitude is determined using the audio tones generated by speaker 204C. The distance is determined using the phase difference between the audio tones generated by speakers 204A and 204C.
[0075] The balance adjustment module 132 can determine amplitude-distance values for additional speakers similarly. For example, for each additional auxiliary speaker 204N, the balance adjustment module 132 can determine, using audio tones generated by the primary speaker 204A and the additional auxiliary speaker 204N and captured by the primary microphone, an amplitude-distance value for the first auxiliary speaker 204B (e.g., AAmic-N * DAN) .
[0076] The balance adjustment module 132 also determines, using the amplitude-distance value for the second auxiliary speaker 204C and further using audio tones generated by the primary speaker 204A and the first auxiliary speaker 204B and captured by the secondary microphone 206B, and further using audio tones generated by the first auxiliary speaker 24A and second auxiliary speaker 204C and captured by the secondary microphone 206B, an amplitude-distance value for the primary speaker 204A (AAmic-A) relative to the primary microphone 206A.
[0077] To determine the amplitude-distance value for the primary speaker 204A (AAmic-A) relative to the primary microphone 206A, the balance adjustment module 132 determines, using audio tones generated by the primary speaker and the first auxiliary speaker and captured by the secondary microphone, an amplitude-distance value for the primary speaker 204A as measured by the secondary speaker 204B (e.g., ABmic-A*DBA, where the value of DAB determined above can be used for DBA because both represent a distance between primary speaker 204A and secondary speaker 204B) . Further, the balance adjustment module 132 determines, using audio tones generated by the first auxiliary speaker and the second auxiliary speaker and captured by the secondary microphone, an amplitude-distance value for the second auxiliary speaker (e.g., ABmic-C *DBC) . The balance adjustment module 132 calculates the amplitude-distance value for the primary speaker 204A (AAmic-A) relative to the primary microphone 206A as a product of AAmic-C *DAC and (ABmic-A*DAB) divided by (ABmic-C *DBC) as described above.
[0078] The balance adjustment module 132 identifies a minimum amplitude-distance value of the amplitude distance values determined for the speakers 204A, 204B, 204C (and additional speakers 204N if present) . The balance adjustment module 132 then determines, for each speaker, a gain factor based on a ratio of the minimum amplitude-distance value to the respective amplitude-distance value for the respective auxiliary speaker. The balance adjustment module 132 then adjusts a volume level of each speaker based on the respective gain factor.
[0079] Figure 4 is a diagram of audio tones produced by speakers over time, according to various embodiments. Figure 4 shows the timing of pairs of reference tones 410 to be produced at pairs of speakers 204 for distance measurements. Each pair of reference tones 410 is to be produced at a time shown by a vertical box referred to herein as a timing 402, 404, 406, or 408. The speaker 204 that is produce each tone is shown as a horizontal line labeled with a letter A, B, C, or N that represents the speaker 204A, 204B, 204, or 204N, respectively. A timing 402 of tones for speakers A and B specifies that a tone 410A is to be produced on speaker A simultaneously with a tone 410B on speaker B and prior to timing 404.
[0080] A timing 404 of tones for speakers A and C specifies that a tone 410A is to be produced on speaker A simultaneously with a tone 410C on speaker C subsequent to timing 402 and prior to timing 406. A timing 404 of tones for speakers A and C specifies that a tone 410A is to be produced on speaker A simultaneously with a tone 410C on speaker C subsequent to timing 402 and prior to timing 406. A timing 406 of tones for speakers A and N specifies that a tone 410A is to be produced on speaker A simultaneously with a tone 410N on speaker N subsequent to timing 404 and prior to timing 408. A timing 408 of tones for speakers B and C specifies that a tone 410B is to be produced on speaker B simultaneously with a tone 410C on speaker C subsequent to timing 406.
[0081] Although particular timings are shown, other timings in which each pair of tones on two different speakers is generated at a different time that does not overlap with other pairs of tones. The tones shown can be generated in repeated cycles. For example, the pairs of tones shown in timings 402, 404, 406, 408 can be generated successively as shown, and the timings 402, 404, 406, 408 can be repeated until a threshold condition is satisfied, such as a threshold number of cycles being generated, a threshold amount of time elapsing, or the balance adjustment module 132 determining that the distance between each pair of speakers 204 has been successfully measured.
[0082] Figure 5 is a diagram 500 124of time shift measurements of audible tones 502, 504, according to various embodiments. A microphone 206 detects an audible tone 502 from a speaker A at a first point in time and detects an audible tone 504 from a speaker B at a second point in time. The audible tones 502, 504 are produced by the respective speakers A and B simultaneously (e.g., according to the timing 402 shown in Figure 4) , but arrive at speakers A and B at different times because of the difference distances between speakers A and B and the microphone 206. A balance adjustment module 132 identifies a time 506 between peaks between the peak of a sine wave representation of tone 502 and the peak of a sine wave representation of the tone 504. The time 506 between peaks corresponds to a phase difference between the tones 502, 504. The balance adjustment module 132 can determine a distance between speakers A and B by multiplying the speed of sound in air by the phase difference.
[0083] Although the example phase difference is determined by identifying a time 506 between peaks, a phase difference can be identified in any suitable technique, e.g., by identifying a time between different corresponding portions of the tones 502, 504, such as points where the tones cross the time axis.
[0084] Figure 6A is a diagram of amplitude measurements 600 of audio tones at a primary microphone over time, according to various embodiments. The measurements 600 include amplitudes 610, 612, 614 made for audible tones 410B, 410C, 410N, respectively. The audio tones are produced by respective speakers B, C, and N for measurement by a primary microphone 206A, as shown in the example of Figure 3. The results of the amplitude measurements 600 are shown in the amplitude column of the measurements 302A of Figure 3. The audible tones 410B, 410C, 410N are produced by the speakers in response to commands or signals generated by the balance adjustment module 132 in the sequence shown. The balance adjustment module 132 causes the speakers to produce the audible tones 410B, 410C, and 410N with sufficient delay between audible tones 410B, 410C, and 410N so that the audible tones do not overlap in time.
[0085] The balance adjustment module 132 causes the speakers to generate each tone 410B, 410C, 410N with the same amplitude. The measured amplitudes 610, 612, 614 are different because the respective speakers B, C, and N are located at different distances from the primary microphone 206A that detects the audible tones. The amplitude of an audible tone detected from a speaker located closer the microphone is greater than the amplitude of an audible tone detected from a speaker farther from the microphone.
[0086] The amplitude of audible tone 410B measured by the balance adjustment module 132 based on an audio signal received from the primary microphone 206A is AAmic-B 610. Similarly, the amplitude of audible tone 410C measured by the balance adjustment module 132 based on an audio signal received from the primary microphone 206A is AAmic-C 612. Further, the amplitude of audible tone 410N measured by the balance adjustment module 132 based on an audio signal received from the primary microphone 206A is AAmic-N 614.
[0087] Figure 6B is a diagram of amplitude measurements 620 of audio tones at a secondary microphone 206B over time, according to various embodiments. The measurements 600 include amplitudes 618, 622 made for audible tones 410A, 410C respectively. The audio tones are produced by respective speakers A and C for measurement by a secondary microphone 206B, as shown in the example of Figure 3. The results of the amplitude measurements 620 are shown in the amplitude column of the measurements 302B of Figure 3. The audible tones 410A, 410C are produced by the speakers in response to commands or signals generated by the balance adjustment module 132 in the sequence shown. The balance adjustment module 132 causes the speakers to produce the audible tones 410A, 410C with sufficient delay between audible tones 410A, 410C so that the audible tones do not overlap in time.
[0088] The balance adjustment module 132 causes the speakers to generate each tone 410A, 410C with the same amplitude. The measured amplitudes 618, 622 are different because the respective speakers A and C are located at different distances from the secondary microphone 206B that detects the audible tones. The amplitude of audible tone 410A measured by the balance adjustment module 132 based on an audio signal received from the secondary microphone 206B is ABmic-A618. Similarly, the amplitude of audible tone 410C measured by the balance adjustment module 132 based on an audio signal received from the secondary microphone 206B is ABmic-C 622.
[0089] Figure 7 is a flow diagram of method steps for adjusting balance of multiple speakers 204 based on respective determined amplitude-distance values 146 for the speakers 204, according to various embodiments. Although the method steps are described in conjunction with the systems of Figures 1-6B, persons skilled in the art will understand that any system configured to perform the method steps, in any order, is within the scope of the present disclosure.
[0090] As shown, a method 700 begins at step 702, where a computing device 100 determines, for each auxiliary speaker 204B (or 204N) in a plurality of speakers 204 of an audio system 200, a respective amplitude-distance value 146 of a plurality of amplitude-distance values 146.. The respective amplitude-distance value 146 determined for the auxiliary speaker 204B, e.g., AAmic-B, is based on a respective amplitude value 142 of a first tone detected by a microphone 206 and a respective distance value 144 determined based on a pair of second reference tones 410 detected by the microphone 206. The amplitude-distance value 146 can be determined based on a product of the amplitude of the first tone for the speaker and the distance value for the speaker. The distance value 144 can represent a distance between the speaker 204 and the microphone 206, and can be determined based on a phase difference between the pair of second reference tones 410. The amplitude of the first reference tone 410 can be an amplitude of the first tone produced by the auxiliary speaker 204B as measured by the microphone 206A. In one example, the first tone is received from the auxiliary speaker 204B, a third tone of the pair of second tones is received from the auxiliary speaker 204B, and a fourth tone of the pair of second tones is received from another speaker associated with the microphone, such as auxiliary speaker 204C. Further details of determining the amplitude-distance values 146 for each auxiliary speaker 204B-204N, as described herein with reference to Figure 8.
[0091] At step 704, computing device 100 determines, for a primary speaker 204A in the plurality of speakers 204, a primary speaker amplitude-distance value 146 in the plurality of amplitude-distance values 146. The primary speaker amplitude-distance value 146 is also referred to herein as AAmic-A. The primary -speaker amplitude-distance value 146 corresponds to an amplitude-distance value 146 determined for the primary speaker 204A as measured by a primary microphone 206A associated with the primary speaker 204A.
[0092] At step 704, computing device 100 can determine, for a primary speaker in the plurality of speakers, a primary speaker amplitude-distance value in the plurality of amplitude-distance values. The primary speaker amplitude-distance value corresponds to an amplitude-distance value determined for the primary speaker as measured by a primary microphone associated with the primary speaker. Computing device 100 can determine the primary speaker amplitude-distance value based on at least one additional amplitude-distance value determined using a secondary microphone associated with a first auxiliary speaker, wherein the at least one amplitude-distance value is based on at least one tone produced by the primary speaker and at least one tone produced by a second auxiliary speaker. Further details of determining the amplitude-distance value determined for the primary speaker are described herein with reference to Figure 9.
[0093] At step 706, computing device 100 identifies a minimum of the determined amplitude-distance values 146. At step 708 computing device 100 determines, for each speaker 204 in the plurality of speakers 204, a respective gain factor 148 for the speaker based on a ratio of the minimum amplitude-distance value 146 to the respective amplitude-distance value 146 determined for the speaker 204. At step 710, computing device 100 adjusts a volume level of each speaker 204 based on the respective gain factor 148 determined for the speaker. The volume level of each speaker can be adjusted based on the gain factor determined for the speaker and further based on a target volume level. For example, the volume level of each speaker can be changed to an updated volume level determined by multiplying the gain factor determined for the speaker by the target volume level.
[0094] Figure 8 is a flow diagram of method steps for determining amplitude-distance values 146 for auxiliary speakers 204B-204N relative to a primary microphone 206A, according to various embodiments. Although the method steps are described in conjunction with the systems of Figures 1-6B, persons skilled in the art will understand that any system configured to perform the method steps, in any order, is within the scope of the present disclosure.
[0095] As shown, a method 800 begins at step 802, where a computing device 100 causes, for each auxiliary speaker 204 in a plurality of auxiliary speakers 204B-204N, the auxiliary speaker 204 to generate an amplitude measurement reference tone 410. Example timings of amplitude measurement reference tones are shown in Figures 6A and 6B. At step 804, computing device 100 determines, using a primary microphone 206A, a measured amplitude 610 of the amplitude measurement reference tone 410 generated by the auxiliary speaker 204. At step 806, computing device 100 causes the auxiliary speaker 204 to generate a first reference tone 410 at a specified time. At step 808 computing device 100 causes a primary speaker 204A associated with the primary microphone 206A to generate a reference tone 410 at the specified time. Example timing for producing the reference tone 410 for each pair of speakers used in the determination of a distance value between a speaker and microphone is shown in Figure 4.
[0096] At step 810, computing device 100 determines, using the primary microphone, a measured distance value 144 between the auxiliary speaker 204 and the primary microphone 206A based on a time 506 between the first and second reference tones 410 received by the primary microphone 204A. An example determination of the measured distance value 144 based on a time 506 is described herein with reference to Figure 4. At step 812, computing device 100 determines an amplitude-distance value 146 for the auxiliary speaker 204 as measured by the primary microphone 206A based on the measured amplitude 610 and the measured distance value 144. The amplitude-distance value can be determined by multiplying the amplitude by the distance, for example. The method 800 returns to step 802 to iteratively perform steps 802-812 until steps 802-812 have been performed for each auxiliary speaker.
[0097] Figure 9 is a flow diagram of method steps for determining an amplitude-distance value 146 for a primary speaker 204A relative to a primary microphone 206A, according to various embodiments. The amplitude-distance value 146 for a primary speaker 204A relative to a primary microphone 206A can be the quantity AAmic-A described herein with respect to Figure 3. Although the method steps are described in conjunction with the systems of Figures 1-6B, persons skilled in the art will understand that any system configured to perform the method steps, in any order, is within the scope of the present disclosure.
[0098] As shown, a method 900 begins at step 902, where a computing device 100 determines a first amplitude-distance value 146, e.g., AAmic-C *DAC, for an auxiliary speaker 204C as measured by a primary microphone 206A based on a measured amplitude 612, e.g., AAmic-C, of a tone 410C produced by the auxiliary speaker 204C and a measured distance value 144 between the auxiliary speaker 204C and the primary microphone 206A. The distance between the auxiliary speaker 204C and the primary speaker 204A can be DAC as shown in Figure 3. The measured distance DAC can be determined based on a phase difference between a tone produced by the auxiliary speaker 204C and a tone produced by the primary speaker 204A.
[0099] At step 904, computing device 100 determines a second amplitude-distance value 146, e.g., ABmic-A*DAB, for a primary speaker 204A as measured by a secondary microphone 206B based on a measured amplitude, e.g., ABmic-A, of the primary speaker 204A and a measured distance value 144, e.g., DBA 312, between the primary speaker 204A and the secondary microphone 206B. Because both DBA 312 and DAB 304 are measure similar distances that can represent the distance between primary speaker 204A and secondary speaker 204B, the values DBA 312 and DAB 304 can be used interchangeably. For example, the distance DAB 304 can be used in the calculation of the second amplitude distance value for the primary speaker 204A as measured by the secondary microphone 206B instead of the DAB 304, so the distance DAB 304 need not be determined.
[0100] At step 906, computing device 100 determines a third amplitude-distance value 146, e.g., ABmic-C *DBC, for the auxiliary speaker 204C as measured by the secondary microphone 206B based on a measured amplitude e.g., ABmic-C, of the auxiliary speaker 204C and a measured distance value 144, e.g., DBC 314, between the auxiliary speaker 204C and the secondary microphone 206B.
[0101] At step 908 computing device 100 determines an amplitude-distance value 146 for the primary speaker 204A, e.g., AAmic-A, with reference to the primary microphone 204A based on a product of the first amplitude-distance value 146 and the second amplitude-distance value 146 divided by the third amplitude-distance value. For example, at step 908, computing device 100 can determine the amplitude-distance value 146 for the primary speaker 204A with reference to the primary microphone 204A using the formula for AAmic-A described herein with respect to Figure 3 (AAmic-A= (AAmic-C *DAC) * (ABmic-A*DAB) / (ABmic-C *DBC) ) .
[0102] In sum, a multi-channel audio system adjusts volume balance among multiple speakers by determining a gain factor for each audio channel and amplifying an initial volume level associated with the audio channel by the gain factor. The system includes an audio source that distributes audio data to a set of speakers via a set of audio channels. Adjusting the volume balance equalizes the volume levels of the audio channels so that, for example, a listener hears the audio produced from each of the channels at the same relative volume level.
[0103] Each audio channel is associated with a corresponding speaker. The speakers include a primary speaker and one or more auxiliary speakers. Two of the speakers, including the primary speaker and one of the auxiliary speakers, have associated microphones. Each microphone is located in close proximity to the respective speaker. The auxiliary speaker that has an associated microphone is referred to herein as a secondary speaker. The microphones associated with the primary speaker and the secondary speaker are referred to herein as primary and secondary microphones, respectively. To facilitate computation of the gain factors, each speaker generates a reference audio tone at determined times.
[0104] The system determines a gain factor for each audio channel based on a quantity referred to herein as an amplitude-distance of the speaker associated with the audio channel with respect to a given microphone location. The amplitude-distance of a speaker represents a relationship between sound wave amplitude and distance from the source of the sound wave. Sound wave amplitude is inversely proportional to distance from the source, so as the source distance increases, the sound wave amplitude decreases. The amplitude-distance of a speaker with respect to a given microphone that measures sound from the speaker is calculated as a product of a measured amplitude of sound produced by the speaker as measured by the microphone and a distance between the speaker and the microphone. The sound can be the reference audio tone, for example.
[0105] More specifically, the system determines the gain factor of each auxiliary speaker by determining an amplitude of the reference tone produced by the auxiliary speaker, as measured by the primary microphone, and multiplying the measured amplitude by a distance of the auxiliary speaker from the primary microphone. The system also determines the gain factor of the primary speaker. Because the primary speaker is located in close proximity to its own microphone, calculating the relationship between sound amplitude and distance for the primary speaker using its own microphone is difficult. Thus, the system uses the secondary microphone and additional measurements to derive an amplitude-distance value of the primary speaker with reference to the primary microphone, from other measurements. The other measurements include an amplitude-distance value of an auxiliary speaker as measured by the primary microphone, an amplitude-distance value of the primary speaker as measured by the secondary microphone, and an amplitude-distance value of the auxiliary speaker as measured by the secondary microphone. The system then determines the gain factor of the primary speaker based on the derived amplitude-distance value of the primary speaker with reference to the primary microphone.
[0106] The system determines the distance between two speakers by causing each of the speakers to generate a reference tone. A microphone associated with one of the speakers records the reference tones. The system calculates the distance between the speakers based on the phase difference between the tones, which corresponds to the amount of time for the sound to travel between the speakers. The distance can be calculated by multiplying the speed of sound in air by the phase difference. The system identifies the minimum of the amplitude-distances of the speakers. The gain factor for each audio channel is determined by dividing the minimum amplitude-distance by the amplitude-distance determined for the speaker associated with the audio channel. The system can adjust the volume balance based on the determined gain factors for each of the speakers.
[0107] At least one technical advantage of the disclosed techniques relative to the prior art is that, with the disclosed techniques, volume balance can be adjusted in a multi-channel audio system by the system itself, without relying on a human user to determine the appropriate volume balance between channels. For example, digital audio workstations can use the disclosed techniques to adjust volume balance without user input. As a result, digital audio workstations can perform volume balancing in an automated way, thereby improving ease of use and efficiency. The volume balancing determines suitable volume levels for channels without trial-and-error or experimentation with parameters. Further, there is no need to store volume balance tables in speaker devices, and no need for users to understand the acoustic characteristics of speakers. These technical advantages provide one or more technological improvements over prior art approaches.
[0108] 1. Various embodiments include a computer-implemented method for adjusting volume balance, the method comprising: determining, for each speaker in a plurality of speakers of an audio system, an amplitude-distance value of a plurality of amplitude-distance values, wherein the amplitude-distance value determined for the speaker is based on an amplitude of a first tone detected by a microphone and a distance value determined based on a pair of second tones detected by the microphone; identifying a minimum amplitude-distance value of the plurality of amplitude-distance values; determining, for each speaker in the plurality of speakers, a gain factor for the speaker based on a ratio of the minimum amplitude-distance value to the amplitude-distance value determined for the speaker; and adjusting a volume level of each speaker based on the gain factor determined for the speaker.
[0109] 2. The computer-implemented method of clause 1, wherein the amplitude-distance value is determined based on a product of the amplitude of the first tone for the speaker and the distance value for the speaker.
[0110] 3. The computer-implemented method of clause 1 or 2, wherein the distance value is determined based on a phase difference between the pair of second tones.
[0111] 4. The computer-implemented method of any one of claims 1 to 3, wherein the distance value represents a distance between the speaker and the microphone.
[0112] 5. The computer-implemented method of any one of claims 1 to 4, wherein the amplitude of the first tone represents an amplitude of the first tone produced by the speaker as measured by the microphone.
[0113] 6. The computer-implemented method of any one of claims 1 to 5, wherein the volume level of each speaker is adjusted based on the gain factor determined for the speaker and further based on a target volume level.
[0114] 7. The computer-implemented method of any one of claims 1 to 6, wherein the plurality of amplitude-distance values comprises at least one auxiliary amplitude-distance value determined for an auxiliary speaker.
[0115] 8. The computer-implemented method of any one of claims 1 to 7, further comprising determining, for a primary speaker in the plurality of speakers, a primary speaker amplitude-distance value in the plurality of amplitude-distance values, wherein the primary speaker amplitude-distance value corresponds to an amplitude-distance value determined for the primary speaker as measured by a primary microphone associated with the primary speaker.
[0116] 9. The computer-implemented method of any one of claims 1 to 8, wherein the primary speaker amplitude-distance value is determined based on at least one additional amplitude-distance value determined using a secondary microphone associated with a first auxiliary speaker, wherein the at least one additional amplitude-distance value is based on at least one tone produced by the primary speaker and at least one tone produced by a second auxiliary speaker.
[0117] 10. The computer-implemented method of any one of claims 1 to 9, wherein: the first tone is received from the speaker; a third tone of the pair of second tones is received from the speaker; and a fourth tone of the pair of second tones is received from another speaker associated with the microphone.
[0118] 11. One or more non-transitory computer-readable media storing program instructions that, when executed by one or more processors, cause the one or more processors to perform steps of: determining, for each speaker in a plurality of speakers of an audio system, an amplitude-distance value of a plurality of amplitude-distance values, wherein the amplitude-distance value determined for the speaker is based on an amplitude of a first tone detected by a microphone and a distance value determined based on a pair of second tones detected by the microphone; identifying a minimum amplitude-distance value of the plurality of amplitude-distance values; determining, for each speaker in the plurality of speakers, a gain factor for the speaker based on a ratio of the minimum amplitude-distance value to the amplitude-distance value determined for the speaker; and adjusting a volume level of each speaker based on the gain factor determined for the speaker.
[0119] 12. The one or more non-transitory computer-readable media of clause 11, wherein the amplitude-distance value is determined based on a product of the amplitude of the first tone for the speaker and the distance value for the speaker.
[0120] 13. The one or more non-transitory computer-readable media of clause 11 or 12, wherein the distance value is determined based on a phase difference between the pair of second tones.
[0121] 14. The one or more non-transitory computer-readable media of any one of clauses 11 to 13, wherein the distance value represents a distance between the speaker and the microphone.
[0122] 15. The one or more non-transitory computer-readable media of any one of clauses 11 to 14, wherein the amplitude of the first tone represents an amplitude of the first tone produced by the speaker as measured by the microphone.
[0123] 16. The one or more non-transitory computer-readable media of any one of clauses 11 to 15, wherein the volume level of each speaker is adjusted based on the gain factor determined for the speaker and further based on a target volume level.
[0124] 17. The one or more non-transitory computer-readable media of any one of clauses 11 to 16, wherein the steps further comprise determining, for a primary speaker in the plurality of speakers, a primary speaker amplitude-distance value in the plurality of amplitude-distance values, wherein the primary speaker amplitude-distance value corresponds to an amplitude-distance value determined for the primary speaker as measured by a primary microphone associated with the primary speaker.
[0125] 18. The one or more non-transitory computer-readable media of any one of clauses 11 to 17, wherein the primary speaker amplitude-distance value is determined based on at least one additional amplitude-distance value determined using a secondary microphone associated with a first auxiliary speaker, wherein the at least one additional amplitude-distance value is based on at least one tone produced by the primary speaker and at least one tone produced by a second auxiliary speaker.
[0126] 19. The one or more non-transitory computer-readable media of any one of clauses 11 to 18, wherein: the first tone is received from the speaker; a third tone of the pair of second tones is received from the speaker; and a fourth tone of the pair of second tones is received from another speaker associated with the microphone.
[0127] 20. A system, comprising: a primary speaker; a primary microphone associated with the primary speaker; a first auxiliary speaker and a second auxiliary speaker; a secondary microphone associated with the first auxiliary speaker; one or more memories storing instructions; and one or more processors coupled to the one or more memories and, when executing the instructions: determines, using audio tones generated by the primary speaker and the first auxiliary speaker and captured by the primary microphone, an amplitude-distance value for the first auxiliary speaker; determines, using audio tones generated by the primary speaker and the second auxiliary speaker and captured by the primary microphone, an amplitude-distance value for the second auxiliary speaker; determines, using the amplitude-distance value for the second auxiliary speaker, audio tones generated by the primary speaker and the first auxiliary speaker and captured by the secondary microphone, and audio tones generated by the first auxiliary speaker and second auxiliary speaker and captured by the secondary microphone, an amplitude-distance value for the primary speaker, wherein the amplitude-distance value for the primary speaker is relative to the primary microphone; identifies a minimum amplitude-distance value of the amplitude distance value for the first auxiliary speaker, the amplitude-distance value for the second auxiliary speaker, and the amplitude-distance value for the primary speaker; determines, for the first auxiliary speaker, a first auxiliary gain factor based on a ratio of the minimum amplitude-distance value to the amplitude-distance value for the first auxiliary speaker; and adjusts a volume level of the first auxiliary speaker based on the first auxiliary gain factor.
[0128] 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 disclosure and protection.
[0129] 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.
[0130] 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” or “system. ” 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.
[0131] 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 (a non-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.
[0132] 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, such that the instructions, which execute 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.
[0133] 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.
[0134] 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 for adjusting volume balance, the method comprising:determining, for each speaker in a plurality of speakers of an audio system, an amplitude-distance value of a plurality of amplitude-distance values, wherein the amplitude-distance value determined for the speaker is based on an amplitude of a first tone detected by a microphone and a distance value determined based on a pair of second tones detected by the microphone;identifying a minimum amplitude-distance value of the plurality of amplitude-distance values;determining, for each speaker in the plurality of speakers, a gain factor for the speaker based on a ratio of the minimum amplitude-distance value to the amplitude-distance value determined for the speaker; andadjusting a volume level of each speaker based on the gain factor determined for the speaker.2.The computer-implemented method of claim 1, wherein the amplitude-distance value is determined based on a product of the amplitude of the first tone for the speaker and the distance value for the speaker.3.The computer-implemented method of claim 1, wherein the distance value is determined based on a phase difference between the pair of second tones.4.The computer-implemented method of claim 1, wherein the distance value represents a distance between the speaker and the microphone.5.The computer-implemented method of claim 1, wherein the amplitude of the first tone represents an amplitude of the first tone produced by the speaker as measured by the microphone.6.The computer-implemented method of claim 1, wherein the volume level of each speaker is adjusted based on the gain factor determined for the speaker and further based on a target volume level.7.The computer-implemented method of claim 1, wherein the plurality of amplitude- distance values comprises at least one auxiliary amplitude-distance value determined for an auxiliary speaker.8.The computer-implemented method of claim 1, further comprising determining, for a primary speaker in the plurality of speakers, a primary speaker amplitude-distance value in the plurality of amplitude-distance values, wherein the primary speaker amplitude-distance value corresponds to an amplitude-distance value determined for the primary speaker as measured by a primary microphone associated with the primary speaker.9.The computer-implemented method of claim 8, wherein the primary speaker amplitude-distance value is determined based on at least one additional amplitude-distance value determined using a secondary microphone associated with a first auxiliary speaker, wherein the at least one additional amplitude-distance value is based on at least one tone produced by the primary speaker and at least one tone produced by a second auxiliary speaker.10.The computer-implemented method of claim 1, wherein:the first tone is received from the speaker;a third tone of the pair of second tones is received from the speaker; anda fourth tone of the pair of second tones is received from another speaker associated with the microphone.11.One or more non-transitory computer-readable media storing program instructions that, when executed by one or more processors, cause the one or more processors to perform steps of:determining, for each speaker in a plurality of speakers of an audio system, an amplitude-distance value of a plurality of amplitude-distance values, wherein the amplitude-distance value determined for the speaker is based on an amplitude of a first tone detected by a microphone and a distance value determined based on a pair of second tones detected by the microphone;identifying a minimum amplitude-distance value of the plurality of amplitude-distance values;determining, for each speaker in the plurality of speakers, a gain factor for the speaker based on a ratio of the minimum amplitude-distance value to the amplitude-distance value determined for the speaker; andadjusting a volume level of each speaker based on the gain factor determined for the speaker.12.The one or more non-transitory computer-readable media of claim 11, wherein the amplitude-distance value is determined based on a product of the amplitude of the first tone for the speaker and the distance value for the speaker.13.The one or more non-transitory computer-readable media of claim 11, wherein the distance value is determined based on a phase difference between the pair of second tones.14.The one or more non-transitory computer-readable media of claim 11, wherein the distance value represents a distance between the speaker and the microphone.15.The one or more non-transitory computer-readable media of claim 11, wherein the amplitude of the first tone represents an amplitude of the first tone produced by the speaker as measured by the microphone.16.The one or more non-transitory computer-readable media of claim 11, wherein the volume level of each speaker is adjusted based on the gain factor determined for the speaker and further based on a target volume level.17.The one or more non-transitory computer-readable media of claim 11, wherein the steps further comprise determining, for a primary speaker in the plurality of speakers, a primary speaker amplitude-distance value in the plurality of amplitude-distance values, wherein the primary speaker amplitude-distance value corresponds to an amplitude-distance value determined for the primary speaker as measured by a primary microphone associated with the primary speaker.18.The one or more non-transitory computer-readable media of claim 17, wherein the primary speaker amplitude-distance value is determined based on at least one additional amplitude-distance value determined using a secondary microphone associated with a first auxiliary speaker, wherein the at least one additional amplitude-distance value is based on at least one tone produced by the primary speaker and at least one tone produced by a second auxiliary speaker.19.The one or more non-transitory computer-readable media of claim 11, wherein:the first tone is received from the speaker;a third tone of the pair of second tones is received from the speaker; anda fourth tone of the pair of second tones is received from another speaker associated with the microphone.20.A system, comprising:a primary speaker;a primary microphone associated with the primary speaker;a first auxiliary speaker and a second auxiliary speaker;a secondary microphone associated with the first auxiliary speaker;one or more memories storing instructions; andone or more processors coupled to the one or more memories and, when executing the instructions:determines, using audio tones generated by the primary speaker and the first auxiliary speaker and captured by the primary microphone, an amplitude-distance value for the first auxiliary speaker;determines, using audio tones generated by the primary speaker and the second auxiliary speaker and captured by the primary microphone, an amplitude-distance value for the second auxiliary speaker;determines, using the amplitude-distance value for the second auxiliary speaker, audio tones generated by the primary speaker and the first auxiliary speaker and captured by the secondary microphone, and audio tones generated by the first auxiliary speaker and second auxiliary speaker and captured by the secondary microphone, an amplitude-distance value for the primary speaker, wherein the amplitude-distance value for the primary speaker is relative to the primary microphone;identifies a minimum amplitude-distance value of the amplitude distance value for the first auxiliary speaker, the amplitude-distance value for the second auxiliary speaker, and the amplitude-distance value for the primary speaker;determines, for the first auxiliary speaker, a first auxiliary gain factor based on a ratio of the minimum amplitude-distance value to the amplitude-distance value for the first auxiliary speaker; andadjusts a volume level of the first auxiliary speaker based on the first auxiliary gain factor.
Citation Information
Patent Citations
Speaker adjustment method and electronic device using the same
US10805755B1
Surround audio device and method of providing multi-channel surround audio signal to a plurality of electronic devices including a speaker
US20190387344A1
Speaker adjustment method and electronic device using the same
US20200359153A1
