Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-26 19:55:07 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-26 19:55:07 +0400
commit602fd8a6f8228189ce78eb14d8b3a0d6b4f5a6e7 (patch)
tree47b3c2a1c542bcf97249d0023ecbbbc0d0f0beb4 /doc/draft-ietf-codec-opus.xml
parent7f3caf941e1c3cdcf09491a16c857a0cfc3a8415 (diff)
draft: Moves the high-pass to the Opus encoder to reflect the source code
Diffstat (limited to 'doc/draft-ietf-codec-opus.xml')
-rw-r--r--doc/draft-ietf-codec-opus.xml61
1 files changed, 30 insertions, 31 deletions
diff --git a/doc/draft-ietf-codec-opus.xml b/doc/draft-ietf-codec-opus.xml
index 2f65ef96..d0e83672 100644
--- a/doc/draft-ietf-codec-opus.xml
+++ b/doc/draft-ietf-codec-opus.xml
@@ -5779,17 +5779,17 @@ A block diagram of the encoder is illustrated below.
<figure>
<artwork>
<![CDATA[
- +----------+ +-------+
- | sample | | SILK |
- +->| rate |--->|encoder|--+
- | |conversion| | | |
-audio | +----------+ +-------+ | +-------+
-------+ +--->| Range |
- | +------------+ +-------+ |encoder|---->
- | | Delay | | CELT | +--->| | bitstream
- +->|Compensation|->|encoder|--+ +-------+
- | | | |
- +------------+ +-------+
+ +----------+ +-------+
+ | sample | | SILK |
+ +->| rate |--->|encoder|--+
+ +-----------+ | |conversion| | | |
+ | Optional | | +----------+ +-------+ | +-------+
+-->| high-pass |---+ +--->| Range |
+ + filter + | +------------+ +-------+ |encoder|---->
+ +-----------+ | | Delay | | CELT | +--->| | bitstream
+ +->|compensation|->|encoder|--+ +-------+
+ | | | |
+ +------------+ +-------+
]]>
</artwork>
</figure>
@@ -5815,6 +5815,15 @@ delay the signal (for non-interactive application) or delay the mode switching d
interactive applications).
</t>
+<t>
+When the encoder is configured for voice over IP applications, the input signal is
+filtered by a high-pass filter to remove the lowest part of the spectrum
+that contains little speech energy and may contain background noise. This is a second order
+Auto Regressive Moving Average (ARMA) filter with a cut-off frequency around 50&nbsp;Hz.
+In the future, a music detector may also be used to lower the cut-off frequency when the
+input signal is detected to be music rather than speech.
+</t>
+
<section anchor="range-encoder" title="Range Coder">
<t>
The range coder also acts as the bit-packer for Opus. It is
@@ -5991,7 +6000,7 @@ fl=sum(f(i),i<k), fh=fl+f(i), and ft=sum(f(i)).
| |Pitch | | | |LSF | | | | | e |
| +->|Analysis |-+ | |Quantizer|-|---|---|--->| |
| | | |4| | | | | 8 | | | E |->
- | | +---------+ | | +---------+ | | | | n |14
+ | | +---------+ | | +---------+ | | | | n | 2
| | | | 9/\ 10| | | | | c |
| | | | | \/ | | | | o |
| | +---------+ | | +----------+| | | | d |
@@ -6002,14 +6011,14 @@ fl=sum(f(i),i<k), fh=fl+f(i), and ft=sum(f(i)).
| | | | /\ | | | | |
| | +---------|--|-------+ | | | | |
| | | \/ \/ \/ \/ \/ | |
- | +---------+ | | +---------+ +------------+ | |
- | |High-Pass| | | | | |Noise | | |
--+->|Filter |-+----+----->|Prefilter|------>|Shaping |->| |
-1 | | 2 | | 6 |Quantization|13| |
- +---------+ +---------+ +------------+ +---+
+ | | | +---------+ +------------+ | |
+ | | | | | |Noise | | |
+-+--------------+----+----->|Prefilter|------>|Shaping |->| |
+1 | | 6 |Quantization|13| |
+ +---------+ +------------+ +---+
1: Input speech signal
-2: High passed input signal
+2: Range encoded bitstream
3: Voice activity estimate
4: Pitch lags (per 5 ms) and voicing decision (per 20 ms)
5: Noise shaping quantization coefficients
@@ -6029,7 +6038,6 @@ fl=sum(f(i),i<k), fh=fl+f(i), and ft=sum(f(i)).
12: LTP state scaling coefficient. Controlling error propagation
/ prediction gain trade-off
13: Quantized signal
-14: Range encoded bitstream
]]>
</artwork>
@@ -6059,18 +6067,9 @@ fl=sum(f(i),i<k), fh=fl+f(i), and ft=sum(f(i)).
</t>
</section>
- <section title='High-Pass Filter'>
- <t>
- The input signal is filtered by a high-pass filter to remove the lowest part of the spectrum that contains little speech energy and may contain background noise. This is a second order Auto Regressive Moving Average (ARMA) filter with a cut-off frequency around 70&nbsp;Hz.
- </t>
- <t>
- In the future, a music detector may also be used to lower the cut-off frequency when the input signal is detected to be music rather than speech.
- </t>
- </section>
-
<section title='Pitch Analysis' anchor='pitch_estimator_overview_section'>
<t>
- The high-passed input signal is processed by the open loop pitch estimator shown in <xref target='pitch_estimator_figure' />.
+ The input signal is processed by the open loop pitch estimator shown in <xref target='pitch_estimator_figure' />.
<figure align="center" anchor="pitch_estimator_figure">
<artwork align="center">
<![CDATA[
@@ -6300,12 +6299,12 @@ c_tilt = 0.04 + 0.06 * C
<section title='Voiced Speech' anchor='pred_ana_voiced_overview_section'>
<t>
- For a frame of voiced speech the pitch pulses will remain dominant in the pre-whitened input signal. Further whitening is desirable as it leads to higher quality at the same available bitrate. To achieve this, a Long-Term Prediction (LTP) analysis is carried out to estimate the coefficients of a fifth-order LTP filter for each of four subframes. The LTP coefficients are used to find an LTP residual signal with the simulated output signal as input to obtain better modeling of the output signal. This LTP residual signal is the input to an LPC analysis where the LPCs are estimated using Burg's method, such that the residual energy is minimized. The estimated LPCs are converted to a Line Spectral Frequency (LSF) vector and quantized as described in <xref target='lsf_quantizer_overview_section' />. After quantization, the quantized LSF vector is converted back to LPC coefficients using the full procedure in <xref target="silk_nlsfs"/>. By using LPC coefficients derived from the quantized LSF coefficients, the encoder remains fully synchronized with the decoder. The LTP coefficients are quantized using a method described in <xref target='ltp_quantizer_overview_section' />. The quantized LPC and LTP coefficients are then used to filter the high-pass filtered input signal and measure residual energy for each of the four subframes.
+ For a frame of voiced speech the pitch pulses will remain dominant in the pre-whitened input signal. Further whitening is desirable as it leads to higher quality at the same available bitrate. To achieve this, a Long-Term Prediction (LTP) analysis is carried out to estimate the coefficients of a fifth-order LTP filter for each of four subframes. The LTP coefficients are used to find an LTP residual signal with the simulated output signal as input to obtain better modeling of the output signal. This LTP residual signal is the input to an LPC analysis where the LPCs are estimated using Burg's method, such that the residual energy is minimized. The estimated LPCs are converted to a Line Spectral Frequency (LSF) vector and quantized as described in <xref target='lsf_quantizer_overview_section' />. After quantization, the quantized LSF vector is converted back to LPC coefficients using the full procedure in <xref target="silk_nlsfs"/>. By using LPC coefficients derived from the quantized LSF coefficients, the encoder remains fully synchronized with the decoder. The LTP coefficients are quantized using a method described in <xref target='ltp_quantizer_overview_section' />. The quantized LPC and LTP coefficients are then used to filter the input signal and measure residual energy for each of the four subframes.
</t>
</section>
<section title='Unvoiced Speech' anchor='pred_ana_unvoiced_overview_section'>
<t>
- For a speech signal that has been classified as unvoiced, there is no need for LTP filtering, as it has already been determined that the pre-whitened input signal is not periodic enough within the allowed pitch period range for LTP analysis to be worth the cost in terms of complexity and rate. The pre-whitened input signal is therefore discarded, and instead the high-pass filtered input signal is used for LPC analysis using Burg's method. The resulting LPC coefficients are converted to an LSF vector and quantized as described in the following section. They are then transformed back to obtain quantized LPC coefficients, which are then used to filter the high-pass filtered input signal and measure residual energy for each of the four subframes.
+ For a speech signal that has been classified as unvoiced, there is no need for LTP filtering, as it has already been determined that the pre-whitened input signal is not periodic enough within the allowed pitch period range for LTP analysis to be worth the cost in terms of complexity and rate. The pre-whitened input signal is therefore discarded, and instead the input signal is used for LPC analysis using Burg's method. The resulting LPC coefficients are converted to an LSF vector and quantized as described in the following section. They are then transformed back to obtain quantized LPC coefficients, which are then used to filter the input signal and measure residual energy for each of the four subframes.
</t>
</section>
</section>