NA_PLAY(1)
β¨ NA_PLAY(1) β¨
so this is a page from the General Commands Manual, bestie, and it's all about na_play β the little program that takes your waveform files and makes them come out of the audio device. π§β¨
πΈ NAME πΈ
na_record β play waveform files on audio device
ngl i'm just the messenger here π that's literally what the page says in the NAME section, na_record, even though the whole rest of the page is about na_play. we keep the lore exactly as we found it. π
π SYNOPSIS π
na_play [-h] [-itype type] [-n channels] [-f sample rate]
[-ibo byteorder] [-iswap] [-istype type] [-c channel]
[-start time] [-end time] [-from sample] [-to sample]
[-p protocol] [-command command] [-basic] [-quality high | low]
[-server host] [-scale scale] [-v] [-wait] input files ...
β¨ DESCRIPTION β¨
okay so na_play plays digital audio data to the system's audio input device, pulling it from the file(s) you hand it. π«Ά it's giving versatile: a whole variety of file formats? supported. native audio devices? also supported. she contains multitudes. π
π the option flags π
here's every single flag she recognizes, no skips, no cuts, periodt:
-hβ prints a short summary of usage to standard output. (your little help me out moment β¨)-itypetype β the input file type. usually the input type can just be figured out from the file's headers, so you lowkey don't need this option at all β except for raw (unheadered) data, where it's your only hope. supported types are currently:nist,est,esps,snd,riff,aiff,audlab,raw,ascii. π-nchannels β number of channels, in an unheadered input file. again, this can usually be sniffed out from the headers. default is1. π-fsampling rate β sampling rate, for an unheadered input file. default is16000. β-ibobyte order β byte order, for an unheadered input file. default is system byte order. recognized values are:MSB,LSB,native,nonnative. π₯-iswapβ swap bytes in an unheadered input file. π-istypetype β sample type for an unheadered input file. recognized values are:short,mulaw,byte,ascii. π¦-cchannel β select a single channel (starting at0) for playback. this option plays only the specified channel and discards all others. brutal but efficient π-starttime β select a subsection of the file, starting at this time (specified in seconds). β±οΈ-endtime β select a subsection of the file, ending at this time (specified in seconds). β±οΈ-fromsample β select a subsection of the file, starting at this offset (specified in number of samples). πΈ-tosample β select a subsection of the file, ending at this offset (specified in number of samples). πΈ-pprotocol β use the specified audio device protocol. the list of supported types varies between platforms, and you can obtain it using the-hflag. π-commandcommand β if the"audio_command"protocol is specified, this argument must be given to select the command used to play the waveform. a temporary file is created and passed in the environment variableFILE. the sample rate is passed in the environment variableSR. (yes,FILEandSR, capital letters, iykyk β¨)-basicβ treat unheadered input files as 8kHz mu-law data (i.e. audio/basic MIME type). π΅-quality high | lowβ select the quality of output."high"will ensure that proper resampling is used."low"means to play as fast as possible with a minimum of processor time. pick your fighter βοΈ-serverhost β specifies the host to play sound on, when using a network-aware audio protocol (such as NAS). π°οΈ-scalescale β change the gain (volume) of the signal. the argument is a number relative to1.0, which is the default. π-vβ be verbose (i.e. print file names when playing). π-waitβ pause for a keystroke between each file. β¨οΈ
π ENVIRONMENT π
NA_PLAY_PROTOCOLβ audio protocol to use (as in the-pflag). β¨NA_PLAY_COMMANDβ command used to play audio when using theaudio_commandprotocol. β¨NA_PLAY_HOSTβ host to play audio on when using a network audio protocol. β¨NA_PLAY_QUALITYβ playback quality (loworhigh). β¨
π EXAMPLES π
to play the section of foo.wav from 1.5 to 3.2 seconds:
$ na_play -start 1.5 -end 3.2 foo.wav
to play samples 3600 to 42000 of channel 1 of bar.wav:
$ na_play -from 3600 -to 4200 -c 1 foo.wav
and yes bestie, we're keeping both lines exactly as the page gives them to us β the prose says one thing and the command says another and that is simply the text we were handed. no cap, no edits. π
π BUGS π
- the usage information isn't entirely correct. π
- the
audio_commandprotocol generates temporary files insecurely.
ok so that second one is not a vibe, that's an actual security situation, so take it seriously fr fr. π₯
π¦ SEE ALSO π¦
na_record(1)π
and that's the whole page, bestie!! π«Άβ¨ this little beauty comes to you from the Edinburgh Speech Tools, dated April 4, 2001, and if you want to see her again just look for NA_PLAY(1). mwah. π
ππΈ
π¦ where this page comes from
- debian bookworm: speech-tools 1:2.5.0-13
- debian trixie: speech-tools 1:2.5.0-13+b4
- ubuntu jammy: speech-tools 1:2.5.0-12
- ubuntu noble: speech-tools 1:2.5.0-13build2
- ubuntu questing: speech-tools 1:2.5.0-13build2
- ubuntu resolute: speech-tools 1:2.5.0-14build1
- ubuntu stonking: speech-tools 1:2.5.0-15
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms