📄 sox.1
字号:
or.I -t sunau -U -c 1 /dev/audiofor older sun equipment..TP 10.B .txwYamaha TX-16W sampler..brA file format from a Yamaha sampling keyboard which wrote IBM-PCformat 3.5" floppies. Handles reading of files which do not havethe sample rate field set to one of the expected by looking at someother bytes in the attack/loop length fields, and defaulting to33kHz if the sample rate is still unknown..TP 10.B .vmsMore info to come..brUsed to compress speech audio for applications such as voice mail..TP 10.B .vocSound Blaster VOC files..brVOC files are multi-part and contain silence parts, looping, anddifferent sample rates for different chunks.On input, the silence parts are filled out, loops are rejected,and sample data with a new sample rate is rejected.Silence with a different sample rate is generated appropriately.On output, silence is not detected, nor are impossible sample rates..TP 10.B .wavMicrosoft .WAV RIFF files..brThese appear to be very similar to IFF files,but not the same. They are the native sound file format of Windows.(Obviously, Windows was of such incredible importanceto the computer industry that it just had to have its own sound file format.)Normally \fB.wav\fR files have all formatting informationin their headers, and so do not need any format optionsspecified for an input file. If any are, they willoveride the file header, and you will be warned to this effect.You had better know what you are doing! Output formatoptions will cause a format conversion, and the \fB.wav\fRwill written appropriately. Note that it is possible towrite data of a type that cannot be specified bythe \fB.wav\fR header, and you will be warned thatyou a writing a bad file !Sox currently can read PCM, ULAW, ALAW, MS ADPCM, and IMA (or DVI) ADPCM.It can output all of these formats except the ADPCM styles..TP 10.B .wvePsion 8-bit alaw.brThese are 8-bit a-law 8khz sound files used on thePsion palmtop portable computer..TP 10.B .rawRaw files (no header)..brThe sample rate, size (byte, word, etc), and style (signed, unsigned, etc.)of the sample file must be given.The number of channels defaults to 1..TP 10.B ".ub, .sb, .uw, .sw, .ul"These are several suffices which serve asa shorthand for raw files with a given size and style.Thus, \fBub, sb, uw, sw,\fR and \fBul\fRcorrespond to "unsigned byte", "signed byte","unsigned word", "signed word", and "ulaw" (byte).The sample rate defaults to 8000 hz if not explicitly set,and the number of channels (as always) defaults to 1.There are lots of Sparc samples floating around in u-law formatwith no header and fixed at a sample rate of 8000 hz.(Certain sound management software cheerfully ignores the headers.)Similarly, most Mac sound files are in unsigned byte format witha sample rate of 11025 or 22050 hz..TP 10.B .autoThis is a ``meta-type'': specifying this type for an input filetriggers some code that tries to guess the real type by looking formagic words in the header. If the type can't be guessed, the programexits with an error message. The input must be a plain file, not apipe. This type can't be used for output files..SH EFFECTSOnly one effect from the palette may be applied to a sound sample.To do multiple effects you'll need to run .I sox in a pipeline..TP 10avg [ \fI-l\fR | \fI-r\fR ]Reduce the number of channels by averaging the samples,or duplicate channels to increase the number of channels.Valid combinations are 1 - 2, 1 - 4, 2 - 4, 4 - 2, 4 - 1,2 - 1. The \fI-l\fR or \fI-r\fR option averages fromjust left or right channels/duplicates to just the leftor right channels..TP 10band \fB[ \fI-n \fB] \fIcenter \fB[ \fIwidth\fB ]Apply a band-pass filter.The frequency response drops logarithmicallyaround the.I centerfrequency.The.I widthgives the slope of the drop.The frequencies at .I "center + width"and.I "center - width"will be half of their original amplitudes..B Banddefaults to a mode oriented to pitched signals,i.e. voice, singing, or instrumental music.The .I -n(for noise) option uses the alternate modefor un-pitched signals..B Bandintroduces noise in the shape of the filter,i.e. peaking at the .I centerfrequency and settling around it..TPchorus \fIgain-in gain-out delay decay speed deptch .TP 10 -s \fR| \fI-t [ \fIdelay decay speed depth -s \fR| \fI-t ... \fR]Add a chorus to a sound sample. Each quadtupledelay/decay/speed/depth gives the delay in millisecondsand the decay (relative to gain-in) with a modulationspeed in Hz using depth in milliseconds.The modulation is either sinodial (-s) or triangular(-t). Gain-out is the volume of the output..TP 10copyCopy the input file to the output file.This is the default effect if both files have the same sampling rate, or the rates are "close"..TP 10cut \fIloopnumberExtract loop #N from a sample..TP 10deemphApply a treble attenuation shelving filter to samples inaudio cd format. The frequency response of pre-emphasizedrecordings is rectified. The filtering is defined in thestandard document ISO 908..TP 10echo \fIgain-in gain-out delay decay \fR[ \fIdelay decay ... \fR]Add echoing to a sound sample.Each delay/decay part gives the delay in milliseconds and the decay (relative to gain-in) of that echo.Gain-out is the volume of the output..TP 10echos \fIgain-in gain-out delay decay \fR[ \fIdelay decay ... \fR]Add a sequence of echos to a sound sample.Each delay/decay part gives the delay in milliseconds and the decay (relative to gain-in) of that echo.Gain-out is the volume of the output..TP 10flanger \fIgain-in gain-out delay decay speed -s \fR| \fI-tAdd a flanger to a sound sample. Each tripledelay/decay/speed gives the delay in millisecondsand the decay (relative to gain-in) with a modulationspeed in Hz.The modulation is either sinodial (-s) or triangular(-t). Gain-out is the volume of the output..TP 10highp \fIcenterApply a high-pass filter.The frequency response drops logarithmically with .I centerfrequency in the middle of the drop.The slope of the filter is quite gentle..TP 10lowp \fIcenterApply a low-pass filter.The frequency response drops logarithmically with .I centerfrequency in the middle of the drop.The slope of the filter is quite gentle..TP 10map Display a list of loops in a sample,and miscellaneous loop info..TP 10maskAdd "masking noise" to signal.This effect deliberately adds white noise to a sound in order to mask quantization effects,created by the process of playing a sound digitally.It tends to mask buzzing voices, for example.It adds 1/2 bit of noise to the sound file at theoutput bit depth..TP 10phaser \fIgain-in gain-out delay decay speed -s \fR| \fI-tAdd a phaser to a sound sample. Each tripledelay/decay/speed gives the delay in millisecondsand the decay (relative to gain-in) with a modulationspeed in Hz.The modulation is either sinodial (-s) or triangular(-t). The decay should be less than 0.5 to avoidfeedback. Gain-out is the volume of the output..TP 10pickSelect the left or right channel of a stereo sample,or one of four channels in a quadrophonic sample..TPpolyphase [ \fI-w \fR< \fInum\fR / \fIham\fR > ] .TP [ \fI -width \fR< \fI long \fR / \fIshort \fR / \fI# \fR> ] .TP 10 [ \fI-cutoff # \fR ]Translate input sampling rate to output sampling rate via polyphaseinterpolation, a DSP algorithm. This method is slow and uses lotsof RAM, but gives much better results then .B rate..br-w < nut / ham > : select either a Nuttal (~90 dB stopband) or Hamming(~43 dB stopband) window..B Warning:Nuttall windows require 2x length than Hamming windows. Default is.I nut..br-width long / short / # : specify the width of the filter..I longis 1024 samples;.I shortis 128 samples. Alternatively, an exact number can be used. Default is.I long..br-cutoff # : specify the filter cutoff frequency in terms of fraction ofbandwidth. If upsampling, then this is the fraction of the orignal signalthat should go through. If downsampling, this is the fraction of thesignal left after downsampling. Default is 0.95. Remember thatthis is a float..TP 10rateTranslate input sampling rate to output sampling ratevia linear interpolation to the Least Common Multipleof the two sampling rates.This is the default effect if the two files have different sampling rates.This is fast but noisy:the spectrum of the original sound will be shifted upwardsand duplicated faintly when up-translating by a multiple.Lerp-ing is acceptable for cheap 8-bit sound hardware,but for CD-quality sound you should instead use either.B resampleor.B polyphase.If you are wondering which of.B Sox'srate changing effects to ues, you will want to read adetailed analysis of all of them at http://usa.ece.cmu.edu/Sox/.TP 10resample [ \fIrolloff\fR [ \fIbeta\fR ] ]Translate input sampling rate to output sampling ratevia simulated analog filtration.This method is slow and uses lots of RAM,but gives much better results then.B rate (This has empirically been shown to be false. Theresample algorthym needs to be updated from its original source)..TP 10reverb \fIgain-out delay \fR[ \fIdelay ... \fR]Add reverbation to a sound sample. Each delay is given in milliseconds and its feedback is depending on thereverb-time in milliseconds. Each delay should be in the range of half to quarter of reverb-time to geta realistic reverbation. Gain-out is the volume of theoutput..TP 10reverse Reverse the sound sample completely.Included for finding Satanic subliminals..TP 10splitTurn a mono sample into a stereo sample by copyingthe input channel to the left and right channels..TP 10stat [ debug | -v ]Do a statistical check on the input file,and print results on the standard error file..B statmay copy the file untouched from input to output,if you select an output file. The "Volume Adjustment:" field in the statisticsgives you the argument to the.B -v.I numberwhich will make the sample as loud as possible without clipping. There is an optional parameter.B -vthat will print out the "Volume Adjustment:" field's value andreturn. This could be of use in scripts to auto convert thevolume. There is an also an optional parameter.B debugthat will place sox into debug mode and print out a hex dump of thesound file from the internal buffer that is in 32-bit signed PCM data.This is mainly only of use in tracking down endian problems thatcreep in to sox on cross-platform versions..TP 10vibro \fIspeed \fB [ \fIdepth\fB ]Add the world-famous Fender Vibro-Champ soundeffect to a sound sample by usinga sine wave as the volume knob..B Speed gives the Hertz value of the wave.This must be under 30..B Depthgives the amount the volume is cut intoby the sine wave,ranging 0.0 to 1.0 and defaulting to 0.5..P.I Soxenforces certain effects.If the two files have different samplingrates, the requested effect must be one of.B copy,or.B rate,." or." .B resample.If the two files have different numbers of channels,the .B avg." or other channel mixingeffect must be requested..SH BUGSThe syntax is horrific.It's very tempting to include a default system that allowsan effect name as the program nameand just pipes a sound sample from standard input to standard output, but the problem of inputting thesample rates makes this unworkable..PPlease report any bugs found in this version of sox to Chris Bagwell (cbagwell@sprynet.com).SH FILES.SH SEE ALSO.BR play (1) ,.BR rec (1).SH NOTICESThe echoplex effect is:Copyright (C) 1989 by Jef Poskanzer.Permission to use, copy, modify, and distribute this software and itsdocumentation for any purpose and without fee is hereby granted, providedthat the above copyright notice appear in all copies and that both thatcopyright notice and this permission notice appear in supportingdocumentation. This software is provided "as is" without express orimplied warranty.The version of Sox that accompanies this manual page is support by Chris Bagwell (cbagwell@sprynet.com). Please refer any questions regarding it to this address. You may obtain the latest version at the the web site http://home.sprynet.com/sprynet/cbagwell/projects.html
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -