audev.1 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .Dd May 16, 2017
  2. .Dt AUDEV 1
  3. .Os
  4. .Sh NAME
  5. .Nm audev ,
  6. .Nm au2dev ,
  7. .Nm dev2au
  8. .Nd plays/records an Au formatted audio streams
  9. .Sh SYNOPSIS
  10. .Nm audev
  11. .Op Fl R
  12. .Op Fl b Ar buffer-size
  13. .Op Fl d Ar device
  14. .Nm au2dev
  15. .Op Fl R
  16. .Op Fl b Ar buffer-size
  17. .Op Fl d Ar device
  18. .Nm dev2au
  19. .Fl R
  20. .Op Fl b Ar buffer-size
  21. .Op Fl d Ar device
  22. .Nm audev
  23. .Op Fl W
  24. .Op Fl b Ar buffer-size
  25. .Op Fl d Ar device
  26. .Op Fl e Ar encoding
  27. .Op Fl c Ar channels
  28. .Op Fl r Ar rate
  29. .Op Fl s Ar string
  30. .Op Fl t Ar time
  31. .Nm au2dev
  32. .Fl W
  33. .Op Fl b Ar buffer-size
  34. .Op Fl d Ar device
  35. .Op Fl e Ar encoding
  36. .Op Fl c Ar channels
  37. .Op Fl r Ar rate
  38. .Op Fl s Ar string
  39. .Op Fl t Ar time
  40. .Nm dev2au
  41. .Op Fl W
  42. .Op Fl b Ar buffer-size
  43. .Op Fl d Ar device
  44. .Op Fl e Ar encoding
  45. .Op Fl c Ar channels
  46. .Op Fl r Ar rate
  47. .Op Fl s Ar string
  48. .Op Fl t Ar time
  49. .Sh DESCRIPTION
  50. .Nm
  51. plays or records an Au formatted stream to an audio device.
  52. .Pp
  53. The
  54. .Fl R
  55. and
  56. .Fl W
  57. flags force the utility to read (play) or write (record) an Au
  58. formatted audio stream, respectively
  59. .Pp
  60. The options for playing an Au formatted stream are follows:
  61. .Bl -tag -width Ds
  62. .It Fl b Ar buffer-size
  63. Override the default buffer size.
  64. .It Fl d Ar device
  65. Override the default audio device.
  66. .El
  67. .Pp
  68. The options for recording an Au formatted stream are as follows:
  69. .Bl -tag -width Ds
  70. .It Fl b Ar buffer-size
  71. Override the default buffer size.
  72. .It Fl c Ar channels
  73. Override the default channel count (normally 2).
  74. .It Fl d Ar device
  75. Override the default audio device.
  76. .It Fl e Ar encoding
  77. Override the default encoding (normally 16-bit PCM).
  78. .It Fl r Ar rate
  79. Override the default sample-rate (normally 48000).
  80. .It Fl s Ar string
  81. Write
  82. .Ar string
  83. to the audio file before the audio data. All occurrences of this option
  84. are concatenated together.
  85. .It Fl t Ar time
  86. Record for
  87. .Ar time
  88. seconds (normally indefinite).
  89. .El
  90. .Sh EXAMPLES
  91. Record ten seconds of 8kHz uLaw audio:
  92. .Dl dev2au -eulaw -r8000 -t10 > recording.au
  93. .Pp
  94. Playback redorded audio:
  95. .Dl au2dev < recording.au
  96. .Sh EXIT STATUS
  97. .Ex -std
  98. .Sh SEE ALSO
  99. .Xr au 7
  100. .Xr auconv 1
  101. .Xr auopen 1
  102. .Xr au2file 1
  103. .Xr file2au 1
  104. .Xr audioplay 1
  105. .Xr audiorecord 1
  106. .Xr audio 4
  107. .Xr sound 4
  108. .Xr sndio 7