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

      • 0 WAV

  • +type char

    • input data type

      • s short (-32768 ~ 32767)

      • f float (-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.

See also

wav2raw x2x