logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

na_record — play waveform files on audio device

Bugs

       The  usage  information  isn't  entirely  correct.  The  audio_command protocol generates temporary files
       insecurely.

Description

na_play plays digital audio data to the system's audio input  device  from  the  specified  file(s).   It
       supports a variety of file formats and native audio devices.

       The following option flags are recognized:

             -h    Prints a short summary of usage to standard output.
             -itypetype
                   Input  file type.  Usually, the input type can be determined from the file's headers, so this
                   option is not required except for raw (unheadered)  data.   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 determined from
                   the headers.  Default is 1.
             -fsamplingrate
                   Sampling rate, for an unheadered input file.  Default is 16000.
             -ibobyteorder
                   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 at 0) for playback.  This option plays only the specified
                   channel and discards all others.
             -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 can be obtained using the -h flag.
             -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
                   variable FILE.  The sample rate is passed in the environment varialbe SR.
             -basic
                   Treat unheadered input files as 8kHz mu-law data (i.e. audio/basic MIME type)
             -qualityhigh | 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.
             -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 to 1.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 -p flag)
             NA_PLAY_COMMAND
                   Command used to play audio when using the audio_command protocol.
             NA_PLAY_HOST
                   Host to play audio on when using a network audio protocol.
             NA_PLAY_QUALITY
                   Playback quality (low or high)

Examples

       To play the section of foo.wav from 1.5 to 3.2 seconds:
             $na_play-start1.5-end3.2foo.wav
       To play samples 3600 to 42000 of channel 1 of bar.wav:
             $na_play-from3600-to4200-c1foo.wav

Name

       na_record — play waveform files on audio device

See Also

na_record(1)

Edinburgh Speech Tools                            April 4, 2001                                       NA_PLAY(1)

Synopsis

na_play  [-h]  [-itypetype]  [-nchannels]  [-fsamplerate] [-ibobyteorder] [-iswap] [-istypetype]
               [-cchannel]  [-starttime]  [-endtime]   [-fromsample]   [-tosample]   [-pprotocol]
               [-commandcommand]  [-basic]  [-qualityhigh  | low] [-serverhost] [-scalescale] [-v] [-wait]
               inputfiles...

See Also