Decoding device, decoding method, decoding program, and recording medium
By using periodic comprehensive envelope generation and variable length coding in audio signal coding, the problems of difficulty in transmitting spectral envelope information and low coding efficiency in the existing technology are solved, and efficient audio signal coding is achieved.
Patent Information
- Application Number
- CN202110081890.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2014-05-01
- Filing Date
- 2015-02-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2035-02-20
AI Technical Summary
During the encoding process of audio signals, it is difficult for the existing technology to effectively transmit the spectral envelope information, resulting in low encoding efficiency, especially the problem of poor approximation accuracy near the peak caused by the pitch period.
Adopting a periodic comprehensive envelope generation unit and a variable length encoding unit, the coding efficiency is improved by generating a frequency domain sequence based on linear prediction coefficients and a periodic comprehensive envelope sequence of periodic codes, and the corresponding variable length is used on the decoding side The decoding unit performs decoding.
A frequency domain envelope sequence with high approximation accuracy near the peak caused by the pitch period of the audio signal is reproduced with a smaller code amount, thereby improving the coding efficiency of the audio signal.
Smart Images

Figure CN112820304B_ABST
Abstract
Description
[0001] The present invention is a divisional application of the following patent application: Application number: 201580022887.7, Application date: February 20, 2015, Invention name: Encoding device, decoding device, encoding method, decoding method, recording medium. Technical Field
[0002] The present invention relates to an encoding device, a decoding device, an encoding method, a decoding method, an encoding program, a decoding program, and a recording medium for encoding and decoding an acoustic signal using a spectral envelope of the acoustic signal. Background Art
[0003] As a coding method for low-bit (e.g., about 10 kbit / s to 20 kbit / s) speech signals or acoustic signals, adaptive coding of orthogonal transform coefficients such as DFT (discrete Fourier transform) and MDCT (modified discrete cosine transform) is known. For example, in the TCX (transform coded excitation) coding method used in Non-Patent Document 1, a sequence (normalized sequence X) is obtained by removing the influence of the amplitude spectrum envelope from the coefficient sequence X[1], ..., X[N] representing the input acoustic signal in the frequency domain. N [1], …, X N [N]), and performs variable length coding on it. Where N in [] is a positive integer.
[0004] The amplitude spectrum envelope is calculated by the following steps.
[0005] (Step 1) A linear prediction analysis is performed on an inputted time-domain sound digital signal (hereinafter, input sound signal) in units of frames as a predetermined time interval to obtain linear prediction coefficients α1, ..., α P . Where P is a positive integer indicating the prediction order. For example, through the P-order autoregressive process as an all-pole model, the input sound signal x(t) at time t is calculated based on its own values x(t-1), ..., x(tP) traced back to the past time P and the prediction residual e(t) and the linear prediction coefficients α1, ..., α p , which is expressed by formula (1).
[0006] x(t)=α1x(t-1)+…+α p x(tP)+e(t) (1)
[0007] (Step 2) For the linear prediction coefficients α1, ..., α P Quantize and find the quantized linear prediction coefficients ^α1,…,^α P . Using the quantized linear prediction coefficients ^α1,…,^α PThe amplitude spectrum envelope sequence W[1], ..., W[N] of the N-point input sound signal is obtained. For example, the values W[n] of the amplitude spectrum envelope sequence can be obtained by formula (2). Where n is an integer of 1≦n≦N, exp(·) is an exponential function with the Napier number as the base, j is an imaginary unit, and σ is the amplitude of the predicted residual signal.
[0008]
[0009] In this specification, a symbol without square brackets in the upper right corner indicates a power operation. 2 Indicates σ raised to the power of 2. In addition, the symbols "~", "^", etc. used in the text should be recorded directly above the character that follows them, but due to the limitations of the text recording method, they are recorded directly in front of the character. In the formula, these symbols are recorded in their original position, that is, directly above the character.
[0010] Prior art literature
[0011] Non-patent literature
[0012] Non-patent document 1: Anthony Vetro, "MPEG Unified Speech and Audio Coding", Industry and Standards, IEEE MultiMedia, April-June, 2013. Summary of the invention
[0013] Problems to be solved by the invention
[0014] In the encoding of the acoustic signal, in order to obtain the information of the spectral envelope on the decoding side, it is necessary to send the code corresponding to the spectral envelope to the decoding side. When the spectral envelope is obtained based on the linear prediction coefficient as in Non-Patent Document 1, the "code corresponding to the spectral envelope" sent to the decoding side is the "code corresponding to the linear prediction coefficient", which has the advantage of requiring only a small amount of code. On the other hand, the information of the spectral envelope obtained by the linear prediction coefficient may deteriorate the approximation accuracy near the peak due to the pitch period of the input acoustic signal, which may sometimes lead to a decrease in the coding efficiency when the normalized coefficient string is variable-length coded.
[0015] In view of such a problem, the present invention provides an encoding device and a decoding device that can reproduce a frequency domain envelope sequence with high approximation accuracy of peaks caused by a pitch period of an acoustic signal with a small amount of code.
[0016] Means for solving problems
[0017] The encoding device of the present invention includes a periodic integrated envelope generation unit and a variable length encoding unit. The periodic integrated envelope generation unit generates a periodic integrated envelope sequence as a sequence in the frequency domain, based on a spectral envelope sequence, which is a sequence in the frequency domain corresponding to a linear prediction coefficient code obtained from an input sound signal in a predetermined time interval, and a period in the frequency domain corresponding to a periodic code obtained from the input sound signal. The variable length encoding unit encodes a sequence in the frequency domain derived from an input sound signal on the premise that the amplitude of the input sound signal increases as the value of the periodic integrated envelope sequence increases. The decoding device of the present invention includes a periodic integrated envelope generation unit and a variable length decoding unit. The periodic integrated envelope generation unit generates a periodic integrated envelope sequence as a sequence in the frequency domain, based on a spectral envelope sequence, which is a sequence in the frequency domain corresponding to a linear prediction coefficient code, and a period in the frequency domain corresponding to the periodic code. The variable length decoding unit decodes the variable length code on the premise that the amplitude of the acoustic signal increases as the frequency at which the value of the periodic integrated envelope sequence increases, thereby obtaining a sequence in the frequency domain.
[0018] A decoding device according to another embodiment of the present invention comprises: a periodic integrated envelope generating unit, which modifies a sequence in the frequency domain corresponding to a linear prediction coefficient code, namely a spectral envelope sequence, based on sample values of a period in the frequency domain corresponding to a periodic code, thereby generating a periodic integrated envelope sequence as a sequence in the frequency domain; an indicator decoding unit, which decodes an input indicator code to obtain an indicator representing a degree of periodicity; a variable length coding parameter calculating unit, which calculates a variable length coding parameter depending on an amplitude value from the periodic integrated envelope sequence; a second variable length coding parameter calculating unit, which calculates a variable length coding parameter depending on an amplitude value based on the spectral envelope sequence; and a variable length decoding unit, which decodes using the variable length coding parameter, wherein when the indicator is within a predetermined large range representing a degree of periodicity, the variable length decoding unit decodes using the variable length coding parameter calculated by the variable length coding parameter calculating unit, and when the indicator is not within the large range representing a degree of periodicity, the variable length decoding unit decodes using the variable length coding parameter calculated by the second variable length coding parameter calculating unit.
[0019] Effects of the Invention
[0020] According to the encoding device and decoding device of the present invention, encoding and decoding are performed to reproduce the envelope sequence in the frequency domain of the approximate accuracy number near the peak value caused by the pitch period of the input acoustic signal with a small amount of code, so the encoding efficiency of the acoustic signal is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1This is a diagram showing an example of the functional configuration of a periodic-combined-envelope-sequence generation device according to the first embodiment.
[0022] Figure 2 It is a diagram showing the processing flow of the periodic integrated envelope sequence generating device of the first embodiment.
[0023] Figure 3 is a diagram showing an example of a periodic envelope sequence P[1], ..., P[N].
[0024] Figure 4A 1 is a diagram showing an example for explaining the difference in a sequence generated for the same acoustic signal, and is a diagram showing the shape of a curve obtained by interpolating a logarithmic sequence X[1], . . . , X[N].
[0025] Figure 4B 1 is a diagram showing an example for explaining the difference in a sequence generated for the same acoustic signal, and is a diagram showing the shape of a curve obtained by interpolating the periodic envelope sequence P[1], . . . , P[N].
[0026] Figure 4C is a diagram showing an example for explaining the difference in the sequence generated for the same acoustic signal, and is a diagram showing the smoothed amplitude spectrum envelope sequence. ~ W[1], …, ~ W[N] is a graph showing the shape of the interpolated curve.
[0027] Figure 4D is a diagram showing an example for explaining the difference in the sequence generated for the same acoustic signal, and is a diagram showing the periodic integrated envelope sequence W M [1], …, W M [N] A diagram of the shape of the interpolated curve.
[0028] Figure 5 This is a diagram showing an example of the functional structure of the encoding device of Example 2.
[0029] Figure 6 This is a diagram showing the processing flow of the encoding device of Example 2.
[0030] Figure 7 This is a diagram showing an example of the functional structure of a decoding device according to the second embodiment.
[0031] Figure 8 This is a diagram showing the processing flow of the decoding device of Example 2.
[0032] Fig. 9 This is a diagram showing an example of the functional structure of the encoding device of Example 3.
[0033] Fig.10 This is a diagram showing the processing flow of the encoding device of Example 3.
[0034] Fig.11 This is a diagram showing an example of the functional structure of a decoding device according to the third embodiment.
[0035] Fig.12 This is a diagram showing the processing flow of the decoding device of Example 3. DETAILED DESCRIPTION
[0036] Hereinafter, the embodiments of the present invention will be described in detail. In addition, the same reference numerals are given to components having the same functions, and repeated descriptions are omitted.
[0037] [Example 1]
[0038] Figure 1 An example of the functional structure of the periodic integrated envelope sequence generating device of the present invention is shown. Figure 2 The processing flow of the periodic integrated envelope sequence generation device of the present invention is shown. The periodic integrated envelope sequence generation device 100 includes a spectrum envelope sequence calculation unit 120, a frequency domain conversion unit 110, a periodic analysis unit 130, a periodic envelope sequence generation unit 140, and a periodic integrated envelope generation unit 150, and sets the input time domain sound digital signal as the input sound signal x(t), and generates a periodic integrated envelope sequence by transforming the amplitude spectrum envelope sequence based on the frequency component of the coefficient string.
[0039] <Spectrum Envelope Sequence Calculation Unit 120>
[0040] The spectrum envelope sequence calculation unit 120 calculates the amplitude spectrum envelope sequence W[1], ..., W[N] (S120) of the input sound signal based on the time domain linear prediction of the input sound signal x(t). Wherein N is a positive integer. The spectrum envelope sequence calculation unit 120 is the same as the prior art and can be calculated in the following order.
[0041] (Step 1) A linear prediction analysis is performed on the input sound signal in units of frames, which are predetermined time intervals, to obtain linear prediction coefficients α1, ..., α P . Where P is a positive integer representing the prediction order. For example, through the P-order autoregressive process as an all-pole model, the input sound signal x(t) at time t is calculated based on its own values x(t-1), ..., x(tP) in the past up to time P and the prediction residual e(t) and the linear prediction coefficients α1, ..., α p It is expressed by formula (1).
[0042] (Step 2) Using the linear prediction coefficients α1, ..., α PThe amplitude spectrum envelope sequence W[1], ..., W[N] of the input sound signal at N points is obtained. For example, each value W[n] of the amplitude spectrum envelope sequence can be obtained by using the linear prediction coefficients α1, ..., α P The corresponding quantized linear prediction coefficients ^α1,…,^α P It can be obtained by formula (2). In addition, each value W[n] of the amplitude spectrum envelope sequence can be obtained by using the linear prediction coefficients α1, ..., α P By changing the ^α of formula (2) p Replace with α p .
[0043] <Frequency Domain Converter 110>
[0044] The frequency domain conversion unit 110 converts the input sound signal in the time domain into a coefficient string X[1], ..., X[N] of N points in the frequency domain in units of frames of a predetermined time interval and outputs it (S110). The conversion to the frequency domain can be performed by methods such as MDCT (modified discrete cosine transform) or DFT (discrete Fourier transform).
[0045] <Periodicity Analysis Unit 130>
[0046] The periodicity analysis unit 130 takes the coefficient string X[1], ..., X[N] as input, calculates the period T of the coefficient string X[1], ..., X[N], and outputs the period T (S130).
[0047] The period T is information corresponding to the interval of periodic components of the coefficient string in the frequency domain derived from the input sound signal, for example, the coefficient string X[1], ..., X[N] (the interval at which the coefficient string periodically becomes a large value). Hereinafter, the period T may be expressed as the interval T, but this is only a difference in expression and is the same information. T is a positive value and may be an integer or a decimal (for example, 5.0, 5.25, 5.5, 5.75).
[0048] In addition, the periodicity analysis unit 130 may also take the coefficient string X[1], ..., X[N] as input, and obtain an index S indicating the degree of periodicity and output it as needed. In this case, for example, the index S indicating the degree of periodicity is obtained based on the ratio of the energy of the portion of the coefficient string X[1], ..., X[N] having the periodic component to the energy of the portion other than the periodic component. In this case, the index S becomes an index indicating the degree of periodicity of the sample string in the frequency domain. In addition, the larger the size of the periodic component, that is, the larger the amplitude (absolute value of the sample value) of the sample that is an integer multiple of the period T or is near the period T, the greater the "degree of periodicity" of the sample string in the frequency domain.
[0049] In addition, the periodicity analysis unit 130 may obtain a period in the time domain from the input acoustic signal in the time domain, and convert the obtained period in the time domain into a period in the frequency domain to obtain the period T. In addition, a value obtained by converting the period in the time domain into a constant multiple of the period in the frequency domain or a value close thereto may be obtained as the period T. Similarly, the periodicity analysis unit 130 may obtain an index S indicating the degree of periodicity based on the input acoustic signal in the time domain, for example, based on the magnitude of correlation between signal sequences that are time-shifted by an amount corresponding to the period in the time domain.
[0050] In short, there have been various methods for obtaining the period T or the index S based on the input sound signal in the time domain or the frequency domain coefficients derived therefrom, and any of them may be selected and used.
[0051] <Periodic Envelope Sequence Generator 140>
[0052] The periodic envelope sequence generator 140 takes the interval T as input and outputs a periodic envelope sequence P[1], ..., P[N] (S140). The periodic envelope sequence P[1], ..., P[N] is a discrete sequence in the frequency domain having a peak value at a period caused by the pitch period, that is, a discrete sequence corresponding to a harmonic pattern. Figure 3 represents an example of a periodic envelope sequence P[1], ..., P[N]. The periodic envelope sequence P[1], ..., P[N] is such that Figure 3 As shown in the waveform, only the integer-valued indexes near the integer multiples of the interval T and the values of the periodic envelope corresponding to the specified number of indexes before and after the interval T have positive values, and the rest are a sequence of 0. The integer-valued indexes near the integer multiples of the interval T periodically take the maximum value (peak value), and the values of P[n] corresponding to the specified number of indexes before and after the interval T are in a monotonically decreasing relationship as the index n moves away from the index corresponding to the peak value. Figure 3 The 1, 2, ..., on the horizontal axis represent the index of discrete sample points (hereinafter referred to as "frequency index").
[0053] For example, let n be a variable representing the frequency index, and let τ be the frequency index corresponding to the local maximum value (peak value), so that the shape of the peak value can be represented by the following function Q(n). Here, let the number of digits below the decimal point of the interval T be L, and let the interval T' be T'=T×2 L .
[0054]
[0055] h=2.8·(1.125-exp(-0.07·T′ / 2 L )),
[0056] PD=0.5·(2.6-exp(-0.05·T′ / 2L ))
[0057] h represents the height of the peak, and the height of the peak increases as the interval T increases. PD represents the width of the peak portion, and the width increases as the interval T increases.
[0058] If U is set to a positive integer representing the number from 1 to the peak value (for example, Figure 3 In the case of , it is 1 to 10), v is set to an integer greater than 1 (for example, about 1 to 3), and floor(·) is set to a function that discards decimal places and returns an integer value, then the periodic envelope sequence P[n] can be calculated, for example, as follows.
[0059]
[0060] Where, (U×T') / 2 L -v≦n≦(U×T') / 2 L +v. For example, in the case of L=2, if T=20.00, then T'=80, if T=20.25, then T'=81, if T=20.50, then T'=82, and if T=20.75, then T'=83. In addition, the periodic envelope sequence P[n] can be calculated as follows using the function Round(·) that rounds off the first decimal point and returns an integer value.
[0061]
[0062] <Periodic integrated envelope generation unit 150>
[0063] The periodic integrated envelope generation unit 150 takes at least the periodic envelope sequence P[1], ..., P[N] and the amplitude spectrum envelope sequence W[1], ..., W[N] as inputs, and obtains the periodic integrated envelope sequence W M [1], …, W M [N](S150). Specifically, the periodic comprehensive envelope W is calculated as follows: M [n].
[0064] W M [n]=W[n]·(1+δ·P[n]) (6)
[0065] In addition, δ is determined so that the periodic integrated envelope W M [n] is a value close to the shape of the absolute value coefficient of coefficient X[n], or is a predetermined value.
[0066] The periodic integrated envelope generation unit 150 determines δ so that the periodic integrated envelope W MWhen the shape of the absolute value sequence of coefficient X[n] is close to that of coefficient X[n], the periodic integrated envelope generation unit 150 only needs to take the coefficient sequence X[1], ..., X[N] as input and output the determined δ and the periodic integrated envelope sequence W at that time. M [1], …, W M [N] is sufficient. For example, δ is determined to be the δ with the smallest E defined by the following formula from among several δ candidates, for example, 0.4 and 0.8. In other words, δ is determined to be the periodic comprehensive envelope W M The shape of the absolute value sequence of [n] and the coefficient X[n] should be close.
[0067]
[0068]
[0069]
[0070] δ is determined by the periodic integrated envelope W M In other words, δ can be called the value used to determine the frequency synthesis envelope W M The value of the mixing ratio of the amplitude spectrum envelope W[n] and the periodic envelope P[n] in [n]. In addition, G in formula (9) is the inner product of the sequence of the absolute values of each coefficient X[n] of the coefficient string X[1], ..., X[N] and the sequence of the reciprocals of the periodic comprehensive envelope sequence. ~ W M [n] is the periodic integrated envelope value W M In formula (7), the coefficient string X[1], ..., X[N] and the normalized periodic comprehensive envelope sequence are calculated. ~ W M [1], …, ~ W M The purpose of raising the inner product of X[N] to the fourth power is to emphasize the coefficient X[n] with a particularly large absolute value and reduce the value (distance) of the inner product. In other words, it means to determine δ so that the coefficient X[n] with a particularly large absolute value in the coefficient string X[1], ..., X[N] is consistent with the periodic comprehensive envelope W M [n]Close.
[0071] Furthermore, when the periodic integrated envelope generator 150 determines the number of candidates for δ based on the degree of periodicity, the periodic integrated envelope generator 150 may also take the index S indicating the degree of periodicity as input, and when the index S indicates that it is a frame corresponding to a case where periodicity is high, select the δ with the smallest E defined in equation (7) from among the multiple candidates for δ, and when the index S indicates that it is a frame corresponding to a case where periodicity is low, set δ to a predetermined value. That is, when the periodic integrated envelope generator 150 determines the number of candidates for δ based on the degree of periodicity, the higher the periodicity, the more candidates for δ.
[0072] <Effects of the invention of Example 1>
[0073] Figures 4A to 4D An example is shown for explaining the difference in sequences generated for the same acoustic signal. Figure 4A represents the shape of the curve obtained by interpolating the coefficient string X[1], ..., X[N], Figure 4B represents the shape of the curve that interpolates the periodic envelope sequence P[1], ..., P[N], Figure 4C Represents the smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N] is the shape of the interpolated curve, Figure 4D Represents the periodic integrated envelope sequence W M [1], …, W M [N] The shape of the interpolated curve. Figures 4A to 4D As shown, the periodic integrated envelope sequence W M [1], …, W M [N] and smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ Compared with W[N], it has a shape that includes the periodic peaks shown in the coefficient sequence X[1], ..., X[N]. In addition, the periodic integrated envelope sequence W M [1], …, W M [N], as long as there is information of interval T, or interval T and value δ, in addition to the linear prediction coefficient or quantized linear prediction coefficient as information representing the spectral envelope, it can be generated. Therefore, by adding a small amount of information to the information representing the spectral envelope of the input sound signal, it is possible to accurately represent the peak value of the amplitude caused by the fundamental frequency period of the input sound signal based on the spectral envelope obtained by the linear prediction coefficient. In other words, the amplitude of the input sound signal can be estimated with high accuracy using a small amount of information including the linear prediction coefficient or quantized linear prediction coefficient, interval T, or interval T and value δ. In addition, the smoothed amplitude spectral envelope ~W[n] is an envelope that can be expressed by the following equation, and γ is a positive constant less than 1 for blunting (smoothing) the amplitude spectrum coefficient.
[0074]
[0075] Furthermore, when the periodic integrated envelope sequence generator of the present invention is used in an encoding device and a decoding device, the quantized linear prediction coefficients α obtained in a processing unit other than the periodic integrated envelope sequence generator included in the encoding device are determined. p The code (linear prediction coefficient code C L ) and a code (periodic code C) for determining the period T and the period in the time domain T ) is input to the decoding device. Therefore, as long as the code representing the information of δ is output from the periodic integrated envelope sequence generating device of the present invention, the periodic integrated envelope sequence generating device on the decoding side can also generate the same periodic integrated envelope sequence as the periodic integrated envelope sequence generated in the periodic integrated envelope sequence generating device on the encoding side. Therefore, the amount of code added when sending the code from the encoding device to the decoding device is small.
[0076] <Inventive Point of Example 1>
[0077] In the periodic integrated envelope sequence generating device 100 of the first embodiment, the periodic integrated envelope generating unit 150 transforms the amplitude spectrum envelope sequence W[1], ..., W[N] based on the periodic component of the coefficient sequence X[1], ..., X[N], and sets it as the periodic integrated envelope sequence W M [1], …, W M [N] is the most important point. In particular, as long as the degree of periodicity of the coefficient string X[1], ..., X[N] is greater, that is, the size of the periodic component is larger, the larger the value of the integer multiples of the interval T (period) and their nearby samples in the amplitude spectrum envelope sequence W[1], ..., W[N] is changed, the above-mentioned effect can be easily obtained. "Nearby samples" refer to samples represented by indices of integer values near the integer of the interval T. In addition, "nearby" can be set to a range determined by a predetermined method such as equations (3) to (5).
[0078] In addition, the wider the interval T of the periodic components of the coefficient string X[1], ..., X[N], the larger the value of the periodic envelope sequence P[1], ..., P[N] represented by equations (4) and (5) is, the wider the value is, that is, the integer multiples of the interval T (period) and the more samples in the vicinity thereof, and the value is other than 0. That is, the wider the interval T of the periodic components of the coefficient string is, the periodic integrated envelope generation unit 150 changes the value of the integer multiples of the interval T (period) and the more samples in the vicinity thereof in the amplitude spectrum envelope sequence to a larger value. In addition, the wider the interval T of the periodic components of the coefficient string is, the periodic integrated envelope generation unit 150 changes the sample value of the amplitude spectrum envelope sequence to a wider value, that is, the integer multiples of the interval T (period) and the more samples in the vicinity thereof. "With more samples in the vicinity" means increasing the samples existing within a range that meets the "vicinity" (a range determined by a predetermined method). That is, if the periodic integrated envelope generation unit 150 changes the amplitude spectrum envelope sequence in this way, the above-mentioned effect can be easily obtained.
[0079] In addition, as an example of effectively utilizing the characteristic of the periodic integrated envelope sequence that "the peak value of the amplitude caused by the pitch period of the input acoustic signal can be expressed with high accuracy", there are an encoding device and a decoding device, and examples of such devices are shown in Embodiments 2 and 3. Among them, examples of utilizing the characteristic of the periodic integrated envelope sequence include a noise removal device or a post filter, in addition to the encoding device and the decoding device. Therefore, in Embodiment 1, a periodic integrated envelope sequence generation device is described.
[0080] [Variation 1] (Example of periodic analysis using normalized coefficient string)
[0081] Figure 1 The periodic integrated envelope sequence generation device of the modification example 1 is also shown. In addition, Figure 2 The processing flow of the periodic integrated envelope sequence generating device of the modification example 1 is also shown. The periodic integrated envelope sequence generating device 101 is different from the periodic integrated envelope sequence generating device 100 in that it further has a frequency domain sequence normalization unit 111, and the spectrum envelope sequence calculation unit 121 and the periodicity analysis unit 131 are different, and the other structures are the same. Only the differences are described below.
[0082] <Spectral envelope sequence calculation unit 121>
[0083] The spectrum envelope sequence calculation unit 121 not only obtains the amplitude spectrum envelope sequence W[1], ..., W[N], but also obtains the smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N].
[0084] Specifically, the spectral envelope sequence calculation unit 121 performs the following processing in addition to (step 1) and (step 2) shown in the spectral envelope sequence calculation unit 120.
[0085] (Step 3) Quantized linear prediction coefficients ^α p Multiply the coefficients of p , find the quantized smoothed linear prediction coefficients ^α1γ, ^α2γ 2 ,…,^α P γ P γ is a positive constant less than 1 used for smoothing. Then, the smoothed amplitude spectrum envelope sequence is obtained by equation (10). ~ W[1], …, ~ Of course, as in the spectral envelope sequence calculation unit 120, the quantized linear prediction coefficients ^α may also be replaced by p Using the linear prediction coefficient α p .
[0086] <Frequency Domain Sequence Normalization Unit 111>
[0087] The frequency domain sequence normalization unit 111 divides each coefficient of the sequence string X[1], ..., X[N] by the smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ The normalized coefficient string X is obtained by calculating the coefficients of W[N]. N [1], …, X N [N]. That is, for n=1, ..., N,
[0088] X N [n] = X[n] / ~ Calculate W[n] (11) and find the normalized sequence string X N [1], …, X N [N](S111).
[0089] <Periodicity Analysis Section 131>
[0090] The periodicity analysis unit 131 normalizes the sequence string X N [1], …, X N [N] as input, find the normalization coefficient string X N [1], …, X N [N], and outputs the period T (S131). That is, in this modification, a normalized coefficient string X is obtained as a coefficient string in the frequency domain derived from the input sound signal. N [1], …, X NThe interval of the periodic component of [N] is taken as the period T. In addition, the periodicity analysis unit 131 may also take the coefficient sequence X[1], ..., X[N] as input, and calculate and output an index S indicating the degree of periodicity, as required.
[0091] The processing other than this is the same as that of the periodic integrated envelope sequence generation device 100. Thus, the same effect as that of the first embodiment is obtained. In addition, in the case of the periodic integrated envelope sequence generation device 101, the smoothed amplitude spectrum envelope sequence W[1], ..., W[N] may be used instead of the amplitude spectrum envelope sequence W[1], ..., W[N]. ~ W[1], …, ~ W[N]. In this case, the following calculation is performed instead of equation (6).
[0092]
[0093] [Variation 2] (Example of inputting information from the outside)
[0094] When the encoding device and the decoding device have the periodic integrated envelope sequence generating device of the present invention therein, in a processing unit other than the periodic integrated envelope sequence generating device included in the encoding device and the decoding device, the coefficient sequence X[1], ..., X[N] and the normalized coefficient sequence X[1], ..., X[N] may be obtained. N [1], …, X N [N], quantized linear prediction coefficient ^α p , quantized smoothed linear prediction coefficient ^α p γ p , amplitude spectrum envelope W[1],…,W[N], smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N], period T, index S, etc. In this case, it is also possible to set a structure in which at least any one of the frequency domain transform unit, the frequency domain normalization unit, the spectrum envelope sequence calculation unit, and the periodic analysis unit is not included in the periodic integrated envelope sequence generation device. In this case, the processing unit other than the periodic integrated envelope sequence generation device in the encoding device outputs the quantized linear prediction coefficients ^α p The code (linear prediction coefficient code C L ), a code for determining the period T or the period in the time domain (a periodic code C T ), a code for determining the index S, etc., and input it to the decoding device. Therefore, in this case, it is not necessary to output the code for determining the quantized linear prediction coefficient ^α from the periodic integrated envelope sequence generation device in the encoding device. p The code (linear prediction coefficient code C L ), a code for determining the period T or the period in the time domain (a periodic code C T ), used to determine the code of indicator S, etc.
[0095] Furthermore, when the periodic integrated envelope sequence generator of the present invention is used in the encoding device and the decoding device, it is necessary to obtain the same periodic integrated envelope sequence in the encoding device and the decoding device. Therefore, it is necessary to obtain the periodic integrated envelope sequence using information that can be determined based on the code output by the encoding device and input to the decoding device. For example, it is necessary to use the information that is determined based on the code output by the encoding device and input to the decoding device in the spectrum envelope sequence calculation section of the periodic integrated envelope sequence generator used in the encoding device. L The amplitude spectrum envelope sequence is obtained by using the corresponding quantized linear prediction coefficients, and the spectrum envelope sequence calculation unit of the periodic integrated envelope sequence generation device used in the decoding device uses the linear prediction coefficient code C output from the encoding device and input to the decoding device. L The corresponding decoded linear prediction coefficients are used to obtain the amplitude spectrum envelope sequence.
[0096] In addition, when the periodic integrated envelope sequence is used in the encoding device and the decoding device, it is not necessary to have the periodic integrated envelope sequence generating device inside as described above, but it is sufficient to have the processing unit required in the periodic integrated envelope sequence generating device in the encoding device and the decoding device. Such an encoding device and the decoding device are described in the second embodiment.
[0097] [Example 2]
[0098] 《Encoding Device》
[0099] Figure 5 An example of the functional structure of the encoding device of Embodiment 2 is shown. Figure 6 The processing flow of the encoding device of the second embodiment is shown. The encoding device 200 includes a spectrum envelope sequence calculation unit 221, a frequency domain transformation unit 110, a frequency domain sequence normalization unit 111, a periodicity analysis unit 230, a periodic envelope sequence generation unit 140, a periodic integrated envelope generation unit 250, a variable length coding parameter calculation unit 260, and a variable length coding unit 270. The encoding device 200 receives an input time domain sound digital signal as an input sound signal x(t), and outputs at least a quantized linear prediction coefficient ^α1, ..., ^α P Code C L , represents the normalized coefficient string X N [1], …, X N [N] The code C of the interval T of the period T , for the normalized coefficient string X N [1], …, X N [N] Variable length code C after variable length coding XThe frequency domain sequence normalization unit 111 is the same as that of the first modification of the first embodiment. The frequency domain transformation unit 110 and the periodic envelope sequence generation unit 140 are the same as those of the first embodiment. The different components are described below.
[0100] <Spectral envelope sequence calculation unit 221>
[0101] The spectrum envelope sequence calculation unit 221 calculates the amplitude spectrum envelope sequence W[1], ..., W[N] of the input sound signal and the smoothed amplitude spectrum envelope sequence W[1], ..., W[N] based on the linear prediction of the input sound signal x(t) in the time domain. ~ W[1], …, ~ W[N], and also find the number of quantized linear prediction coefficients ^α1,…,^α obtained in the calculation process P Code C L (S221) Wherein, N is a positive integer. The spectrum envelope sequence calculation unit 221 can perform processing according to the following steps.
[0102] (Step 1) A linear prediction analysis is performed on the input sound signal in units of frames, which are predetermined time intervals, to obtain linear prediction coefficients α1, ..., α P . Where P is a positive integer representing the prediction order. For example, through the P-order autoregressive process as the full-level point model, the past values x(t-1), ..., x(tP) traced back to time P and the prediction residual e(t) and the linear prediction coefficients α1, ..., α p , the input sound signal x(t) at time t is expressed by equation (1).
[0103] (Step 2) For the linear prediction coefficients α1, ..., α P Encode to obtain code C L And output, and calculate the code C L The corresponding quantized linear prediction coefficients ^α1,…,^α P In addition, using the quantized linear prediction coefficients ^α1,…,^α P , find the amplitude spectrum envelope sequence W[1], ..., W[N] of the input sound signal at N points. For example, each value W[n] of the amplitude spectrum envelope sequence can be found by equation (2). In addition, for the linear prediction coefficients α1, ..., α P Encode to obtain code C L The method can be used as follows: transform the prediction coefficient into LSP parameters and then encode the LSP parameters to obtain code C L The code C is obtained by encoding any coefficient that can be transformed into a linear prediction coefficient. L any method.
[0104] (Step 3) Quantized linear prediction coefficients ^α pMultiply each by γ p , find the quantized smoothed linear prediction coefficients ^α1γ, ^α2γ 2 ,…,^α P γ P γ is a predetermined positive constant less than 1 used for smoothing. Then, the smoothed amplitude spectrum envelope sequence is obtained by equation (10): ~ W[1], …, ~ W[N].
[0105] <Periodicity Analysis Unit 230>
[0106] The periodicity analysis unit 230 converts the normalized coefficient string X N [1], …, X N [N] as input, find the normalization coefficient string X N [1], …, X N The interval T of [N] (the interval that periodically becomes a larger value) is output, and the interval T and the code C representing the interval T are output. T (S230). In addition, the periodicity analysis unit 230 further obtains an index S indicating the degree of periodicity (i.e., an index indicating the degree of periodicity of the sample sequence in the frequency domain) as needed and outputs it. In addition, the periodicity analysis unit 230 further obtains a code C indicating the index S as needed. S The index S and the interval T are the same as those of the periodicity analysis unit 131 in the first modification of the first embodiment.
[0107] <Periodic integrated envelope generation unit 250>
[0108] The periodic integrated envelope generation unit 250 takes at least the periodic envelope sequence P[1], ..., P[N] and the amplitude spectrum envelope sequence W[1], ..., W[N] as inputs, and obtains the periodic integrated envelope sequence W M [1], …, W M [N] and the output periodic integrated envelope W M [n]. In addition, when the periodic integrated envelope generation unit 250 selects any one of a plurality of predetermined candidate values instead of a predetermined value as the value δ, the coefficient string X[1], ..., X[N] is input and the periodic integrated envelope W is obtained from the plurality of predetermined candidate values as the value δ. M [n] is a candidate value that is close to the shape of the absolute value sequence of the coefficient X[n], and also outputs a code C representing the value δ δ (S250).
[0109] Periodic integrated envelope W M [n] and value δ are the same as those in Example 1, and the periodic comprehensive envelope W M[n] can be obtained as in equations (6), ..., (9). In the case where the number of candidates for δ is determined according to the degree of periodicity in the periodic comprehensive envelope generation unit 250, the periodic comprehensive envelope generation unit 250 also takes the index S representing the degree of periodicity as input. When the index S is a frame corresponding to a high periodicity, the δ with the smallest E defined by equation (7) is selected from the candidates for δ with a larger number of candidates. When the index S is a frame corresponding to a low periodicity, δ can also be set to a predetermined value. In addition, when δ is set to a predetermined value, it is not necessary to output the code C representing the value δ. δ .
[0110] <Variable length coding parameter calculation unit 260>
[0111] The variable length coding parameter calculation unit 260 converts the periodic integrated envelope sequence W M [1], …, W M [N], Smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N], and the normalized coefficient string X N [1], …, X N [N] as input, find the variable length coding parameter r n (S260) The variable length coding parameter calculation unit 260 is characterized in that, based on the periodic integrated envelope sequence W M [1], …, W M [N] The amplitude value obtained is used to calculate the variable length coding parameter r n .
[0112] The variable length coding parameter is used to determine the signal of the coding object, that is, the normalized coefficient string X N [1], …, X N [N] is a parameter that indicates the range of amplitudes that can be taken by each coefficient. For example, in the case of Rice coding, the Rice parameter corresponds to a variable length coding parameter, and in the case of arithmetic coding, it corresponds to a variable length coding parameter that indicates the range of amplitudes that can be taken by the signal to be coded.
[0113] When variable length coding is performed on each sample, each coefficient X of the normalized coefficient string is N [n] Calculate variable length coding parameters. When variable length coding is performed on each sample group consisting of a plurality of samples (e.g., every two samples), the variable length coding parameters are calculated for each sample group. That is, the variable length coding parameter calculation unit 260 calculates the variable length coding parameter r according to the normalized partial coefficient string which is a part of the normalized coefficient string. nHere, it is assumed that there are multiple normalized partial coefficient strings, and the coefficients of the normalized coefficient strings are not repeated in multiple normalized partial coefficient string frames. The following describes the calculation method of the variable length coding parameter by taking the case of performing Rice coding on each sample as an example.
[0114] (Step 1) As the reference Rice parameter sb (reference variable length coding parameter), the normalization coefficient string X is calculated as follows: N [1],…,X N The logarithm of the average amplitude of each coefficient of [N].
[0115]
[0116] Sb is encoded once for each frame as a code C corresponding to the reference Rice parameter (reference variable length coding parameter) sb And is transmitted to the decoding device 400. Or the normalization coefficient string X can be estimated based on other information transmitted to the decoding device 400 N [1],…,X N In the case of the average value of the amplitude of [N], the encoding device 200 and the decoding device 400 may jointly predetermine a method for approximately determining sb based on an estimated value of the average value of the amplitude. For example, in the case of encoding using a parameter indicating the inclination of the envelope or a parameter indicating the size of the average envelope for each sub-band, the average value of the amplitude can be estimated based on other information transmitted to the decoding device 400. In this case, sb may not be encoded and the code C corresponding to the Rice parameter serving as the reference may be used. sb Output to the decoding device 400.
[0117] (Step 2) Calculate the threshold value θ according to the following formula.
[0118]
[0119] θ is the periodic integrated envelope sequence of each value W M [n] divided by the values of the smoothed amplitude spectrum envelope sequence ~ The logarithm of the average amplitude of the values after W[n].
[0120] (Step 3) |W M [n] / ~ W[n]| is larger than θ and will be used to normalize the coefficient X N [n] Rice parameter r for Rice encoding n It is determined to be a value larger than sb. M [n] / ~ The smaller W[n]| is than θ, the more it will be used to normalize the coefficient X N[n] Rice parameter r for Rice encoding n It is determined to be a smaller value than sb.
[0121] (Step 4) Repeat the process of step 3 for all n=1, 2, ..., N to find N Rice parameter r of [n] n .
[0122] <Variable length coding unit 270>
[0123] The variable length coding unit 270 uses the variable length coding parameter r obtained in the variable length coding parameter calculation unit 260. n , for the normalized coefficient string X N [1], …, X N [N] performs variable length coding and outputs variable length code C X (S270) For example, the variable length coding unit 270 uses the Rice parameter r obtained in the variable length coding parameter calculation unit 260. n , for the normalized coefficient string X N [1], …, X N [N] Perform Rice coding and use the obtained code as the variable length code C X Output. The Rice parameter r obtained in the variable length coding parameter calculation unit 260 n is a variable length coding parameter that depends on the amplitude value of the periodic integrated envelope sequence, and becomes a larger value as the frequency at which the value of the periodic integrated envelope sequence is larger. Rice coding is one of the known techniques for variable length coding that depends on the amplitude value, and uses Rice parameters to perform variable length coding that depends on the amplitude value. In addition, the periodic integrated envelope sequence generated in the periodic integrated envelope generation unit 250 expresses the spectral envelope of the input sound signal with high accuracy. That is, the variable length coding unit 270 generates the normalized coefficient sequence X[1], ..., X[N] on the premise that the amplitude of the frequency domain coefficient sequence of the input sound signal, i.e., X[1], ..., X[N], is larger as the frequency at which the value of the periodic integrated envelope sequence is larger. N [1], …, X N [N] variable length coding, in other words, the normalization coefficient string X is coded by variable length coding depending on the amplitude value using variable length coding parameters. N [1], …, X N The amplitude value referred to here is an average amplitude value of a coefficient string to be coded, an estimated value of the amplitude of each coefficient included in the coefficient string, an estimated value of the envelope of the amplitude of the coefficient string, or the like.
[0124] The encoding device 200 outputs the quantized linear prediction coefficients ^α1, ..., ^α obtained by such processing. P Code CL , Code C representing interval T T , for the normalized coefficient string X N [1], …, X N [N] Variable length code C that has been variable length encoded X In addition, the code C representing the value δ is also output as needed. δ , Code C representing the variable length coding parameter sb serving as a reference sb The code output from the encoding device 200 is input to the decoding device 400 .
[0125] [Variation 1 of the Encoding Device] (Example of Inputting Information from the External Side)
[0126] In addition, the coding device may include only the periodic envelope sequence generation unit 140, the periodic integrated envelope generation unit 250, the variable length coding parameter calculation unit 260, and the variable length coding unit 270, and convert the smoothed amplitude spectrum envelope sequence generated outside the coding device into a periodic integrated envelope sequence. ~ W[1], …, ~ W[N], normalized coefficient string X N [1], …, X N [N], interval T as input, and also take the amplitude spectrum envelope sequence W[1], ..., W[N] and index S as input as needed, and output variable length code C X .
[0127] [Variation Example 2 of the Coding Device] (Example of Finding the Interval T from the Coefficient String X[n])
[0128] In the above-mentioned periodicity analysis unit 230, the normalization coefficient string X N [1], …, X N [N] is used as input to find the interval T, but the periodicity analysis unit 230 may also use the coefficient string X[1], ..., X[N] output by the frequency domain transformation unit 110 as input to find the interval T. In this case, the interval T is found by the same method as the periodicity analysis unit 130 of the first embodiment.
[0129] Decoding Device
[0130] Figure 7 An example of the functional structure of a decoding device according to Embodiment 2 is shown. Figure 8 The processing flow of the decoding device of the second embodiment is shown. The decoding device 400 includes a spectrum envelope sequence calculation unit 421, a periodic envelope sequence generation unit 440, a periodic integrated envelope generation unit 450, a variable length coding parameter calculation unit 460, a variable length decoding unit 470, a frequency domain sequence inverse normalization unit 411, and a frequency domain inverse transformation unit 410. The decoding device 400 receives a quantized linear prediction coefficient ^α1, ..., ^α PCode C L , code C representing interval T T , for the normalized coefficient string X N [1], …, X N [N] Variable length code C that has been variable length encoded X , outputs an acoustic signal. In addition, it also accepts a code C representing a value δ as needed δ , Code C representing the variable length coding parameter sb serving as a reference sb , and the code C representing the index S S The following describes the details of each structural part.
[0131] <Spectral envelope sequence calculation unit 421>
[0132] The spectrum envelope sequence calculation unit 421 converts the code C L As input, calculate the amplitude spectrum envelope sequence W[1], ..., W[N], the smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N]. (S421). More specifically, the process may be performed according to the following steps.
[0133] (Step 1) Code C L Decode and obtain the decoded linear prediction coefficients ^α1,…,^α P .
[0134] (Step 2) Using the decoded linear prediction coefficients ^α1, ..., ^α P , find the amplitude spectrum envelope sequence W[1], ..., W[N] of N points. For example, each value W[n] of the amplitude spectrum envelope sequence can be found by formula (2).
[0135] (Step 3) Decode the linear prediction coefficient ^α p Multiply each of γ p , find the decoded smoothed linear prediction coefficients ^α1γ, ^α2γ 2 ,…,^α P γ P γ is a predetermined positive constant less than 1 used for smoothing. Then, the smoothed amplitude spectrum envelope sequence is obtained by equation (10): ~ W[1], …, ~ W[N].
[0136] <Periodic Envelope Sequence Generator 440>
[0137] The periodic envelope sequence generation unit 440 generates a code C representing the interval T. T As input, code C TDecoding is performed to obtain the interval T. Then, the periodic envelope sequence P[1], ..., P[N] is obtained by the same method as the periodic envelope sequence generation unit 140 of the encoding device 200 and output (S440).
[0138] <Periodic integrated envelope generation unit 450>
[0139] The periodic integrated envelope generation unit 450 receives as input the periodic envelope sequence P[1], ..., P[N], the amplitude spectrum envelope sequence W[1], ..., W[N], the symbol C δ 、Code C S Among them, the symbol C δ 、Code C S Sometimes it is not input. The periodic integrated envelope generation unit 450 performs the code C δ Decode and obtain the value δ. δ If it is not input, code C will not be executed. δ The value δ pre-stored in the periodic integrated envelope generation unit 450 is obtained by decoding the code C. S In the case of code C S The decoder obtains the index S, and when the index S is a frame corresponding to a case where the periodicity is high, the code C δ The decoded value δ is obtained, and if the obtained index S is a frame corresponding to a case where the periodicity is low, the code C is not performed. δ The value δ pre-stored in the periodic integrated envelope generation unit 450 is obtained by decoding. Then, the periodic integrated envelope generation unit 450 obtains the periodic integrated envelope sequence W by equation (6): M [1], …, W M [N]. (S450)
[0140] <Variable length coding parameter calculation unit 460>
[0141] The variable length coding parameter calculation unit 460 converts the periodic integrated envelope sequence W M [1], …, W M [N], Smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N], and code C sb As input, get the variable length encoding parameter r n (S460) If the average value of the amplitude can be estimated from other information transmitted to the decoding device 400, a method for approximately determining sb based on an estimated value of the average value of the amplitude estimated from other information may be predetermined. sbThe following describes the method of calculating the variable length coding parameter by taking the case where Rice decoding is performed on each sample as an example.
[0142] (Step 1) Code C sb Decoding is performed to obtain a reference Rice parameter sb (reference variable length coding parameter). If the encoding device 200 and the decoding device 400 have determined a method of approximately determining sb based on an estimated value of the average value of the amplitude, sb is obtained using this method.
[0143] (Step 2) Calculate the threshold θ using equation (14).
[0144] (Step 3) |W M [n] / ~ The larger the W[n]| is than θ, the greater the Rice parameter r n sb is set to a value larger than sb and is determined by the same method as the variable length coding parameter calculation unit 260 of the encoding device 200. M [n] / ~ The smaller W[n]| is than θ, the smaller the Rice parameter r n It is set to a smaller value than sb and is determined by the same method as the variable length coding parameter calculation unit 260 of the encoding device 200.
[0145] (Step 4) Repeat the process of step 3 for all n=1, 2, ..., N to find N Rice parameter r of [n] n .
[0146] <Variable length decoding unit 470>
[0147] The variable length decoding unit 470 uses the variable length coding parameter r obtained in the variable length coding parameter calculation unit 460. n , for variable length code C X Decode to obtain the decoded normalized coefficient string ^X N [1], …, ^X N [N] (S470). For example, the variable length decoding unit 470 uses the Rice parameter r obtained in the variable length coding parameter calculation unit 460. n , for variable length code C X Decode to obtain the decoded normalized coefficient string ^X N [1], …, ^X N [N] The decoding method of the variable length decoding unit 470 corresponds to the encoding method of the variable length encoding unit 270 .
[0148] <Frequency Domain Sequence Denormalization Unit 411>
[0149] The frequency domain sequence denormalization unit 411 converts the decoded normalization coefficient string into N [1], …, ^X N [N] and smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N] is used as input, such as
[0150] ^X[n]=^X N [n] ~ W[n] (15)
[0151] In this way, the decoding coefficient string ^X[1], ..., ^X[N] is obtained and output (S411).
[0152] <Frequency Domain Inverse Transformation Unit 410>
[0153] The frequency domain inverse transform unit 410 takes the decoded coefficient string ^X[1], ..., ^X[N] as input, and transforms the decoded coefficient string ^X[1], ..., ^X[N] into an acoustic signal (time domain) having a frame as a unit of a specified time interval (S410).
[0154] [Variation 1 of the decoding device] (Example of inputting information from the outside)
[0155] In addition, the decoding device may include only the periodic envelope sequence generation unit 440, the periodic integrated envelope generation unit 450, the variable length coding parameter calculation unit 460, and the variable length decoding unit 470. δ With code C sb In addition, the smoothed amplitude spectrum envelope sequence obtained outside the decoding device is also used as input ~ W[1], …, ~ W[N], amplitude spectrum envelope sequence W[1], ..., W[N], interval T, and if necessary, index S as input, and output normalization coefficient string X N [1], …, X N [N], and is externally multiplied by the smoothed amplitude spectrum envelope sequence to transform into a time-domain sound signal.
[0156] <Effects of the invention of Example 2>
[0157] Variable length coding is a coding method that improves coding efficiency by adaptively determining a code in accordance with the range of the amplitude of the input value of the coding object. N [1], …, X N[N] is used as the encoding object, but if variable length encoding is performed using variable length coding parameters obtained by more accurately using information on the amplitude of each coefficient included in the coefficient string of the encoding object, the encoding efficiency of the variable length encoding itself performed by the encoding device is improved. However, in order to obtain the variable length coding parameters, the decoding device needs to more accurately send information on the amplitude of each coefficient included in the coefficient string of the encoding object from the encoding device to the decoding device, which will increase the amount of code sent from the encoding device to the decoding device accordingly.
[0158] In order to suppress the increase in the amount of code, a method is required to obtain an estimated value of the amplitude of each coefficient included in the coefficient string of the encoding object from a code with a small amount of code. M [1], …, W M [N] approximates the coefficient string X[1],…,X[N] with high precision, so |W M [1] / ~ W[1]|,…,|W M [N] / ~ W[N]| can approximate the coefficient X that is the variable length coding target with high accuracy N [1],X N [2],…,X N [N] is the amplitude envelope. In other words, |W M [1] / ~ W[1]|,…,|W M [N] / ~ W[N]| becomes a sequence having a positive correlation with the amplitude of each coefficient to be encoded.
[0159] In addition, for recovering |W on the decoding device side M [1] / ~ W[1]|,|W M [2] / ~ W[2]|,…,|W M [N] / ~ W[N]|The required information is as follows.
[0160] Quantized linear prediction coefficients ^α1,…,^α P Information (Code C L )
[0161] Information indicating the interval T (code C T )
[0162] Information indicating the value δ (code C δ )
[0163] That is, according to the encoding device and decoding device of the second embodiment, in the decoding device, only the code C L、Code C T 、Code C δ With a relatively small amount of information, it is possible to reproduce an envelope including a peak value of an amplitude caused by a pitch period of an input sound signal input to the encoding device.
[0164] In addition, the encoding device and decoding device of the second embodiment are often used together with an encoding device and decoding device that perform encoding and decoding with linear prediction and pitch prediction. L Code C T is a code from an encoding device outside the encoding device 200 that performs encoding with linear prediction and pitch prediction to a decoding device outside the decoding device 400 that performs decoding with linear prediction and pitch prediction. Therefore, in order to restore the envelope including the peak value of the amplitude caused by the pitch period of the input sound signal input to the encoding device side, the code C needs to be sent from the encoding device 200 to the decoding device 400. δ Code C δ The amount of code is small (at most about 3 bits each, and the effect can be achieved even with 1 bit), which is less than the total amount of code corresponding to the variable length coding parameters of each partial sequence contained in the normalized sequence string of the encoding object.
[0165] Therefore, according to the encoding device and decoding device of Example 2, the encoding efficiency can be improved by increasing the code amount slightly.
[0166] <Inventive Point of Example 2>
[0167] In order to obtain the above-mentioned effect, the encoding device and decoding device of embodiment 2 are considered as long as they are characterized in that:
[0168] The encoding device 200 has:
[0169] The periodic integrated envelope generation unit 250 generates a periodic integrated envelope sequence as a frequency domain sequence based on a spectral envelope sequence as a frequency domain sequence corresponding to a linear prediction coefficient code obtained from an input sound signal in a predetermined time interval and a frequency domain period corresponding to a period code obtained from the input sound signal; and
[0170] The variable length coding unit 270 encodes a sequence derived from the frequency domain of the input sound signal on the premise that the amplitude of the input sound signal is larger in the frequency domain where the value of the periodic integrated envelope sequence is larger.
[0171] The decoding device 400 has:
[0172] The periodic integrated envelope generation unit 450 generates a periodic integrated envelope sequence as a sequence in the frequency domain, the sequence in the frequency domain being based on a spectral envelope sequence as a sequence in the frequency domain corresponding to the linear prediction coefficient code, and a period in the frequency domain corresponding to the periodic code;
[0173] The variable length decoding unit 470 decodes the variable length code to obtain a sequence in the frequency domain, on the premise that the larger the value of the periodic integrated envelope sequence is in the frequency domain, the larger the amplitude of the acoustic signal is. In addition, "on the premise that the larger the value of the periodic integrated envelope sequence is in the frequency domain, the larger the amplitude of the input acoustic signal is" and "on the premise that the larger the value of the periodic integrated envelope sequence is in the frequency domain, the larger the amplitude of the acoustic signal is" means that the periodic integrated envelope sequence takes a larger value at a larger frequency of the input acoustic signal or the amplitude of the acoustic signal. In addition, "derived from the input acoustic signal" means that it is obtained based on the input acoustic signal or corresponds to the input acoustic signal. For example, the coefficient string X[1], ..., X[N] and the normalized coefficient string X N [1], …, X N [N] is a frequency domain sequence derived from the input audio signal.
[0174] [Example 3]
[0175] 《Encoding Device》
[0176] Fig. 9 An example of the functional structure of the encoding device of Embodiment 3 is shown. Fig.10 The processing flow of the encoding device of the third embodiment is shown. The encoding device 300 includes a spectrum envelope sequence calculation unit 221, a frequency domain transformation unit 110, a frequency domain sequence normalization unit 111, a periodicity analysis unit 330, a periodic envelope sequence generation unit 140, a periodic integrated envelope generation unit 250, a variable length coding parameter calculation unit 260, a second variable length code parameter calculation unit 380, and a variable length coding unit 370. The encoding device 300 receives an input audio digital signal in the time domain as an input audio signal x(t), and outputs at least a quantized linear prediction coefficient ^α1, ..., ^α P Code C L , represents the normalized coefficient string X N [1], …, X N [N] The code C of the interval T of the period T , represents the coefficient string X[1],…,X[N] or the normalized coefficient string X N [1], …, X N An index S for determining the degree of periodicity of [N] and a code C indicating the index S S , for the normalized coefficient string X N [1], …, X N [N] Variable length code C that has been variable length encodedX The frequency domain sequence normalization unit 111 is the same as the first variant of the first embodiment. The frequency domain transformation unit 110 and the periodic envelope sequence generation unit 140 are the same as the first embodiment. The amplitude spectrum envelope sequence calculation unit 221, the periodic integrated envelope generation unit 250, and the variable length coding parameter calculation unit 260 are the same as the second embodiment. The different structural parts are described below.
[0177] <Periodicity Analysis Unit 330>
[0178] The periodicity analysis unit 330 converts the normalized coefficient string X N [1], …, X N [N] as input, find the normalization coefficient string X N [1], …, X N The index S of the degree of periodicity of [N] and the interval T (interval at which the value becomes large periodically) are output, and the index S and the code C representing the index S are output. S , interval T and code C representing interval T T ( S330 ) In addition, the index S and the interval T itself are the same as those of the periodicity analysis unit 131 in the first modification of the first embodiment.
[0179] Then, in the encoding device 300, when the index S is within a predetermined range indicating a large degree of periodicity, the variable length coding parameter calculation unit 260 calculates the variable length coding parameter r n If the index S is not within the predetermined range indicating a large degree of periodicity, the second variable length coding parameter calculation unit 380 calculates the variable length coding parameter r n (S390) The "predetermined range indicating a large degree of periodicity" may be, for example, a range where the index S is equal to or greater than a predetermined threshold.
[0180] <Second variable length coding parameter calculation unit 380>
[0181] The second variable length coding parameter calculation unit 380 converts the amplitude spectrum envelope sequence W[1], ..., W[N], the smoothed amplitude spectrum envelope sequence ~ W[1], …, ~ W[N], and the normalized coefficient string X N [1], …, X N [N] as input, find the variable length coding parameter r n (S380) The variable length coding parameter calculation unit 260 is characterized in that it relies on the periodic integrated envelope sequence W M [1], …, W M [N] and the amplitude value obtained, calculate the variable length coding parameter r nIn contrast, the second variable length coding parameter calculation unit 380 is characterized in that the variable length coding parameter is calculated based on the amplitude value obtained from the amplitude spectrum envelope sequence. The following describes the method of calculating the variable length coding parameter by taking the case of performing Rice coding on each sample as an example.
[0182] (Step 1) As shown in equation (13), the normalization coefficient sequence X is calculated as the reference Rice parameter sb (reference variable length coding parameter). N [1],…,X N [N] The logarithm of the average amplitude of each coefficient. This process is the same as that of the variable length coding parameter calculation unit 260.
[0183] (Step 2) The threshold value θ is calculated by the following formula.
[0184]
[0185] θ is the value W[n] of the amplitude spectrum envelope sequence divided by the value of the smoothed amplitude spectrum envelope sequence ~ The logarithm of the average amplitude of the values of W[n].
[0186] (Step 3) |W[n] / ~ W[n]| is larger than θ and will be used to normalize the coefficient X N [n] Rice parameter r for Rice encoding n Determined to be a value larger than sb. |W[n] / ~ The smaller W[n]| is than θ, the more it will be used to normalize the coefficient X N [n] Rice parameter r for Rice encoding n It is determined to be a smaller value than sb.
[0187] (Step 4) Repeat the process of step 3 for all n=1, 2, ..., N to find N Rice parameter r of [n] n .
[0188] <Variable length coding unit 370>
[0189] The variable length coding unit 370 uses the variable length coding parameter r n , for the normalized coefficient string X N [1],…,X N [N] performs variable length coding and outputs variable length code C X (S370) When the index S is within a predetermined range indicating a large degree of periodicity, the variable length coding parameter r n is the variable length coding parameter r calculated by the variable length coding parameter calculation unit 260 nIf the index S is not within a predetermined range indicating a large degree of periodicity, the variable length coding parameter r n is the variable length coding parameter r calculated by the second variable length coding parameter calculation unit 380 n .
[0190] The encoding device 300 outputs the quantized linear prediction coefficients ^α1, ..., ^α obtained by such processing. P Code C L , a code C representing an index S for indicating the degree of periodicity S , code C representing interval T T , and the normalized coefficient string X N [1],…,X N [N] Variable length code C that has been variable length encoded X , and sent to the decoding side. In addition, the code C representing the value δ is also output as needed δ and a code C representing a variable length coding parameter sb serving as a reference sb , and sent to the decoding side.
[0191] [Variation 1 of the Encoding Device] (Example in which Information is Input from the Outside)
[0192] In addition, the coding device may include only the periodic envelope sequence generation unit 140, the periodic integrated envelope generation unit 250, the variable length coding parameter calculation unit 260, the second variable length coding parameter calculation unit 380, and the variable length coding unit 370, and convert the smoothed amplitude spectrum envelope sequence generated outside the coding device into a variable length coding parameter calculation unit 370. ~ W[1], …, ~ W[N], normalized coefficient string X N [1],…,X N [N], interval T as input, and also take the amplitude spectrum envelope sequence W[1], ..., W[N], index S as input as needed, and output variable length code C X .
[0193] [Variation Example 2 of the Coding Device] (Example of Calculating the Interval T from the Coefficient String X[n])
[0194] In the above-mentioned periodicity analysis unit 330, the normalization coefficient string X N [1], …, X N [N] is used as input to find the interval T, but the periodicity analysis unit 330 can also use the coefficient sequence X[1], ..., X[N] output by the frequency domain transformation unit 110 as input to find the interval T. In this case, the interval T is found by the same method as the periodicity analysis unit 130 of the first embodiment.
[0195] Decoding Device
[0196] Fig.11 An example of the functional structure of a decoding device according to Embodiment 3 is shown. Fig.12 The processing flow of the decoding device of the third embodiment is shown. The decoding device 500 includes a spectrum envelope sequence calculation unit 421, an indicator decoding unit 530, a periodic envelope sequence generation unit 440, a periodic integrated envelope generation unit 450, a variable length coding parameter calculation unit 460, a second variable length coding parameter calculation unit 580, a variable length decoding unit 570, a frequency domain sequence inverse normalization unit 411, and a frequency domain inverse transformation unit 410. The decoding device 500 receives a quantized linear prediction coefficient ^α1, ..., ^α P Code C L , code C representing index S S , Code C representing interval T T , for the normalized coefficient string X N [1], …, X N [N] Variable length code C that has been variable length encoded X , outputs an acoustic signal. In addition, it also accepts a code C representing a value δ as needed δ , and a code C representing a variable length coding parameter sb serving as a reference sb The spectrum envelope sequence calculation unit 421, the periodic envelope sequence generation unit 440, the periodic integrated envelope generation unit 450, the variable length coding parameter calculation unit 460, the frequency domain sequence inverse normalization unit 411, and the frequency domain inverse transformation unit 410 are the same as those in Embodiment 2. The different components are described below.
[0197] <Indicator decoding unit 530>
[0198] The indicator decoding unit 530 decodes the code C S Decoding is performed to obtain the index S. In the decoding device 500, when the index S is within a predetermined range indicating a large degree of periodicity, the variable length coding parameter calculation unit 460 calculates the variable length coding parameter r n If the index S is not within the predetermined range indicating a large degree of periodicity, the second variable length coding parameter calculation unit 580 calculates the variable length coding parameter r n ( S590 ) The “predetermined range indicating a large degree of periodicity” is, for example, the same range as that of the encoding device 300 .
[0199] <Second variable length coding parameter calculation unit 580>
[0200] The second variable length coding parameter calculation unit 580 calculates the amplitude spectrum envelope sequence W[1], ..., W[N], the smoothed amplitude spectrum envelope sequence ~ W[1], …, ~W[N] and code C sb As input, find the variable length encoding parameter r n (S580) If the average value of the amplitude can be estimated based on other information transmitted to the decoding device 500, a method of approximately determining sb may be predetermined based on an estimated value of the average value of the amplitude estimated based on other information. sb The following describes the calculation method of the variable coding parameter by taking the case where Rice decoding is performed on each sample as an example.
[0201] (Step 1) Code C sb Decoding is performed to obtain a reference Rice parameter sb (reference variable length coding parameter). If the encoding device 300 and the decoding device 500 have determined a method of approximately determining sb based on an estimated value of the amplitude, sb is obtained using this method.
[0202] (Step 2) Calculate the threshold θ using equation (16).
[0203] (Step 3) |W M [n] / ~ The larger the W[n]| is than θ, the greater the Rice parameter r n sb is set to a value larger than sb, and is determined by the same method as the second variable length coding parameter calculation unit 380 of the encoding device 300. M [n] / ~ The smaller W[n]| is than θ, the smaller the Rice parameter r n The smaller the value is than sb, the smaller the value is, and the determination is made by the same method as the second variable length coding parameter calculation unit 380 of the encoding device 300.
[0204] (Step 4) Repeat the process of step 3 for all n=1, 2, ..., N to find N Rice parameter r of [n] n .
[0205] <Variable length decoding unit 570>
[0206] The variable length decoding unit 570 uses the variable length coding parameter r n , for variable length code C X Decode and find the decoded normalization coefficient string ^X N [1], …, ^X N [N] (S570). If the index S is within a predetermined range indicating a large degree of periodicity, the variable length coding parameter r n is the variable length coding parameter r calculated by the variable length coding parameter calculation unit 460 nIf the index S is not within a predetermined range indicating a large degree of periodicity, the variable length coding parameter r n is the variable length coding parameter r calculated by the second variable length coding parameter calculation unit 580 n .
[0207] [Variation 1 of the decoding device] (Example in which information is input from the outside)
[0208] In addition, the decoding device may include only the periodic envelope sequence generation unit 440, the periodic integrated envelope generation unit 450, the variable length coding parameter calculation unit 460, the second variable length coding parameter calculation unit 580, and the variable length decoding unit 570. δ Code C sb In addition, the smoothed amplitude spectrum envelope sequence obtained outside the decoding device is also used as input ~ W[1], …, ~ W[N], amplitude spectrum envelope sequence W[1], ..., W[N], interval T, index S as input, output normalization coefficient string X N [1], …, X N [N], and is externally multiplied by the smoothed amplitude spectrum envelope sequence to transform into a time-domain sound signal.
[0209] <Effects of the invention of Example 3>
[0210] When the degree of periodicity of the input acoustic signal is small, the peak value of the amplitude caused by the pitch period of the input acoustic signal is small. Therefore, the encoding device and the decoding device of the third embodiment use the periodic integrated envelope sequence to obtain the variable length coding parameters when the degree of periodicity of the acoustic signal to be encoded is large, and use the amplitude spectrum envelope sequence to obtain the variable length coding parameters when the degree of periodicity of the acoustic signal to be encoded is not large. Therefore, there is an effect that variable length coding can be performed using more appropriate variable length coding parameters, and the encoding accuracy can be improved.
[0211] In the above-mentioned embodiments 1 to 3, examples of using amplitude sequences such as amplitude spectrum envelope sequences, smoothed amplitude spectrum envelope sequences, and periodic integrated envelope sequences are described, but power sequences may be used instead of amplitude sequences, that is, power spectrum envelope sequences, smoothed power spectrum envelope sequences, and periodic integrated envelope sequences that are power sequences may be used as W[n], ~ W[n], W M [n].
[0212] [Program, recording medium]
[0213] The above-mentioned various processes are not only executed in the order described, but can also be executed in parallel or individually according to the processing capability or need of the device executing the processes. In addition, it is of course possible to make appropriate changes within the scope of the gist of the present invention.
[0214] Furthermore, when the above-mentioned configuration is realized by a computer, the processing contents of the functions that each device should have are described in a program, and then, by executing the program on a computer, the above-mentioned processing functions are realized on the computer.
[0215] The program describing the processing contents can be recorded in advance in a computer-readable recording medium. The computer-readable recording medium may be any medium such as a magnetic recording medium, an optical disk, a magneto-optical recording medium, or a semiconductor memory.
[0216] In addition, the program is circulated by selling, transferring, renting, etc. a portable recording medium such as a DVD or CD-ROM on which the program is recorded. Furthermore, the program may be circulated by storing the program in advance in a storage device of a server computer and forwarding the program from the server computer to other computers via a network.
[0217] The computer executing such a program, for example, first temporarily stores the program recorded in a removable recording medium or the program forwarded from a server computer in its own storage device. Then, when executing the process, the computer reads the program stored in its own recording medium and executes the process according to the read program. In addition, as another execution mode of the program, it can also be set that the computer directly reads the program from the removable recording medium and executes the process according to the program, and further, it can also be set that each time the program is forwarded from the server computer to the computer, the process according to the received program is executed in sequence. In addition, it can also be set as the following structure: the program is not forwarded from the server computer to the computer, but only the so-called ASP (Application Service Provider) type service that realizes the processing function through its execution instruction and result acquisition executes the above-mentioned process. In addition, the program in this method contains information for the process performed by the electronic computer and based on the program (data that is not a direct instruction to the computer but has the nature of specifying the computer's processing, etc.).
[0218] In this embodiment, the present device is configured by executing a predetermined program on a computer, but at least a part of the processing contents may be realized by hardware.
[0219] Description of symbols
[0220] 100, 101 Periodic integrated envelope sequence generation device
[0221] 110 Frequency domain conversion unit
[0222] 111 Frequency Domain Sequence Normalization
[0223] 120, 121, 22, 421 Spectral envelope sequence calculation unit
[0224] 130, 131, 230, 330 Periodic Analysis Department
[0225] 140, 441 Periodic envelope sequence generation unit
[0226] 150, 250, 450 Periodic integrated envelope generation unit
[0227] 200, 300 Encoding Device
[0228] 260, 360, 460 variable length coding parameter calculation unit
[0229] 270, 370 variable length coding unit
[0230] 380, 580 Second variable length coding parameter calculation unit
[0231] 400, 500 decoding device
[0232] 410 Frequency Domain Inverse Transformation Unit
[0233] 411 Frequency Domain Sequence Inverse Normalization
[0234] 470, 570 variable length decoding unit
[0235] 530 Index decoding department
Claims
1. A decoding device, comprising: a periodic integrated envelope generation unit that generates a periodic integrated envelope sequence as a frequency domain sequence by changing sample values based on a periodic code in the frequency domain corresponding to a linear prediction coefficient code obtained from an input sound signal in a predetermined time interval, i.e., a spectral envelope sequence; an index decoding unit that decodes the input index code to obtain an index indicating the degree of periodicity; A variable length coding parameter calculation unit calculates a variable length coding parameter that depends on the amplitude value from the periodic integrated envelope sequence; A second variable length coding parameter calculation unit calculates a variable length coding parameter that depends on the amplitude value according to the spectrum envelope sequence; and The variable length decoding unit uses the variable length coding parameters to perform decoding. When the indicator is within a predetermined range indicating a large degree of periodicity, the variable length decoding unit performs decoding using the variable length coding parameter calculated by the variable length coding parameter calculation unit, When the index is not within the range indicating a large degree of periodicity, the variable length decoding unit performs decoding using the variable length coding parameter calculated by the second variable length coding parameter calculation unit.
2. A decoding device, comprising: a periodic integrated envelope generation unit that generates a periodic integrated envelope sequence as a frequency domain sequence by changing sample values based on a periodic code in the frequency domain corresponding to a linear prediction coefficient code obtained from an input sound signal in a predetermined time interval, i.e., a spectral envelope sequence; an indicator decoding unit that decodes the input indicator code to obtain an indicator indicating the degree of periodicity; and The variable length decoding unit decodes the variable length code to obtain a sequence in the frequency domain. When the index is within a predetermined range indicating a large degree of periodicity, the variable length decoding unit decodes the variable length code to obtain a sequence in the frequency domain on the premise that the amplitude of the acoustic signal is larger at a frequency with a larger value of the periodic integrated envelope sequence, When the indicator is not within a predetermined range indicating a large degree of periodicity, the variable length decoding unit decodes the variable length code to obtain a sequence in the frequency domain on the premise that the larger the frequency at which the value of the spectral envelope sequence is, the larger the amplitude of the acoustic signal is.
3. The decoding device according to any one of claims 1 or 2, characterized in that The periodic integrated envelope generating unit changes the value of at least the sample whose index in the spectral envelope sequence is an integer multiple of the period in the frequency domain corresponding to the periodic code and near an integer multiple of the period to a larger value as the period in the frequency domain corresponding to the periodic code becomes larger, thereby setting the obtained sequence as a periodic integrated envelope sequence.
4. The decoding device according to claim 1 or 2, characterized in that: The periodic integrated envelope generating unit changes the values of more samples whose indices of samples in the spectral envelope sequence are near integer multiples of the period in the frequency domain corresponding to the periodic code as the period in the frequency domain corresponding to the periodic code increases, thereby setting the obtained sequence as a periodic integrated envelope sequence.
5. A decoding method comprising the following steps: a periodic integrated envelope generating step of generating a periodic integrated envelope sequence as a frequency domain sequence, i.e., a spectral envelope sequence, by changing sample values based on a period in the frequency domain corresponding to a periodic code, for a frequency domain sequence corresponding to a linear prediction coefficient code obtained from an input sound signal in a predetermined time interval; an index decoding step of decoding the input index code to obtain an index representing the degree of periodicity; A variable length coding parameter calculation step, calculating a variable length coding parameter that depends on the amplitude value according to the periodic integrated envelope sequence; A second variable length coding parameter calculation step, calculating a variable length coding parameter that depends on the amplitude value according to the spectrum envelope sequence; as well as The variable length decoding step uses variable length coding parameters to decode. In the variable length decoding step, When the indicator is within a predetermined range indicating a large degree of periodicity, decoding is performed using the variable length coding parameter calculated in the variable length coding parameter calculation step, When the index is not within the range indicating a large degree of periodicity, decoding is performed using the variable length coding parameter calculated in the second variable length coding parameter calculation step.
6. A decoding method comprising the following steps: a periodic integrated envelope generating step of generating a periodic integrated envelope sequence as a frequency domain sequence, i.e., a spectral envelope sequence, by changing sample values based on a period in the frequency domain corresponding to a periodic code, for a frequency domain sequence corresponding to a linear prediction coefficient code obtained from an input sound signal in a predetermined time interval; an indicator decoding step of decoding the input indicator code to obtain an indicator indicating the degree of periodicity; and The variable length decoding step decodes the variable length code to obtain a frequency domain sequence. In the variable length decoding step, When the index is within a predetermined range indicating a large degree of periodicity, the variable length code is decoded to obtain a sequence in the frequency domain on the premise that the amplitude of the acoustic signal is larger at a frequency with a larger value of the periodic integrated envelope sequence, When the index is not within a predetermined range indicating a large degree of periodicity, the variable length code is decoded to obtain a sequence in the frequency domain on the premise that the amplitude of the acoustic signal increases as the value of the spectral envelope sequence increases.
7. The decoding method according to claim 5 or 6, characterized in that: The periodic integrated envelope generating step changes the value of at least the sample whose index in the spectral envelope sequence is an integer multiple of the period in the frequency domain corresponding to the periodic code and near an integer multiple of the period to a larger value as the period in the frequency domain corresponding to the periodic code becomes larger, thereby setting the obtained sequence to a periodic integrated envelope sequence.
8. The decoding method according to claim 5 or 6, characterized in that: The periodic integrated envelope generation step changes the values of more samples whose indices of samples in the spectral envelope sequence are near integer multiples of the period in the frequency domain corresponding to the periodic code as the period in the frequency domain corresponding to the periodic code increases, thereby setting the obtained sequence to a periodic integrated envelope sequence.
9. A computer program product, comprising a decoding program, wherein the decoding method is implemented by executing the decoding program on a computer. The decoding method has the following steps: a periodic integrated envelope generating step of generating a periodic integrated envelope sequence as a frequency domain sequence, i.e., a spectral envelope sequence, by changing sample values based on a period in the frequency domain corresponding to a periodic code, for a frequency domain sequence corresponding to a linear prediction coefficient code obtained from an input sound signal in a predetermined time interval; an index decoding step of decoding the input index code to obtain an index representing the degree of periodicity; A variable length coding parameter calculation step, calculating a variable length coding parameter that depends on the amplitude value according to the periodic integrated envelope sequence; A second variable length coding parameter calculation step, calculating a variable length coding parameter that depends on the amplitude value according to the spectrum envelope sequence; as well as The variable length decoding step uses variable length coding parameters to decode. In the variable length decoding step, When the indicator is within a predetermined range indicating a large degree of periodicity, decoding is performed using the variable length coding parameter calculated in the variable length coding parameter calculation step, When the index is not within the range indicating a large degree of periodicity, decoding is performed using the variable length coding parameter calculated in the second variable length coding parameter calculation step.
10. A computer-readable recording medium recording a decoding program for causing a computer to function as the decoding device according to claim 1 or 2.
