Quantization scale factor determination device and quantization scale factor determination method
By correcting the initial quantization scale coefficient based on sparsity, the method addresses inefficiencies in MDCT spectral arithmetic encoding, reducing computational requirements and improving processing speed for audio signal encoding.
Patent Information
- Application Number
- JP2021552264
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-16
- Filing Date
- 2020-09-04
- Publication Date
- 2024-08-15
- Estimated Expiration
- 2040-09-04
AI Technical Summary
Existing encoding techniques for audio signals, such as Modified Discrete Cosine Transform (MDCT) spectral arithmetic encoding, require significant computational resources due to inefficient methods for determining quantization scale coefficients, particularly when using binary search, which can lead to increased calculation times.
A quantization scale coefficient determination device and method that corrects the initial value of the quantization scale coefficient based on the sparsity of the MDCT spectrum, utilizing a search circuit to find the optimal coefficient more efficiently by reducing the number of searches through binary search.
This approach reduces the computational burden in encoding audio signals by minimizing the number of searches required to determine the quantization scale coefficient, thereby enhancing processing efficiency.
Smart Images

Figure 0007535053000005 
Figure 0007535053000006 
Figure 0007535053000009
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a quantization scale factor determining device and a quantization scale factor determining method. [Background technology]
[0002] One of the coding techniques is a modified discrete cosine transform (MDCT) spectrum arithmetic coding technique that codes a speech signal or an audio signal (e.g., also called a "speech audio signal") at a low bit rate. This coding technique, for example, scales (or is called quantization scaling) an MDCT spectrum to quantize it, and then performs arithmetic coding (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Special Publication No. 2019-514065 Summary of the Invention
[0004] However, there is room for consideration of methods for reducing the amount of calculations involved in coding speech or audio signals.
[0005] Non-limiting embodiments of the present disclosure contribute to providing a quantization scale factor determination device and a quantization scale factor determination method that can reduce the amount of calculation in encoding an audio signal or an audio signal.
[0006] A quantization scale factor determination device according to one embodiment of the present disclosure includes a correction circuit that corrects an initial value of a quantization scale factor based on whether or not a spectrum of an audio signal has sparsity, and a search circuit that searches for the quantization scale factor based on the initial value.
[0007] These comprehensive or specific aspects may be realized as a system, an apparatus, a method, an integrated circuit, a computer program, or a recording medium, or may be realized as any combination of a system, an apparatus, a method, an integrated circuit, a computer program, and a recording medium.
[0008] According to an embodiment of the present disclosure, the amount of calculation required for encoding an audio signal or an audio signal can be reduced.
[0009] Further advantages and benefits of an embodiment of the present disclosure will become apparent from the specification and drawings. Such advantages and / or benefits may be provided by some of the embodiments and features described in the specification and drawings, respectively, but not necessarily all of them may be provided to obtain one or more identical features. [Brief description of the drawings]
[0010] [Figure 1] A block diagram showing an example of the configuration of a transmission system for an audio signal or an acoustic signal. [Diagram 2] Block diagram showing a configuration example of a TCX encoding unit [Diagram 3] A block diagram showing an example of the configuration of a rate loop processing unit and a quantization / encoding unit. [Figure 4] Block diagram showing an example of the configuration of the sparse analysis unit [Diagram 5] FIG. 1 is a diagram showing an example of a spectrum having sparsity. [Figure 6] FIG. 1 is a diagram showing an example of a quantization scale factor correction process based on sparsity. [Figure 7] A diagram showing an example of sparsity determination criteria [Figure 8] FIG. 13 is a diagram showing an example of a search process for a quantization scale factor; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.
[0012] In Patent Document 1, for example, the reciprocal of the root mean square (RMS) of the value obtained by multiplying the envelope (in other words, the envelope) of the MDCT spectrum obtained based on linear prediction analysis (e.g., linear prediction coding (LPC) analysis) by the absolute value of the MDCT spectrum is set as the initial value of the “quantization scale coefficient” in the quantization scaling of the MDCT spectrum.
[0013] The encoding device performs a search process for the quantization scale coefficient based on, for example, an initial value of the quantization scale coefficient. For example, the encoding device estimates the amount of bits consumed by arithmetic coding of the MDCT spectrum (for example, referred to as "amount of consumed bits") from an approximation formula based on the quantization scale coefficient. Then, the encoding device compares the estimated amount of consumed bits with a target amount of bits, and searches for a quantization scale coefficient that satisfies the conditions of "not exceeding the target amount of bits" and "closest to the target amount of bits" according to a binary search method.
[0014] However, for example, the further away the initial value of the quantization scale factor is from the quantization scale factor after search (in other words, the value converged in the binary search), the more times the search is required until the value converges, and the more computational load the encoding device may carry out. Also, the binary search method is known to be a method with slow convergence.
[0015] Therefore, in one embodiment of the present disclosure, a method for reducing the amount of calculation required for searching for a quantization scale factor will be described.
[0016] [Transmission system overview] FIG. 1 shows an example of the configuration of a transmission system for an audio signal or an acoustic signal according to the present embodiment.
[0017] The transmission system shown in FIG. 1 includes, for example, an encoding device 1 and a decoding device 2.
[0018] The encoding device 1 encodes an input signal, such as a speech signal or an audio signal, and transmits the encoded data to the decoding device 2 via a communication network or a storage medium (not shown). For example, the encoding device 1 may include various speech and audio codecs (e.g., encoders) defined in standards such as the Moving Picture Experts Group (MPEG), 3rd Generation Partnership Project (3GPP), or International Telecommunication Union Telecommunication Standardization Sector (ITU-T).
[0019] The decoding device 2 decodes the encoded data received from the encoding device 1 via, for example, a transmission path or a storage medium, and outputs an output signal (for example, an electrical signal). For example, the decoding device 2 may output the electrical signal as a sound wave via a speaker or headphones. Furthermore, the decoding device 2 may use, for example, a decoder corresponding to the above-mentioned audio codec.
[0020] Furthermore, for example, transformed code excitation (TCX) coding, which is a type of frequency domain coding, may be included in the codec in the coding device 1. For example, the coding device 1 shown in Fig. 1 includes a TCX coding unit 10 that performs TCX coding processing.
[0021] TCX coding may be applied to coding in low bit rate transmission such as 13.2 kbps or 16.4 kbps. Note that the bit rate of transmission to which TCX coding is applied is not limited to 13.2 kbps and 16.4 kbps, and may be other bit rates. TCX coding using MDCT for coding the excitation signal is sometimes called, for example, "MDCT based TCX".
[0022] [Example of the configuration of the TCX encoding unit 10] Fig. 2 shows an example of the configuration of the TCX encoding unit 10 included in the encoding device 1 shown in Fig. 1. The TCX encoding unit 10 shown in Fig. 2 includes, for example, an envelope generating unit 11, a harmonic analyzing unit 12, an envelope scaling unit 13, a rate loop processing unit 14, and a quantization / encoding unit 15.
[0023] For example, a frequency domain signal (hereinafter referred to as "MDCT spectrum") obtained by MDCT of an input signal and LPC coefficients obtained by LPC analysis of the input signal are input to the envelope generating unit 11. The envelope generating unit 11 generates an envelope (in other words, an envelope curve) of the MDCT spectrum based on the LPC coefficients. The envelope generating unit 11 outputs envelope information indicating the generated envelope and spectrum information indicating the MDCT spectrum to the harmonic analyzing unit 12.
[0024] The harmonic analysis unit 12 analyzes a harmonic structure (in other words, harmonic components) in the MDCT spectrum based on, for example, information input from the envelope generation unit 11. The harmonic analysis unit 12 outputs, for example, harmonic information, envelope information, and spectrum information indicating the analysis result of the harmonic structure to the envelope scaling unit 13.
[0025] For example, the harmonic information may include information indicating whether the MDCT spectrum has a harmonic structure (e.g., called a "harmonics flag" or a "harmonic model flag"). The harmonic information may also include an index (e.g., called a "harmonics gain index") indicating a gain of a harmonic (in other words, a gain of a harmonic). The harmonic gain index may be, for example, a value obtained by indexing (in other words, quantizing) the gain of a harmonic for each level. For example, the higher the value of the harmonic gain index, the higher the gain level of the harmonic.
[0026] The envelope scaling unit 13 performs scaling processing on the envelope of the MDCT spectrum based on, for example, information input from the harmonic analysis unit 12. The envelope scaling unit 13 outputs envelope information indicating the scaled envelope, harmonic information, and spectral information to the rate loop processing unit 14.
[0027] The rate loop processing unit 14 performs rate loop processing (also called quantization rate loop processing) based on the information input from the envelope scaling unit 13, and calculates a quantization scale factor for quantization of the MDCT spectrum. The rate loop processing unit 14 searches for a quantization scale factor based on, for example, a comparison between a consumed bit amount and a target bit amount. The search method may be, for example, a binary search method or another search method.
[0028] The rate loop processor 14 may set the initial value of the quantization scale factor in the search based on, for example, sparsity in the MDCT spectrum. An example of a method for setting the initial value of the quantization scale factor in the rate loop processor 14 will be described later.
[0029] The rate loop processing unit 14 outputs information indicating the found quantization scale coefficient and the spectral information to the quantization / encoding unit 15.
[0030] The quantization / encoding unit 15 quantizes and encodes the MDCT spectrum based on the information input from the rate loop processing unit 14, and outputs the resulting encoded data.
[0031] [Example of the configuration of the rate loop processing unit 14 and the quantization / encoding unit 15] FIG. 3 shows an example of the configuration of the rate loop processing unit 14 (corresponding to, for example, a quantization scale coefficient determination device) and the quantization / encoding unit 15 included in the TCX encoding unit 10 shown in FIG.
[0032] 3 includes, for example, a quantization scale coefficient calculation unit 141 (e.g., equivalent to a calculation circuit), a sparse analysis unit 142, and a quantization scale coefficient search unit 143 (e.g., equivalent to a search circuit). Also, the quantization / encoding unit 15 includes, for example, a quantization unit 151 and an encoding unit 152.
[0033] In the rate loop processing unit 14 shown in Fig. 3, the quantization scale factor calculation unit 141 calculates an initial value of a quantization scale factor in the quantization process of the MDCT spectrum based on, for example, envelope information and spectrum information input from the envelope scaling unit 13. For example, the quantization scale factor calculation unit 141 may set the inverse of the standard deviation of the multiplication value of the envelope (for example, the envelope obtained based on the LPC analysis) and the absolute value of the MDCT spectrum (in other words, the amplitude spectrum normalized by the spectrum envelope) as the initial value of the quantization scale factor (also called the "quantization scale factor before correction"). By using the inverse of the standard deviation, the larger the variation in the spectrum amplitude value, the smaller the quantization scale factor becomes, and the smaller the variation, the larger the quantization scale factor becomes. The quantization scale factor calculation unit 141 outputs information indicating the quantization scale factor before correction to the sparse analysis unit 142.
[0034] The method of calculating the quantization scale coefficients in the quantization scale coefficient calculation unit 141 is not limited to the above-mentioned method. For example, the quantization scale coefficient calculation unit 141 may set the inverse of the variance of the product of the envelope and the absolute value of the MDCT spectrum to the initial value of the quantization scale coefficient. Also, for example, the quantization scale coefficient calculation unit 141 may set the inverse of the root mean square of the product of the envelope and the MDCT spectrum (or may multiply this inverse by a predetermined coefficient) to the initial value of the quantization scale coefficient.
[0035] The sparse analysis unit 142 analyzes (in other words, determines) the sparsity of the MDCT spectrum based on at least one of harmonic information, spectrum information, and envelope information, for example.
[0036] "Sparsity" is, for example, a property in the distribution of an MDCT spectrum where a small number of spectra (components) are non-zero and a large number of spectra (components) are zero (or components whose amplitude is less than a threshold). Alternatively, sparsity is, for example, a state in which a small number of spectra account for a larger proportion of the total spectral amplitude (for example, 50% or more of the total amplitude).
[0037] The sparse analysis unit 142 may determine, for example, based on the analysis result of sparsity, whether to correct the quantization scale coefficients input from the quantization scale coefficient calculation unit 141. When the sparse analysis unit 142 determines to correct the quantization scale coefficients, it corrects the quantization scale coefficients and outputs information indicating the corrected quantization scale coefficients to the quantization scale coefficient search unit 143. On the other hand, when the sparse analysis unit 142 does not correct the quantization scale coefficients, it outputs information indicating the quantization scale coefficients input from the quantization scale coefficient calculation unit 141 to the quantization scale coefficient search unit 143.
[0038] The quantization scale coefficient search unit 143 searches for a quantization scale coefficient based on the initial value of the quantization scale coefficient input from the sparse analysis unit 142. Then, the quantization scale coefficient search unit 143 performs a binary search based on a comparison result between a consumed bit amount estimated for arithmetic coding and a target bit amount, and outputs information indicating the quantization scale coefficient after the search to the quantization / coding unit 15 (quantization unit 151).
[0039] 3, the quantization unit 151 quantizes the MDCT spectrum based on the quantization scale coefficient received from the quantization scale coefficient searching unit 143. The quantization unit 151 outputs information indicating the quantized MDCT spectrum to the encoding unit 152.
[0040] The encoding unit 152 encodes the quantized MDCT spectrum input from the quantization unit 151, and outputs encoded data. The encoding method in the encoding unit 152 may be, for example, arithmetic encoding or another encoding method.
[0041] [Example of the configuration of the sparse analysis unit 142] FIG. 4 shows an example of the configuration of the sparse analysis unit 142. As shown in FIG.
[0042] The sparse analysis unit 142 shown in FIG. 4 includes, for example, a preprocessing unit 1421 (e.g., corresponding to a preprocessing circuit), a sparsity determination unit 1422 (e.g., corresponding to a determination circuit), and a quantization scale factor correction unit 1423 (e.g., corresponding to a correction circuit).
[0043] The preprocessing unit 1421 performs preprocessing on the quantization scale coefficients (e.g., quantization scale coefficients before correction (initial values)) input from the quantization scale coefficient calculation unit 141, for example. The preprocessing unit 1421 may adjust an upper limit value of the quantization scale coefficients, for example. In addition, the preprocessing unit 1421 may multiply the quantization scale coefficients by a specific value (e.g., a value less than 1.00), for example. The preprocessing unit 1421 outputs information indicating the quantization scale coefficients after the preprocessing to the sparsity determination unit 1422.
[0044] The sparsity determining unit 1422 determines whether the MDCT spectrum has sparsity. For example, the sparsity determining unit 1422 may determine the sparsity of the MDCT spectrum based on envelope information, harmonic information, and information on the MDCT spectrum (for example, the absolute value of the MDCT spectrum).
[0045] Figures 5(a) to 5(d) show examples of MDCT spectra when the signal has sparsity. In Figures 5(a) to 5(d), the horizontal axis represents frequency (e.g., frequency bin), and the vertical axis represents amplitude of the MDCT spectrum (e.g., absolute value of amplitude).
[0046] For example, in an MDCT spectrum having a harmonic structure, the peaks of the MDCT spectrum appear concentratedly at a certain interval, as shown in, for example, FIG. 5(a) or FIG. 5(b). In other words, when a harmonic structure is present, the MDCT spectrum at a certain interval (in other words, the peak component) may have a larger amplitude (or power) than the MDCT spectrum at other frequencies (in other words, the components other than the peak). Therefore, as shown in FIG. 5(a) or FIG. 5(b), the MDCT spectrum having a harmonic structure may have sparsity.
[0047] Also, for example, as shown in Fig. 5(c) or Fig. 5(d), energy may be concentrated in a part of the MDCT spectrum. In other words, the part of the MDCT spectrum in which energy is concentrated may have a larger amplitude (or power) than other MDCT spectra. Therefore, as shown in Fig. 5(c) or Fig. 5(d), the MDCT spectrum in which energy is concentrated in a part of the spectrum may have sparsity.
[0048] Therefore, the sparsity determining unit 1422 may determine the sparsity based on, for example, harmonic information. Also, the sparsity determining unit 1422 may determine the sparsity based on, for example, the number of spectra that occupy a ratio of a threshold value (for example, 50%) or more in the MDCT spectrum (in other words, the speech signal or the audio signal). Also, the sparsity determining unit 1422 may determine the sparsity based on, for example, an envelope based on an LPC analysis and an MDCT spectrum (for example, absolute value). Note that the determination of the sparsity is not limited to at least one parameter (or feature amount) of the harmonic information, the envelope information, and the MDCT spectrum (for example, absolute value), and may be based on other parameters.
[0049] An example of a condition for determining whether or not an MDCT spectrum has sparsity in the sparsity determining unit 1422 will be described later.
[0050] The quantization scale coefficient correction unit 1423 corrects the initial value of the quantization scale coefficient based on whether or not the MDCT spectrum has sparsity, for example. For example, when the MDCT spectrum has sparsity, the quantization scale coefficient correction unit 1423 corrects the quantization scale coefficient (initial value). On the other hand, when the MDCT spectrum does not have sparsity, for example, the sparse analysis unit 142 does not correct the quantization scale coefficient. The quantization scale coefficient correction unit 1423 outputs the obtained quantization scale coefficient to the quantization / encoding unit 15 (for example, FIG. 3).
[0051] Here, in FIG. 3, quantization scale factor calculation section 141 determines, as a quantization scale factor, for example, the reciprocal of the standard deviation of the product of the envelope obtained based on the LPC analysis (in other words, the scaled envelope) and the absolute value of the MDCT spectrum.
[0052] Furthermore, for example, as shown in FIGS. 5(a) to (d), when the MDCT spectrum has sparsity, the average value of the MDCT spectrum may be lower when the MDCT spectrum has similar MDCT spectrum peak values, compared to when the MDCT spectrum does not have sparsity (not shown).
[0053] Therefore, when the MDCT spectrum has sparsity, the energy or average amplitude (e.g., equivalent to the above-mentioned standard deviation) of the entire MDCT spectrum may be estimated to be lower than when the MDCT spectrum does not have sparsity. Therefore, for example, when the MDCT spectrum has sparsity, the quantization scale factor (e.g., the reciprocal of the above-mentioned standard deviation) determined by the quantization scale factor calculation unit 141 may be larger than the quantization scale factor when the MDCT spectrum does not have sparsity or the quantization scale factor after searching.
[0054] Fig. 6 shows an example of a correction process of a quantization scale factor based on sparsity. For example, Fig. 6 shows an example of a correspondence relationship between a quantization scale factor (in other words, a quantization scale factor before correction) and a quantization scale factor after search (in other words, a quantization scale factor after correction) when an MDCT spectrum has sparsity.
[0055] 6, the horizontal axis represents the quantization scale coefficient after search (e.g., binary search), and the vertical axis represents the quantization scale coefficient input to the sparsity determining unit 1422. The quantization scale coefficient input to the sparsity determining unit 1422 may be, for example, the quantization scale coefficient calculated in the quantization scale coefficient calculation unit 141, or may be the quantization scale coefficient adjusted in the preprocessing unit 1421.
[0056] As shown in FIG. 6, for example, when the sparsity determination unit 1422 determines that the MDCT spectrum has sparsity, the quantization scale factor correction unit 1423 corrects (reduces) the quantization scale factor before correction (e.g., scl_b) to a quantization scale factor (e.g., scl_a).
[0057] The quantization scale coefficient correction method may be set based on a statistical relationship (e.g., a simulation result) between the quantization scale coefficient when there is sparsity and the quantization scale coefficient after search, as shown in Fig. 6. For example, in the example of Fig. 6, the quantization scale coefficient before correction is scl_b=0.0400, and the quantization scale coefficient after correction is scl_a=0.0216, and the ratio between scl_b and scl_a is "1.85". Therefore, for example, when the MDCT spectrum has sparsity, the quantization scale coefficient correction unit 1423 may correct the quantization scale coefficient scl_b to a value scl_a obtained by dividing the quantization scale coefficient scl_b by 1.85 (e.g., scl_a=scl_b / 1.85).
[0058] Note that the parameter "1.85" is merely an example, and is not limited to this value. Also, the method of correcting the quantization scale factor is not limited to the above method, and other methods may be used.
[0059] The operation of the sparse analysis unit 142 has been described above. For example, when the MDCT spectrum has sparsity, the quantization scale factor search unit 143 can start a search based on the initial value of the corrected quantization scale factor. For example, in FIG. 6, the quantization scale factor search unit 143 sets the corrected quantization scale factor scl_a as the initial value and performs a binary search. By this search, the quantization scale factor search unit 143 can reduce the number of searches until a convergence value is obtained by the binary search, that is, the amount of calculation, compared to the case where the uncorrected quantization scale factor scl_b shown in FIG. 6 is set as the initial value and a binary search is performed.
[0060] [Example of sparsity determination] Next, an example of a condition (determination method) for determining whether or not the MDCT spectrum has sparsity in the sparsity determining unit 1422 will be described.
[0061] <Judgment condition 1> In the determination condition 1, the sparsity determining unit 1422 determines sparsity based on whether the MDCT spectrum has a "harmonics structure" as shown in FIG. 5(a) or FIG. 5(b).
[0062] For example, the sparsity determining unit 1422 may determine the sparsity based on a harmonic flag, a harmonic gain index, and an average value of the absolute values of the MDCT spectrum (hereinafter, referred to as a "spectrum average value").
[0063] Furthermore, for example, the sparsity determining unit 1422 may determine that the MDCT spectrum has sparsity when the harmonic flag is ON (in other words, when the MDCT spectrum has a harmonic structure), when the harmonic gain index is equal to or greater than a threshold (in other words, when the gain of the harmonic is equal to or greater than a threshold), and when the number of spectra (also called frequency bins or lines) exceeding the spectrum average value is less than a threshold.
[0064] For example, even if the MDCT spectrum has a harmonic structure, if the number of spectra exceeding the spectrum average value is equal to or greater than a threshold value, the difference between the peak component of the spectrum in the harmonic structure and other components different from the peak component becomes smaller, and the MDCT spectrum may not have sparsity. Therefore, if the number of spectra exceeding the spectrum average value is equal to or greater than a threshold value, the sparsity determining unit 1422 may determine that the MDCT spectrum does not have sparsity.
[0065] Note that multiple thresholds may be set for the harmonic gain index in the determination condition 1. Also, multiple thresholds may be set for the number of spectra exceeding the spectrum average value in the determination condition 1.
[0066] For example, the example shown in FIG. 5(a) shows a case where the harmonic flag is ON, the harmonic gain index is equal to or greater than a threshold value “X1” (e.g., X1=3), and the number of spectra exceeding the spectrum average value is less than a threshold value “Y1” (e.g., Y1=95).
[0067] Also, for example, the example shown in FIG. 5(b) shows a case where the harmonic flag is ON, the harmonic gain index is a threshold value “X2” (e.g., X2=2), and the number of spectra exceeding the spectral average value is less than a threshold value “Y2” (e.g., Y2=85).
[0068] The values of the thresholds X1, X2, Y1, and Y2 are merely examples, and are not limited to these values. In addition, the case where the sparsity is determined based on one of two conditions, the combination of X1 and Y1 and the combination of X2 and Y2, has been described here, but is not limited to this. For example, the combination pattern of the threshold X related to the harmonic gain index and the threshold Y related to the number of spectra exceeding the spectrum average value may be one pattern, or three or more patterns.
[0069] <Judgment condition 2> Under determination condition 2, the sparsity determining unit 1422 determines the sparsity based on the number of spectra that occupy a proportion (also called "composition ratio") equal to or greater than a threshold in the MDCT spectrum as shown in FIG. 5(c).
[0070] For example, the sparsity determining unit 1422 may determine that the MDCT spectrum has sparsity when the number of spectra that occupy a constituent ratio equal to or greater than a threshold (for example, 50%) in the MDCT spectrum is equal to or less than a threshold L1.
[0071] Alternatively, for example, the sparsity determining unit 1422 may determine that the MDCT spectrum has sparsity when the number of spectra that occupy a composition ratio equal to or greater than a threshold (e.g., 50%) in the MDCT spectrum is equal to or less than a threshold L1 and when the number of spectra that exceed the root mean square of the absolute value of the MDCT spectrum (in other words, the average power value or the average amplitude) is less than a threshold L2.
[0072] For example, when the number of spectra exceeding the root mean square of the absolute value of the MDCT spectrum is equal to or greater than the threshold L2, it is highly likely that the energy is not concentrated in some spectra (in other words, dispersed) in the distribution of the MDCT spectrum, and therefore the sparsity determining unit 1422 may determine that the MDCT spectrum does not have sparsity.
[0073] For example, the example shown in FIG. 5(c) shows a case where energy is concentrated in k spectra (e.g., k=4) with the highest amplitude, the amplitudes of the top k MDCT spectra account for 50% or more of the total amplitude of all the spectra, and the number of spectra exceeding the root mean square of the absolute value of the MDCT spectrum is less than a threshold L1 (e.g., L1=13).
[0074] It should be noted that the judgment condition 2 may be applied, for example, when the MDCT spectrum does not have a harmonic structure (an example will be described later).
[0075] <Judgment condition 3> Under decision condition 3, similarly to decision condition 2, the sparsity deciding unit 1422 decides the sparsity based on the number of spectra that occupy a proportion (or composition ratio) equal to or greater than a threshold in the MDCT spectrum as shown in FIG. 5(d).
[0076] In addition, in the determination condition 3, the sparsity determining unit 1422 may determine the sparsity based on the ratio of the “maximum value of the multiplication of the envelope and the absolute value of the MDCT spectrum” to the “root mean square”, in addition to the condition based on the component ratio of the spectrum.
[0077] For example, the sparsity determining unit 1422 may determine that the MDCT spectrum has sparsity when the number of spectra that occupy a composition ratio equal to or greater than a threshold (e.g., 50%) in the MDCT spectrum is equal to or less than a threshold L1 and when the ratio of the “maximum value of the multiplication of the envelope and the absolute value of the MDCT spectrum” to the “root mean square” is equal to or greater than a threshold L2.
[0078] For example, when the ratio of the "maximum value of the product of the envelope and the absolute value of the MDCT spectrum" to the "root mean square" is less than the threshold L2, the ratio of the average value of the power (or amplitude) to the power (or amplitude) of the maximum peak in the MDCT spectrum may become large. Therefore, since it is highly likely that the power (or amplitude) of the maximum peak is not concentrated in a part of the spectrum (in other words, is dispersed), the sparsity determining unit 1422 may determine that the spectrum does not have sparsity.
[0079] For example, the example shown in FIG. 5(d) shows a case where the top k spectral amplitudes (e.g., k=4) occupy 50% or more of the energy of the entire spectrum (the sum of the spectral amplitudes), and the ratio of the “maximum value of the product of the envelope and the absolute value of the MDCT spectrum” to the “root mean square” is equal to or greater than a threshold value L2 (e.g., L2=12.4).
[0080] The values of the parameter k and the thresholds L1 and L2 are merely examples and are not limited to these values.
[0081] In addition, in the judgment conditions 2 and 3, the threshold value for the component ratio occupied by the spectrum is 50% in the above description, but it is not limited to 50% and may be another ratio.
[0082] In addition, in the judgment conditions 2 and 3, for example, the composition ratio of k spectra exceeds 50% may be replaced by the ratio (e.g., k / L_frame) of the number of spectra k that occupy 50% of the composition ratio to the number of spectra in a frame (e.g., L_frame) being equal to or less than a threshold. For example, when L_frame=640 and the threshold=0.0559, k that satisfies k / L_frame≦0.0559 is 4.
[0083] The above describes the judgment conditions 1 to 3. It is to be noted that the judgment conditions 1 to 3 may be combined. Furthermore, the judgment conditions for sparsity are not limited to the judgment conditions 1 and 2, and other judgment conditions may be used.
[0084] The sparsity determining unit 1422 may switch the determination condition for determining the sparsity of the MDCT spectrum based on, for example, the quantization scale factor before correction (in other words, the initial value before correction) calculated based on the MDCT spectrum.
[0085] FIG. 7 shows an example of switching of the determination condition in the sparsity determining unit 1422. In FIG.
[0086] For example, in the example of FIG. 7, the sparsity determination unit 1422 may apply determination condition 1 and determination condition 2 when the quantization scale coefficient before correction is less than a threshold n1 (e.g., n1=0.01), and may apply determination condition 3 when the quantization scale coefficient before correction is equal to or greater than the threshold n1 and equal to or less than a threshold n2 (e.g., n2=0.0559).
[0087] The threshold n1 may be determined based on whether or not the quantization scale factor corresponds to an MDCT spectrum that may have a harmonic structure. For example, the greater the peak amplitude value of the MDCT spectrum and the smaller the average value of the MDCT spectrum amplitude, the greater the possibility that the MDCT spectrum has a harmonic structure. Therefore, for example, the sparsity determining unit 1422 may determine whether or not the quantization scale factor before correction has a harmonic structure when determining the sparsity, when the quantization scale factor before correction is less than the threshold n1 (in other words, when the peak amplitude value of the MDCT spectrum is large and the average value of the MDCT spectrum amplitude is small). On the other hand, for example, the sparsity determining unit 1422 may not determine whether or not the quantization scale factor before correction has a harmonic structure when determining the sparsity, when the quantization scale factor before correction is equal to or greater than the threshold n1 (in other words, when only a few peak amplitude values of the MDCT spectrum are large and the average value of the MDCT spectrum amplitude is small).
[0088] Furthermore, the threshold n2 may be determined based on, for example, the lower limit of the amplitude level of the MDCT spectrum scaled by the quantization scale factor.
[0089] For example, the smaller the amplitude level of the MDCT spectrum, the larger the quantization scale factor can be set. However, when the amplitude level of the MDCT spectrum is near 0, the quantization scale factor may not be set to a larger value, but may be set to a quantization scale factor that quantizes the MDCT spectrum at 0. In other words, when an MDCT spectrum amplitude level near 0 is forcibly quantized at a value larger than 0, the MDCT spectrum may be over-scaled depending on the setting of the quantization scale factor.
[0090] 7, the upper limit of the quantization scale factor, in other words, the lower limit of the amplitude level at which the MDCT spectrum is quantized, is set by setting the threshold n2. Setting the threshold n2 can prevent a larger quantization scale factor from being set when the amplitude level of the MDCT spectrum is near 0, for example, and therefore can suppress excessive scaling of the MDCT spectrum.
[0091] 7, for example, when the quantization scale coefficient before correction is greater than the threshold n2, the sparsity determination unit 1422 may not determine the sparsity. When the quantization scale coefficient before correction is greater than the threshold n2, for example, the quantization scale coefficient correction unit 1423 may set the quantization scale coefficient to the value of the threshold n2 (for example, n2=0.0559 in FIG. 7) regardless of the presence or absence of sparsity. Note that the correction value of the quantization scale coefficient when the quantization scale coefficient before correction is greater than the threshold n2 is not limited to the threshold n2 and may be another value (for example, 0.05).
[0092] In this way, the sparsity determining unit 1422 switches the sparsity determination condition based on the quantization scale coefficient before correction (in other words, the MDCT spectrum amplitude level). By switching the determination condition, the sparsity determining unit 1422 can determine the sparsity according to the characteristics of the MDCT spectrum (for example, the amplitude level or the presence or absence of a harmonic structure), thereby improving the sparsity determination accuracy.
[0093] The values of the thresholds n1 and n2 are merely examples and may be other values. Also, the number of thresholds may be one, or may be three or more.
[0094] As described above, in this embodiment, the encoding device 1 corrects the initial value of the quantization scale factor based on whether the MDCT spectrum of the speech or audio signal has sparsity, and searches for the quantization scale factor based on the initial value. In other words, in the encoding device 1, the initial value of the quantization scale factor is corrected to a value closer to the quantization scale factor obtained by, for example, binary search. This correction makes it possible to reduce the number of searches in the binary search, and reduce the amount of calculation in the search process for the quantization scale factor. Therefore, according to this embodiment, it is possible to reduce the amount of calculation in encoding the speech or audio signal.
[0095] (Variation 1) In variation 1, the quantization scale factor searching unit 143 (eg, FIG. 3) may perform a search process shown in FIG.
[0096] In FIG. 8, the quantization scale factor search unit 143 determines a quantization scale factor (e.g., “nx scl ") may be calculated.
number
[0097] In equation (1), t bit represents the target bit amount, and bf bit represents the bit consumption estimated for arithmetic coding of the MDCT spectrum in the previous search, and cr bit represents the amount of bits estimated for arithmetic coding of the MDCT spectrum in this search. Also, bf scl represents the quantization scale factor in the previous search, and cr scl represents the quantization scale factor in the current search.
[0098] In this way, in variation 1, the quantization scale factor search unit 143 calculates the consumed bit amount cr estimated for the arithmetic coding of the MDCT spectrum in the current search. bit and the target bit amount tbit The difference n between the previous search and the estimated bit consumption bf for the arithmetic coding of the MDCT spectrum in the previous search. bit and the target bit amount t bit Based on the difference m between the two, the quantization scale factor nx scl Determine nx scl "bf scl ≦nx scl ≦cr scl " or "cr scl ≦nx scl ≦bf scl Meet the following.
[0099] In other words, the quantization scale factor searcher 143 weights the quantization scale factor used in each search based on the difference (for example, m and n) between the consumed bit amount estimated in each search and the target bit amount.
[0100] For example, in the example shown in FIG. 8, the amount of consumed bits in the previous search is bf bit and the target bit amount t bit The difference m between the number of bits consumed during this search is bit and the target bit amount t bit Therefore, the quantization scale coefficient search unit 143 uses the quantization scale coefficient bf scl The quantization scale coefficient cr at the time of this search is scl Set the weighting for m to be large (for example, |m|<|n|), and use the quantization scale factor nx scl Determine.
[0101] In addition, the quantization scale coefficient for the next search obtained by weighting is wg scl The quantization scale coefficient for the next search obtained by the binary search is bi scl (In the case of binary search, the weight coefficient bi scl is 0.5), and the quantization scale coefficient search unit 143 determines the quantization scale coefficient nx scl The weighting factor may be changed for each search. For example, nx scl=1×wg scl +0×bi scl Starting from nx scl =0.75×wg scl +0.25×bi scl ,nx scl =0.5×wg scl +0.5×bi scl ,nx scl =0.25×wg scl +0.75×bi scl , and the weight is increased or decreased by 0.25 each time, and finally it becomes the same as the binary search method, nx scl =0×wg scl +1×bi scl It can be generalized as nx scl is expressed by equation (2).
number
[0102] According to Variation 1, for example, a quantization scale coefficient satisfying a target bit amount can be searched for more quickly (with fewer searches) than when an intermediate value between the quantization scale coefficients in the previous search and the current search is set as the quantization scale coefficient in the next search. Therefore, the number of searches for the quantization scale coefficient in the quantization scale coefficient searcher 143 can be reduced, and the amount of calculation can be reduced.
[0103] The search to be compared with the amount of consumed bits in the current search is not limited to the previous search (in other words, the search immediately before), but may be a search earlier than the previous search. Furthermore, the search in which the quantization scale coefficient is determined based on multiple searches is not limited to the next search (in other words, the search immediately after), but may be a search later than the next search. Furthermore, the search to be compared with the amount of consumed bits in the current search is not limited to a single past search, but the amount of consumed bits in multiple past searches may be used.
[0104] (Variation 2) 4, the preprocessing unit 1421 may adjust (in other words, limit) the upper limit of the quantization scale factor (initial value) in addition to the above-mentioned operation (e.g., adjusting the quantization scale factor). In this case, the sparsity determination unit 1422 may determine the sparsity based on the output of the preprocessing unit 1421 (the quantization scale factor with the upper limit adjusted).
[0105] For example, when adjusting the upper limit of the quantization scale factor, the pre-processing unit 1421 may set the upper limit to the threshold n2 shown in Fig. 7. This setting sets the lower limit of the MDCT spectrum amplitude level scaled by the quantization scale factor as described above, and makes it possible to suppress excessive scaling of the MDCT spectrum. Furthermore, when the upper limit of the quantization scale factor is adjusted to n2 in the pre-processing unit 1421, a quantization scale factor larger than the threshold n2 is not input to the sparsity determining unit 1422, so that the threshold n2 does not need to be set in the sparsity determination (e.g., Fig. 7).
[0106] The upper limit of the quantization scale factor in the pre-processing unit 1421 may be a value different from the threshold value n2.
[0107] (Variation 3) For example, when the coding device 1 determines that the MDCT spectrum has sparsity and the number of spectra that occupy a threshold (for example, 50%) is equal to or less than the threshold, the coding device 1 may perform pulse coding, instead of arithmetic coding, on the quantized MDCT spectrum. This process can improve coding efficiency.
[0108] 3 may include, for example, a switching unit for switching between coding methods, an arithmetic coding unit, and a pulse coding unit. The coding device 1 may generate information indicating the coding method applied to coding of the MDCT spectrum, and transmit the information to the decoding device 2. If the decoding device 2 supports a plurality of coding methods including, for example, arithmetic coding and pulse coding, and the coding method used by the coding device 1 can be identified in the decoding device 2, the information indicating the coding method may not be notified to the decoding device 2.
[0109] The embodiments of the present disclosure have been described above.
[0110] The present disclosure can be realized by software, hardware, or software in cooperation with hardware. Each functional block used in the description of the above embodiment may be realized partially or entirely as an LSI, which is an integrated circuit, and each process described in the above embodiment may be controlled partially or entirely by one LSI or a combination of LSIs. The LSI may be composed of individual chips, or may be composed of one chip so as to include some or all of the functional blocks. The LSI may have input and output of data. Depending on the degree of integration, the LSI may be called an IC, a system LSI, a super LSI, or an ultra LSI.
[0111] The method of integration is not limited to LSI, and may be realized by a dedicated circuit, a general-purpose processor, or a dedicated processor. Also, after LSI manufacturing, a programmable FPGA (Field Programmable Gate Array) or a reconfigurable processor that can reconfigure the connections and settings of circuit cells inside the LSI may be used. The present disclosure may be realized as digital processing or analog processing.
[0112] Furthermore, if a new integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derivative technology, it is possible to integrate the functional blocks using that technology. The application of biotechnology is also a possibility.
[0113] The present disclosure may be implemented in any type of apparatus, device, or system having a communication function (collectively referred to as a communication apparatus). The communication apparatus may include a radio transceiver and processing / control circuitry. The radio transceiver may include a receiver and a transmitter, or both as functions. The radio transceiver (transmitter and receiver) may include a radio frequency (RF) module and one or more antennas. The RF module may include an amplifier, an RF modulator / demodulator, or the like. Non-limiting examples of communication devices include telephones (e.g., cell phones, smartphones, etc.), tablets, personal computers (PCs) (e.g., laptops, desktops, notebooks, etc.), cameras (e.g., digital still / video cameras), digital players (e.g., digital audio / video players), wearable devices (e.g., wearable cameras, smart watches, tracking devices, etc.), game consoles, digital book readers, telehealth and telemedicine devices, communication-enabled vehicles or mobile conveyances (e.g., cars, airplanes, boats, etc.), and combinations of the above devices.
[0114] Communications Equipment includes, but is not limited to portable or mobile equipment, non-portable or fixed equipment, devices and systems of any kind, such as smart home devices (appliances, lighting equipment, smart meters or metering devices, control panels, etc.), vending machines and any other "Things" that may exist on an Internet of Things (IoT) network.
[0115] Communications include data communications via cellular systems, wireless LAN systems, communications satellite systems, etc., as well as data communications via combinations of these.
[0116] A communications apparatus also includes devices, such as controllers and sensors, connected or coupled to a communications device that performs the communications functions described in this disclosure, such as controllers and sensors that generate control and data signals used by the communications device to perform the communications functions of the communications apparatus.
[0117] The communication apparatus also includes infrastructure facilities, such as base stations, access points, and any other apparatus, device, or system that communicates with or controls the various apparatuses listed above, but are not limited to these.
[0118] A quantization scale factor determination device according to one embodiment of the present disclosure includes a correction circuit that corrects an initial value of a quantization scale factor based on whether or not a spectrum of an audio signal has sparsity, and a search circuit that searches for the quantization scale factor based on the initial value.
[0119] In one embodiment of the present disclosure, the method further includes a determination circuit for determining whether the sparsity exists.
[0120] In one embodiment of the present disclosure, the decision circuitry decides the sparsity based on a harmonic structure of the spectrum.
[0121] In one embodiment of the present disclosure, the determination circuit determines the sparsity based on the number of spectra that occupy a proportion equal to or greater than a threshold in the speech acoustic signal.
[0122] In one embodiment of the present disclosure, the determination circuit determines the sparsity based on an absolute value of the spectrum and an envelope of the spectrum.
[0123] In an embodiment of the present disclosure, the determination circuit switches a condition for determining the sparsity based on the initial value before correction calculated based on the spectrum.
[0124] In one embodiment of the present disclosure, the method further includes a pre-processing circuit that adjusts an upper limit of the initial value, and the determination circuit determines the sparsity based on an output of the pre-processing circuit.
[0125] In one embodiment of the present disclosure, the search circuit determines the quantization scale factor in a third search after the first search based on a difference between an amount of consumed bits estimated for encoding the spectrum in the first search and a target amount of bits, and a difference between an amount of consumed bits estimated for encoding the spectrum in a second search before the first search and the target amount of bits.
[0126] In one embodiment of the present disclosure, the apparatus further includes a calculation circuit for calculating the initial value based on one of a variance and a standard deviation of a spectral amplitude of the speech audio signal.
[0127] In a quantization scale factor determination method according to one embodiment of the present disclosure, a quantization scale factor determination device corrects an initial value of a quantization scale factor based on whether or not a spectrum of an audio signal has sparsity, and searches for the quantization scale factor based on the initial value.
[0128] The disclosures of the specification, drawings and abstract contained in Japanese Patent Application No. 2019-189177, filed on October 16, 2019, are incorporated herein by reference in their entirety. [Industrial Applicability]
[0129] An embodiment of the present disclosure is useful for a system for transmitting voice or acoustic signals, etc. [Explanation of symbols]
[0130] 1 Encoding device 2. Decryption device 10 TCX encoding section 11 Envelope Generation Section 12 Harmonics Analysis Section 13 Envelope Scaling Section 14 Rate loop processing section 15 Quantization / encoding section 141 Quantization scale factor calculation unit 142 Sparse Analysis Unit 143 Quantization scale coefficient search unit 151 Quantization section 152 Encoding section 1421 Preprocessing section 1422 Sparsity Judgment Unit 1423 Quantization scale factor correction unit
Claims
1. a correction circuit that corrects an initial value of a quantization scale factor based on whether a spectrum of the speech audio signal has sparsity; a search circuit for searching the quantization scale factor based on the initial value; 1. A quantization scale factor determination apparatus comprising:
2. A determination circuit for determining whether the data has sparsity.
2. The quantization scale factor determination apparatus according to claim 1.
3. The determination circuit determines the sparsity based on a harmonic structure of the spectrum.
3. The quantization scale factor determining apparatus according to claim 2.
4. The determination circuit determines the sparsity based on a number of spectra that occupy a proportion equal to or greater than a threshold in the speech audio signal.
3. The quantization scale factor determining apparatus according to claim 2.
5. The determination circuit determines the sparsity based on an absolute value of the spectrum and an envelope of the spectrum.
3. The quantization scale factor determining apparatus according to claim 2.
6. the determination circuit switches a condition for determining the sparsity based on the initial value before correction calculated based on the spectrum.
3. The quantization scale factor determining apparatus according to claim 2.
7. A pre-processing circuit for adjusting an upper limit of the initial value, The determination circuit determines the sparsity based on an output of the pre-processing circuit.
3. The quantization scale factor determining apparatus according to claim 2.
8. the search circuit determines the quantization scale factor in a third search after the first search based on a difference between an amount of consumed bits estimated for encoding the spectrum in a first search and a target amount of bits, and a difference between an amount of consumed bits estimated for encoding the spectrum in a second search before the first search and the target amount of bits.
2. The quantization scale factor determination apparatus according to claim 1.
9. a calculation circuit for calculating the initial value based on one of a variance and a standard deviation of a spectral amplitude of the speech audio signal.
2. The quantization scale factor determination apparatus according to claim 1.
10. The quantization scale factor determination device comprises: correcting an initial value of a quantization scale factor based on whether a spectrum of the speech audio signal has sparseness; performing a search for the quantization scale factor based on the initial value; Quantization scale factor determination method.
Citation Information
Patent Citations
Encoding device, encoding method and encoding program
JP2009198612A
Coding and decoding of spectral peak positions
JP2016533515A
Audio encoder for encoding an audio signal taking into account detected peak spectral regions in a higher frequency band, method for encoding an audio signal, and computer program
JP2019514065A
