<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multimedia.cx/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Voroshil</id>
	<title>MultimediaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multimedia.cx/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Voroshil"/>
	<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php/Special:Contributions/Voroshil"/>
	<updated>2026-12-05T13:11:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10099</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10099"/>
		<updated>2008-05-02T07:16:09Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* Decode of LP filter parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
= 16 Kbps Voice Format description =&lt;br /&gt;
* Sampling rate is 16000 Hz.&lt;br /&gt;
* Each frame is 160 samples long and represents 10ms of speech data.&lt;br /&gt;
* Bitstream rate is 16 Kbps&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Decode of LP filter parameters ==&lt;br /&gt;
=== LSF vectors decoding ===&lt;br /&gt;
=== LSF to LSP vector conversion ===&lt;br /&gt;
Same as for [[AMR-NB#LSF_to_LSP_vector_conversion|AMR-NB]], except that coefficients belongs to [0; 8000]Hz range and sampling rate is 16 kHz.&lt;br /&gt;
&lt;br /&gt;
=== LSP vector interpolation ===&lt;br /&gt;
Same as for [[AMR-NB#LSP_vector_interpolation_.28c.f._.C2.A75.2.6.29|AMR-NB, 12.2k mode]], except that only two subframes are used.&lt;br /&gt;
=== LSP to LP vector conversion ===&lt;br /&gt;
Same as for [[AMR-NB#LSP_vector_to_LP_filter_coefficient_conversion_.28c.f._.C2.A75.2.4.29|AMR-NB ]]&lt;br /&gt;
&lt;br /&gt;
== Decoding of the pitch (adaptive codebook) vector ==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Codebook structure is similar to [[AMR-NB#12.2_kbps_mode_2|AMR-NB&#039;s 12.2k mode]], except that no gray coding is used and each index is extended to 4 bits.&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10098</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10098"/>
		<updated>2008-05-02T07:10:22Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* LSP to LP vector conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
= 16 Kbps Voice Format description =&lt;br /&gt;
* Sampling rate is 16000 Hz.&lt;br /&gt;
* Each frame is 160 samples long and represents 10ms of speech data.&lt;br /&gt;
* Bitstream rate is 16 Kbps&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Decode of LP filter parameters ==&lt;br /&gt;
=== LSF vectors decoding ===&lt;br /&gt;
=== LSF to LSP vector conversion ===&lt;br /&gt;
Same as for [[AMR-NB#LSF_to_LSP_vector_conversion|AMR-NB, 12.2k mode]], except that coefficients belongs to [0; 8000]Hz range and sampling rate is 16 kHz.&lt;br /&gt;
&lt;br /&gt;
=== LSP vector interpolation ===&lt;br /&gt;
Same as for [[AMR-NB#LSP_vector_interpolation_.28c.f._.C2.A75.2.6.29|AMR-NB, 12.2k mode]], except that only two subframes are used.&lt;br /&gt;
=== LSP to LP vector conversion ===&lt;br /&gt;
Same as for [[AMR-NB#LSP_vector_to_LP_filter_coefficient_conversion_.28c.f._.C2.A75.2.4.29|AMR-NB&#039;s 12.2k mode]]&lt;br /&gt;
&lt;br /&gt;
== Decoding of the pitch (adaptive codebook) vector ==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Codebook structure is similar to [[AMR-NB#12.2_kbps_mode_2|AMR-NB&#039;s 12.2k mode]], except that no gray coding is used and each index is extended to 4 bits.&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10097</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10097"/>
		<updated>2008-05-02T07:05:19Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* 16 Kbps Voice */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
= 16 Kbps Voice Format description =&lt;br /&gt;
* Sampling rate is 16000 Hz.&lt;br /&gt;
* Each frame is 160 samples long and represents 10ms of speech data.&lt;br /&gt;
* Bitstream rate is 16 Kbps&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Decode of LP filter parameters ==&lt;br /&gt;
=== LSF vectors decoding ===&lt;br /&gt;
=== LSF to LSP vector conversion ===&lt;br /&gt;
Same as for [[AMR-NB#LSF_to_LSP_vector_conversion|AMR-NB, 12.2k mode]], except that coefficients belongs to [0; 8000]Hz range and sampling rate is 16 kHz.&lt;br /&gt;
&lt;br /&gt;
=== LSP vector interpolation ===&lt;br /&gt;
Same as for [[AMR-NB#LSP_vector_interpolation_.28c.f._.C2.A75.2.6.29|AMR-NB, 12.2k mode]], except that only two subframes are used.&lt;br /&gt;
=== LSP to LP vector conversion ===&lt;br /&gt;
&lt;br /&gt;
== Decoding of the pitch (adaptive codebook) vector ==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Codebook structure is similar to [[AMR-NB#12.2_kbps_mode_2|AMR-NB&#039;s 12.2k mode]], except that no gray coding is used and each index is extended to 4 bits.&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10096</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10096"/>
		<updated>2008-05-02T07:04:55Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
= 16 Kbps Voice =&lt;br /&gt;
* Sampling rate is 16000 Hz.&lt;br /&gt;
* Each frame is 160 samples long and represents 10ms of speech data.&lt;br /&gt;
* Bitstream rate is 16 Kbps&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Decode of LP filter parameters ==&lt;br /&gt;
=== LSF vectors decoding ===&lt;br /&gt;
=== LSF to LSP vector conversion ===&lt;br /&gt;
Same as for [[AMR-NB#LSF_to_LSP_vector_conversion|AMR-NB, 12.2k mode]], except that coefficients belongs to [0; 8000]Hz range and sampling rate is 16 kHz.&lt;br /&gt;
&lt;br /&gt;
=== LSP vector interpolation ===&lt;br /&gt;
Same as for [[AMR-NB#LSP_vector_interpolation_.28c.f._.C2.A75.2.6.29|AMR-NB, 12.2k mode]], except that only two subframes are used.&lt;br /&gt;
=== LSP to LP vector conversion ===&lt;br /&gt;
&lt;br /&gt;
== Decoding of the pitch (adaptive codebook) vector ==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Codebook structure is similar to [[AMR-NB#12.2_kbps_mode_2|AMR-NB&#039;s 12.2k mode]], except that no gray coding is used and each index is extended to 4 bits.&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10095</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10095"/>
		<updated>2008-05-02T06:43:20Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* 16 Kbps Voice */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
* Sampling rate is 16000 Hz.&lt;br /&gt;
* Each frame is 160 samples long and represents 10ms of speech data.&lt;br /&gt;
* Bitstream rate is 16 Kbps&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
==== 16 Kbps Voice ====&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Codebook structure is similar to [[AMR-NB#12.2_kbps_mode_2|AMR-NB&#039;s 12.2k mode]], except that no gray coding is used and each index is extended to 4 bits.&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10094</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10094"/>
		<updated>2008-05-02T06:34:45Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
* Sampling rate is 16000 Hz.&lt;br /&gt;
* Each frame is 160 samples long and represents 10ms of speech data.&lt;br /&gt;
* Bitstream rate is 16 Kbps&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
==== 16 Kbps Voice ====&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10093</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10093"/>
		<updated>2008-05-02T06:31:55Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* Bit stream frame format */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
* Sampling rate is 16000 Hz.&lt;br /&gt;
* Each frame is 160 samples long and represents 10ms of speech data.&lt;br /&gt;
* Bitstream rate is 16 Kbps&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
==== 16 Kbps Voice ====&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10092</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10092"/>
		<updated>2008-05-02T06:25:21Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* 16 Kbps Voice, 1/3 resolution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
==== 16 Kbps Voice ====&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10091</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10091"/>
		<updated>2008-05-02T06:19:51Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* 16 Kbps Voice */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is reconstructed pitch delay and T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== Decoding the pulse positions ===&lt;br /&gt;
==== 16 Kbps Voice ====&lt;br /&gt;
The fixed codebook vector is reconstructed using 10 pulses in 5 overlapping tracks.&lt;br /&gt;
Pulses in each track are encoded using 9 bits:&lt;br /&gt;
* 1 bit - first pulse&#039;s sign&amp;lt;ref&amp;gt;The signs of two pulses in one track are set to the same value if second pulse has greater or equal index and opposite - otherwise.&amp;lt;/ref&amp;gt; (1 - negative, 0 - positive)&lt;br /&gt;
&lt;br /&gt;
* 4 bits - encoded index of first pulse in pair&lt;br /&gt;
* 4 bits - encoded index of second pulse in pair&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Track !! Pulses || Indexes&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;7&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 2,7,12,17,22,27,32,37,42,47,52,57,62,67,72,77&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;8&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| &amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;,&amp;lt;i&amp;gt;i&amp;lt;sub&amp;gt;9&amp;lt;/sub&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
| 4,9,14,19,24,29,34,39,44,49,54,59,64,69,74,79&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10090</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10090"/>
		<updated>2008-05-02T05:52:59Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* 16 Kbps Voice, 1/3 resolution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
In the first subframe, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is reconstructed pitch delay and T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10089</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10089"/>
		<updated>2008-05-02T05:52:07Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* 16 Kbps Voice, 1/3 resolution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
In the first subframes, a fractional pitch lag is used with resolutions:&lt;br /&gt;
* 1/3 in the range [29 1/3; 159]&lt;br /&gt;
* 1 in the range [160; 281]&lt;br /&gt;
&lt;br /&gt;
...encoded using 9 bits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the second subframe, a pitch lag resolution of 1/3 is always used in the range [T1 - 10 2/3, T1 + 9 2/3], where T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe. The search range is bounded by [30, 281].&lt;br /&gt;
&lt;br /&gt;
Above procedure is applied only if encoded pitch delay is in the range [0, 61].&lt;br /&gt;
In the other case the pitch delay is set to T1 + 1, where T1 is reconstructed pitch delay and T1 is nearest integer to the fractional pitch lag of the previous (1st) subframe.&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10088</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10088"/>
		<updated>2008-05-02T05:27:10Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* 16 Kbps Voice */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== Decode pitch lag ===&lt;br /&gt;
==== 16 Kbps Voice, 1/3 resolution ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\left [29 \frac{1}{3}; 159\right] &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10087</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10087"/>
		<updated>2008-05-02T05:19:40Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* Bit stream frame format */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Decoding of the pitch (adaptive codebook) vector==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
==Decoding of the innovative (algebraic or fixed codebook) vector==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10086</id>
		<title>RealAudio sipr</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=RealAudio_sipr&amp;diff=10086"/>
		<updated>2008-05-02T05:11:32Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* FOURCC: sipr&lt;br /&gt;
* Company: [[Real|RealNetworks]]&lt;br /&gt;
* Samples: http://samples.mplayerhq.hu/real/AC-sipr/&lt;br /&gt;
&lt;br /&gt;
Audio codec found in [[RealMedia]] files, not as common as [[RealAudio_cook|cook]].&lt;br /&gt;
&lt;br /&gt;
Allegedly the same codec as [[ACELP.net]].  May be partly based on G.729, however RealAudio predates the finalization of the G.729 specifications for the 6.5 kbit/s and 11.8 kbit/s variants. [http://www.itu.int/rec/recommendation.asp?type=folders&amp;amp;lang=e&amp;amp;parent=T-REC-G.729 ITU-T G.729 page]&lt;br /&gt;
&lt;br /&gt;
Codec library with debugging symbols: [http://wwwa2.kph.uni-mainz.de/ftp/pub/machines/linux/multimedia/v50b3_linux20elf.tar.gz v50b3_linux20elf.tar.gz]&lt;br /&gt;
&lt;br /&gt;
Sipr flavors&lt;br /&gt;
 0  6.5 Kbps Voice&lt;br /&gt;
 1  8.5 Kbps Voice&lt;br /&gt;
 2  5 Kbps Voice&lt;br /&gt;
 3  16 Kbps Voice&lt;br /&gt;
&lt;br /&gt;
== Bit stream frame format ==&lt;br /&gt;
=== 16 Kbps Voice ===&lt;br /&gt;
&lt;br /&gt;
{|border =1&lt;br /&gt;
! Bits !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Switched MA predictor&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 1&lt;br /&gt;
|-&lt;br /&gt;
| 8 || LSP quantization, index 2&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 3&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 4&lt;br /&gt;
|-&lt;br /&gt;
| 7 || LSP quantization, index 5&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | First subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Second subframe&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Pitch delay&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Gain codebook index&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 1 and 6)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 2 and 7)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 3 and 8)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 4 and 9)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Fixed codebook index (pulses 5 and 10)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Vocoders]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9543</id>
		<title>ACT</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9543"/>
		<updated>2008-02-27T13:30:31Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: My previous changes (except bytes order) were wrong&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Samples: http://samples.mplayerhq.hu/A-codecs/act/&lt;br /&gt;
* Working decoder: http://www.netac.com/Download/C635/C635%20Driver&amp;amp;Tools.zip&lt;br /&gt;
&lt;br /&gt;
ACT files are created by [http://en.wikipedia.org/wiki/Chinese_MP4/MTV_Player &#039;&#039;&#039;Chinese-made portable MP3 players&#039;&#039;&#039;] when recording from the internal microphone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ACT files uses the [http://en.wikipedia.org/wiki/G.729a G729A] speech compression codec. There are 3 different ways to record to this format from a player.&lt;br /&gt;
&lt;br /&gt;
*Fine Rec&lt;br /&gt;
*Long Rec&lt;br /&gt;
*Long Vox, in this mode the player will record when voice activated.&lt;br /&gt;
&lt;br /&gt;
==ACT File Format==&lt;br /&gt;
&lt;br /&gt;
=== Bitstream ===&lt;br /&gt;
&lt;br /&gt;
These 3 modes map to 2 bitstream formats, the Fine and Long bitstream formats.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name!! Sample rate!! Frame size!! Frames per chunk !! Chunk size !! Padding bytes&lt;br /&gt;
|-&lt;br /&gt;
|Fine||8000||10||51||510||2&lt;br /&gt;
|-&lt;br /&gt;
|Long||4400||22||23||506||6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Files are always aligned to 512 bytes boundary and contains 512 byte header and chunks of the same size. Each chunk consists of fixed number of frames and padding bytes.&lt;br /&gt;
&lt;br /&gt;
=== Header ===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name !! Offset !! Bytes !! Description&lt;br /&gt;
|-&lt;br /&gt;
|riff tag||0||4||&#039;RIFF&#039;&lt;br /&gt;
|-&lt;br /&gt;
|riff size||4||4||data_size + 36&lt;br /&gt;
|-&lt;br /&gt;
|wave tag||8||4||&#039;WAVE&#039;&lt;br /&gt;
|-&lt;br /&gt;
|fmt tag||12||4||&#039;fmt &#039;&lt;br /&gt;
|-&lt;br /&gt;
|wave header size||16||4||Always 0x10&lt;br /&gt;
|-&lt;br /&gt;
|wave format||20||2||PCM&#039;s 0x01&amp;lt;ref name=&amp;quot;pcm&amp;quot;&amp;gt;This collides with the values for regular 16bits PCM&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|channels||22||2||0x01(mono)&lt;br /&gt;
|-&lt;br /&gt;
|sample rate||24||4||8000 or 4400&lt;br /&gt;
|-&lt;br /&gt;
|bit rate||28||4||16000 or ?&lt;br /&gt;
|-&lt;br /&gt;
|block align||32||2||Always 0x02&lt;br /&gt;
|-&lt;br /&gt;
|bits per sample||34||2||Always 16&lt;br /&gt;
|-&lt;br /&gt;
|data_tag||36||4||&#039;data&#039;&lt;br /&gt;
|-&lt;br /&gt;
|data_size||40||4||chunks_count * 8 * chunk_size&amp;lt;ref name=&amp;quot;chunk_size&amp;quot;&amp;gt; chunk_size is determined from the bitstream table.&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|reserved||44||212||filled by zero&lt;br /&gt;
|-&lt;br /&gt;
|act tag||256||1||Always 0x84&lt;br /&gt;
|-&lt;br /&gt;
|millisec||257||2||milliseconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|seconds||259||1||seconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|minutes||260||4||minutes part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|reserved||264||248||filled by zero&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Frame format ===&lt;br /&gt;
&lt;br /&gt;
First half of ACT frame contains odd bytes, while the second contains even bytes of encoded G.729 frame.&lt;br /&gt;
&lt;br /&gt;
 for(i=0 ; i&amp;lt;frame_size/2; i++)&lt;br /&gt;
 {&lt;br /&gt;
     g729_data[2*i+1]=act_data[i]&lt;br /&gt;
     g729_data[2*i]=act_data[frame_size/2+i]&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
=== G.729A Codec parameters ===&lt;br /&gt;
&lt;br /&gt;
Table of transmitted parameters indices. For each parameter, the Most Significant Bit (MSB) is transmitted first.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Symbol !! Description !! Bits (Fine) !! Bits (Long)&lt;br /&gt;
|-&lt;br /&gt;
| L0 || Switched MA predictor of LSP quantizer || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| L1 || First stage vector of quantizer || 7 || 7&lt;br /&gt;
|-&lt;br /&gt;
| L2 || Second stage lower vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| L3 || Second stage higher vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| P1 || Pitch delay first subframe || 8 || 8&lt;br /&gt;
|-&lt;br /&gt;
| P0 || Parity bit for Pitch delay || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| C1 || Fixed codebook first subframe || 13 || 17&lt;br /&gt;
|-&lt;br /&gt;
| S1 || Signs of fixed-codebook pulses 1st subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| GA1 || Gain codebook (stage 1) 1st subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB1 || Gain codebook (stage 1) 1st subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| P2 || Pitch delay second subframe || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| C2 || Fixed codebook 2nd subframe || 13 || 17&lt;br /&gt;
|-&lt;br /&gt;
| S2 || Signs of fixed-codebook pulses 2nd subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| GA2 || Gain codebook (stage 1) 2nd subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB2 || Gain codebook (stage 1) 2nd subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
! !! Total !! 80 !! 88&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In Long mode one ACT frame forms two G.729 frames and thus 40ms of audio data.&lt;br /&gt;
&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9517</id>
		<title>ACT</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9517"/>
		<updated>2008-02-25T17:31:25Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* G.729A Codec parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Samples: http://samples.mplayerhq.hu/A-codecs/act/&lt;br /&gt;
* Working decoder: http://www.netac.com/Download/C635/C635%20Driver&amp;amp;Tools.zip&lt;br /&gt;
&lt;br /&gt;
ACT files are created by [http://en.wikipedia.org/wiki/Chinese_MP4/MTV_Player &#039;&#039;&#039;Chinese-made portable MP3 players&#039;&#039;&#039;] when recording from the internal microphone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ACT files uses the [http://en.wikipedia.org/wiki/G.729a G729A] speech compression codec. There are 3 different ways to record to this format from a player.&lt;br /&gt;
&lt;br /&gt;
*Fine Rec&lt;br /&gt;
*Long Rec&lt;br /&gt;
*Long Vox, in this mode the player will record when voice activated.&lt;br /&gt;
&lt;br /&gt;
==ACT File Format==&lt;br /&gt;
&lt;br /&gt;
=== Bitstream ===&lt;br /&gt;
&lt;br /&gt;
These 3 modes map to 2 bitstream formats, the Fine and Long bitstream formats.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name!! Sample rate!! Frame size!! Frames per chunk !! Chunk size !! Padding bytes&lt;br /&gt;
|-&lt;br /&gt;
|Fine||8000||10||51||510||2&lt;br /&gt;
|-&lt;br /&gt;
|Long||4400||11||46||506||6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Files are always aligned to 512 bytes boundary and contains 512 byte header and chunks of the same size. Each chunk consists of fixed number of frames and padding bytes.&lt;br /&gt;
&lt;br /&gt;
=== Header ===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name !! Offset !! Bytes !! Description&lt;br /&gt;
|-&lt;br /&gt;
|riff tag||0||4||&#039;RIFF&#039;&lt;br /&gt;
|-&lt;br /&gt;
|riff size||4||4||data_size + 36&lt;br /&gt;
|-&lt;br /&gt;
|wave tag||8||4||&#039;WAVE&#039;&lt;br /&gt;
|-&lt;br /&gt;
|fmt tag||12||4||&#039;fmt &#039;&lt;br /&gt;
|-&lt;br /&gt;
|wave header size||16||4||Always 0x10&lt;br /&gt;
|-&lt;br /&gt;
|wave format||20||2||PCM&#039;s 0x01&amp;lt;ref name=&amp;quot;pcm&amp;quot;&amp;gt;This collides with the values for regular 16bits PCM&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|channels||22||2||0x01(mono)&lt;br /&gt;
|-&lt;br /&gt;
|sample rate||24||4||8000 or 4400&lt;br /&gt;
|-&lt;br /&gt;
|bit rate||28||4||16000 or ?&lt;br /&gt;
|-&lt;br /&gt;
|block align||32||2||Always 0x02&lt;br /&gt;
|-&lt;br /&gt;
|bits per sample||34||2||Always 16&lt;br /&gt;
|-&lt;br /&gt;
|data_tag||36||4||&#039;data&#039;&lt;br /&gt;
|-&lt;br /&gt;
|data_size||40||4||chunks_count * 8 * chunk_size&amp;lt;ref name=&amp;quot;chunk_size&amp;quot;&amp;gt; chunk_size is determined from the bitstream table.&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|reserved||44||212||filled by zero&lt;br /&gt;
|-&lt;br /&gt;
|act tag||256||1||Always 0x84&lt;br /&gt;
|-&lt;br /&gt;
|millisec||257||2||milliseconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|seconds||259||1||seconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|minutes||260||4||minutes part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|reserved||264||248||filled by zero&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Frame format ===&lt;br /&gt;
&lt;br /&gt;
First half of ACT frame contains odd bytes, while the second contains even bytes of encoded G.729 frame.&lt;br /&gt;
&lt;br /&gt;
 for(i=0 ; i&amp;lt;frame_size/2; i++)&lt;br /&gt;
 {&lt;br /&gt;
     g729_data[2*i+1]=act_data[i]&lt;br /&gt;
     g729_data[2*i]=act_data[frame_size/2+i]&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
=== G.729A Codec parameters ===&lt;br /&gt;
&lt;br /&gt;
Table of transmitted parameters indices. For each parameter, the Most Significant Bit (MSB) is transmitted first.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Symbol !! Description !! Bits (Fine) !! Bits (Long)&lt;br /&gt;
|-&lt;br /&gt;
| L0 || Switched MA predictor of LSP quantizer || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| L1 || First stage vector of quantizer || 7 || 7&lt;br /&gt;
|-&lt;br /&gt;
| L2 || Second stage lower vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| L3 || Second stage higher vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| P1 || Pitch delay first subframe || 8 || 8&lt;br /&gt;
|-&lt;br /&gt;
| P0 || Parity bit for Pitch delay || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| C1 || Fixed codebook first subframe || 13 || 17&lt;br /&gt;
|-&lt;br /&gt;
| S1 || Signs of fixed-codebook pulses 1st subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| GA1 || Gain codebook (stage 1) 1st subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB1 || Gain codebook (stage 1) 1st subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| P2 || Pitch delay second subframe || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| C2 || Fixed codebook 2nd subframe || 13 || 17&lt;br /&gt;
|-&lt;br /&gt;
| S2 || Signs of fixed-codebook pulses 2nd subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| GA2 || Gain codebook (stage 1) 2nd subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB2 || Gain codebook (stage 1) 2nd subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
! !! Total !! 80 !! 88&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In Long mode one G.729 frame forms 20ms of audio data.&lt;br /&gt;
&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9512</id>
		<title>ACT</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9512"/>
		<updated>2008-02-25T17:18:03Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* Frame format */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Samples: http://samples.mplayerhq.hu/A-codecs/act/&lt;br /&gt;
* Working decoder: http://www.netac.com/Download/C635/C635%20Driver&amp;amp;Tools.zip&lt;br /&gt;
&lt;br /&gt;
ACT files are created by [http://en.wikipedia.org/wiki/Chinese_MP4/MTV_Player &#039;&#039;&#039;Chinese-made portable MP3 players&#039;&#039;&#039;] when recording from the internal microphone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ACT files uses the [http://en.wikipedia.org/wiki/G.729a G729A] speech compression codec. There are 3 different ways to record to this format from a player.&lt;br /&gt;
&lt;br /&gt;
*Fine Rec&lt;br /&gt;
*Long Rec&lt;br /&gt;
*Long Vox, in this mode the player will record when voice activated.&lt;br /&gt;
&lt;br /&gt;
==ACT File Format==&lt;br /&gt;
&lt;br /&gt;
=== Bitstream ===&lt;br /&gt;
&lt;br /&gt;
These 3 modes map to 2 bitstream formats, the Fine and Long bitstream formats.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name!! Sample rate!! Frame size!! Frames per chunk !! Chunk size !! Padding bytes&lt;br /&gt;
|-&lt;br /&gt;
|Fine||8000||10||51||510||2&lt;br /&gt;
|-&lt;br /&gt;
|Long||4400||11||46||506||6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Files are always aligned to 512 bytes boundary and contains 512 byte header and chunks of the same size. Each chunk consists of fixed number of frames and padding bytes.&lt;br /&gt;
&lt;br /&gt;
=== Header ===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name !! Offset !! Bytes !! Description&lt;br /&gt;
|-&lt;br /&gt;
|riff tag||0||4||&#039;RIFF&#039;&lt;br /&gt;
|-&lt;br /&gt;
|riff size||4||4||data_size + 36&lt;br /&gt;
|-&lt;br /&gt;
|wave tag||8||4||&#039;WAVE&#039;&lt;br /&gt;
|-&lt;br /&gt;
|fmt tag||12||4||&#039;fmt &#039;&lt;br /&gt;
|-&lt;br /&gt;
|wave header size||16||4||Always 0x10&lt;br /&gt;
|-&lt;br /&gt;
|wave format||20||2||PCM&#039;s 0x01&amp;lt;ref name=&amp;quot;pcm&amp;quot;&amp;gt;This collides with the values for regular 16bits PCM&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|channels||22||2||0x01(mono)&lt;br /&gt;
|-&lt;br /&gt;
|sample rate||24||4||8000 or 4400&lt;br /&gt;
|-&lt;br /&gt;
|bit rate||28||4||16000 or ?&lt;br /&gt;
|-&lt;br /&gt;
|block align||32||2||Always 0x02&lt;br /&gt;
|-&lt;br /&gt;
|bits per sample||34||2||Always 16&lt;br /&gt;
|-&lt;br /&gt;
|data_tag||36||4||&#039;data&#039;&lt;br /&gt;
|-&lt;br /&gt;
|data_size||40||4||chunks_count * 8 * chunk_size&amp;lt;ref name=&amp;quot;chunk_size&amp;quot;&amp;gt; chunk_size is determined from the bitstream table.&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|reserved||44||212||filled by zero&lt;br /&gt;
|-&lt;br /&gt;
|act tag||256||1||Always 0x84&lt;br /&gt;
|-&lt;br /&gt;
|millisec||257||2||milliseconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|seconds||259||1||seconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|minutes||260||4||minutes part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|reserved||264||248||filled by zero&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Frame format ===&lt;br /&gt;
&lt;br /&gt;
First half of ACT frame contains odd bytes, while the second contains even bytes of encoded G.729 frame.&lt;br /&gt;
&lt;br /&gt;
 for(i=0 ; i&amp;lt;frame_size/2; i++)&lt;br /&gt;
 {&lt;br /&gt;
     g729_data[2*i+1]=act_data[i]&lt;br /&gt;
     g729_data[2*i]=act_data[frame_size/2+i]&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
=== G.729A Codec parameters ===&lt;br /&gt;
&lt;br /&gt;
Table of transmitted parameters indices. For each parameter, the Most Significant Bit (MSB) is transmitted first.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Symbol !! Description !! Bits (Fine) !! Bits (Long)&lt;br /&gt;
|-&lt;br /&gt;
| L0 || Switched MA predictor of LSP quantizer || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| L1 || First stage vector of quantizer || 7 || 7&lt;br /&gt;
|-&lt;br /&gt;
| L2 || Second stage lower vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| L3 || Second stage higher vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| P1 || Pitch delay first subframe || 8 || 8&lt;br /&gt;
|-&lt;br /&gt;
| P0 || Parity bit for Pitch delay || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| C1 || Fixed codebook first subframe || 13 || 12&lt;br /&gt;
|-&lt;br /&gt;
| S1 || Signs of fixed-codebook pulses 1st subframe || 4 || 9&lt;br /&gt;
|-&lt;br /&gt;
| GA1 || Gain codebook (stage 1) 1st subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB1 || Gain codebook (stage 1) 1st subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| P2 || Pitch delay second subframe || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| C2 || Fixed codebook 2nd subframe || 13 || 12&lt;br /&gt;
|-&lt;br /&gt;
| S2 || Signs of fixed-codebook pulses 2nd subframe || 4 || 9&lt;br /&gt;
|-&lt;br /&gt;
| GA2 || Gain codebook (stage 1) 2nd subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB2 || Gain codebook (stage 1) 2nd subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
! !! Total !! 80 !! 88&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In Long mode 2 ACT frames form a G.729 frame.&lt;br /&gt;
&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
	<entry>
		<id>https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9511</id>
		<title>ACT</title>
		<link rel="alternate" type="text/html" href="https://wiki.multimedia.cx/index.php?title=ACT&amp;diff=9511"/>
		<updated>2008-02-25T17:14:58Z</updated>

		<summary type="html">&lt;p&gt;Voroshil: /* Bitstream */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Samples: http://samples.mplayerhq.hu/A-codecs/act/&lt;br /&gt;
* Working decoder: http://www.netac.com/Download/C635/C635%20Driver&amp;amp;Tools.zip&lt;br /&gt;
&lt;br /&gt;
ACT files are created by [http://en.wikipedia.org/wiki/Chinese_MP4/MTV_Player &#039;&#039;&#039;Chinese-made portable MP3 players&#039;&#039;&#039;] when recording from the internal microphone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ACT files uses the [http://en.wikipedia.org/wiki/G.729a G729A] speech compression codec. There are 3 different ways to record to this format from a player.&lt;br /&gt;
&lt;br /&gt;
*Fine Rec&lt;br /&gt;
*Long Rec&lt;br /&gt;
*Long Vox, in this mode the player will record when voice activated.&lt;br /&gt;
&lt;br /&gt;
==ACT File Format==&lt;br /&gt;
&lt;br /&gt;
=== Bitstream ===&lt;br /&gt;
&lt;br /&gt;
These 3 modes map to 2 bitstream formats, the Fine and Long bitstream formats.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name!! Sample rate!! Frame size!! Frames per chunk !! Chunk size !! Padding bytes&lt;br /&gt;
|-&lt;br /&gt;
|Fine||8000||10||51||510||2&lt;br /&gt;
|-&lt;br /&gt;
|Long||4400||11||46||506||6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Files are always aligned to 512 bytes boundary and contains 512 byte header and chunks of the same size. Each chunk consists of fixed number of frames and padding bytes.&lt;br /&gt;
&lt;br /&gt;
=== Header ===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Name !! Offset !! Bytes !! Description&lt;br /&gt;
|-&lt;br /&gt;
|riff tag||0||4||&#039;RIFF&#039;&lt;br /&gt;
|-&lt;br /&gt;
|riff size||4||4||data_size + 36&lt;br /&gt;
|-&lt;br /&gt;
|wave tag||8||4||&#039;WAVE&#039;&lt;br /&gt;
|-&lt;br /&gt;
|fmt tag||12||4||&#039;fmt &#039;&lt;br /&gt;
|-&lt;br /&gt;
|wave header size||16||4||Always 0x10&lt;br /&gt;
|-&lt;br /&gt;
|wave format||20||2||PCM&#039;s 0x01&amp;lt;ref name=&amp;quot;pcm&amp;quot;&amp;gt;This collides with the values for regular 16bits PCM&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|channels||22||2||0x01(mono)&lt;br /&gt;
|-&lt;br /&gt;
|sample rate||24||4||8000 or 4400&lt;br /&gt;
|-&lt;br /&gt;
|bit rate||28||4||16000 or ?&lt;br /&gt;
|-&lt;br /&gt;
|block align||32||2||Always 0x02&lt;br /&gt;
|-&lt;br /&gt;
|bits per sample||34||2||Always 16&lt;br /&gt;
|-&lt;br /&gt;
|data_tag||36||4||&#039;data&#039;&lt;br /&gt;
|-&lt;br /&gt;
|data_size||40||4||chunks_count * 8 * chunk_size&amp;lt;ref name=&amp;quot;chunk_size&amp;quot;&amp;gt; chunk_size is determined from the bitstream table.&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|reserved||44||212||filled by zero&lt;br /&gt;
|-&lt;br /&gt;
|act tag||256||1||Always 0x84&lt;br /&gt;
|-&lt;br /&gt;
|millisec||257||2||milliseconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|seconds||259||1||seconds part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|minutes||260||4||minutes part of duration value&lt;br /&gt;
|-&lt;br /&gt;
|reserved||264||248||filled by zero&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Frame format ===&lt;br /&gt;
&lt;br /&gt;
First half of ACT frame contains odd bytes, while the second contains even bytes of encoded G.729 frame.&lt;br /&gt;
&lt;br /&gt;
 for(i=0 ; i&amp;lt;frame_size/2; i++)&lt;br /&gt;
 {&lt;br /&gt;
     g729_data[2*i]=act_data[i]&lt;br /&gt;
     g729_data[2*i+1]=act_data[frame_size/2+i]&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== G.729A Codec parameters ===&lt;br /&gt;
&lt;br /&gt;
Table of transmitted parameters indices. For each parameter, the Most Significant Bit (MSB) is transmitted first.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; style=&amp;quot;border-collapse: collapse; border-style: dashed; border-color: #2f6fab;&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#f0f0f0&amp;quot; |&lt;br /&gt;
! Symbol !! Description !! Bits (Fine) !! Bits (Long)&lt;br /&gt;
|-&lt;br /&gt;
| L0 || Switched MA predictor of LSP quantizer || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| L1 || First stage vector of quantizer || 7 || 7&lt;br /&gt;
|-&lt;br /&gt;
| L2 || Second stage lower vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| L3 || Second stage higher vector of LSP quantizer || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| P1 || Pitch delay first subframe || 8 || 8&lt;br /&gt;
|-&lt;br /&gt;
| P0 || Parity bit for Pitch delay || 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| C1 || Fixed codebook first subframe || 13 || 12&lt;br /&gt;
|-&lt;br /&gt;
| S1 || Signs of fixed-codebook pulses 1st subframe || 4 || 9&lt;br /&gt;
|-&lt;br /&gt;
| GA1 || Gain codebook (stage 1) 1st subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB1 || Gain codebook (stage 1) 1st subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
| P2 || Pitch delay second subframe || 5 || 5&lt;br /&gt;
|-&lt;br /&gt;
| C2 || Fixed codebook 2nd subframe || 13 || 12&lt;br /&gt;
|-&lt;br /&gt;
| S2 || Signs of fixed-codebook pulses 2nd subframe || 4 || 9&lt;br /&gt;
|-&lt;br /&gt;
| GA2 || Gain codebook (stage 1) 2nd subframe || 3 || 3&lt;br /&gt;
|-&lt;br /&gt;
| GB2 || Gain codebook (stage 1) 2nd subframe || 4 || 4&lt;br /&gt;
|-&lt;br /&gt;
! !! Total !! 80 !! 88&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In Long mode 2 ACT frames form a G.729 frame.&lt;br /&gt;
&lt;br /&gt;
[[Category:Audio Codecs]]&lt;br /&gt;
[[Category:Undiscovered Audio Codecs]]&lt;/div&gt;</summary>
		<author><name>Voroshil</name></author>
	</entry>
</feed>