Record microphone audio to WAV with start/stop/status and device selection.

Audio Recorder

Streams microphone audio into a WAV file for the active session.

  • Path: workers/audio-recorder/
  • API (port 8098): /devices, /start, /stop, /status, /file

Start Example

curl -sS -X POST http://localhost:8098/start \
  -H 'content-type: application/json' \
  -d '{"auto_stop_seconds":60}'

Environment

  • OUTPUT_DIR, SAMPLE_RATE (16k), CHANNELS (1), BLOCKSIZE, AUTO_STOP_SECONDS, DEVICE_INDEX, DEVICE_NAME