roc-toolkit icon indicating copy to clipboard operation
roc-toolkit copied to clipboard

Support reading/writing WAV file from stdin

Open gavv opened this issue 1 year ago • 0 comments

This is a small follow-up issue for #576.

In roc-recv and roc-send, we have special syntax -o file:- and -i file:- which means read or write from/to stdin. See details here and here.

This feature is supported by sox backend, but wav sink and wav source are missing support.

Testing:

roc-send -vv -s rtp+rs8m://localhost:10001 -r rs8m://localhost:10002 -c rtcp://localhost:10003 \
    -i file:- --input-format wav < input.wav
roc-recv -vv -s rtp+rs8m://localhost:10001 -r rs8m://localhost:10002 -c rtcp://localhost:10003 \
    -o file:- --output-format wav > output.wav

gavv avatar Jan 30 '24 15:01 gavv