📄 install
字号:
SOX: Sound Tools InstallationSeptember 30, 1998The sox program is just a batch utility that reads & writesfiles. It's very easy to port to new computers.This distribution will compile and run on most Unix systems.It was originally developed on a Unix/386 machine running AT&T V.3.2but it currently developed under Linux. With little work it shouldwork with most SVR4 systems, BSD-derived Unixes and DOS systems thatuse the GNU toolsets.Sox supports the following operating systems. Use the listedMakefile when compiling. AMIGA Makefile.ami DOS Makefile.bor (Borland and Turbo C, almost Microsoft C) OS/2 MakeOS2 & MakeOS2.dep (Makefiles are outdated) OS9 Makefile.os9 UNIX Makefile.unx (or DOS or OS/2 with gcc) Win NT sox.nt (Makefile is outdated) VMS descrip.mms (Makefile is outdated. Read vms.lis)You can run the makefile on most systems by using the followingcommand line:make -f Makefile.name ormake -fmakefile.nameBefore compiling you will need to edit the Makfile and uncomment the compiler define section related to your operating systemand possibly comment out any previous system defines.There are a few additional defines available for your operating system to add things such as sound playing support. This is generally documented in the Makefiles. Look at Makefile.unx forthe most complete set of optional defines that Sox supports.After successfully compiling SOX, try translating a sound file.If you can play one of the supported sound file formats,translate 'monkey.voc' to your format (we'll use 'xxx'): sox monkey.voc monkey.xxxYou may have to give the word size and rate for the file.For example, this command will make a sound file with a data rate of12,500 samples per second and the data formatted as signed shorts: sox monkey.voc -r 12500 -s -w monkey.xxx If monkey.xxx plays properly (it's a very short monkey screech),congratulations! SOX works. Now you should run the 'tests.sh'shell script to exercise various test scenarios. It shouldprint nothing out. You can only run this script under Unix.It shows alternate uses of the (far too) many options to sox.After that, 'testall.sh' tests most of the implemented filehandlers to make sure that some portability issue hasn't popped up.After compiling under Unix, run 'tests.sh'. It should print nothing. This indicates that data is copied correctly. By reading the testsyou may see how to make a sound sample file which you can play.'monkey.au' and 'monkey.voc' are a short lo-fi monkey screechin two supported file formats, to help you ensure that Sound Tools works. Note: 'tests.sh' works only under the Unix sh(1) shell. Use 'tests.com' under VMS.After testing with a sound file, try compiling sox with theoptimizer (-O instead of -g). It should run a little faster.If you're processing lots of u-law or a-law files, you shouldturn on FAST_ULAW_COMPRESSION or FAST_ALAW_COMPRESSION in libst.h.These substitute a table-based method for the standard method.The tables are 32K, so if you don't want them, you don't have touse them.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -