<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://halfgeek.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Ad4</id>
	<title>Ad4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://halfgeek.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Ad4"/>
	<link rel="alternate" type="text/html" href="https://halfgeek.org/wiki/index.php?title=Ad4&amp;action=history"/>
	<updated>2026-05-28T12:32:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://halfgeek.org/wiki/index.php?title=Ad4&amp;diff=2293&amp;oldid=prev</id>
		<title>Psmay: Created page with &quot;An &#039;&#039;&#039;.ad4&#039;&#039;&#039; file is an audio track encoded in a format that can be readily used by low-cost sound modules such as the WTV020* (e.g. WTV020-SD-16P).  ==Encoding settings==  M...&quot;</title>
		<link rel="alternate" type="text/html" href="https://halfgeek.org/wiki/index.php?title=Ad4&amp;diff=2293&amp;oldid=prev"/>
		<updated>2017-06-19T18:54:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;An &amp;#039;&amp;#039;&amp;#039;.ad4&amp;#039;&amp;#039;&amp;#039; file is an audio track encoded in a format that can be readily used by low-cost sound modules such as the WTV020* (e.g. WTV020-SD-16P).  ==Encoding settings==  M...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;An &amp;#039;&amp;#039;&amp;#039;.ad4&amp;#039;&amp;#039;&amp;#039; file is an audio track encoded in a format that can be readily used by low-cost sound modules such as the WTV020* (e.g. WTV020-SD-16P).&lt;br /&gt;
&lt;br /&gt;
==Encoding settings==&lt;br /&gt;
&lt;br /&gt;
Most examples of the file format appear to have these properties:&lt;br /&gt;
&lt;br /&gt;
* No header (raw)&lt;br /&gt;
* Encoded as VOX/Dialogic/OKI/Intel ADPCM, a lossy but relatively uncomplicated codec with a suitable speed/quality tradeoff for this application&lt;br /&gt;
* One channel (mono)&lt;br /&gt;
* 32000Hz sample rate (some reports vary)&lt;br /&gt;
&lt;br /&gt;
===Audacity===&lt;br /&gt;
&lt;br /&gt;
[[Audacity]] appears to be able to successfully decode this format based on these settings. (Without the module in hand, not sure whether it can also encode successfully.)&lt;br /&gt;
&lt;br /&gt;
I suspect that the codec is doing something similar to what sox is doing (see below) but silencing the warnings.&lt;br /&gt;
&lt;br /&gt;
===sox===&lt;br /&gt;
&lt;br /&gt;
[[sox]] is able to decode from this format using the &amp;#039;&amp;#039;&amp;#039;-t vox&amp;#039;&amp;#039;&amp;#039; specification; however, all times I&amp;#039;ve tried this have resulted in a non-fatal warning to the effect of &amp;quot;ADPCM state errors: &amp;#039;&amp;#039;some large number&amp;#039;&amp;#039;&amp;quot;. However, the result sounds more or less equal to the result from Audacity.&lt;br /&gt;
&lt;br /&gt;
 $ sox -t vox -r 32000 src.ad4 dst.wav&lt;br /&gt;
 sox WARN adpcms: src.ad4: ADPCM state errors: 14409&lt;br /&gt;
&lt;br /&gt;
When encoding to this format, a clipping warning may appear.&lt;br /&gt;
&lt;br /&gt;
 $ sox src.wav -t vox -r 32000 dst.ad4&lt;br /&gt;
 sox WARN dither: dither clipped 18240 samples; decrease volume?&lt;/div&gt;</summary>
		<author><name>Psmay</name></author>
		
	</entry>
</feed>