Selection of quantization schemes for spatial audio parameter coding
By calculating the distortion metric and selecting the quantization scheme, the elevation angle and azimuth angle of the audio signal are quantified, which solves the problem of low audio signal coding efficiency in the existing technology and achieves more efficient encoding and decoding effects.
Patent Information
- Application Number
- CN201980079039.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-10-02
- Filing Date
- 2019-09-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-09-20
AI Technical Summary
When encoding the time-frequency domain direction-related parameters of an audio signal, it is difficult to effectively quantize the direction component in the existing technology, especially when using as few bits as possible, resulting in low coding efficiency.
By calculating the first and second distortion measures of each time-frequency block, the most suitable quantization scheme is selected to quantize the elevation and azimuth angles of the audio frame, using a spherical grid and codebook for vector quantization, combined with mean removal technology to improve quantification efficiency.
It improves the coding efficiency of audio signals, reduces bit requirements, enhances coding quality, and is suitable for spatial audio processing of multi-channel speakers and Ambisonic signals.
Smart Images

Figure CN113228168B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to an apparatus and method for sound field related parameter encoding, but does not exclusively relate to time-frequency domain direction related parameter encoding for audio encoders and decoders. Background Art
[0002] Parametric spatial audio processing is a field of audio signal processing in which a set of parameters is used to describe the spatial aspects of sound. For example, in parametric spatial audio capture from a microphone array, estimating a set of parameters from the microphone array signal, such as the direction of the sound in the frequency band, and the ratio of the directional to non-directional parts of the captured sound in the frequency band, is a typical and effective choice. It is well known that these parameters describe the perceived spatial characteristics of the captured sound at the position of the microphone array. These parameters can be used accordingly in the synthesis of spatial sound for binaural headphones, speakers, or other formats such as Ambisonics.
[0003] Therefore, direction and direct-to-total energy ratio in a frequency band are particularly effective parameterizations for spatial audio capture.
[0004] A parameter set including directional parameters in a frequency band and energy ratio parameters in a frequency band (indicating the directionality of the sound) can also be used as spatial metadata for an audio codec (which can also include other parameters such as extended coherence, surround coherence, number of directions, distance, etc.). For example, these parameters can be estimated from an audio signal captured by a microphone array, and, for example, a stereo signal can be generated from the microphone array signal to be transmitted together with the spatial metadata. The stereo signal can, for example, be encoded with an AAC (Advanced Audio Coding) encoder. The decoder can decode the audio signal into a PCM (Pulse Code Modulation) signal and process the sound in the frequency band (using the spatial metadata) to obtain a spatial output, for example, a binaural output.
[0005] The aforementioned solution is particularly suitable for encoding captured spatial sound from a microphone array (e.g., in a mobile phone, a VR (virtual reality) camera, a stand-alone microphone array). However, it may be desirable for such an encoder to have other input types besides the signal captured by the microphone array, e.g., a speaker signal, an audio object signal, or an Ambisonic signal.
[0006] Analysis of First Order Ambisonics (FOA) input for spatial metadata extraction has been well documented in the scientific literature related to Directional Audio Coding (DirAC) and Harmonic Plane Wave Expansion (Harpex). This is because there are microphone arrays that directly provide FOA signals (more precisely: its variant, B-format signals), and therefore analysis of such input has become a research focus in this field.
[0007] Another input to the encoder is also a multi-channel speaker input, such as a 5.1 or 7.1 channel surround sound input.
[0008] However, as for the directional components, which may include metadata of the resulting direction, elevation, azimuth (and energy ratio for 1 degree of dispersion) for each considered time / frequency subband, quantization of these directional components is a current research topic and it is advantageous for any coding scheme to represent them using as few bits as possible. Summary of the invention
[0009] According to a first aspect, a device is provided, comprising a component for performing the following operations: receiving spatial audio parameters including azimuth and elevation for each time-frequency block of a subband of an audio frame; determining a first distortion metric for the audio frame by determining a first distance metric for each time-frequency block and summing the first distance metric for each time-frequency block, wherein the first distance metric is an approximation of the distance between the elevation angle and the azimuth angle and the quantized elevation angle and the quantized azimuth angle according to a first quantization scheme; determining a second distortion metric for the audio frame by determining a second distance metric for each time-frequency block and summing the second distance metric for each time-frequency block, wherein the second distance metric is an approximation of the distance between the elevation angle and the azimuth angle and the quantized elevation angle and the quantized azimuth angle according to a second quantization scheme; and selecting the first quantization scheme or the second quantization scheme for all time-frequency blocks of the subband of the audio frame to quantize the elevation angle and the azimuth angle, wherein the selection depends on the first distortion metric and the second distortion metric.
[0010] The first quantization scheme may include a component for performing the following operations on a per time-frequency block basis: quantizing the elevation angle by selecting a closest elevation angle value from a set of elevation angle values on a spherical grid, wherein each elevation angle value in the set of elevation angle values is mapped to a set of azimuth angle values on the spherical grid; and quantizing the azimuth angle by selecting the closest azimuth angle value from a set of azimuth angle values, wherein the set of azimuth angle values depends on the closest elevation angle value.
[0011] The number of elevation angle values in the set of elevation angle values may depend on a bit resolution factor for the subframe, and wherein the number of azimuth angle values in the set of azimuth angle values mapped to each elevation angle value may also depend on the bit resolution factor for the subframe.
[0012] The second quantization scheme may include components for performing the following operations: averaging the elevation angles of all time-frequency blocks of a subband of an audio frame to give an average elevation angle value; averaging the azimuth angles of all time-frequency blocks of a subband of an audio frame to give an average azimuth angle value; quantizing the average elevation angle value and the average azimuth angle value; forming a mean-removed azimuth angle vector of the audio frame, wherein each component in the mean-removed azimuth angle vector includes a mean-removed azimuth angle component of a time-frequency block, wherein the mean-removed azimuth angle component of the time-frequency block is formed by subtracting the quantized average azimuth angle value from the azimuth angle associated with the time-frequency block; and vector quantizing the mean-removed azimuth angle vector of the frame by using a codebook.
[0013] The first distance metric may comprise an L2 norm distance between a point on a sphere given by an elevation angle and an azimuth angle and a point on the sphere given by a quantized elevation angle and a quantized azimuth angle according to a first quantization scheme.
[0014] The first distance metric can be given by Given, where θ i is the elevation angle of time-frequency block i, where is the quantized elevation angle of time-frequency block i according to the first quantization scheme, and where Δφ i is an approximation of the distortion between the azimuth of time-frequency block i and the quantized azimuth according to the first quantization scheme.
[0015] An approximation of the distortion between the azimuth angle and the quantized azimuth angle according to the first quantization scheme can be given as 180 degrees divided by n i , where n i is the quantized elevation angle of time-frequency block i according to the first quantization scheme The number of azimuth values in the corresponding set of azimuth values.
[0016] The second distance metric may comprise an L2 norm distance between a point on the sphere given by the elevation angle and the azimuth angle and a point on the sphere given by the quantized elevation angle and the quantized azimuth angle according to the second quantization scheme.
[0017] The second distance metric can be expressed as 1-cosθ av cosθ i cos(Δφ CB (i))-sinθ i sinθ av Given, where θ av is the quantized average elevation angle of the audio frame according to the second quantization scheme, θ i is the elevation angle of time-frequency block i, and Δφ CB (i) is an approximation of the distortion between the azimuth angle of time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme.
[0018] The approximation of the distortion between the azimuth angle of the time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme may be a value associated with the codebook.
[0019] According to a second aspect, a method is provided, which includes: receiving spatial audio parameters including azimuth and elevation for each time-frequency block of a subband of an audio frame; determining a first distortion metric for the audio frame by determining a first distance metric for each time-frequency block and summing the first distance metric for each time-frequency block, wherein the first distance metric is an approximation of the distance between the elevation angle and the azimuth and the quantized elevation angle and the quantized azimuth according to a first quantization scheme; determining a second distortion metric for the audio frame by determining a second distance metric for each time-frequency block and summing the second distance metric for each time-frequency block, wherein the second distance metric is an approximation of the distance between the elevation angle and the azimuth and the quantized elevation angle and the quantized azimuth according to a second quantization scheme; and selecting the first quantization scheme or the second quantization scheme for all time-frequency blocks of the subband of the audio frame to quantize the elevation angle and the azimuth, wherein the selection depends on the first distortion metric and the second distortion metric.
[0020] The first quantization scheme may include a component for performing the following operations on a per time-frequency block basis: quantizing the elevation angle by selecting a closest elevation angle value from a set of elevation angle values on a spherical grid, wherein each elevation angle value in the set of elevation angle values is mapped to a set of azimuth angle values on the spherical grid; and quantizing the azimuth angle by selecting the closest azimuth angle value from a set of azimuth angle values, wherein the set of azimuth angle values depends on the closest elevation angle value.
[0021] The number of elevation angle values in the set of elevation angle values may depend on a bit resolution factor for the subframe, and wherein the number of azimuth angle values in the set of azimuth angle values mapped to each elevation angle value may also depend on the bit resolution factor for the subframe.
[0022] The second quantization scheme may include components for performing the following operations: averaging the elevation angles of all time-frequency blocks of a subband of an audio frame to give an average elevation angle value; averaging the azimuth angles of all time-frequency blocks of a subband of an audio frame to give an average azimuth angle value; quantizing the average elevation angle value and the average azimuth angle value; forming a mean-removed azimuth angle vector of the audio frame, wherein each component in the mean-removed azimuth angle vector includes a mean-removed azimuth angle component of a time-frequency block, wherein the mean-removed azimuth angle component of the time-frequency block is formed by subtracting the quantized average azimuth angle value from the azimuth angle associated with the time-frequency block; and vector quantizing the mean-removed azimuth angle vector of the frame by using a codebook.
[0023] The first distance metric may comprise an L2 norm distance between a point on a sphere given by an elevation angle and an azimuth angle and a point on the sphere given by a quantized elevation angle and a quantized azimuth angle according to a first quantization scheme.
[0024] The first distance metric can be given by Given, where θ i is the elevation angle of time-frequency block i, where is the quantized elevation angle of time-frequency block i according to the first quantization scheme, and where Δφ i is an approximation of the distortion between the azimuth of time-frequency block i and the quantized azimuth according to the first quantization scheme.
[0025] An approximation of the distortion between the azimuth angle and the quantized azimuth angle according to the first quantization scheme can be given as 180 degrees divided by n i , where n i is the quantized elevation angle of time-frequency block i according to the first quantization scheme The number of azimuth values in the corresponding set of azimuth values.
[0026] The second distance metric may comprise an L2 norm distance between a point on the sphere given by the elevation angle and the azimuth angle and a point on the sphere given by the quantized elevation angle and the quantized azimuth angle according to the second quantization scheme.
[0027] The second distance metric can be expressed as 1-cosθ av cosθ i cos(Δφ CB (i))-sinθ i sinθ av Given, where θ av is the quantized average elevation angle of the audio frame according to the second quantization scheme, θ i is the elevation angle of time-frequency block i, and Δφ CB (i) is an approximation of the distortion between the azimuth angle of time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme.
[0028] The approximation of the distortion between the azimuth angle of the time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme may be a value associated with the codebook.
[0029] According to a third aspect, a device is provided, comprising at least one processor and at least one memory comprising computer program code, wherein the at least one memory and the computer program code are configured to, together with the at least one processor, enable the device to: receive spatial audio parameters including azimuth and elevation for each time-frequency block of a subband of an audio frame; determine a first distortion metric for the audio frame by determining a first distance metric for each time-frequency block and summing the first distance metric for each time-frequency block, wherein the first distance metric is an approximation of the distance between the elevation and azimuth angles and the quantized elevation and quantized azimuth angles according to a first quantization scheme; determine a second distortion metric for the audio frame by determining a second distance metric for each time-frequency block and summing the second distance metric for each time-frequency block, wherein the second distance metric is an approximation of the distance between the elevation and azimuth angles and the quantized elevation and quantized azimuth angles according to a second quantization scheme; and for all time-frequency blocks of the subband of the audio frame, select the first quantization scheme or the second quantization scheme to quantize the elevation and azimuth angles, wherein the selection depends on the first distortion metric and the second distortion metric.
[0030] The first quantization scheme can be performed by the device on a per time-frequency block basis, and the device is configured to: quantize the elevation angle by selecting the closest elevation angle value from a set of elevation angle values on a spherical grid, wherein each elevation angle value in the set of elevation angle values is mapped to a set of azimuth angle values on the spherical grid; and quantize the azimuth angle by selecting the closest azimuth angle value from a set of azimuth angle values, wherein the set of azimuth angle values depends on the closest elevation angle value.
[0031] The number of elevation angle values in the set of elevation angle values may depend on a bit resolution factor for the subframe, and wherein the number of azimuth angle values in the set of azimuth angle values mapped to each elevation angle value may also depend on the bit resolution factor for the subframe.
[0032] A second quantization scheme may be performed by the device, which is caused to: average the elevation angles of all time-frequency blocks of a subband of an audio frame to give an average elevation angle value; average the azimuth angles of all time-frequency blocks of a subband of an audio frame to give an average azimuth angle value; quantize the average elevation angle value and the average azimuth angle value; form a mean-removed azimuth angle vector of the audio frame, wherein each component in the mean-removed azimuth angle vector comprises a mean-removed azimuth angle component of a time-frequency block, wherein the mean-removed azimuth angle component of the time-frequency block is formed by subtracting the quantized average azimuth angle value from the azimuth angle associated with the time-frequency block; and vector quantize the mean-removed azimuth angle vector of the frame by using a codebook.
[0033] The first distance metric may comprise an approximation of the L2 norm distance between a point on a sphere given by the elevation angle and the azimuth angle and a point on the sphere given by the quantized elevation angle and the quantized azimuth angle according to the first quantization scheme.
[0034] The first distance metric can be given by Given, where θ i is the elevation angle of time-frequency block i, where is the quantized elevation angle of time-frequency block i according to the first quantization scheme, and where Δφ i is an approximation of the distortion between the azimuth of time-frequency block i and the quantized azimuth according to the first quantization scheme.
[0035] An approximation of the distortion between the azimuth angle and the quantized azimuth angle according to the first quantization scheme can be given as 180 degrees divided by n i , where n i is the quantized elevation angle of time-frequency block i according to the first quantization scheme The number of azimuth values in the corresponding set of azimuth values.
[0036] The second distance metric may comprise an L2 norm distance between a point on the sphere given by the elevation angle and the azimuth angle and a point on the sphere given by the quantized elevation angle and the quantized azimuth angle according to the second quantization scheme.
[0037] The second distance metric can be expressed as 1-cosθ av cosθ i cos(Δφ CB (i))-sinθ i sinθ av Given, where θ av is the quantized average elevation angle of the audio frame according to the second quantization scheme, θ i is the elevation angle of time-frequency block i, and Δφ CB (i) is an approximation of the distortion between the azimuth angle of time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme.
[0038] The approximation of the distortion between the azimuth angle of the time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme may be a value associated with the codebook.
[0039] According to a fourth aspect, there is provided a computer program [or a computer-readable medium comprising program instructions], which are used to cause an apparatus to: receive spatial audio parameters including azimuth and elevation for each time-frequency block of a subband of an audio frame; determine a first distortion metric for the audio frame by determining a first distance metric for each time-frequency block and summing the first distance metric for each time-frequency block, wherein the first distance metric is an approximation of the distance between the elevation and azimuth angles and the quantized elevation and quantized azimuth angles according to a first quantization scheme; determine a second distortion metric for the audio frame by determining a second distance metric for each time-frequency block and summing the second distance metric for each time-frequency block, wherein the second distance metric is an approximation of the distance between the elevation and azimuth angles and the quantized elevation and quantized azimuth angles according to a second quantization scheme; and for all time-frequency blocks of the subband of the audio frame, select the first quantization scheme or the second quantization scheme to quantize the elevation and azimuth angles, wherein the selection depends on the first distortion metric and the second distortion metric.
[0040] An electronic device may include the apparatus described herein.
[0041] A chipset may include the device described herein.
[0042] The embodiments of the present application are intended to solve the problems associated with the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] For a better understanding of the present application, reference will now be made by way of example to the accompanying drawings, in which:
[0044] Figure 1 schematically illustrates a system suitable for implementing the apparatus of some embodiments;
[0045] Figure 2 schematically illustrates a metadata encoder according to some embodiments;
[0046] Figure 3 According to some embodiments, Figure 2 A flowchart of the operation of the metadata encoder shown in;
[0047] Figure 4 A metadata decoder according to some embodiments is schematically illustrated. DETAILED DESCRIPTION
[0048] Suitable devices and possible mechanisms for providing metadata parameters derived from effective spatial analysis are described in more detail below. In the following discussion, multi-channel systems will be discussed with respect to multi-channel microphone implementations. However, as described above, the input format can be any suitable input format, such as multi-channel speakers, Ambisonic (FOA / HOA), etc. It should be understood that in some embodiments, the channel position is based on the position of the microphone, or is based on a virtual position or direction. In addition, the output of the exemplary system is a multi-channel speaker arrangement. However, it should be understood that the output can be rendered to the user via means other than speakers. In addition, the multi-channel speaker signal can be summarized as two or more playback audio signals.
[0049] For each considered time / frequency subband, the metadata includes at least the elevation, azimuth, and energy ratio of the resulting direction. The directional parameter components, azimuth and elevation are extracted from the audio data and then quantized to a given quantization resolution. The resulting index must be further compressed for efficient transmission. In order to achieve high bit rates, high-quality lossless encoding of the metadata is required.
[0050] The concept discussed below combines a fixed bit rate coding method with a variable bit rate coding that distributes the coding bits for the data to be compressed between different segments so that the total bit rate per frame is fixed. Within a time-frequency block, these bits can be transferred between sub-bands. In addition, the concept discussed below utilizes the changes in the directional parameter components when determining the quantization scheme for the azimuth and elevation values. In other words, the azimuth and elevation values can be quantized using one of multiple quantization schemes on a per-subband and per-subframe basis. A specific quantization scheme can be selected based on a determination process that can be affected by the changes in the directional parameter components. The determination process uses the calculation of a quantization error distance, which is unique for each quantization scheme.
[0051] about Figure 1 , shows an exemplary device and system for implementing an embodiment of the present application. The system 100 is shown with an "analysis" part 121 and a "synthesis" part 131. The "analysis" part 121 is the part from receiving the multi-channel loudspeaker signal until the encoding of the metadata and the downmix signal, and the "synthesis" part 131 is the part from decoding the encoded metadata and downmix signal to presenting the regenerated signal (e.g. in the form of a multi-channel loudspeaker).
[0052] The input to the system 100 and the "analysis" section 121 is a multi-channel signal 102. In the example below, a microphone channel signal input is described, however, in other embodiments any suitable input (or synthesized multi-channel) format may be implemented. For example, in some embodiments, a spatial analyzer and spatial analysis may be implemented external to the encoder. For example, in some embodiments, spatial metadata associated with the audio signal may be provided to the encoder as a separate bitstream. In some embodiments, the spatial metadata may be provided as a set of spatial (directional) index values.
[0053] The multi-channel signal is passed to the down-mixer 103 and the analysis processor 105 .
[0054] In some embodiments, down mixer 103 is configured to receive a multi-channel signal, mix the signal down to a determined number of channels, and output a down-mixed signal 104. For example, down mixer 103 can be configured to generate a 2-audio channel down-mix of the multi-channel signal. The determined number of channels can be any suitable number of channels. In some embodiments, down mixer 103 is optional, and the multi-channel signal is passed to encoder 107 in the same manner as the down-mixed signal in this example without being processed.
[0055] In some embodiments, the analysis processor 105 is also configured to receive the multichannel signals and analyze these signals to generate metadata 106 associated with the multichannel signals and therefore associated with the downmix signal 104. The analysis processor 105 can be configured to generate metadata, which can include direction parameters 108 and energy ratio parameters 110 (and in some embodiments also include coherence parameters, and diffuseness parameters) for each time-frequency analysis interval. In some embodiments, the direction and energy ratio can be considered as spatial audio parameters. In other words, the spatial audio parameters include parameters intended to characterize the sound field created by the multichannel signal (or generally, two or more playback audio signals).
[0056] In some embodiments, the parameters generated may differ from band to band. Thus, for example, in band X, all parameters are generated and transmitted, while in band Y, only one of the parameters is generated and transmitted, and further, in band Z, no parameters are generated or transmitted. A practical example of this may be that for some bands, such as the highest frequency band, some parameters are not required for perceptual reasons. The downmix signal 104 and the metadata 106 may be passed to the encoder 107.
[0057] The encoder 107 may include an audio encoder core 109 configured to receive the downmix (or other) signals 104 and generate a suitable encoding of these audio signals. In some embodiments, the encoder 107 may be a computer (running suitable software stored on a memory and on at least one processor), or alternatively may be a specific device, such as using an FPGA or ASIC. The encoding may be implemented using any suitable scheme. In addition, the encoder 107 may include a metadata encoder / quantizer 111 configured to receive metadata and output information in an encoded or compressed form. In some embodiments, Figure 1 The encoder 107 may further interleave, multiplex into a single data stream or embed metadata into the encoded downmix signal before transmission or storage as indicated by the dashed line in FIG. Multiplexing may be achieved using any suitable scheme.
[0058] On the decoder side, the received or acquired data (stream) may be received by a decoder / demultiplexer 133. The decoder / demultiplexer 133 may demultiplex the encoded stream and pass the audio encoded stream to a downmix extractor 135 configured to decode the audio signal to obtain a downmix signal. Similarly, the decoder / demultiplexer 133 may include a metadata extractor 137 configured to receive the encoded metadata and generate the metadata. In some embodiments, the decoder / demultiplexer 133 may be a computer (running suitable software stored in a memory and on at least one processor), or alternatively may be a specific device, for example, utilizing an FPGA or ASIC.
[0059] The decoded metadata and the downmixed audio signal may be passed to a synthesis processor 139 .
[0060] The “Synthesis” portion 131 of the system 100 also shows a synthesis processor 139 that is configured to receive the downmix and metadata and recreate synthesized spatial audio in the form of the multi-channel signal 110 in any suitable format based on the downmix signal and the metadata (which may be a multi-channel speaker format, or in some embodiments any suitable output format such as a binaural or surround sound signal, depending on the use case).
[0061] So, in summary, firstly, the system (analysis part) is configured to receive a multi-channel audio signal.
[0062] The system (analysis part) is in turn configured to generate a downmix or otherwise generate a suitable transmission audio signal (eg by selecting some audio signal channels).
[0063] Next, the system is configured to encode the downmix (or more generally, transmit) signal for storage / transmission.
[0064] Thereafter, the system may store / send the encoded downmix and metadata.
[0065] The system may acquire / receive the encoded downmix and metadata. The system may in turn be configured to extract the downmix and metadata from the encoded downmix and metadata parameters, for example, demultiplex and decode the encoded downmix and metadata parameters.
[0066] The system (synthesis part) is configured to synthesize an output multi-channel audio signal based on the extracted down-mix of the multi-channel audio signal and the metadata.
[0067] about Figure 2 , describes in more detail an exemplary analysis processor 105 and metadata encoder / quantizer 111 (eg, Figure 1 ).
[0068] In some embodiments, the analysis processor 105 comprises a time-frequency domain transformer 201 .
[0069] In some embodiments, the time-frequency domain converter 201 is configured to receive the multi-channel signal 102 and apply a suitable time-frequency domain transform such as a short-time Fourier transform (STFT) to convert the input time domain signal into a suitable time-frequency signal. These time-frequency signals can be passed to the spatial analyzer 203 and the signal analyzer 205.
[0070] Thus, for example, the time-frequency signal 202 may be represented in the time-frequency domain as:
[0071] s i (b,n)
[0072] Where b is the frequency bin index, n is the time-frequency block (frame) index, and i is the channel index. In another expression, n can be considered as a time index with a sampling rate lower than the sampling rate of the original time domain signal. These frequency bins can be grouped into multiple subbands, which group one or more bins into subbands with frequency band index k=0,...,K-1. Each subband k has a minimum bin b k,low and the highest warehouse b k,high , and this subband contains k,low to b k,high The width of the sub-band can be approximated by any suitable distribution. For example, the equivalent rectangular bandwidth (ERB) scale or the Bark scale.
[0073] In some embodiments, the analysis processor 105 comprises a spatial analyzer 203. The spatial analyzer 203 may be configured to receive the time-frequency signals 202 and, based on these signals, estimate the directional parameters 108. The directional parameters may be determined based on any audio-based determination of "direction".
[0074] For example, in some embodiments, spatial analyzer 203 is configured to estimate direction with two or more signal inputs. This represents the simplest configuration for estimating "direction", more complex processing may be performed with even more signals.
[0075] Therefore, the spatial analyzer 203 may be configured to provide, for each frequency band and time-frequency block within a frame of the audio signal, at least one azimuth and elevation angle, denoted as azimuth and elevation, respectively. and the elevation angle θ(k,n). The direction parameter 108 may also be passed to the direction index generator 205 .
[0076] The spatial analyzer 203 may also be configured to determine an energy ratio parameter 110. The energy ratio may be considered as a determination of the energy of an audio signal that may be considered to arrive from a direction. The direct total energy ratio r(k,n) may be estimated, for example, using a stability measure of the direction estimate, or using any correlation measure, or any other suitable method for obtaining a ratio parameter. The energy ratio may be passed to an energy ratio analyzer 221 and an energy ratio combiner 223.
[0077] Thus, in summary, the analysis processor is configured to receive a time domain multi-channel or other format such as microphone or Ambisonics audio signal.
[0078] The analysis processor may then apply a time-domain to frequency-domain transform (eg, STFT) to generate a suitable time-frequency domain signal for analysis, and then apply directional analysis to determine direction and energy ratio parameters.
[0079] The analysis processor may in turn be configured to output the determined parameters.
[0080] Although directions and ratios are expressed herein for each time index n, in some embodiments, the parameters may be combined over several time indexes. As already described, the same applies to the frequency axis, the direction of several frequency bins b may be represented by one direction parameter in a frequency band k comprising several frequency bins b. The same applies to the spatial parameters discussed herein.
[0081] Likewise Figure 2 As shown in , an exemplary metadata encoder / quantizer 111 according to some embodiments is shown.
[0082] The metadata encoder / quantizer 111 may include an energy ratio analyzer (or quantization resolution determiner) 221. The energy ratio analyzer 221 may be configured to receive energy ratios for all time-frequency (TF) blocks in a frame and generate quantization resolutions of directional parameters (in other words, quantization resolutions of elevation values and azimuth values) based on the analysis. Such bit allocation may be defined, for example, by bits_dir0[0:N-1][0:M-1], where N=the number of subbands and M=the number of time-frequency (TF) blocks in a subband. In other words, the array bits_dir0 may be filled with a value of a predetermined number of bits (i.e., a quantization resolution value) for each time-frequency block of the current frame. A specific value of a predetermined number of bits for each time-frequency block may be selected from a set of predetermined values based on the energy ratio of a specific time-frequency block. For example, a specific energy ratio value of a time-frequency (TF) block may determine an initial bit allocation for a time-frequency (TF) block.
[0083] It should be noted that a TF block can be considered as a subframe in time within 1 subband among N subbands.
[0084] For example, in some embodiments, the energy ratio of each time-frequency block can be quantized to 3 bits using a scalar non-uniform quantizer. The bits used for the direction parameters (azimuth and elevation) are allocated according to the table bits_direction[]; if the energy ratio has a quantization index i, the number of bits used for the direction is bits_direction[i].
[0085] const short bits_direction[]={11,11,10,9,8,6,5,3};
[0086] In other words, each entry of bits_dir0[0:N-1][0:M-1] may initially be populated with a value from the bits_direction[] table.
[0087] The metadata encoder / quantizer 111 may include a direction index generator 205. The direction index generator 205 is configured to receive a direction parameter (such as an azimuth angle and elevation angle θ(k,n)) 108 and quantization bit allocation, and thereby generates a quantized output in the form of an index to various tables and codebooks representing quantization direction parameters.
[0088] exist Figure 3 Some operational steps performed by the metadata encoder / quantizer 111 are shown in . These steps may constitute algorithmic processing related to quantization of directional parameters.
[0089] The step of initially obtaining the directional parameters (azimuth and elevation) 108 from the spatial analyzer 203 is shown as processing step 301 .
[0090] The above steps of preparing the initial bit distribution or allocation for each subband (in the form of an array bits_dir0[0:N-1][0:M-1], where N=the number of subbands and M=the number of time-frequency blocks in the subband) are shown as Figure 3 303 of them.
[0091] Initially, the directional index generator 205 may be configured to reduce the number of allocated bits to bits_dir1[0:N-1][0:M-1] so that the sum of the number of allocated bits is equal to the number of available bits remaining after encoding the energy ratio. The reduction in the number of initially allocated bits (in other words, from bits_dir0[0:N-1][0:M-1] to bits_dir1[0:N-1][0:M-1]) may be implemented in some embodiments by the following operations:
[0092] First, uniformly decrease the number of bits on the time-frequency (TF) block, where the number of bits is given by the integer division between the bits to be reduced and the number of TF blocks;
[0093] Secondly, starting from subband 0 time-frequency block 0, the bits that still need to be subtracted are reduced by 1 per time-frequency block.
[0094] This can be achieved, for example, with the following C code:
[0095]
[0096]
[0097] The value MIN_BITS_TF is the minimum accepted value for bit allocation for TF blocks if the total number of bits allows.In some embodiments, a minimum number of bits greater than 0 may be used for each block.
[0098] The directional index generator 205 may in turn be configured to achieve the reduced number of bits allowed to quantize the directional component on a subband-by-subband basis (from i=1 to N-1).
[0099] refer to Figure 3 , the step of reducing the number of bits initially allocated to quantize the directional components on a per-subband basis (bits_dir1[0:N-1][0:M-1], the sum of the number of allocated bits = the number of available bits remaining after coding the energy ratio) is given by Figure 3 Step 305 in FIG.
[0100] In some embodiments, quantization is based on an arrangement of spheres (forming a spherical grid arranged in a ring on a "surface" sphere) that are defined by a lookup table defined by a determined quantization resolution. In other words, the spherical grid uses the concept of covering a sphere with smaller spheres and considering the centers of the smaller spheres as points defining a grid of nearly equidistant directions. The smaller spheres thus define cones or solid angles about the center point that can be indexed according to any suitable indexing algorithm. Although spherical quantization is described herein, any suitable quantization (linear or non-linear) may be used.
[0101] As described above, the bits used for the direction parameters (azimuth and elevation) can be allocated according to the table bits_direction[]. Therefore, the resolution of the spherical grid can also be determined by the energy ratio and the quantization index i of the quantized energy ratio. To this end, the resolution of the spherical grid according to different bit resolutions can be given by the following table:
[0102] const short no_theta[]= / *from 1to 11bits* /
[0103] { / *1,-1bit
[0104] 1,* / / *2bits* /
[0105] 1, / *3bits* /
[0106] 2, / *4 bits* /
[0107] 4, / *5bits* /
[0108] 5, / *6 bits* /
[0109] 6, / *7 bits* /
[0110] 7, / *8 bits* /
[0111] 10, / *9 bits* /
[0112] 14, / *10 bits* /
[0113] 19 / *11bits* /
[0114] };
[0115] const short no_phi[][MAX_NO_THETA]= / *from 1to 11bits* /
[0116] {
[0117] {2},
[0118] {4},
[0119] {4,2}, / *no points at poles* /
[0120] {8,4}, / *no points at poles* /
[0121] {12,7,2,1},
[0122] {14,13,9,2,1},
[0123] {22,21,17,11,3,1},
[0124] {33,32,29,23,17,9,1},
[0125] {48,47,45,41,35,28,20,12,2,1},
[0126] {60,60,58,56,54,50,46,41,36,30,23,17,10,1},
[0127] {89,89,88,86,84,81,77,73,68,63,57,51,44,38,30,23,15,8,1}
[0128] };
[0129] The array or table no_theta specifies the number of elevation values uniformly distributed in the "Northern Hemisphere" of a sphere including the equator. The pattern of elevation values distributed in the "Northern Hemisphere" is repeated for the corresponding "Southern Hemisphere" points. For example, the energy ratio index i=2 results in 5 bits being allocated for the direction parameter. Four elevation values are given from the table / array no_theta, which correspond to four uniformly distributed "Northern Hemisphere" values [0,30,60,90], which also correspond to 4-1=3 negative elevation values (in degrees) [-30,-60,-90]. The array / table no_phi specifies the number of azimuth points for each elevation value in the array no_theta. As can be seen from the example of energy ratio index 6 above, the first elevation value 0 is mapped to 12 equidistant azimuth values as given by the fifth row entry in the array no_phi, and the elevation values 30 and -30 are mapped to 7 equidistant azimuth values as given by the same row entry in the array phi_no. This mapping pattern is repeated for each elevation value.
[0130] For all quantization resolutions, the distribution of elevation values in the "Northern Hemisphere" is roughly given by 90 degrees divided by the number of elevation values "no_theta". A similar rule applies to elevation values below the "equator" to provide a distribution of values in the "Southern Hemisphere". Similarly, a 4-bit spherical grid may have elevation points [0,45] above the equator, and a single elevation point at [-45] degrees below the equator. Similarly, from table no_phi, there are 8 equally spaced azimuth values for the first elevation value [0], and 4 equally spaced azimuth values for the elevation values
[45] and [-45].
[0131] The above provides an example of how to represent a spherical quantization grid, it should be understood that other suitable distributions can also be implemented. For example, a 4-bit spherical grid may only have points [0,45] above the equator, and no points below the equator. Similarly, a 3-bit distribution can be spread over the entire sphere, or restricted to only the equator.
[0132] It should be noted that in the above quantization scheme, the determined quantized elevation values determine a specific set of azimuth values from which the final quantized azimuth value is selected. Therefore, in the following description, the above quantization scheme may be referred to as joint quantization of paired elevation and azimuth values.
[0133] The directional index quantizer 205 may be configured to perform the following steps when quantizing the directional components (elevation and azimuth) for each subband (from i=1 to N-1).
[0134] a. First, the directional index generator 205 may be configured to make a determination based on the calculated number of allowed bits for the current subband. In other words, bits_allowed=sum(bits_dir1[i][0:M-1]).
[0135] b. Subsequently, the directional index generator 205 may be configured to determine the maximum number of bits allocated to a time-frequency block among all the M time-frequency blocks of the current subband. This may be represented as the following pseudo code statement max_b=max(bits_dir1[i][0:M-1].
[0136] refer to Figure 3 , steps a and b are shown as processing step 307 .
[0137] c. After determining max_b, the directional index generator 205 proceeds to decide whether it will jointly encode the elevation and azimuth values for each time-frequency block within the number of bits allocated for the current subband, or whether to perform encoding of the elevation and azimuth values based on further conditional tests.
[0138] refer to Figure 3, the above-mentioned decision step regarding max_b is shown as processing step 309 .
[0139] Further conditional testing can be based on a distance metric based approach. From a pseudo code perspective, this step can be expressed as:
[0140] If(max_b<=4)
[0141] i.Calculate two distances d1 and d2 for the subframes data of the current subband
[0142] ii.If d2 <d1
[0143] VQ encode the elevation and azimuth values for all the TF blocks of the current subband
[0144] iii.Else
[0145] Jointly encode the elevation and azimuth values of each TF blockwithin the number of bits allotted for the current subband.
[0146] iv.End if
[0147] As can be seen from the above pseudo code, initially check max_b, i.e., the maximum number of bits assigned to the time-frequency block in the frame, to determine whether it is lower than a predetermined value. In the above pseudo code, the value is set to 4 bits, but it should be understood that the above algorithm can be configured to adapt to other predetermined values. After determining whether max_b meets the threshold condition, the direction index generator 205 then continues to calculate two separate distance metrics d1 and d2. The value of each distance metric d1 and d2 can be used to determine whether the direction component (elevation and azimuth) is quantized according to the above joint quantization scheme using a table such as no_theta and no_phi as described in the above example, or quantized according to a method based on a quantized vector. The joint quantization scheme quantizes each pair of elevation and azimuth values into a pair based on each time block. However, the vector quantization method hopes to quantize the elevation and azimuth values on all time blocks of the frame, thereby providing the quantized elevation values of all time blocks of the frame and a quantized n-dimensional vector, wherein each component corresponds to the quantized representation of the azimuth value of a specific time block of the frame.
[0148] As described above, the directional components (elevation and azimuth) may be quantized using a spherical grid configuration to quantize the corresponding components. Thus, in an embodiment, both distance metrics d1 and d2 may be based on the L2 norm between two points on the surface of a single sphere, where a point is a distance metric having quantized elevation and azimuth components. The quantized direction value of the other point is the unquantized elevation and azimuth components θ, The unquantized direction value of .
[0149] The distance d1 is given by the following formula, where it can be seen that the distance metric is given by the sum of the L2 norms over the M time-frequency blocks in the current frame, where each L2 norm is a measure of the distance between two points on the spherical grid for each time-frequency block. The first point is the unquantized azimuth and elevation values of the time-frequency block, and the second point is the quantized azimuth and elevation values of the time-frequency block.
[0150]
[0151] For each time-frequency block i, the distortion This can be determined by first quantizing the elevation angle value θ to the closest elevation angle value by using the table no_theta to determine how many uniformly distributed elevation angle values fill the northern and southern hemispheres of the spherical grid. For example, if max_b is determined to be 4 bits, no_theta indicates that there are three possible values for the elevation angle, including 0 and + / -45 degrees. Therefore, in this example, the elevation angle value θ for the time block will be quantized to one of the values 0 and + / -45 degrees to give
[0152] From the above description of the quantization of elevation and azimuth values using the tables no_theta and no_phi, it should be understood that the elevation and azimuth values can be quantized according to these tables. In the above representation, the distortion caused by the quantized azimuth value is given as Among them, it can be seen that phi(φ) is the quantized θ, that is, and the number of uniformly distributed azimuth values n i For example, using the above example, if the quantized θ is is determined to be 0 degrees, then it can be seen from table no_phi that there are eight possible azimuth quantization points, and the azimuth values can be quantized to these azimuth quantization points.
[0153] To simplify the above distortion associated with the quantized azimuth value, angle is approximated to 180 / n degrees, i.e., half the distance between two consecutive points. Therefore, returning to the above example, instead of quantizing the elevation angle value θi The azimuth distortion associated with a time block determined to be 0 degrees may be approximated to 180 / 8 degrees.
[0154] Therefore, for each time-frequency block 1 to M in the current frame, the overall value of the distortion measure d1 for the current frame is given by In other words, the distortion measure d1 reflects a measure of the quantization distortion caused by quantizing the directional components of a time block of a frame according to the above-described joint quantization scheme, wherein the elevation and azimuth values are quantized as a pair on a per time-frequency block basis.
[0155] The distance metric d2 on TF blocks 1 to M of a frame can be expressed as:
[0156]
[0157] Essentially, d2 reflects the quantization distortion measure caused by vector quantization of the elevation and azimuth values over the time-frequency blocks of the frame. In fact, the quantization distortion measure represents the elevation and azimuth values of the frame as a single vector.
[0158] In an embodiment, the vector quantization method may take the following form for each frame.
[0159] 1. (a) First, calculate the average of the elevation angle values of all TF blocks 1 to M of the frame.
[0160] (b) The average of the azimuth values for all TF blocks 1 to M is also calculated. In an embodiment, the average azimuth value may be calculated according to the following C code in order to avoid instances of the type where the "conventional" average of two angles, 270 degrees and 30 degrees, is 150 degrees, but a better physical representation of the average is 330 degrees.
[0161] The azimuth average of the four TF blocks can be calculated according to the following code:
[0162]
[0163]
[0164]
[0165] 2. The second step of the vector quantization method is to determine whether the number of bits allocated to each TF block is below a predetermined value, which in this example is 3 bits when the max_b threshold is set to 4 bits. If the number of bits allocated to each TF block is below the threshold, both the average elevation value and the average azimuth value are quantized according to the tables no_theta and no_phi previously described in conjunction with the d1 distance metric.
[0166] 3. However, if the number of bits allocated to each TF block is greater than a predetermined value, the quantization of the elevation and azimuth values of the M TF blocks of the frame can take a different form. This form may include first quantizing the average elevation and azimuth values as before. However, the number of bits is more than before, for example 7 bits. Then, by finding the difference between the azimuth value corresponding to each TF block and the quantized average azimuth value of the frame, the mean-removed azimuth vector of the frame is found. The number of components in the mean-removed azimuth vector corresponds to the number of TF blocks in the frame. In other words, the mean-removed azimuth vector has a dimension M, where each component is the mean-removed azimuth value of a TF block. In an embodiment, the mean-removed azimuth vector can then be quantized using a trained VQ codebook from a plurality of VQ codebooks. As previously described, the number of bits available for quantizing the directional components (azimuth and elevation) can vary depending on the two frames in succession. Therefore, there may be multiple VQ codebooks, each with a different number of vectors depending on the "bit size" of the codebook.
[0167] Now we can determine the distortion measure d2 for the frame according to the above formula. av is the average value of the elevation angle of the TF block in the current subband, N av is the number of bits that will be used to quantize the average direction using the method according to tables no_theta and no_phi. CB (∑ j=1 n j -N av ) is the mean removed azimuth vector from the trained mean removed azimuth VQ codebook, and the corresponding number of bits is ∑ j=1 n j -N av -1 (the total number of bits in the current subband minus the number of bits used in the averaging direction, minus 1 bit used for the signal between joint quantization and vector quantization). That is, for the j=1 n j -N av For every possible bit combination given by -1, there is a trained VQ codebook, which is then searched to provide the best mean error azimuth vector. In an embodiment, the azimuth distortion Δφ CB (∑ j=1 n j -N av -1) is approximated by having a predetermined distortion value for each codebook. Typically, this value is obtained during the process of training the codebook, in other words, it can be the average error obtained when training the codebook using a database of training vectors.
[0168] refer to Figure 3, the above processing steps related to the calculation of the distance metrics d1 and d2 and the associated quantization of the directional parameters according to the values of d1 and d2 are shown as processing steps 311. For clarity, these processing steps include quantization of the directional parameters, and the quantization is selected as joint quantization or vector quantization for the TF blocks in the current frame.
[0169] It should be understood that in order to select between the described joint coding scheme or the described VQ coding scheme to perform quantization of the M directional components (elevation and azimuth values) within a subband, Figure 3 The quantization scheme of 311 calculates distance metrics d1 and d2 to select between the encoding schemes. However, the distance metrics d1 and d2 do not completely rely on fully determining the quantized directional components to determine their specific values. In particular, for the terms in d1 and d2 associated with the difference between the quantized azimuth value and the original azimuth value (i.e., for and d2Δφ CB ), using an approximation of the azimuth distortion. It will be appreciated that the approximation is used in order to avoid the need to perform a full quantization search for the azimuth values to determine whether to use a joint quantization scheme or a VQ quantization scheme. In the case of d1, the calculated approximation of Δφ avoids calculating Δφ for each azimuth value that maps to a quantized value of θ. In the case of d2, Δφ CB The calculated approximation of avoids the need to calculate the azimuth angle difference for each codebook entry of the VQ codebook.
[0170] Regarding the conditional processing step 309, the variable max_b ( Figure 3 An example value of 4 bits is shown). It can be seen that if the condition related to the predetermined threshold is not met, the direction index generator 205 is directed to encode the elevation and azimuth values using a joint quantization scheme as previously described. This step is shown as processing step 313.
[0171] exist Figure 3 Also shown is step 315, which is a corollary of step 306. These steps indicate that processing steps 307 to 313 are performed on a per subband basis.
[0172] For the sake of completeness, Figure 3 The algorithm shown can be represented by the following pseudo code, where it can be seen that the inner loop of the pseudo code contains processing step 311.
[0173] Encoding of direction data:
[0174] 1.For each subband i=1:N
[0175] a.Use 3 bits to encode the corresponding energy ratio value
[0176] b.Set the quantization resolution for the azimuth and the elevationfor all the time block of the current subband.The quantization resolution isset by allowing a predefined number of bits given by the value of the energyratio,bits_dir0[0:N-1][0:M-1]
[0177] 2.End for
[0178] 3.Reduce the allocated number of bits,bits_dir1[0:N-1][0:M-1],suchthat the sum of the allocated bits equals the number of available bits leftafter encoding the energy ratios
[0179] 4.For each subband i=1:N
[0180] a.Calculate allowed bits for current subband:bits_allowed=sum(bits_dir1[i][0:M-1])
[0181] b.Find maximum number of bits allocated for each TF block of thecurrent subband max_b=max(bits_dir1[i][0:M-1]);
[0182] c.If(max_b<=4)
[0183] i.Calculate two distances d1 and d2 for the subframes data of the current subband
[0184] ii.If d2 <d1
[0185] 1.VQ encode the elevation and azimuth values for all the TF blocks of the current subband
[0186] iii.Else
[0187] 1.Jointly encode the elevation and azimuth values of each TF blockwithin the number of bits allotted for the current subband.
[0188] iv.End if
[0189] d.Else
[0190] i.Jointly encode the elevation and azimuth values of each TF blockwithin the number of bits allotted for the current subband.
[0191] e.End if
[0192] 5.End for
[0193] After all directional components have been quantized for subbands 1:N, quantization indices of the quantized directional components may be passed, which in turn may be passed to the combiner 207 .
[0194] In some embodiments, the encoder includes an energy ratio encoder 223. The energy ratio encoder 223 can be configured to receive the determined energy ratios (e.g., direct-to-total energy ratio, diffuse-to-total energy ratio, and remainder-to-total energy ratio) and encode / quantize these energy ratios.
[0195] For example, in some embodiments, the energy ratio encoder 223 is configured to apply scalar non-uniform quantization using 3 bits per subband.
[0196] Furthermore, in some embodiments, the energy ratio encoder 223 is configured to generate a weighted average per subband. In some embodiments, the average is calculated by considering the total energy of each time-frequency block and applying a weight based on the subband having more energy.
[0197] The energy ratio encoder 223 may then pass it to a combiner configured to combine the metadata and output combined encoded metadata.
[0198] With respect to FIG6 , an exemplary electronic device that can be used as an analysis or synthesis device is shown. The device can be any suitable electronic device or apparatus. For example, in some embodiments, the device 1400 is a mobile device, a user device, a tablet computer, a computer, an audio playback device, etc.
[0199] In some embodiments, device 1400 includes at least one processor or central processing unit 1407. Processor 1407 may be configured to execute various program codes, such as the methods described herein.
[0200] In some embodiments, the device 1400 includes a memory 1411. In some embodiments, at least one processor 1407 is coupled to the memory 1411. The memory 1411 can be any suitable storage component. In some embodiments, the memory 1411 includes a program code portion for storing program codes that can be implemented on the processor 1407. In addition, in some embodiments, the memory 1411 may also include a storage data portion for storing data (e.g., data that has been processed or will be processed according to the embodiments described herein). Whenever necessary, the processor 1407 can obtain the implementation program code stored in the program code portion and the data stored in the storage data portion via the memory-processor coupling.
[0201] In some embodiments, device 1400 includes a user interface 1405. In some embodiments, user interface 1405 may be coupled to processor 1407. In some embodiments, processor 1407 may control the operation of user interface 1405 and receive input from user interface 1405. In some embodiments, user interface 1405 may enable a user to input commands to device 1400, for example, via a keyboard. In some embodiments, user interface 1405 may enable a user to obtain information from device 1400. For example, user interface 1405 may include a display configured to display information from device 1400 to a user. In some embodiments, user interface 1405 may include a touch screen or touch interface that enables information to be input to device 1400 and also displays information to a user of device 1400. In some embodiments, user interface 1405 may be a user interface for communicating with a position determiner as described herein.
[0202] In some embodiments, the device 1400 includes an input / output port 1409. In some embodiments, the input / output port 1409 includes a transceiver. In such embodiments, the transceiver may be coupled to the processor 1407 and configured to enable communication with other devices or electronic devices, for example, via a wireless communication network. In some embodiments, the transceiver or any suitable transceiver or transmitter and / or receiver device may be configured to communicate with other electronic devices or devices via a wired or wired coupling.
[0203] The transceiver can communicate with other devices via any suitable known communication protocol. For example, in some embodiments, the transceiver can use a suitable Universal Mobile Telecommunications System (UMTS) protocol, a wireless local area network (WLAN) protocol such as, for example, IEEE 802.X, a suitable short-range radio frequency communication protocol such as Bluetooth, or an infrared data communication path (IRDA).
[0204] The transceiver input / output port 1409 may be configured to receive signals and, in some embodiments, determine parameters as described herein using the processor 1407 executing appropriate code. In addition, the device may generate appropriate downmix signals and parameter outputs to send to a synthesis device.
[0205] In some embodiments, the apparatus 1400 may be implemented as at least part of a synthesis device. Thus, the input / output port 1409 may be configured to receive a downmix signal and, in some embodiments, receive parameters determined at a capture device or processing device as described herein, and generate a suitable audio signal format output using a processor 1407 executing suitable code. The input / output port 1409 may be coupled to any suitable audio output, such as to a multi-channel speaker system and / or headphones or the like.
[0206] Generally, various embodiments of the present invention may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, but the present invention is not limited thereto. Although various aspects of the present invention may be shown and described as block diagrams, flow charts, or illustrated or described using some other graphical representation, it should be fully understood that the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general hardware or controllers or other computing devices, or some combination thereof as non-limiting examples.
[0207] Embodiments of the present invention may be implemented by computer software, or by hardware, or by a combination of software and hardware, the computer software being executable by a data processor of a mobile device, such as in a processor entity. In addition, in this regard, it should be noted that any box of the logic flow in the accompanying drawings may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on a physical medium, such as a memory chip, or a memory block implemented within a processor, a magnetic medium such as a hard disk or a floppy disk, and an optical medium such as a DVD and its data variants, a CD.
[0208] The memory may be of any type suitable for the local technical environment and may be implemented using any suitable data storage technology, such as semiconductor-based memory devices, magnetic memory devices and systems, optical memory devices and systems, fixed memory, and removable memory. The data processor may be of any type suitable for the local technical environment and may include, as non-limiting examples, one or more of a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a gate-level circuit, and a processor based on a multi-core processor architecture.
[0209] Embodiments of the present invention may be practiced in various components such as integrated circuit modules. The design of integrated circuits is essentially a highly automated process. Complex and powerful software tools are available to convert a logic level design into a semiconductor circuit design ready to be etched and formed on a semiconductor substrate.
[0210] The program can automatically route conductors and position components on semiconductor chips using well-established design rules and a pre-stored library of design modules. Once the design of a semiconductor circuit is complete, the design results in a standardized electronic format (e.g., Opus, GDSII, etc.) can be transmitted to a semiconductor manufacturing facility or "fab" for fabrication.
[0211] The foregoing description has provided a complete and informative description of exemplary embodiments of the present invention by way of exemplary and non-limiting examples. However, various modifications and adaptations will become apparent to those skilled in the relevant art in view of the foregoing description when read in conjunction with the accompanying drawings and the appended claims. However, all such and similar modifications to the teachings of the present invention will still fall within the scope of the present invention as defined in the appended claims.
Claims
1. An apparatus comprising components for performing the following operations: For each time-frequency block of a subband of an audio frame, providing spatial audio parameters including azimuth and elevation; A first distortion metric for the audio frame is determined by determining a first distance metric for each time-frequency block and summing the first distance metric for each time-frequency block, wherein: The first distance metric is an approximation of the distance between the elevation angle and the azimuth angle and the quantized elevation angle and the quantized azimuth angle according to the first quantization scheme, wherein the first distance metric is given by Given, where θ i is the elevation angle of time-frequency block i, where is the quantized elevation angle of the time-frequency block i according to the first quantization scheme, and wherein Δφ i is an approximation of the distortion between the azimuth of the time-frequency block i and the quantized azimuth according to the first quantization scheme; determining a second distortion metric for the audio frame by determining a second distance metric for each time-frequency block and summing the second distance metric for each time-frequency block, wherein the second distance metric is an approximation of the distance between the elevation angle and the azimuth angle and a quantized elevation angle and a quantized azimuth angle according to a second quantization scheme; and For all time-frequency blocks of the subband of the audio frame, the first quantization scheme or the second quantization scheme is selected to quantize the elevation angle and the azimuth angle, wherein the selection depends on the first distortion metric and the second distortion metric.
2. The device according to claim 1, wherein: The first quantization scheme includes means for performing the following operations on a per time-frequency block basis: quantizing the elevation angle by selecting a closest elevation angle value from a set of elevation angle values on a spherical grid, wherein each elevation angle value in the set of elevation angle values is mapped to a set of azimuth angle values on the spherical grid; and The azimuth angle is quantized by selecting a closest azimuth angle value from a set of azimuth angle values, wherein the set of azimuth angle values is dependent on the closest elevation angle value.
3. The device according to claim 2, wherein: The number of elevation angle values in the set of elevation angle values depends on a bit resolution factor for the subframe, and wherein the number of azimuth angle values in the set of azimuth angle values mapped to each elevation angle value also depends on the bit resolution factor for the subframe.
4. The device according to any one of claims 1 to 3, wherein: The second quantization scheme includes components for performing the following operations: averaging the elevation angles of all time-frequency blocks of the subband of the audio frame to provide an average elevation angle value; Averaging the azimuth angles of all time-frequency blocks of the subband of the audio frame to provide an average azimuth angle value; quantizing the average elevation angle value and the average azimuth angle value; forming a mean-removed azimuth vector for the audio frame, wherein each component in the mean-removed azimuth vector comprises a mean-removed azimuth component for a time-frequency block, wherein the mean-removed azimuth component for the time-frequency block is formed by subtracting a quantized average azimuth value from an azimuth associated with the time-frequency block; and The mean-removed azimuth vector of the frame is vector quantized by using a codebook.
5. The device according to claim 1, wherein: An approximation of the distortion between the azimuth angle and the quantized azimuth angle according to the first quantization scheme is given by 180 degrees divided by n i , where n i is the quantized elevation angle of the time-frequency block i according to the first quantization scheme The number of azimuth values in the corresponding set of azimuth values.
6. The device according to claim 4, wherein: The second distance metric comprises an L2 norm distance between a point on a sphere given by the elevation angle and the azimuth angle and a point on the sphere given by the quantized elevation angle and the quantized azimuth angle according to the second quantization scheme.
7. The device according to claim 4, wherein: The second distance metric is given by 1-cosθ av cosθ i cos(Δφ CB (i))-sinθ i sinθ av Given, where θ av is the quantized average elevation angle of the audio frame according to the second quantization scheme, γ i is the elevation angle of time-frequency block i, and Δφ CB (i) is an approximation of the distortion between the azimuth angle of the time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme.
8. The device according to claim 7, wherein: An approximation of a distortion between the azimuth angle of the time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantized mean according to the second quantization scheme is a value associated with the codebook.
9. A method comprising: For each time-frequency block of a subband of an audio frame, providing spatial audio parameters including azimuth and elevation; Determining a first distortion metric for the audio frame by determining a first distance metric for each time-frequency block and summing the first distance metric for each time-frequency block, wherein the first distance metric is an approximation of the distance between the elevation angle and the azimuth angle and the quantized elevation angle and the quantized azimuth angle according to a first quantization scheme, wherein the first distance metric is given by Given, where θ i is the elevation angle of time-frequency block i, where is the quantized elevation angle of the time-frequency block i according to the first quantization scheme, and wherein Δφ i is an approximation of the distortion between the azimuth of the time-frequency block i and the quantized azimuth according to the first quantization scheme; determining a second distortion metric for the audio frame by determining a second distance metric for each time-frequency block and summing the second distance metric for each time-frequency block, wherein the second distance metric is an approximation of the distance between the elevation angle and the azimuth angle and a quantized elevation angle and a quantized azimuth angle according to a second quantization scheme; and For all time-frequency blocks of the subband of the audio frame, the first quantization scheme or the second quantization scheme is selected to quantize the elevation angle and the azimuth angle, wherein the selection depends on the first distortion metric and the second distortion metric.
10. The method according to claim 9, wherein: The first quantization scheme includes: based on each time-frequency block, quantizing the elevation angle by selecting a closest elevation angle value from a set of elevation angle values on a spherical grid, wherein each elevation angle value in the set of elevation angle values is mapped to a set of azimuth angle values on the spherical grid; and The azimuth angle is quantized by selecting a closest azimuth angle value from a set of azimuth angle values, wherein the set of azimuth angle values is dependent on the closest elevation angle value.
11. The method according to claim 10, wherein: The number of elevation angle values in the set of elevation angle values depends on a bit resolution factor for the subframe, and wherein the number of azimuth angle values in the set of azimuth angle values mapped to each elevation angle value also depends on the bit resolution factor for the subframe.
12. The method according to any one of claims 9 to 11, wherein: The second quantification scheme includes: averaging the elevation angles of all time-frequency blocks of the subband of the audio frame to provide an average elevation angle value; Averaging the azimuth angles of all time-frequency blocks of the subband of the audio frame to provide an average azimuth angle value; quantizing the average elevation angle value and the average azimuth angle value; forming a mean-removed azimuth vector for the audio frame, wherein each component in the mean-removed azimuth vector comprises a mean-removed azimuth component for a time-frequency block, wherein the mean-removed azimuth component for the time-frequency block is formed by subtracting a quantized average azimuth value from an azimuth associated with the time-frequency block; and The mean-removed azimuth vector of the frame is vector quantized by using a codebook.
13. The method according to claim 9, wherein: An approximation of the distortion between the azimuth angle and the quantized azimuth angle according to the first quantization scheme is given by 180 degrees divided by n i , where n i is the quantized elevation angle of the time-frequency block i according to the first quantization scheme The number of azimuth values in the corresponding set of azimuth values.
14. The method according to claim 12, wherein: The second distance metric comprises an approximation of an L2 norm distance between a point on a sphere given by the elevation angle and the azimuth angle and a point on the sphere given by the quantized elevation angle and the quantized azimuth angle according to the second quantization scheme.
15. The method according to claim 12, wherein: The second distance metric is given by 1-cosθ av cosθ i cos(Δφ CB (i))-sinθ i sinθ av Given, where θ av is the quantized average elevation angle of the audio frame according to the second quantization scheme, θ i is the elevation angle of time-frequency block i, and Δφ CB (i) is an approximation of the distortion between the azimuth angle of the time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantization mean according to the second quantization scheme.
16. The method according to claim 15, wherein: An approximation of a distortion between the azimuth angle of the time-frequency block i and the azimuth angle component in the azimuth angle vector removed by the quantized mean according to the second quantization scheme is a value associated with the codebook.
