sprec(1)
okay bestie, this is sprec(1) from the General Commands Manual β literally the speech recognition command, and weβre gonna get you fluent in it. πβ¨
π NAME π
sprec β speech recognition command. thatβs the whole name, no cap.
π¦ SYNOPSIS π¦
the whole vibe is:
sprec [OPTIONS] < audio
πΈ DESCRIPTION πΈ
sprec reads audio from stdin and prints speech recognition results. thatβs it, thatβs the main character energy. π
π OPTIONS π
--alts=NUMβ specify the max number of alternative results. plural results, okay? the little buffet is real. π-h,--helpβ print help and exit. your cute little escape hatch. π«Ά--partialβ also print intermediate results. yes, the in-progress tea. β--phrase-file=FILEβ limit the vocab to phrases in a file. the phrases are split at whitespace unless quoted"like this". if the special phrase[unk]is included, it will be given for unrecognized words instead of the best match. so quotey quotes matter, bestie. π--versionβ print the version and exit. cute. π
π§ MODEL π§
the speech recognition model can be specified with the SPREC_MODEL environment variable β thatβs the move. the default is /usr/share/vosk-models/small-en-us. sprec should work well with possibly all of the *-small and *-lgraph models from https://alphacephei.com/vosk/models. like, thatβs the βpossibly allβ vibe, bestie. π
π₯ AUDIO π₯
the correct audio format depends on the model, but possibly all the Vosk models like WAVE 16000Hz Mono, which you can record with:
arecord -q -fS16_LE -c1 -r16000
so vibe check your format first, okay? π
β EXAMPLES β
print realtime speech recognition results:
arecord -q -fS16_LE -c1 -r16000 -D sysdefault:CARD=Microphone | spec
see the sprec_type script for an example that types out the results (https://git.sr.ht/~geb/sprec/examples/sprec_type). thatβs the typing-out-results demo, iykyk. π
π AUTHOR π
John Gebbie. icon. π
π final footer energy: source/version sprec(1), dated 2026-10-14. thatβs the cute sign-off, bestie, bye! ππ«Ά
π¦ where this page comes from
- alpine 3.24: sprec-doc 0.1-r22 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms