# `mix tuning_fork.listen`
[🔗](https://github.com/jaman/tuning_fork/blob/v0.1.11/tuning_fork_speaker/lib/mix/tasks/tuning_fork.listen.ex#L1)

Listen on a TCP port and play the raw signed 16-bit PCM that arrives through this
machine's speaker, connection after connection — the far end of an ssh tunnel from a
server sending with `TuningFork.Sink.Tcp`.

    mix tuning_fork.listen
    mix tuning_fork.listen --port 5000 --max-lag 100

Runs until stopped with Ctrl-C.

Options:

  * `--port N` — the port to listen on. Required
  * `--ip A` — the interface, an address such as `0.0.0.0` for every one. Default `127.0.0.1`
  * `--rate N`, `--channels N` — the PCM format. Default 44100 and 2
  * `--max-lag N` — the most audio kept waiting to play, in milliseconds. Default 100

---

*Consult [api-reference.md](api-reference.md) for complete listing*
