⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cheat

📁 linux下录音程序
💻
字号:
CHEAT SHEET-----------This is a cheat sheet of examples using SOX to do various common sound file conversions.  The file format examples are startingto become dated.  Any offers to update this document to explain the ends and outs of each format would be appreciated.In general, sox will attempt to take an input sound file format andconvert it to a new file format using similar data types and samplerates.  For instance "sox monkey.au monkey.wav" would try and convertthe mono 8000Hz u-law .au file to a 8000Hz u-law .wav file.If an output format doesn't support the same data types as the inputfile then Sox will generally select a default format to save it in.You can select a data type of your choice using command line options.You can also override data type values to have a output file ofhigher or lower percision data (and thus higher or lower file size).Most file formats that contain complete headers will automaticallyconvert to a similar format.  This means .wav, .aiff, and .voc fileswill readily convert to each other without the need of complexcommand lines.If you create a sound file and you can not play it, check to makesure your sound card to play a file using this data type.The SUN examples all assume the old SUN voice-quality 8khz u-lawhardware.  If the .AU file doesn't have a proper header,you'll need the second command line.  If you don't want theold format, you can remove the "-r 8000 -U -b" in front of "file.au" when converting TO SUN .au files.SUN .au to Mac .snd:	sox file.au -r 11025 -t ub file.sndor:	sox -t ul -r 8000 file.au -r 11025 -t ub file.sndWhen you copy the file to the Mac, you'll have to setthe sample rate by hand.Mac .snd to SUN .au	sox -r 11025 -t ub file.snd -r 8000 -U -b file.auThe Mac file might also be at sample rates 5012, 22050, or 44100.PC .voc to SUN .au	sox file.voc -r 8000 -U -b file.auSUN .au to PC .voc 	sox file.au file.voc or:	sox -r 8000 -t ul file.au file.voc SUN .au to WAV - without clipping		sox file.au -s -w file.wavor:	sox -t ul -r 8012 file.au -s -w file.wavWAV to SUN .au		sox file.wav -r 8000 -U -b file.auWAV to VOC	sox file.wav -u -b file.vocVOC to WAV	sox file.voc file.wavAny file to SUN .ausox -t auto file.X -c 1 -t aiff - |  sox -t aiff - -r 8000 -U -b -t au file.auJust convert file format without making a disk file.Example: convert input stream in AIFF format to output stream in WAV format:sox -t aiff - -t wav -Some people try to put this kind of command in scripts.It is important to understand how the internals of Sox work whenworking with compressed audio, including u-law, a-law, ADPCM, or GSM.Sox takes ALL input data types and converts them to uncompressed32-bit signed data.  It will then convert this internal version intothe requested output format.  This means unneeded noise can be introducedfrom decompressing data and then recompressing, such as would happenwhen reading u-law data and writing back out u-law data.  If possible,specify the output data to be uncompressed PCM.Good luck!

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -