ROC-COPY(1)
π ROC-COPY(1) π
okay bestie, so this is roc-copy from the Roc Toolkit era (the man page says Roc Toolkit 0.4), and it's literally the simplest lil glow-up in the whole toolkit. you feed it audio, it does a lil transformation, it spits audio back out. that's it. that's the whole vibe. π
β¨ NAME β¨
roc-copy β copy local audio π¦
β¨ SYNOPSIS β¨
roc-copy OPTIONS
β¨ DESCRIPTION β¨
Read an audio stream from a file, transform it, and write it to another file. yes queen, that's genuinely it. read β transform β write. main character pipeline energy. π
πΈ Options πΈ
-h,--helpβ prints the help and dips. exit stage left. π-V,--versionβ prints the version and dips. also exit stage left.-v,--verboseβ bumps up the verbosity level. and the tea is you can stack this one β use it multiple times for maximum yapping. π£οΈ-L,--list-supportedβ lists all the supported schemes and formats. a little menu of possibilities, iykyk. π-i,--input=FILE_URIβ the input file URI. where we're pulling the audio from. π§-o,--output=FILE_URIβ the output file URI. where we're dropping the audio off. π€--input-format=FILE_FORMATβ force the input file format. no guessing allowed. π ββοΈ--output-format=FILE_FORMATβ force the output file format. same energy, output side.--frame-len=TIMEβ the duration of the internal frames, inTIMEunits. β±οΈ-r,--rate=INTβ the output sample rate, in Hz. numbers, bestie, numbers. π’--resampler-backend=ENUMβ the resampler backend. possible values are"default","builtin","speex","speexdec", and the default isdefault. pick your fighter. π₯--resampler-profile=ENUMβ the resampler profile. possible values are"low","medium","high", and the default ismedium. goldilocks behavior fr fr. π--profilingβ enable self profiling. default is off. it's giving "study yourself" energy. π--color=ENUMβ set the colored logging mode for stderr output. possible values are"auto","always","never", and the default isauto. aesthetic choices matter. π¨
π¦ File URI π¦
so --input and --output both want a file URI, and it's gotta be in one of these forms, no cap:
file:///ABS/PATHβ absolute file pathfile://localhost/ABS/PATHβ absolute file path (alternative form; only the"localhost"host is supported)file:/ABS/PATHβ absolute file path (alternative form)file:REL/PATHβ relative file pathfile://-β stdoutfile:-β stdout (alternative form)
Examples, because we love a demonstration:
file:///home/user/test.wavfile://localhost/home/user/test.wavfile:/home/user/test.wavfile:./test.wavfile:-
you can pull the list of supported file formats with the --list-supported option. go look, bestie, the info is right there. π
if --output is omitted, the conversion results are literally discarded. poof. gone. (which is lowkey useful, see the examples below. π)
the --input-format and --output-format options can force the file format. if you omit them, the file format gets auto-detected. BUT β and this is the important part β for stdin or stdout, this option is always required. no auto-detect for you, bestie. β οΈ
the path component of the URI you hand over is percent-decoded. and for convenience, unencoded characters are allowed too β the one exception is that % should always be encoded as %25. keep that in your notes. π
for example, the file named /foo/bar%/[baz] may be specified using either of these URIs: file:///foo%2Fbar%25%2F%5Bbaz%5D and file:///foo/bar%25/[baz]. two roads, same file, slay. π£οΈ
π Time units π
TIME should have one of these forms:
123ns; 1.23us; 1.23ms; 1.23s; 1.23m; 1.23h;
β¨ EXAMPLES β¨
Convert sample rate to 48k:
$ roc-copy -vv --rate=48000 -i file:input.wav -o file:output.wav
Drop output results (useful for benchmarking):
$ roc-copy -vv --rate=48000 -i file:input.wav
Input from stdin, output to stdout:
$ roc-copy -vv --input-format=wav -i file:- \
--output-format=wav -o file:- >./output.wav <./input.wav
β¨ ENVIRONMENT VARIABLES β¨
these environment variables are supported, bestie:
NO_COLORβ by default, terminal coloring is automatically detected. this environment variable can be set to a non-empty string to disable terminal coloring. it has lower precedence than the--coloroption.FORCE_COLORβ by default, terminal coloring is automatically detected. this environment variable can be set to a positive integer to enable/force terminal coloring. it has lower precedence than theNO_COLORvariable and the--coloroption.
β¨ SEE ALSO β¨
roc-recv(1), roc-send(1), and the Roc web site at https://roc-streaming.org/ π
β¨ BUGS β¨
please report any bugs found via GitHub (https://github.com/roc-streaming/roc-toolkit/). do your civic duty, angel. π
β¨ AUTHORS β¨
see the authors page on the website for a list of maintainers and contributors (https://roc-streaming.org/toolkit/docs/about_project/authors.html). π
β¨ COPYRIGHT β¨
2024, Roc Streaming authors
that's the whole page, bestie β go copy some audio π β¨
Roc Toolkit 0.4 Β· 2024 Β· mwah, that's a wrap on ROC-COPY(1) ππ¦π
π¦ where this page comes from
- alpine 3.24: roc-toolkit-doc 0.4.0-r1 Β· MPL-2.0
- arch rolling: roc-toolkit 0.4.0-3 Β· CC0-1.0 AND MPL-2.0
- debian trixie: roc-toolkit-tools 0.4.0+dfsg-5 Β· MPL-2.0
- nixos 26.05: roc-toolkit 0.4.0
- nixpkgs unstable: roc-toolkit 0.4.0
- ubuntu questing: roc-toolkit-tools 0.4.0+dfsg-5ubuntu1
- ubuntu resolute: roc-toolkit-tools 0.4.0+dfsg-5ubuntu3 Β· MPL-2.0
- ubuntu resolute: roc-toolkit-tools 0.4.0+dfsg-5ubuntu3.1 Β· MPL-2.0
- ubuntu stonking: roc-toolkit-tools 0.4.0+dfsg-6ubuntu1 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms