CH_WAVE(1)
π CH_WAVE(1) π
okay bestie, welcome to the General Commands Manual entry for ch_wave β she's a little Scottish (Edinburgh Speech Tools, iykyk) and she does SO much. buckle up π
β¨ NAME β¨
ch_wave β change/copy/combine waveform files
like. that's the whole job description and honestly? she ate.
πΈ SYNOPSIS πΈ
ch_wave [-h] [-itype file type] [-n channels] [-f sample rate]
[-ibo byte order] [-iswap] [-istype sample type] [-c channel]
[-start seconds] [-end seconds] [-from sample] [-to sample]
[-o output file] [-otype file type] [-F sample rate]
[-obo byte order] [-oswap] [-ostype sample type] [-scale factor]
[-scaleN factor] [-lpfilter frequency] [-hpfilter frequency]
[-forder order] [-fafter] [-info] [-add] [-pc LONGEST | FIRST]
[-key keylab file] [-divide] [-ext file extension]
[-extract file] input files ...
periodt. that's the whole summoning ritual π
π¦ DESCRIPTION π¦
so ch_wave does various operations on an input waveform file and writes it out to another file. and when she says various, she MEANS it β she can extract subsections, pull out individual channels, resample, rescale, mix down channels, and do simple filtering operations. main character energy fr fr. π
The following option flags are recognized:
-hβ options help. she tells you what she can do π«Ά-itypefile type β input file type (optional). If you set it toraw, that means your input file has no header at all. you can use this to specify file types other thanraw, but honestly nobody really does that, because the file type of all the existing supported types can be figured out automatically from the file's header. and if the input file is unheadered, files are assumed to beshorts(16bit). Supported types arenist,est,esps,snd,riff,aiff,audlab,raw,asciiβ¨-nchannels β number of channels in an unheadered input file-fsample rate β sample rate in Hertz for an unheadered input file-ibobyte order β input byte order in an unheadered input file. the possibilities are:MSB,LSB,nativeornonnative. Suns, HP, SGI Mips, M68000 areMSB(big endian). Intel, Alpha, DEC Mips, Vax areLSB(little endian)-iswapβ swap bytes. (for use on an unheadered input file) π-istypesample type β sample type in an unheadered input file:short,alaw,mulaw,byte,ascii-cchannel β select a single channel (starts from0). waveforms can have multiple channels. this option extracts a single channel for progcessing and discards the rest. (yes, "progcessing" β that's the original typo and I'm keeping it, she's iconic like that π)-startseconds β extract sub-wave starting at this time, specified in seconds-endseconds β extract sub-wave ending at this time, specified in seconds-fromsample β extract sub-wave starting at this sample point-tosample β extract sub-wave ending at this sample point-ooutput file β output filename. if not specified, output is tostdout-otypefile type β output file type (optional). if no type is Specified, the type of the input file is assumed. Supported types are:nist,est,esps,snd,riff,aiff,audlab,raw,ascii-Fsample rate β output sample rate in Hz. if this is different from the input sample rate, resampling will occur-obobyte order β output byte order:MSB,LSB,native, ornonnative. Suns, HP, SGI Mips, M68000 areMSB(big endian), Intel, Alpha, DEC Mips, Vax areLSB(little endian)-oswapβ swap bytes when saving to output π-ostypesample type β output sample type:short,alaw,mulaw,byteorascii-scalefactor β scaling factor. increase or descrease the amplitude of the whole waveform by the factor given (relative to1.0)-scaleNfactor β scaling factor with normalization. the waveform is scaled to its maximum level, after which it is scaled by the factor given (relative to1.0)-lpfilterfrequency β low pass filter, with cutoff frequency in Hz. filtering is performed by a FIR filter which is built at run time. the order of the filter can be given by-forder. the default value is199π-hpfilterfrequency β high pass filter, with cutoff frequency in Hz. filtering is performed by a FIR filter which is built at run time. the order of the filter can be given by-forder. the default value is199.-forderorder β order of FIR filter used forlpfilterandhpfilter. this must be ODD. sensible values range from19(quick but with a shallow rolloff) to199(slow but with a steep rolloff). the default is199.-fafterβ do filtering after other operations such as resampling (default : filter before other operations)-infoβ print information about file and header. this option gives useful info like file length, sampling rate, number of channels etc. no output is produced π-addβ a new single channel waveform is created by adding the corresponding sample points of each input waveform β-pcLONGEST|FIRSTβ combine input waveforms to form a single multichannel waveform. the argument to this option controls how long the new waveform should be. if the option isLONGEST, the output wave if the length of the longest input wave and shorter waves are padded with zeros at the end. if the option isFIRST, the length of the new waveform is the length of the first file on the command line, and subsequent waves are padded or cut to this length-keykeylab file β label file designating subsections, for use with-divide. theKEYLABfile is a label file which specifies where chunks (such as individual sentences) in a waveform begin and end. see section on wave extraction. π-divideβ divide a single input waveform into multiple output waveforms. each output waveform is extracted from the input waveform by using theKEYLABfile, which specifies the start and stop times for each chunk. the output files are named according to the filename in theKEYLABfile, with extension given by-ext. see section on wave extraction-extfile extension β file extension for divided waveforms-extractfile β used in conjunction with-keyto extract a single section of waveform from the input waveform. the argument is the name of a file given in the file column of theKEYLABfile.
π§ EXAMPLES π§
bestie... this section is empty in the original. no examples. we simply have to imagine. π she left us on read.
π BUGS π
also empty. not a single bug documented. either she's perfect or nobody filed a report. (it's giving "works on my machine" energy, ngl.)
π SEE ALSO π
ch_track(1) ch_utt(1) na_record(1) na_play(1)
go read those too, they're all in the family π
okay that's the whole page!! and finally, the little sign-off at the bottom of the original, folded into a cute little bow for you: this page comes from the Edinburgh Speech Tools, dated April 5, 2001, and it's filed under CH_WAVE(1). yes she's vintage, no that does not make her any less of a queen πβ¨ bye bestie, go make some waveforms π
π¦ where this page comes from
- debian bookworm: speech-tools 1:2.5.0-13
- debian trixie: speech-tools 1:2.5.0-13+b4
- ubuntu jammy: speech-tools 1:2.5.0-12
- ubuntu noble: speech-tools 1:2.5.0-13build2
- ubuntu questing: speech-tools 1:2.5.0-13build2
- ubuntu resolute: speech-tools 1:2.5.0-14build1
- ubuntu stonking: speech-tools 1:2.5.0-15
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms