tree: 3f8df41fbd70e7d16640f1e1c755df7679c2f3da [path history] [tgz]
  1. BUILD.gn
  2. main.cc
  3. README.md
  4. wav_recorder.cc
  5. wav_recorder.h
src/media/audio/tools/wav_recorder/README.md

Wave File Recorder Utility App

This directory contains a utility application that uses the AudioCapturer interface and the WavWriter class to record a waveform audio file.

USAGE

wav_recorder [options] <filename>
Record an audio signal from the specified source, to a .wav file.

Valid options:

  By default, use the preferred input device
--loopback            Capture final-mix output from the preferred output device

  By default, use device-preferred channel count and frame rate, in 32-bit float samples
--chans=<NUM_CHANS>   Specify the number of channels (in [1, 8])
--rate=<FRAME_RATE>   Specify the capture frame rate (Hz in [1000, 192000])
--int24               Record and save as left-justified 24-in-32 int ('padded-24')
--packed24            Record as 24-in-32 'padded-24'; save as 'packed-24'
--int16               Record and save as 16-bit integer

  By default, don't set AudioCapturer gain and mute (unity 0 dB, unmuted)
--gain[=<GAIN_DB>]    Set stream gain (dB in [-160, +24]; 0.0 if only '--gain' is provided)
--mute[=<0|1>]        Set stream mute (0=Unmute or 1=Mute; Mute if only '--mute' is provided)

  By default, use packet-by-packet ('synchronous') mode
--async               Capture using sequential-buffer ('asynchronous') mode

  By default, capture audio using packets of 100.0 msec
--packet-ms=<MSECS>   Specify the duration (in milliseconds) of each capture packet
                      Minimum packet duration is 1.0 milliseconds

--v                   Be verbose; display per-packet info
--help, --?           Show this message