Prerequisites
- Go installed and available in your
PATH - Local checkout of the
ionrepository
Quick Start (TCP)
Start the demo server:
go run ./cmd/demo-server --transport=tcp --addr :10300In another terminal, run the CLI client:
go run examples/cli/ion-client.go --transport=tcp --addr :10300 --duration 3s --out out.pcmout.pcm is raw PCM (16000Hz, mono, s16le).
Quick Start (stdio)
Use two FIFOs for full duplex:
mkfifo c2s s2c
go run ./cmd/demo-server --transport=stdio < c2s > s2c &SERVER_PID=$!
go run examples/cli/ion-client.go --transport=stdio < s2c > c2s
kill $SERVER_PIDrm -f c2s s2cVerify Expected Flow
- Client sends
describe - Server responds
ready - Client sends
start - Audio frames are exchanged
- Client sends
stop