raw2wav
Functions
-
int main(int argc, char *argv[])
raw2wav [ option ] [ infile ]
-s double
sampling rate [kHz]
-c int
number of channels
-o int
output audio format
0WAV
+type char
input data type
sshort (-32768 ~ 32767)ffloat (-1.0 ~ 1.0)
infile str
waveform
stdout
audio file
The below example converts raw short-type waveform to WAV file with 16 kHz sampling rate and one channel.
raw2wav -s 16 -c 1 +s input.raw > output.wav
- Parameters:
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns:
0 on success, 1 on failure.