<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenKB::Server Technical Papers &#187; SOX Exchange</title>
	<atom:link href="http://www.openkb.org/category/sox-exchange/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openkb.org</link>
	<description>Computer , server issues and solutions</description>
	<lastBuildDate>Tue, 07 Feb 2012 04:05:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SoX &#8211; Sound eXchange</title>
		<link>http://www.openkb.org/sox-sound-exchange/</link>
		<comments>http://www.openkb.org/sox-sound-exchange/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 18:23:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SOX Exchange]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=23</guid>
		<description><![CDATA[Sox is a general purpose sound converter/player/recorder that supports the following formats: * RAW sound data in various data styles * RAW textual sound data * Amiga 8svx files * Apple/SGI AIFF files * SUN .au files o PCM, U-law, A-law, G7xx ADPCM files o mutant DEC .au files o NeXT .snd files body [http://sox.sourceforge.net/&#124;More [...]]]></description>
			<content:encoded><![CDATA[<p> Sox is a general purpose sound converter/player/recorder that supports the following formats:</p>
<p>* RAW sound data in various data styles<br />
* RAW textual sound data<br />
* Amiga 8svx files<br />
* Apple/SGI AIFF files<br />
* SUN .au files<br />
o PCM, U-law, A-law, G7xx ADPCM files<br />
o mutant DEC .au files<br />
o NeXT .snd files    <span>body</span> <span> [http://sox.sourceforge.net/|More information on SOX]</span></p>
<p>wget http://internap.dl.sourceforge.net/sourceforge/sox/sox-12.17.9.tar.gz ( this may change , check with the SOx website for correct address)<br />
&#8212;<br />
Compiling<br />
&#8212;&#8212;&#8212;</p>
<p>The preferred method for compiling SoX is to use the &#8220;configure&#8221; scripts<br />
compatible with most UNIX systems that contain &#8220;/bin/sh&#8221; or equivalent<br />
(even the Window&#8217;s Cygwin setup will work with this).</p>
<p>To compile and install SoX on these platforms run the following commands:</p>
<p>./configure<br />
make<br />
make install</p>
<p>There are several optional parameters that you may pass to the configure<br />
script to customize SoX for your applications.  Run &#8220;./configure &#8211;help&#8221;<br />
for a complete list of options.</p>
<p>If your system works with the &#8220;configure&#8221; script then you may skip<br />
to the Optional Compiling section.</p>
<p>If your system does not work with the configure scripts then there are<br />
several canned &#8220;Makefile&#8221;&#8216;s that you can use inside the src directory.<br />
The following systems have a canned Makefile:</p>
<p>DOS        Makefile.dos (Borland or Turbo C)<br />
WIN95/NT   Makefile.dos (Needs modifying for Visual C++)<br />
OS/2       Makefile.gcc (using EMX GCC compiler)</p>
<p>To use a canned Makefile, a few steps need to be completed.  First up,<br />
you need to make a copy of stconfig.h.in and call it stconfig.h.  Modify<br />
this file to reflect your environment.</p>
<p>FIXME: A file called ststdint.h needs to be created as well.  This<br />
is the same as stdint.h if your system has it.</p>
<p>After that, copy either Makefile.dos or Makefile.gcc to a file<br />
called Makefile.  This needs to be done in both the src directory<br />
and the src/gsm directory.  This file also needs to be modified to reflect<br />
your environment.</p>
<p>Optional Compile Features<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>A GSM library is included with SoX.  More information on this library<br />
can be obtained from http://www.cs.tu-berlin.de/~jutta/toast.html.<br />
If this library fails to compile on your system, you can specify<br />
&#8211;disable-gsm to prevent it from being compiled in.</p>
<p>SoX can make use of Ogg Vorbis libraries to read and write Ogg<br />
Vorbis files.  Normally, the configure script will auto detect<br />
this library and enable support for Ogg Vorbis.  Ogg Vorbis library<br />
can be obtained from http://www.vorbis.com</p>
<p>SoX can make use of MP3 libraries to read and write MP3 files.<br />
Normally, the configure script will auto detect these libraries and<br />
enable support for MP3.  SoX requires libmad for reading MP3 files<br />
and lame for writing MP3 files.  Libmad can be obtained from<br />
http://www.underbit.com/products/mad/ and lame can be obtained from</p>
<p>http://mitiok.cjb.net/</p>
<p>If any libraries are installed in a non-standard locations in your<br />
system then you can use the CPPFLAGS and LDFLAGS variables to allow<br />
configure to find<br />
them.  For example:</p>
<p>./configure CPPFLAGS=&#8221;-I/home/sox/include -I/usr/local/multimedia/include&#8221; LDFLAGS=&#8221;-L/home/sox/lib -L/usr/local/multimedia/lib&#8221;</p>
<p>If you&#8217;re not processing lots of u-law or A-law files and would<br />
like to save around 64K of memory when SoX is executed then you<br />
can use runtime routines to perform u-law/A-law conversions.<br />
This is slower then the default lookup tables but results in the<br />
same answers.  To save this memory, specify &#8211;disable-fast-ulaw and<br />
&#8211;disable-fast-alaw.</p>
<p>Testing<br />
&#8212;&#8212;-</p>
<p>After successfully compiling SoX, try translating a sound file.<br />
If you can play one of the supported sound file formats,<br />
translate &#8216;monkey.wav&#8217; to your format (we&#8217;ll use &#8216;xxx&#8217;):</p>
<p>cd src<br />
./sox monkey.wav monkey.xxx</p>
<p>You may have to give the word size and rate for the file.<br />
For example, this command will make a sound file with a data rate of<br />
12,500 samples per second and the data formatted as signed shorts:</p>
<p>./sox monkey.voc -r 12500 -s -w monkey.xxx</p>
<p>If monkey.xxx plays properly (it&#8217;s a very short monkey screech),<br />
congratulations!  SoX works.</p>
<p>After that, running &#8220;tests.sh&#8221; and &#8220;testall.sh&#8221; (&#8220;tests.bat&#8221; and<br />
&#8220;testall.bat&#8221; for DOS) tests most of the  implemented file handlers to<br />
make sure that some portability issue haven&#8217;t popped up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/sox-sound-exchange/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

