This disclosure relates to audio rendering and, more specifically, binaural rendering of audio data.
In general, techniques are described for binaural audio rendering of spherical harmonic coefficients having an order greater than one (which may be referred to as higher order ambisonics (HOA) coefficients).
As one example, a method of binaural audio rendering comprises applying a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field in three dimensions so as to render the sound field.
In another example, a device comprises one or more processors configured to apply a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field in three dimensions so as to render the sound field.
In another example, a device comprises means for determining spherical harmonic coefficients representative of a sound field in three dimensions, and means for applying a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field so as to render the sound field.
In another example, a non-transitory computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to apply a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field in three dimensions so as to render the sound field.
The details of one or more aspects of the techniques are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of these techniques will be apparent from the description and drawings, and from the claims.
Like reference characters denote like elements throughout the figures and text.
The evolution of surround sound has made available many output formats for entertainment nowadays. Examples of such surround sound formats include the popular 5.1 format (which includes the following six channels: front left (FL), front right (FR), center or front center, back left or surround left, back right or surround right, and low frequency effects (LFE)), the growing 7.1 format, and the upcoming 22.2 format (e.g., for use with the Ultra High Definition Television standard). Another example of spatial audio format are the Spherical Harmonic coefficients (also known as Higher Order Ambisonics).
The input to a future standardized audio-encoder (a device which converts PCM audio representations to an bitstream—conserving the number of bits required per time sample) could optionally be one of three possible formats: (i) traditional channel-based audio, which is meant to be played through loudspeakers at pre-specified positions; (ii) object-based audio, which involves discrete pulse-code-modulation (PCM) data for single audio objects with associated metadata containing their location coordinates (amongst other information); and (iii) scene-based audio, which involves representing the sound field using spherical harmonic coefficients (SHC)—where the coefficients represent ‘weights’ of a linear summation of spherical harmonic basis functions. The SHC, in this context, may include Higher Order Ambisonics (HoA) signals according to an HoA model. Spherical harmonic coefficients may alternatively or additionally include planar models and spherical models.
There are various ‘surround-sound’ formats in the market. They range, for example, from the 5.1 home theatre system (which has been the most successful in terms of making inroads into living rooms beyond stereo) to the 22.2 system developed by NHK (Nippon Hoso Kyokai or Japan Broadcasting Corporation). Content creators (e.g., Hollywood studios) would like to produce the soundtrack for a movie once, and not spend the efforts to remix it for each speaker configuration. Recently, standard committees have been considering ways in which to provide an encoding into a standardized bitstream and a subsequent decoding that is adaptable and agnostic to the speaker geometry and acoustic conditions at the location of the renderer.
To provide such flexibility for content creators, a hierarchical set of elements may be used to represent a sound field. The hierarchical set of elements may refer to a set of elements in which the elements are ordered such that a basic set of lower-ordered elements provides a full representation of the modeled sound field. As the set is extended to include higher-order elements, the representation becomes more detailed.
One example of a hierarchical set of elements is a set of spherical harmonic coefficients (SHC). The following expression demonstrates a description or representation of a sound field using SHC:
This expression shows that the pressure pi at any point {rr, θr, φr} (which are expressed in spherical coordinates relative to the microphone capturing the sound field in this example) of the sound field can be represented uniquely by the SHC Anm(k). Here,
c is the speed of sound (˜343 m/s), {rr, θr, φr} is a point of reference (or observation point), jn(•) is the spherical Bessel function of order n, and Ynm(θr, φr) are the spherical harmonic basis functions of order n and suborder m. It can be recognized that the term in square brackets is a frequency-domain representation of the signal (i.e., S(ω, rr, θr, φr)) which can be approximated by various time-frequency transformations, such as the discrete Fourier transform (DFT), the discrete cosine transform (DCT), or a wavelet transform. Other examples of hierarchical sets include sets of wavelet transform coefficients and other sets of coefficients of multiresolution basis functions.
In any event, the SHC Anm(k) can either be physically acquired (e.g., recorded) by various microphone array configurations or, alternatively, they can be derived from channel-based or object-based descriptions of the sound field. The SHC represents scene-based audio. For example, a fourth-order SHC representation involves (1+4)2=25 coefficients per time sample.
To illustrate how these SHCs may be derived from an object-based description, consider the following equation. The coefficients Anm(k) for the sound field corresponding to an individual audio object may be expressed as:
A
n
m(k)=g(ω)(−4πik)hn(2)(krs)Ynm*(θs,φs),
where i is √{square root over (−1)}, hn(2)(•) is the spherical Hankel function (of the second kind) of order n, and (rs, θs, φs) is the location of the object. Knowing the source energy g(ω) as a function of frequency (e.g., using time-frequency analysis techniques, such as performing a fast Fourier transform on the PCM stream) allows us to convert each PCM object and its location into the SHC Anm(k). Further, it can be shown (since the above is a linear and orthogonal decomposition) that the Anm(k) coefficients for each object are additive. In this manner, a multitude of PCM objects can be represented by the Anm(k) coefficients (e.g., as a sum of the coefficient vectors for the individual objects). Essentially, these coefficients contain information about the sound field (the pressure as a function of 3D coordinates), and the above represents the transformation from individual objects to a representation of the overall sound field, in the vicinity of the observation point {rr, θr, φr}.
The SHCs may also be derived from a microphone-array recording as follows:
a
n
m(t)=bn(ri,t)*<Ynm(θi,φi),mi(t)>
where, anm(t) are the time-domain equivalent of Anm(k) (the SHC), the * represents a convolution operation, the <,> represents an inner product, bn(ri, t) represents a time-domain filter function dependent on ri, mi(t) are the ith microphone signal, where the ith microphone transducer is located at radius ri, elevation angle θi and azimuth angle φi. Thus, if there are 32 transducers in the microphone array and each microphone is positioned on a sphere such that, ri=a, is a constant (such as those on an Eigenmike EM32 device from mhAcoustics), the 25 SHCs may be derived using a matrix operation as follows:
The matrix in the above equation may be more generally referred to as Es(θ,φ), where the subscript s may indicate that the matrix is for a certain transducer geometry-set, s. The convolution in the above equation (indicated by the *), is on a row-by-row basis, such that, for example, the output a00(t) is the result of the convolution between b0(a, t) and the time series that results from the vector multiplication of the first row of the Es(θ, φ) matrix, and the column of microphone signals (which varies as a function of time—accounting for the fact that the result of the vector multiplication is a time series). The computation may be most accurate when the transducer positions of the microphone array are in the so called T-design geometries (which is very close to the Eigenmike transducer geometry). One characteristic of the T-design geometry may be that the Es(θ,φ) matrix that results from the geometry, has a very well behaved inverse (or pseudo inverse) and further that the inverse may often be very well approximated by the transpose of the matrix, Es(θ,φ). If the filtering operation with bn(a,t) were to be ignored, this property would allow the recovery of the microphone signals from the SHC (i.e., [mi(t)]=[Es(θ,φ)]−1[SHC] in this example). The remaining figures are described below in the context of object-based and SHC-based audio-coding.
The content creator 22 may represent a movie studio or other entity that may generate multi-channel audio content for consumption by content consumers, such as the content consumer 24. Often, this content creator generates audio content in conjunction with video content. The content consumer 24 may represent an individual that owns or has access to an audio playback system, which may refer to any form of audio playback system capable of playing back multi-channel audio content. In the example of
The content creator 22 includes an audio renderer 28 and an audio editing system 30. The audio renderer 28 may represent an audio processing unit that renders or otherwise generates speaker feeds (which may also be referred to as “loudspeaker feeds,” “speaker signals,” or “loudspeaker signals”). Each speaker feed may correspond to a speaker feed that reproduces sound for a particular channel of a multi-channel audio system or to a virtual loudspeaker feed that are intended for convolution with a head-related transfer function (HRTF) filters matching the speaker position. Each speaker feed may correspond to a channel of spherical harmonic coefficients (where a channel may be denoted by an order and/or suborder of associated spherical basis functions to which the spherical harmonic coefficients correspond), which uses multiple channels of SHCs to represent a directional sound field.
In the example of
The content creator may, during the editing process, render spherical harmonic coefficients 27 (“SHCs 27”), listening to the rendered speaker feeds in an attempt to identify aspects of the sound field that do not have high fidelity or that do not provide a convincing surround sound experience. The content creator 22 may then edit source spherical harmonic coefficients (often indirectly through manipulation of different objects from which the source spherical harmonic coefficients may be derived in the manner described above). The content creator 22 may employ the audio editing system 30 to edit the spherical harmonic coefficients 27. The audio editing system 30 represents any system capable of editing audio data and outputting this audio data as one or more source spherical harmonic coefficients.
When the editing process is complete, the content creator 22 may generate bitstream 31 based on the spherical harmonic coefficients 27. That is, the content creator 22 includes a bitstream generation device 36, which may represent any device capable of generating the bitstream 31. In some instances, the bitstream generation device 36 may represent an encoder that bandwidth compresses (through, as one example, entropy encoding) the spherical harmonic coefficients 27 and that arranges the entropy encoded version of the spherical harmonic coefficients 27 in an accepted format to form the bitstream 31. In other instances, the bitstream generation device 36 may represent an audio encoder (possibly, one that complies with a known audio coding standard, such as MPEG surround, or a derivative thereof) that encodes the multi-channel audio content 29 using, as one example, processes similar to those of conventional audio surround sound encoding processes to compress the multi-channel audio content or derivatives thereof. The compressed multi-channel audio content 29 may then be entropy encoded or coded in some other way to bandwidth compress the content 29 and arranged in accordance with an agreed upon format to form the bitstream 31. Whether directly compressed to form the bitstream 31 or rendered and then compressed to form the bitstream 31, the content creator 22 may transmit the bitstream 31 to the content consumer 24.
While shown in
As further shown in the example of
The audio playback system 32 may further include an extraction device 38. The extraction device 38 may represent any device capable of extracting spherical harmonic coefficients 27′ (“SHCs 27′,” which may represent a modified form of or a duplicate of spherical harmonic coefficients 27) through a process that may generally be reciprocal to that of the bitstream generation device 36. In any event, the audio playback system 32 may receive the spherical harmonic coefficients 27′ and uses binaural audio renderer 34 to render spherical harmonic coefficients 27′ and thereby generate speaker feeds 35 (corresponding to the number of loudspeakers electrically or possibly wirelessly coupled to the audio playback system 32, which are not shown in the example of
Binary room impulse response (BRIR) filters 37 of audio playback system that each represents a response at a location to an impulse generated at an impulse location. BRIR filters 37 are “binaural” in that they are each generated to be representative of the impulse response as would be experienced by a human ear at the location. Accordingly, BRIR filters for an impulse are often generated and used for sound rendering in pairs, with one element of the pair for the left ear and another for the right ear. In the illustrated example, binaural audio renderer 34 uses left BRIR filters 33A and right BRIR filters 33B to render respective binaural audio outputs 35A and 35B.
For example, BRIR filters 37 may be generated by convolving a sound source signal with head-related transfer functions (HRTFs) measured as impulses responses (IRs). The impulse location corresponding to each of the BRIR filters 37 may represent a position of a virtual loudspeaker in a virtual space. In some examples, binaural audio renderer 34 convolves SHCs 27′ with BRIR filters 37 corresponding to the virtual loudspeakers, then accumulates (i.e., sums) the resulting convolutions to render the sound field defined by SHCs 27′ for output as speaker feeds 35. As described herein, binaural audio renderer 34 may apply techniques for reducing rendering computation by manipulating BRIR filters 37 while rendering SHCs 27′ as speaker feeds 35.
In some instances, the techniques include segmenting BRIR filters 37 into a number of segments that represent different stages of an impulse response at a location within a room. These segments correspond to different physical phenomena that generate the pressure (or lack thereof) at any point on the sound field. For example, because each of BRIR filters 37 is timed coincident with the impulse, the first or “initial” segment may represent a time until the pressure wave from the impulse location reaches the location at which the impulse response is measured. With the exception of the timing information, BRIR filters 37 values for respective initial segments may be insignificant and may be excluded from a convolution with the hierarchical elements that describe the sound field. Similarly, each of BRIR filters 37 may include a last or “tail” segment that include impulse response signals attenuated to below the dynamic range of human hearing or attenuated to below a designated threshold, for instance. BRIR filters 37 values for respective tails segments may also be insignificant and may be excluded from a convolution with the hierarchical elements that describe the sound field. In some examples, the techniques may include determining a tail segment by performing a Schroeder backward integration with a designated threshold and discarding elements from the tail segment where backward integration exceeds the designated threshold. In some examples, the designated threshold is −60 dB for reverberation time RT60.
An additional segment of each of BRIR filters 37 may represent the impulse response caused by the impulse-generated pressure wave without the inclusion of echo effects from the room. These segments may be represented and described as a head-related transfer functions (HRTFs) for BRIR filters 37, where HRTFs capture the impulse response due to the diffraction and reflection of pressure waves about the head, shoulders/torso, and outer ear as the pressure wave travels toward the ear drum. HRTF impulse responses are the result of a linear and time-invariant system (LTI) and may be modeled as minimum-phase filters. The techniques to reduce HRTF segment computation during rendering may, in some examples, include minimum-phase reconstruction and using infinite impulse response (IIR) filters to reduce an order of the original finite impulse response (FIR) filter (e.g., the HRTF filter segment).
Minimum-phase filters implemented as IIR filters may be used to approximate the HRTF filters for BRIR filters 37 with a reduced filter order. Reducing the order leads to a concomitant reduction in the number of calculations for a time-step in the frequency domain. In addition, the residual/excess filter resulting from the construction of minimum-phase filters may be used to estimate the interaural time difference (ITD) that represents the time or phase distance caused by the distance a sound pressure wave travels from a source to each ear. The ITD can then be used to model sound localization for one or both ears after computing a convolution of one or more BRIR filters 37 with the hierarchical elements that describe the sound field (i.e., determine binauralization).
A still further segment of each of BRIR filters 37 is subsequent to the HRTF segment and may account for effects of the room on the impulse response. This room segment may be further decomposed into an early echoes (or “early reflection”) segment and a late reverberation segment (that is, early echoes and late reverberation may each be represented by separate segments of each of BRIR filters 37). Where HRTF data is available for BRIR filters 37, onset of the early echo segment may be identified by deconvoluting the BRIR filters 37 with the HRTF to identify the HRTF segment. Subsequent to the HRTF segment is the early echo segment. Unlike the residual room response, the HRTF and early echo segments are direction-dependent in that location of the corresponding virtual speaker determines the signal in a significant respect.
In some examples, binaural audio renderer 34 uses BRIR filters 37 prepared for the spherical harmonics domain (θ,φ) or other domain for the hierarchical elements that describe the sound field. That is, BRIR filters 37 may be defined in the spherical harmonics domain (SHD) as transformed BRIR filters 37 to allow binaural audio renderer 34 to perform fast convolution while taking advantage of certain properties of the data set, including the symmetry of BRIR filters 37 (e.g. left/right) and of SHCs 27′. In such examples, transformed BRIR filters 37 may be generated by multiplying (or convolving in the time-domain) the SHC rendering matrix and the original BRIR filters. Mathematically, this can be expressed according to the following equations (1)-(5):
Here, (3) depicts either (1) or (2) in matrix form for fourth-order spherical harmonic coefficients (which may be an alternative way to refer to those of the spherical harmonic coefficients associated with spherical basis functions of the fourth-order or less). Equation (3) may of course be modified for higher- or lower-order spherical harmonic coefficients. Equations (4)-(5) depict the summation of the transformed left and right BRIR filters 37 over the loudspeaker dimension, L, to generate summed SHC-binaural rendering matrices (BRIR″). In combination, the summed SHC-binaural rendering matrices have dimensionality [(N+1)2, Length, 2], where Length is a length of the impulse response vectors to which any combination of equations (1)-(5) may be applied. In some instances of equations (1) and (2), the rendering matrix SHC may be binauralized such that equation (1) may be modified to BRIR′(N+1)
The SHC rendering matrix presented in the above equations (1)-(3), SHC, includes elements for each order/sub-order combination of SHCs 27′, which effectively define a separate SHC channel, where the element values are set for a position for the speaker, L, in the spherical harmonic domain. BRIRL,left represents the BRIR response at the left ear or position for an impulse produced at the location for the speaker, L, and is depicted in (3) using impulse response vectors Bi for {i|iε[0, L]}. BRIR′(N+1)
In some examples, the techniques may include applying the SHC rendering matrix only to the HRTF and early reflection segments of respective original BRIR filters 37 to generate transformed BRIR filters 37 and an SHC-binaural rendering matrix. This may reduce a length of convolutions with SHCs 27′.
In some examples, as depicted in equations (4)-(5), the SHC-binaural rendering matrices having dimensionality that incorporates the various loudspeakers in the spherical harmonics domain may be summed to generate a (N+1)2*Length*2 filter matrix that combines SHC rendering and BRIR rendering/mixing. That is, SHC-binaural rendering matrices for each of the L loudspeakers may be combined by, e.g., summing the coefficients over the L dimension. For SHC-binaural rendering matrices of length Length, this produces a (N+1)2*Length*2 summed SHC-binaural rendering matrix that may be applied to an audio signal of spherical harmonics coefficients to binauralize the signal. Length may be a length of a segment of the BRIR filters segmented in accordance with techniques described herein.
Techniques for model reduction may also be applied to the altered rendering filters, which allows SHCs 27′ (e.g., the SHC contents) to be directly filtered with the new filter matrix (a summed SHC-binaural rendering matrix). Binaural audio renderer 34 may then convert to binaural audio by summing the filtered arrays to obtain the binaural output signals 35A, 35B.
In some examples, BRIR filters 37 of audio playback system 32 represent transformed BRIR filters in the spherical harmonics domain previously computed according to any one or more of the above-described techniques. In some examples, transformation of original BRIR filters 37 may be performed at run-time.
In some examples, because the BRIR filters 37 are typically symmetric, the techniques may promote further reduction of the computation of binaural outputs 35A, 35B by using only the SHC-binaural rendering matrix for either the left or right ear. When summing SHCs 27′ filtered by a filter matrix, binaural audio renderer 34 may make conditional decisions for either outputs signal 35A or 35B as a second channel when rendering the final output. As described herein, reference to processing content or to modifying rendering matrices described with respect to either the left or right ear should be understood to be similarly applicable to the other ear.
In this way, the techniques may provide multiple approaches to reduce a length of BRIR filters 37 in order to potentially avoid direct convolution of the excluded BRIR filter samples with multiple channels. As a result, binaural audio renderer 34 may provide efficient rendering of binaural output signals 35A, 35B from SHCs 27′.
Early echoes 62B includes more discrete echoes than residual room 62C. Accordingly, early echoes 62B may vary per virtual speaker channel, while residual room 62C having a longer tail may be synthesized as a single stereo copy. For some measurement mannequins used to obtain a BRIR, HRTF data may be available as measured in an anechoic chamber. Early echoes 62B may be determined by deconvoluting the BRIR and the HRTF data to identify the location of early echoes (which may be referred to as “reflections”). In some examples, HRTF data is not readily available and the techniques for identifying early echoes 62B include blind estimation. However, a straightforward approach may include regarding the first few milliseconds (e.g., the first 5, 10, 15, or 20 ms) as direct impulse filtered by the HRTF. As noted above, the techniques may include computing the mixing time using statistical data and estimation from the room volume.
In some examples, the techniques may include synthesizing one or more BRIR filters for residual room 62C. After the mixing time, BRIR reverb tails (represented as system residual room 62C in
With a common reverb tail, the later portion of a corresponding BRIR filter may be excluded from separate convolution with each speaker feed, but instead may be applied once onto the mix of all speaker feeds. As described above, and in further detail below, the mixing of all speaker feeds can be further simplified with spherical harmonic coefficients signal rendering.
As shown in the example of
In some examples, audio playback device 100 includes an audio decoding unit configured to decode the encoded audio data so as to generate the SHCs 122. The audio decoding unit may perform an audio decoding process that is in some aspects reciprocal to the audio encoding process used to encode SHCs 122. The audio decoding unit may include a time-frequency analysis unit configured to transform SHCs of encoded audio data from the time domain to the frequency domain, thereby generating the SHCs 122. That is, when the encoded audio data represents a compressed form of the SHC 122 that is not converted from the time domain to the frequency domain, the audio decoding unit may invoke the time-frequency analysis unit to convert the SHCs from the time domain to the frequency domain so as to generate SHCs 122 (specified in the frequency domain). The time-frequency analysis unit may apply any form of Fourier-based transform, including a fast Fourier transform (FFT), a discrete cosine transform (DCT), a modified discrete cosine transform (MDCT), and a discrete sine transform (DST) to provide a few examples, to transform the SHCs from the time domain to SHCs 122 in the frequency domain. In some instances, SHCs 122 may already be specified in the frequency domain in bitstream 120. In these instances, the time-frequency analysis unit may pass SHCs 122 to the binaural rendering unit 102 without applying a transform or otherwise transforming the received SHCs 122. While described with respect to SHCs 122 specified in the frequency domain, the techniques may be performed with respect to SHCs 122 specified in the time domain.
Binaural rendering unit 102 represents a unit configured to binauralize SHCs 122. Binaural rendering unit 102 may, in other words, represent a unit configured to render the SHCs 122 to a left and right channel, which may feature spatialization to model how the left and right channel would be heard by a listener in a room in which the SHCs 122 were recorded. The binaural rendering unit 102 may render SHCs 122 to generate a left channel 136A and a right channel 136B (which may collectively be referred to as “channels 136”) suitable for playback via a headset, such as headphones. As shown in the example of
BRIR filters 108 include one or more BRIR filters and may represent an example of BRIR filters 37 of
BRIR conditioning unit 106 receives L instances of BRIR filters 126A, 126B, one for each virtual loudspeaker L and with each BRIR filter having length N. BRIR filters 126A, 126B may already be conditioned to remove quiet samples. BRIR conditioning unit 106 may apply techniques described above to segment BRIR filters 126A, 126B to identify respective HRTF, early reflection, and residual room segments. BRIR conditioning unit 106 provides the HRTF and early reflection segments to BRIR SHC-domain conversion unit 112 as matrices 129A, 129B representing left and right matrices of size [a, L], where a is a length of the concatenation of the HRTF and early reflection segments and L is a number of loudspeakers (virtual or real). BRIR conditioning unit 106 provides the residual room segments of BRIR filters 126A, 126B to residual room response unit 110 as left and right residual room matrices 128A, 128B of size [b, L], where b is a length of the residual room segments and L is a number of loudspeakers (virtual or real).
Residual room response unit 110 may apply techniques describe above to compute or otherwise determine left and right common residual room response segments for convolution with at least some portion of the hierarchical elements (e.g., spherical harmonic coefficients) describing the sound field, as represented in
Residual room response unit 110 may then compute a fast convolution of the left and right common residual room response segments with at least one channel of SHCs 122, illustrated in
As used herein, the terms “fast convolution” and “convolution” may refer to a convolution operation in the time domain as well as to a point-wise multiplication operation in the frequency domain. In other words and as is well-known to those skilled in the art of signal processing, convolution in the time domain is equivalent to point-wise multiplication in the frequency domain, where the time and frequency domains are transforms of one another. The output transform is the point-wise product of the input transform with the transfer function. Accordingly, convolution and point-wise multiplication (or simply “multiplication”) can refer to conceptually similar operations made with respect to the respective domains (time and frequency, herein). Convolution units 114, 214, 230; residual room response units 210, 354; filters 384 and reverb 386; may alternatively apply multiplication in the frequency domain, where the inputs to these components is provided in the frequency domain rather than the time domain. Other operations described herein as “fast convolution” or “convolution” may, similarly, also refer to multiplication in the frequency domain, where the inputs to these operations is provided in the frequency domain rather than the time domain.
In some examples, residual room response unit 110 may receive, from BRIR conditioning unit 106, a value for an onset time of the common residual room response segments. Residual room response unit 110 may zero-pad or otherwise delay the outputs signals 134A, 134B in anticipation of combination with earlier segments for the BRIR filters 108.
BRIR SHC-domain conversion unit 112 (hereinafter “domain conversion unit 112”) applies an SHC rendering matrix to BRIR matrices to potentially convert the left and right BRIR filters 126A, 126B to the spherical harmonic domain and then to potentially sum the filters over L. Domain conversion unit 112 outputs the conversion result as left and right SHC-binaural rendering matrices 130A, 130B, respectively. Where matrices 129A, 129B are of size [a, L], each of SHC-binaural rendering matrices 130A, 130B is of size [(N+1)2 a] after summing the filters over L (see equations (4)-(5) for example). In some examples, SHC-binaural rendering matrices 130A, 130B are configured in audio playback device 100 rather than being computed at run-time or a setup-time. In some examples, multiple instances of SHC-binaural rendering matrices 130A, 130B are configured in audio playback device 100, and audio playback device 100 selects a left/right pair of the multiple instances to apply to SHCs 124A.
Convolution unit 114 convolves left and right binaural rendering matrices 130A, 130B with SHCs 124A, which may in some examples be reduced in order from the order of SHCs 122. For SHCs 124A in the frequency (e.g., SHC) domain, convolution unit 114 may compute respective point-wise multiplications of SHCs 124A with left and right binaural rendering matrices 130A, 130B. For an SHC signal of length Length, the convolution results in left and right filtered SHC channels 132A, 132B of size [Length, (N+1)2], there typically being a row for each output signals matrix for each order/sub-order combination of the spherical harmonics domain.
Combination unit 116 may combine left and right filtered SHC channels 132A, 132B with output signals 134A, 134B to produce binaural output signals 136A, 136B. Combination unit 116 may then separately sum each left and right filtered SHC channels 132A, 132B over L to produce left and right binaural output signals for the HRTF and early echoes (reflection) segments prior to combining the left and right binaural output signals with left and right output signals 134A, 134B to produce binaural output signals 136A, 136B.
Audio playback device 200 may include an optional SHCs order reduction unit 204 that processes inbound SHCs 242 from bitstream 240 to reduce an order of the SHCs 242. Optional SHCs order reduction provides the highest-order (e.g., 0th order) channel 262 of SHCs 242 (e.g., the W channel) to residual room response unit 210, and provides reduced-order SHCs 242 to convolution unit 230. In instances in which SHCs order reduction unit 204 does not reduce an order of SHCs 242, convolution unit 230 receives SHCs 272 that are identical to SHCs 242. In either case, SHCs 272 have dimensions [Length, (N+1)2], where N is the order of SHCs 272.
BRIR conditioning unit 206 and BRIR filters 208 may represent example instances of BRIR conditioning unit 106 and BRIR filters 108 of
BRIR SHC-domain conversion unit 220 (hereinafter, domain conversion unit 220) may represent an example instance of domain conversion unit 112 of
Convolution unit 230 filters the SHC contents in the form of SHCs 272 to produce intermediate signals 258A, 258B, which summation unit 232 sums to produce left and right signals 260A, 260B. Combination unit 234 combines left and right residual room output signals 268A, 268B and left and right signals 260A, 260B to produce left and right binaural output signals 270A, 270B.
In some examples, binaural rendering unit 202 may implement further reductions to computation by using only one of the SHC-binaural rendering matrices 252A, 252B generated by transform unit 222. As a result, convolution unit 230 may operate on just one of the left or right signals, reducing convolution operations by half. Summation unit 232, in such examples, makes conditional decisions for the second channel when rendering the outputs 260A, 260B.
BRIR SHC-domain conversion unit 220 applies an HOA rendering matrix 224 to transform left and right filter matrices 248A, 248B including the extracted head-related transfer function and early echoes segments to generate left and right filter matrices 252A, 252B in the spherical harmonic (e.g., HOA) domain (302). In some examples, audio playback device 200 may be configured with left and right filter matrices 252A, 252B. In some examples, audio playback device 200 receives BRIR filters 208 in an out-of-band or in-band signal of bitstream 240, in which case audio playback device 200 generates left and right filter matrices 252A, 252B. Summation unit 226 sums the respective left and right filter matrices 252A, 252B over the loudspeaker dimension to generate a binaural rendering matrix in the SHC domain that includes left and right intermediate SHC-rendering matrices 254A, 254B (304). A reduction unit 228 may further reduce the intermediate SHC-rendering matrices 254A, 254B to generate left and right SHC-rendering matrices 256A, 256B.
A convolution unit 230 of binaural rendering unit 202 applies the left and right intermediate SHC-rendering matrices 256A, 256B to SHC content (such as spherical harmonic coefficients 272) to produce left and right filtered SHC (e.g., HOA) channels 258A, 258B (306).
Summation unit 232 sums each of the left and right filtered SHC channels 258A, 258B over the SHC dimension, (N+1)2, to produce left and right signals 260A, 260B for the direction-dependent segments (308). Combination unit 116 may then combine the left and right signals 260A, 260B with left and right residual room output signals 268A, 268B to generate a binaural output signal including left and right binaural output signals 270A, 270B.
BRIR conditioning unit 206 of audio playback device 200 may condition the BRIR data 312 by applying segmentation and combination operations. Specifically, in the example mode of operation 310, BRIR conditioning unit 206 segments each of the L filters according to techniques described herein into HRTF plus early echo segments of combined length a to produce matrix 315 (dimensionality [a, 2, L]) and into residual room response segments to produce residual matrix 339 (dimensionality [b, 2, L]) (324). The length K of the L filters of BRIR data 312 is approximately the sum of a and b. Transform unit 222 may apply HOA/SHC rendering matrix 314 of (N+1)2 dimensionality to the L filters of matrix 315 to produce matrix 317 (which may be an example instance of a combination of left and right matrices 252A, 252B) of dimensionality [(N+1)2, a, 2, L]. Summation unit 226 may sum each of left and right matrices 252A, 252B over L to produce intermediate SHC-rendering matrix 335 having dimensionality [(N+1)2, a, 2] (the third dimension having value 2 representing left and right components; intermediate SHC-rendering matrix 335 may represent as an example instance of both left and right intermediate SHC-rendering matrices 254A, 254B) (326). In some examples, audio playback device 200 may be configured with intermediate SHC-rendering matrix 335 for application to the HOA content 316 (or reduced version thereof, e.g., HOA content 321). In some examples, reduction unit 228 may apply further reductions to computation by using only one of the left or right components of matrix 317 (328).
Audio playback device 200 receives HOA content 316 of order N1 and length Length and, in some aspects, applies an order reduction operation to reduce the order of the spherical harmonic coefficients (SHCs) therein to N (330). N1 indicates the order of the (I)nput HOA content 321. The HOA content 321 of order reduction operation (330) is, like HOA content 316, in the SHC domain. The optional order reduction operation also generates and provides the highest-order (e.g., the 0th order) signal 319 to residual response unit 210 for a fast convolution operation (338). In instances in which HOA order reduction unit 204 does not reduce an order of HOA content 316, the apply fast convolution operation (332) operates on input that does not have a reduced order. In either case, HOA content 321 input to the fast convolution operation (332) has dimensions [Length, (N+1)2], where N is the order.
Audio playback device 200 may apply fast convolution of HOA content 321 with matrix 335 to produce HOA signal 323 having left and right components thus dimensions [Length, (N+1)2, 2] (332). Again, fast convolution may refer to point-wise multiplication of the HOA content 321 and matrix 335 in the frequency domain or convolution in the time domain. Audio playback device 200 may further sum HOA signal 323 over (N+1)2 to produce a summed signal 325 having dimensions [Length, 2](334).
Returning now to residual matrix 339, audio playback device 200 may combine the L residual room response segments, in accordance with techniques herein described, to generate a common residual room response matrix 327 having dimensions [b, 2](336). Audio playback device 200 may apply fast convolution of the 0th order HOA signal 319 with the common residual room response matrix 327 to produce room response signal 329 having dimensions [Length, 2] (338). Because, to generate the L residual response room response segments of residual matrix 339, audio playback device 200 obtained the residual response room response segments starting at the (a+1)th samples of the L filters of BRIR data 312, audio playback device 200 accounts for the initial a samples by delaying (e.g., padding) a samples to generate room response signal 311 having dimensions [Length, 2] (340).
Audio playback device 200 combines summed signal 325 with room response signal 311 by adding the elements to produce output signal 318 having dimensions [Length, 2] (342). In this way, audio playback device may avoid applying fast convolution for each of the L residual room response segments. For a 22 channel input for conversion to binaural audio output signal, this may reduce the number of fast convolutions for generating the residual room response from 22 to 2.
Audio playback device 200 then applies fast convolution 332 of multichannel audio signal 333 with matrix 337 to produce multichannel audio signal 341 having dimensions [Length, L, 2] (with left and right components) (348). Audio playback device 200 may then sum the multichannel audio signal 341 by the L channels/speakers to produce signal 325 having dimensions [Length, 2] (346).
Moreover, while generally described above with respect to the examples of
As shown in the example of
As described above, the BRIR filters 108 include one or more BRIR filters and may represent an example of the BRIR filters 37 of
The BRIR conditioning unit 106 receives n instances of the BRIR filters 126A, 126B, one for each channel n and with each BRIR filter having length N. The BRIR filters 126A, 126B may already be conditioned to remove quiet samples. The BRIR conditioning unit 106 may apply techniques described above to segment the BRIR filters 126A, 126B to identify respective HRTF, early reflection, and residual room segments. The BRIR conditioning unit 106 provides the HRTF and early reflection segments to the per-channel truncated filter unit 356 as matrices 129A, 129B representing left and right matrices of size [a, L], where a is a length of the concatenation of the HRTF and early reflection segments and n is a number of loudspeakers (virtual or real). The BRIR conditioning unit 106 provides the residual room segments of BRIR filters 126A, 126B to residual room response unit 354 as left and right residual room matrices 128A, 128B of size [b, L], where b is a length of the residual room segments and n is a number of loudspeakers (virtual or real).
The residual room response unit 354 may apply techniques describe above to compute or otherwise determine left and right common residual room response segments for convolution with the audio channels 352. That is, residual room response unit 110 may receive the left and right residual room matrices 128A, 128B and combine the respective left and right residual room matrices 128A, 128B over n to generate left and right common residual room response segments. The residual room response unit 354 may perform the combination by, in some instances, averaging the left and right residual room matrices 128A, 128B over n.
The residual room response unit 354 may then compute a fast convolution of the left and right common residual room response segments with at least one of audio channel 352. In some examples, the residual room response unit 352 may receive, from the BRIR conditioning unit 106, a value for an onset time of the common residual room response segments. Residual room response unit 354 may zero-pad or otherwise delay the output signals 134A, 134B in anticipation of combination with earlier segments for the BRIR filters 108. The output signals 134A may represent left audio signals while the output signals 134B may represent right audio signals.
The per-channel truncated filter unit 356 (hereinafter “truncated filter unit 356”) may apply the HRTF and early reflection segments of the BRIR filters to the channels 352. More specifically, the per-channel truncated filter unit 356 may apply the matrixes 129A and 129B representative of the HRTF and early reflection segments of the BRIR filters to each one of the channels 352. In some instances, the matrixes 129A and 129B may be combined to form a single matrix 129. Moreover, typically, there is a left one of each of the HRTF and early reflection matrices 129A and 129B and a right one of each of the HRTF and early reflection matrices 129A and 129B. That is, there is typically an HRTF and early reflection matrix for the left ear and the right ear. The per-channel direction unit 356 may apply each of the left and right matrixes 129A, 129B to output left and right filtered channels 358A and 358B. The combination unit 116 may combine (or, in other words, mix) the left filtered channels 358A with the output signals 134A, while combining (or, in other words, mixing) the right filtered channels 358B with the output signals 134B to produce binaural output signals 136A, 136B. The binaural output signal 136A may correspond to a left audio channel, and the binaural output signal 136B may correspond to a right audio channel.
In some examples, the binaural rendering unit 351 may invoke the residual room response unit 354 and the per-channel truncated filter unit 356 concurrent to one another such that the residual room response unit 354 operates concurrent to the operation of the per-channel truncated filter unit 356. That is, in some examples, the residual room response unit 354 may operate in parallel (but often not simultaneously) with the per-channel truncated filter unit 356, often to improve the speed with which the binaural output signals 136A, 136B may be generated. While shown in various FIGS. above as potentially operating in a cascaded fashion, the techniques may provide for concurrent or parallel operation of any of the units or modules described in this disclosure, unless specifically indicated otherwise.
The process 380 performs this decomposition by analyzing the BRIRs to eliminate inaudible components and determine components which comprise the HRTF/early reflections and components due to late reflections/diffusion. This results in an FIR filter of length, as one example, 2704 taps, for part (a) and an FIR filter of length, as another example, 15232 taps for part (b). According to the process 380, the audio playback device 350 may apply only the shorter FIR filters to each of the individual n channels, which is assumed to be 22 for purposes of illustration, in operation 396. The complexity of this operation may be represented in the first part of computation (using a 4096 point FFT) in Equation (8) reproduced below. In the process 380, the audio playback device 350 may apply the common ‘reverb tail’ not to each of the 22 channels but rather to an additive mix of them all in operation 398. This complexity is represented in the second half of the complexity calculation in Equation (8), again which is shown in the attached Appendix.
In this respect, the process 380 may represent a method of binaural audio rendering that generates a composite audio signal, based on mixing audio content from a plurality of N channels. In addition, process 380 may further align the composite audio signal, by a delay, with the output of N channel filters, wherein each channel filter includes a truncated BRIR filter. Moreover, in process 380, the audio playback device 350 may then filter the aligned composite audio signal with a common synthetic residual room impulse response in operation 398 and mix the output of each channel filter with the filtered aligned composite audio signal in operations 390L and 390R for the left and right components of binaural audio output 388L, 388R.
In some examples, the truncated BRIR filter and the common synthetic residual impulse response are pre-loaded in a memory.
In some examples, the filtering of the aligned composite audio signal is performed in a temporal frequency domain.
In some examples, the filtering of the aligned composite audio signal is performed in a time domain through a convolution.
In some examples, the truncated BRIR filter and common synthetic residual impulse response is based on a decomposition analysis.
In some examples, the decomposition analysis is performed on each of N room impulse responses, and results in N truncated room impulse responses and N residual impulse responses (where N may be denoted as n or n above).
In some examples, the truncated impulse response represents less than forty percent of the total length of each room impulse response.
In some examples, the truncated impulse response includes a tap range between 111 and 17,830.
In some examples, each of the N residual impulse responses is combined into a common synthetic residual room response that reduces complexity.
In some examples, mixing the output of each channel filter with the filtered aligned composite audio signal includes a first set of mixing for a left speaker output, and a second set of mixing for a right speaker output.
In various examples, the method of the various examples of process 380 described above or any combination thereof may be performed by a device comprising a memory and one or more processors, an apparatus comprising means for performing each step of the method, and one or more processors that perform each step of the method by executing instructions stored on a non-transitory computer-readable storage medium.
Moreover, any of the specific features set forth in any of the examples described above may be combined into a beneficial example of the described techniques. That is, any of the specific features are generally applicable to all examples of the techniques. Various examples of the techniques have been described.
The techniques described in this disclosure may in some instances identify only samples 111 to 17830 across BRIR set that are audible. Calculating a mixing time Tmp95 from the volume of an example room, the techniques may then let all BRIRs share a common reverb tail after 53.6 ms, resulting in a 15232 sample long common reverb tail and remaining 2704 sample HRTF+reflection impulses, with 3 ms crossfade between them. In terms of a computational cost break down, the following may be arrived at
As a result, a final figure of Merit may therefore approximately equal Cmod=max(100*(Cconv−C)/Cconv,0)=88.0, where:
C
mod=max(100*(Cconv−C)/Cconv,0), (6)
where Cconv, is an estimate of an unoptimized implementation:
C
conv=(22+2)*(10)*(6*log2(2*48000/10)), (7)
C, is some aspect, may be determined by two additive factors:
Thus, in some aspects, the figure of merit, Cmod=87.35.
A BRIR filter denoted as Bn(z) may be decomposed into two functions BTn(z) and BRn(z), which denote the truncated BRIR filter and the reverb BRIR filter, respectively. Part (a) noted above may refer to this truncated BRIR filter, while part (b) above may refer to the reverb BRIR filter. Bn(z) may then equal BTn(z)+(z−m* BRn(z)), where m denotes the delay. The output signal Y(z) may therefore be computed as:
Σn=0N-1[Xn(z)·BTn(z)+z−m·Xn(z)*BRn(z)] (9)
The process 380 may analyze the BRn(z) to derive a common synthetic reverb tail segment, where this common BR(z) may be applied instead of the channel specific BRn(z). When this common (or channel general) synthetic BR(z) is used, Y(z) may be computed as:
Σn=0N-1[Xn(z)·BTn(z)+z−mBRn(z)]·Σn=0N-1Xn(z) (10)
As shown in the example of
In some examples, audio playback device 400 includes an audio decoding unit configured to decode the encoded audio data so as to generate the SHCs 422. The audio decoding unit may perform an audio decoding process that is in some aspects reciprocal to the audio encoding process used to encode SHCs 422. The audio decoding unit may include a time-frequency analysis unit configured to transform SHCs of encoded audio data from the time domain to the frequency domain, thereby generating the SHCs 422. That is, when the encoded audio data represents a compressed form of the SHC 422 that is not converted from the time domain to the frequency domain, the audio decoding unit may invoke the time-frequency analysis unit to convert the SHCs from the time domain to the frequency domain so as to generate SHCs 422 (specified in the frequency domain).
The time-frequency analysis unit may apply any form of Fourier-based transform, including a fast Fourier transform (FFT), a discrete cosine transform (DCT), a modified discrete cosine transform (MDCT), and a discrete sine transform (DST) to provide a few examples, to transform the SHCs from the time domain to SHCs 422 in the frequency domain. In some instances, SHCs 422 may already be specified in the frequency domain in bitstream 420. In these instances, the time-frequency analysis unit may pass SHCs 422 to the binaural rendering unit 402 without applying a transform or otherwise transforming the received SHCs 422. While described with respect to SHCs 422 specified in the frequency domain, the techniques may be performed with respect to SHCs 422 specified in the time domain.
Binaural rendering unit 402 represents a unit configured to binauralize SHCs 422. Binaural rendering unit 402 may, in other words, represent a unit configured to render the SHCs 422 to a left and right channel, which may feature spatialization to model how the left and right channel would be heard by a listener in a room in which the SHCs 422 were recorded. The binaural rendering unit 402 may render SHCs 422 to generate a left channel 436A and a right channel 436B (which may collectively be referred to as “channels 436”) suitable for playback via a headset, such as headphones. As shown in the example of
The binaural rendering unit 402 may invoke the interpolation unit 406 to interpolate irregular BRIR filters 407A so as to generate interpolated regular BRIR filters 407C, where reference to “regular” or “irregular’ in the context of BRIR filters may denote a regularity or irregularity of the spacing of speakers relative to one another. The irregular BRIR filters 407A may be of size equal to L×2 (where L denotes a number of loudspeakers). The regular BRIR filters 407A may comprise L loudspeakers×2 (given that these are regularly arranged as pairs). A user or other operator of the audio playback device 400 may indicate or otherwise configure whether the irregular BRIR filters 407A or the regular BRIR filters 407B are to be used during binauralization of the SHC 422.
Moreover, the user or other operator of the audio playback device 400 may indicate or otherwise configure whether, when the irregular BRIR filters 407A are to be used during binauralization of the SHC 422, interpolation is to be performed with respect to the irregular BRIR filters 407A to generate the regular BRIR filters 407C. The interpolation unit 406 may interpolate the irregular BRIR filters 407B using vector based amplitude panning or other panning techniques to form B number of loudspeaker pairs, resulting in the regular BRIR filters 407C having a size of L×2 (again given that this is regular and therefore symmetric about an axis). Although not shown in the example of
In any event, when the BRIR filters 407A-407C (depending on which is selected to binauralize the SHC 422) are presented in the time domain, the binaural rendering unit 402 may invoke time-frequency analysis unit 408 to transform the selected one of BRIR filters 407A-407C (“BRIR filters 407”) from the time domain to the frequency domain, resulting in transformed BRIR filters 409A-409C (“BRIR filters 409”), respectively. The complex BRIR unit 410 represents a unit configured to perform an element-by-element complex multiplication and summation with respect to one of an irregular renderer 405A (having a of size L×(N+1)2) or a regular renderer 405B (having a of size L×(N+1)2) and one or more BRIR filter 409 to generate two BRIR rendering vectors 411A and 411B, each of size L×(N+1)2, where N again denotes the highest order of the spherical basis functions to which one or more of the SHC 422 correspond.
Depending on whether the selected one of BRIR filters 407 is regular or irregular, the complex BRIR unit 410 may select either the irregular renderer 405A or the regular renderer 405B. That is, as one example, when the selected one of BRIR filters 407 is regular (e.g., BRIR filter 407B or 407C), the complex BRIR unit 410 selects regular renderer 405B. When the selected one of BRIR filters 407 is irregular (e.g., BRIR filter 407A), the complex BRIR unit 410 selects irregular renderer 405A. In some examples, the user or other operator of the audio playback device 400 may indicate or otherwise select whether to use irregular renderer 405A or regular renderer 405B. In some examples, the user or other operator of the audio playback device 400 may indicate or otherwise select whether to use irregular renderer 405A or regular renderer 405B rather than select to use one of the BRIR filters 407 (where selection of the renderer 405A or 405B enables the selection of the one of BRIR filters 407, e.g., selecting the regular renderer 405B results in the selection of BRIR filters 407B and/or 407C and selecting the irregular renderer 405A results in the selection of BRIR filters 407A).
Summation unit 442 may represent a unit that sums each of BRIR rendering vectors 411A and 411B over L to generate summed BRIR rendering vectors 413A and 413B. The windowing unit may represent a unit that applies a windowing function to each of summed BRIR rendering vectors 413A and 413B to generate windowed BRIR rendering vectors 415A and 415B. Examples of windowing functions may include a maxRE windowing function, an in-phase windowing function and a Kaiser windowing function. The complex multiplication unit 416 represents a unit that performs an element-by-element complex multiplication of the SHC 422 by each of vectors 415A and 415B to generate left modified SHC 417A and right modified SHC 417B.
The binaural rendering unit 402 may then invoke either of the symmetric optimization unit 418 or the non-symmetric optimization unit 420, potentially based on configuration data entered by the user or other operator of the audio playback device 400. That is, when the user specifies that the irregular BRIR filters 407A are to be used during binauralization of the SHC 422, the binaural rendering unit 402 may determine whether the irregular BRIR filters 407A are symmetric or non-symmetric. That is, not all irregular BRIR filters 407A are non-symmetric, but may be symmetric. When the irregular BRIR filters 407A is symmetric but not regularly spaced, the binaural rendering unit 402 invokes the symmetric optimization unit 418 to optimize rendering of the left and right modified SHC 417A and 417B. When the irregular BRIR filters 407A are non-symmetric, the binaural rendering unit 402 invokes the non-symmetric optimization unit 420 to optimize the rendering of the left and right modified SHC 417A and 417B. When the regular BRIR filters 407B or 407C are selected, the binaural rendering unit 402 invokes the symmetric optimization unit 420 to optimize the rendering of the left and right modified SHC 417A and 417B.
The symmetric optimization unit 418, when invoked, may sum only one of the left or right modified SHC 417A and 417B over the n orders and m sub-orders. That is, the symmetric optimization unit 418 may sum SHC 417A over the n orders and m sub-orders to generate frequency domain left speaker feed 419A. The symmetric optimization unit 418 may then invert those of SHC 417A associated with a spherical basis function having a negative sub-order and then sum over this inverted version of SHC 417A over the n orders and m sub-orders to generate the frequency domain right speaker feed 419B. The non-symmetric optimization unit 420, when invoked, sums each of the left modified SHC 417A and the right modified SHC 417B over the n orders and m sub-orders to generate the frequency domain left speaker feed 421A and the frequency domain right speaker feed 421B, respectively. The inverse time frequency analysis unit 422 may represent a unit to transform either the frequency domain left speaker feed 419A or 421A and either the corresponding frequency domain right speaker feed 419B or 421A from the frequency domain to the time domain so as to generate the left speaker feed 436A and the right speaker feed 436B.
In this way, the techniques enable a device 400 comprising one or more processors to apply a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field in three dimensions so as to render the sound field.
In some examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply an irregular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, wherein the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers.
In some examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply a regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, wherein the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers.
In some examples, the one or more processors are further configured to interpolate an irregular binaural room impulse response filter to generate a regular binaural room impulse response filter. In these and other examples, the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers and the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers. In these and other examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the one or more processors are further configured to apply a windowing function to the binaural room impulse response filter to generate a windowed binaural room impulse response filter. In these and other examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the windowed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the one or more processors are further configured to transform the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter. In these and other examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the transformed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the one or more processors are further configured to transform the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter, and transform the spherical harmonic coefficients from the time domain to the frequency domain so as to generate a transformed spherical harmonic coefficients. In these and other examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the transformed binaural room impulse response filter to the transformed spherical harmonic coefficients so as to render a frequency domain representation of the sound field. In these and other examples, the one or more processors are further configured to apply an inverse transform to the frequency domain representation of the sound field to render the sound field.
However, audio playback device 500 may also include an order reduction unit 504 that processes inbound SHCs 422 to reduce an order or sub-order of the SHCs 422 to generate order reduced SHCs 502. The order reduction unit 504 may perform this order reduction based on an analysis, such as an energy analysis, a directionality analysis, and other forms of analysis or combinations thereof, of the SHC 422 to remove one or more sub-orders, m, or orders, n, from the SHC 422. The energy analysis may involve performing a singular value decomposition with respect to the SHC 422. The directionality analysis may also involve performing a singular value decomposition with respect to the SHC 422. The SHC 502 may therefore include less orders and/or sub-orders than SHC 422.
The order reduction unit 504 may also generate order reduction data 506 identifying the orders and/or sub-orders of the SHC 422 that were removed to generate the SHC 502. The order reduction unit 504 may provide this order reduction data 506 and the order-reduced SHC 502 to the binaural rendering unit 402. The binaural rendering unit 402 of the audio playback device 500 may function substantially similar to the binaural rendering unit 402 of the audio playback device 400, except that the binaural rendering unit 402 of the audio playback device 500 may alter various ones of the renderers 405 based on the order reduced SHC 502, while also operating with respect to the order reduced SHC 502 (rather than the non-order reduced SHC 422). The binaural rendering unit 402 of the audio playback device 500 may alter, modify or determine the renderers 405 based on the order reduction data 506 by, at least in part, removing those portions of the renderers 405 responsible for rendering the removed orders and/or sub-orders of the SHC 422. Performing order reduction may reduce computational complexity (in terms of processor cycles and/or memory consumption) associated with binauralization of the SHC 422, generally without significantly impacting audio playback (in terms of introducing noticeable artifacts or otherwise distorting playback of the sound field as intended).
The techniques described in this disclosure and shown in the example of
After the complex multiplication of the appropriate renderer of renderers 405A, 406B with the BRIR set to be used, the outputted signals 411A, 411B may be summed over the L dimension to produce binauralized HOA renderer signals 413A, 413B. To further enhance the rendering a window block may be included so that the weighting of n, m (where m is an HOA sub-order) over frequency can be changed using windowing functions such as maxRe, in-phase or Kaiser. Those windows may help meet traditional Ambisonics criteria set out by Gerzon that gives objective measures to meet psychoacoustic criteria. After this optional window, the binaural rendering unit 402 complex multiples the HOA signal with the binauralized HOA renderer signals 415A, 415B to produce binaural HOA signals 417A, 417B (these are examples of what are described elsewhere in this disclosure as left, right modified SHCs 417A, 417B). The techniques may also allow for Symmetrical BRIR Optimization in some instances. If binaural rendering unit 402 applies non-symmetrical optimization, the binaural rendering unit 402 sums the n, m HOA coefficients for the left and right channels. If however, binaural rendering unit 402 applies symmetrical optimization, binaural rendering unit 402 sums and outputs n, m HOA coefficients for the left channel. But due to symmetry of the spherical harmonic basis functions, the values for m<0 are inverted prior to the summation. This symmetry may be applied backwards throughout the techniques described above, where only the left side of the BRIR set is determined. Binaural rendering unit 402 may transform the left and right signals back to the time-domain (inverse transform) for binaural output 436A, 436B.
In this way, the techniques may a) include 3D (not just 2D), b) binauralization of higher order Ambisonics (not just first order Ambisonics), c) application of regular or irregular BRIR sets, d) interpolation of BRIRs from irregular to regular BRIR sets, e) windowing of the BRIR signal to better match Ambisonics reproduction criteria; and f) potentially improve computationally efficiency by, at least in part, taking advantage of frequency-domain computation, rather than time-domain computation.
The extraction unit 404 may extract encoded audio data from bitstream 420. The extraction unit 404 may forward the extracted encoded audio data in the form of spherical harmonic coefficients (SHCs) 422 (which may also be referred to a higher order ambisonics (HOA) in that the SHCs 422 may include at least one coefficient associated with an order greater than one) to the binaural rendering unit 146 (600). Assuming that the SHCs 422 are already be specified in the frequency domain in bitstream 420, the time-frequency analysis unit may pass SHCs 422 to the binaural rendering unit 402 without applying a transform or otherwise transforming the received SHCs 422. While described with respect to SHCs 422 specified in the frequency domain, the techniques may be performed with respect to SHCs 422 specified in the time domain.
In any event, the binaural rendering unit 402 may, in other words, represent a unit configured to render the SHCs 422 to a left and right channel, which may feature spatialization to model how the left and right channel would be heard by a listener in a room in which the SHCs 422 were recorded. The binaural rendering unit 402 may render SHCs 422 to generate a left channel 436A and a right channel 436B (which may collectively be referred to as “channels 436”) suitable for playback via a headset, such as headphones.
The binaural rendering unit 402 may receive user configuration data 603 to determine whether to perform binaural rendering with respect to irregular BRIR filter 407A, regular BRIR filter 407B and/or interpolated BRIR filter 407C. In other words, the binaural rendering unit 402 may receive the user configuration data 603 selecting which of filters 407 should be used when performing binauralization of the SHC 422 (602). User configuration data 603 may represent an example of signal 426 of FIGS. 13-14. When the user configuration data 603 specifies that the regular BRIR filter 407B is to be used (“YES” 604), the binaural rendering unit 402 selects the regular BRIR filter 407B and the regular renderer 405B (606). When the user configuration data 603 indicates that the irregular BRIR filter 407A is to be used (“NO” 604) without interpolating this filter 407A (“NO” 608), the binaural rendering unit 402 selects the irregular BRIR filter 407A and the irregular renderer 405A (610). When the user configuration data 603 indicates that the irregular BRIR filter 407A is to be used (“NO” 604) but that this filter 407A is to be interpolated (“YES” 608), the binaural rendering unit 402 selects the interpolated BRIR filter 407C (after invoking interpolation unit 406 to interpolate the selected filter 407A to generate the filter 407C) and the regular renderer 405B (612).
In any event, when the BRIR filters 407A-407C (depending on which is selected to binauralize the SHC 422) are presented in the time domain, the binaural rendering unit 402 may invoke time-frequency analysis unit 408 to transform the selected one of BRIR filters 407A-407C (“BRIR filters 407”) from the time domain to the frequency domain, resulting in transformed BRIR filters 409A-409C (“BRIR filters 409”), respectively. The complex BRIR unit 410 may perform an element-by-element complex multiplication and summation with respect to the selected one of renderers 405 and the selected one of BRIR filter 409 to generate two BRIR rendering vectors 411A and 411B (614).
Summation unit 442 may sum each of BRIR rendering vectors 411A and 411B over L to generate summed BRIR rendering vectors 413A and 413B (616). The windowing unit may apply a windowing function to each of summed BRIR rendering vectors 413A and 413B to generate windowed BRIR rendering vectors 415A and 415B (618). The complex multiplication unit 416 may then perform an element-by-element complex multiplication of the SHC 422 by each of vectors 415A and 415B to generate left modified SHC 417A and right modified SHC 417B (620).
The binaural rendering unit 402 may then invoke either of the symmetric optimization unit 418 or the non-symmetric optimization unit 420, potentially based on configuration data 603 entered by the user or other operator of the audio playback device 400, as described above.
The symmetric optimization unit 418, when invoked, may sum only one of the left or right modified SHC 417A and 417B over the n orders and m sub-orders. That is, the symmetric optimization unit 418 may sum SHC 417A over the n orders and m sub-orders to generate frequency domain left speaker feed 419A. The symmetric optimization unit 418 may then invert those of SHC 417A associated with a spherical basis function having a negative sub-order and then sum over this version of SHC 417A over the n orders and m sub-orders to generate the frequency domain right speaker feed 419A.
The non-symmetric optimization unit 420, when invoked, sums each of the left modified SHC 417A and the right modified SHC 417B over the n orders and m sub-orders to generate the frequency domain left speaker feed 421A and the frequency domain right speaker feed 421B, respectively. The inverse time frequency analysis unit 422 may represent a unit to transform either the frequency domain left speaker feed 419A or 421A and either the corresponding frequency domain right speaker feed 419B or 421A from the frequency domain to the time domain so as to generate the left speaker feed 436A and the right speaker feed 436B. In this way, the binaural rendering unit 402 may perform optimization with respect to one or more of the left and right SHC 417A and 417B to generate the left and right speaker feeds 436A and 436B (622). The audio playback device 400 may continue to operate in the manner described above, extracting and binauralizing the SHC 422 to render the left speaker feed 436A and the right speaker feed 436B (600-622).
The techniques described in this disclosure and shown in the example of
After the complex multiplication of the correct renderer with the correct BRIR signal set, the outputted signals may be summed over the L dimension to produce binauralized HOA renderer signals. To further enhance the rendering a window block may be included so that the weighting of n, m over frequency can be changed using windowing functions such as maxRe, in-phase or Kaiser. Those windows may help meet traditional Ambisonics criteria set out by Gerzon that gives objective measures to meet psychoacoustic criteria. After this optional window the HOA (if in the frequency-domain as depicted in
The techniques may also allow for Symmetrical BRIR Optimization in some instances. If the non-optimized route is performed, then the n, m HOA coefficients may be summed for the left and right channels. If the symmetrical path is selected, the outputted signal for left is the sum of the n, m values, but due to symmetry of the spherical harmonic basis functions, the value of m<0 are inverted prior to the summation. This symmetry may be applied backwards throughout the techniques described above, where only the left side of the BRIR set is determined. The left and right signals may then be transformed back to the time-domain (inverse transform) for binaural output.
The techniques may a) include 3D (not just 2D), b) binauralize higher order Ambisonics (not just first order Ambisonics), c) apply regular or irregular BRIR sets, d) perform interpolation of BRIRs from irregular to regular BRIR sets, e) performing windowing of the BRIR signal to better match Ambisonics reproduction criteria; and f) potentially improve computationally efficiency by, at least in part, taking advantage of frequency-domain computation, rather than time-domain computation (again, as depicted in
In addition to or as an alternative to the above, the following examples are described. The features described in any of the following examples may be utilized with any of the other examples described herein.
One example is directed to a method of binaural audio rendering comprising applying a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field in three dimensions so as to render the sound field.
In some examples, applying the binaural room impulse response filter comprises applying an irregular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, wherein the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers.
In some examples, applying the binaural room impulse response filter comprises applying a regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, wherein the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers.
In some examples, an order of spherical basis functions to which the spherical harmonic coefficients correspond is greater than one.
In some examples, the method further comprises interpolating an irregular binaural room impulse response filter to generate a regular binaural room impulse response filter, wherein the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers and the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers, and applying the binaural room impulse response filter comprises applying the regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the method further comprises applying a windowing function to the binaural room impulse response filter to generate a windowed binaural room impulse response filter, and applying the binaural room impulse response filter comprises applying the windowed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the method further comprises transforming the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter, and applying the binaural room impulse response filter comprises applying the transformed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the method further comprises transforming the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter; and transforming the spherical harmonic coefficients from the time domain to the frequency domain so as to generate a transformed spherical harmonic coefficients, wherein applying the binaural room impulse response filter comprises applying the transformed binaural room impulse response filter to the transformed spherical harmonic coefficients so as to render a frequency domain representation of the sound field, and wherein the method further comprises applying an inverse transform to the frequency domain representation of the sound field to render the sound field.
One example is directed to a device comprising one or more processors configured to apply a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field in three dimensions so as to render the sound field.
In some examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply an irregular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, wherein the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers.
In some examples, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply a regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, wherein the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers.
In some examples, an order of spherical basis functions to which the spherical harmonic coefficients correspond is greater than one.
In some examples, the one or more processors are further configured to interpolate an irregular binaural room impulse response filter to generate a regular binaural room impulse response filter, wherein the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers and the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers, and the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the one or more processors are further configured to apply a windowing function to the binaural room impulse response filter to generate a windowed binaural room impulse response filter, and the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the windowed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the one or more processors are further configured to transform the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter, and the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the transformed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the one or more processors are further configured to transform the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter, and transform the spherical harmonic coefficients from the time domain to the frequency domain so as to generate a transformed spherical harmonic coefficients, the one or more processors are further configured to, when applying the binaural room impulse response filter, apply the transformed binaural room impulse response filter to the transformed spherical harmonic coefficients so as to render a frequency domain representation of the sound field, and the one or more processors are further configured to apply an inverse transform to the frequency domain representation of the sound field to render the sound field.
One example is directed to a device comprising means for determining spherical harmonic coefficients representative of a sound field in three dimensions; and means for applying a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field so as to render the sound field.
In some examples, the means for applying the binaural room impulse response filter comprises means for applying an irregular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, and the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers.
In some examples, the means for applying the binaural room impulse response filter comprises means for applying a regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field, and the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers.
In some examples, an order of spherical basis functions to which the spherical harmonic coefficients correspond is greater than one.
In some examples, the device further comprises means for interpolating an irregular binaural room impulse response filter to generate a regular binaural room impulse response filter, the irregular binaural room impulse response filters comprises one or more binaural room impulse response filters for an irregular arrangement of speakers and the regular binaural room impulse response filters comprises one or more binaural room impulse response filters for a regular arrangement of speakers, and the means for applying the binaural room impulse response filter comprises means for applying the regular binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the device further comprises means for applying a windowing function to the binaural room impulse response filter to generate a windowed binaural room impulse response filter, and the means for applying the binaural room impulse response filter comprises means for applying the windowed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the device further comprises means for transforming the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter, and the means for applying the binaural room impulse response filter comprises means for applying the transformed binaural room impulse response filter to the spherical harmonic coefficients so as to render the sound field.
In some examples, the device further comprises means for transforming the binaural room impulse response filter from a time domain to a frequency domain so as to generate a transformed binaural room impulse response filter; and means for transforming the spherical harmonic coefficients from the time domain to the frequency domain so as to generate a transformed spherical harmonic coefficients, and the means for applying the binaural room impulse response filter comprises means for applying the transformed binaural room impulse response filter to the transformed spherical harmonic coefficients so as to render a frequency domain representation of the sound field, and the device further comprises means for applying an inverse transform to the frequency domain representation of the sound field to render the sound field.
One example is directed to a non-transitory computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to apply a binaural room impulse response filter to spherical harmonic coefficients representative of a sound field in three dimensions so as to render the sound field.
Moreover, any of the specific features set forth in any of the examples described above may be combined into a beneficial example of the described techniques. That is, any of the specific features are generally applicable to all examples of the invention. Various examples of the invention have been described.
It should be understood that, depending on the example, certain acts or events of any of the methods described herein can be performed in a different sequence, may be added, merged, or left out altogether (e.g., not all described acts or events are necessary for the practice of the method). Moreover, in certain examples, acts or events may be performed concurrently, e.g., through multi-threaded processing, interrupt processing, or multiple processors, rather than sequentially. In addition, while certain aspects of this disclosure are described as being performed by a single device, module or unit for purposes of clarity, it should be understood that the techniques of this disclosure may be performed by a combination of devices, units or modules.
In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to a tangible medium such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another, e.g., according to a communication protocol.
In this manner, computer-readable media generally may correspond to (1) tangible computer-readable storage media which is non-transitory or (2) a communication medium such as a signal or carrier wave. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
By way of example, and not limitation, such computer-readable storage media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium.
It should be understood, however, that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transient media, but are instead directed to non-transient, tangible storage media. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term “processor,” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and/or software modules configured for encoding and decoding, or incorporated in a combined codec. Also, the techniques could be fully implemented in one or more circuits or logic elements.
The techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of ICs (e.g., a chip set). Various components, modules, or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require realization by different hardware units. Rather, as described above, various units may be combined in a codec hardware unit or provided by a collection of interoperative hardware units, including one or more processors as described above, in conjunction with suitable software and/or firmware.
Various embodiments of the techniques have been described. These and other embodiments are within the scope of the following claims.
This application claims the benefit of U.S. Provisional Patent Application No. 61/828,620, filed May 29, 2013, U.S. Provisional Patent Application No. 61/847,543, filed Jul. 17, 2013, U.S. Provisional Application No. 61/886,593, filed Oct. 3, 2013, and U.S. Provisional Application No. 61/886,620, filed Oct. 3, 2013.
Number | Date | Country | |
---|---|---|---|
61828620 | May 2013 | US | |
61847543 | Jul 2013 | US | |
61886593 | Oct 2013 | US | |
61886620 | Oct 2013 | US |