root@2012000099:~# pulseaudio -h
pulseaudio [options]
COMMANDS:
-h, --help Show this help
--version Show version
--dump-conf Dump default configuration
--dump-modules Dump list of available modules
--dump-resample-methods Dump available resample methods
--cleanup-shm Cleanup stale shared memory segments
--start Start the daemon if it is not running
-k --kill Kill a running daemon
--check Check for a running daemon (only returns exit code)
OPTIONS:
--system[=BOOL] Run as system-wide instance
-D, --daemonize[=BOOL] Daemonize after startup
--fail[=BOOL] Quit when startup fails
--high-priority[=BOOL] Try to set high nice level
(only available as root, when SUID or
with elevated RLIMIT_NICE)
--realtime[=BOOL] Try to enable realtime scheduling
(only available as root, when SUID or
with elevated RLIMIT_RTPRIO)
--disallow-module-loading[=BOOL] Disallow module user requested module
loading/unloading after startup
--disallow-exit[=BOOL] Disallow user requested exit
--exit-idle-time=SECS Terminate the daemon when idle and this
time passed
--scache-idle-time=SECS Unload autoloaded samples when idle and
this time passed
--log-level[=LEVEL] Increase or set verbosity level
-v --verbose Increase the verbosity level
--log-target={auto,syslog,stderr,file:PATH,newfile:PATH}
Specify the log target
--log-meta[=BOOL] Include code location in log messages
--log-time[=BOOL] Include timestamps in log messages
--log-backtrace=FRAMES Include a backtrace in log messages
-p, --dl-search-path=PATH Set the search path for dynamic shared
objects (plugins)
--resample-method=METHOD Use the specified resampling method
(See --dump-resample-methods for
possible values)
--use-pid-file[=BOOL] Create a PID file
--no-cpu-limit[=BOOL] Do not install CPU load limiter on
platforms that support it.
--disable-shm[=BOOL] Disable shared memory support.
STARTUP SCRIPT:
-L, --load="MODULE ARGUMENTS" Load the specified plugin module with
the specified argument
-F, --file=FILENAME Run the specified script
-C Open a command line on the running TTY
after startup
-n Don't load default script file
root@2012000099:~# pactl -h
]pactl [options] stat
pactl [options] info
pactl [options] list [short] [TYPE]
pactl [options] exit
pactl [options] upload-sample FILENAME [NAME]
pactl [options] play-sample NAME [SINK]
pactl [options] remove-sample NAME
pactl [options] load-module NAME [ARGS ...]
pactl [options] unload-module NAME|#N
pactl [options] move-(sink-input|source-output) #N SINK|SOURCE
pactl [options] suspend-(sink|source) NAME|#N 1|0
pactl [options] set-card-profile CARD PROFILE
pactl [options] set-default-(sink|source) NAME
pactl [options] set-(sink|source)-port NAME|#N PORT
pactl [options] set-(sink|source)-volume NAME|#N VOLUME [VOLUME ...]
pactl [options] set-(sink-input|source-output)-volume #N VOLUME [VOLUME ...]
pactl [options] set-(sink|source)-mute NAME|#N 1|0|toggle
pactl [options] set-(sink-input|source-output)-mute #N 1|0|toggle
pactl [options] set-sink-formats #N FORMATS
pactl [options] set-port-latency-offset CARD-NAME|CARD-#N PORT OFFSET
pactl [options] subscribe
The special names @DEFAULT_SINK@, @DEFAULT_SOURCE@ and @DEFAULT_MONITOR@
can be used to specify the default sink, source and monitor.
-h, --help Show this help
--version Show version
-s, --server=SERVER The name of the server to connect to
-n, --client-name=NAME How to call this client on the server
root@2012000099:~# paplay -h
paplay [options]
-h, --help Show this help
--version Show version
-r, --record Create a connection for recording
-p, --playback Create a connection for playback
-v, --verbose Enable verbose operations
-s, --server=SERVER The name of the server to connect to
-d, --device=DEVICE The name of the sink/source to connect to
-n, --client-name=NAME How to call this client on the server
--stream-name=NAME How to call this stream on the server
--volume=VOLUME Specify the initial (linear) volume in range 0...65536
--rate=SAMPLERATE The sample rate in Hz (defaults to 44100)
--format=SAMPLEFORMAT The sample type, one of s16le, s16be, u8, float32le,
float32be, ulaw, alaw, s32le, s32be, s24le, s24be,
s24-32le, s24-32be (defaults to s16ne)
--channels=CHANNELS The number of channels, 1 for mono, 2 for stereo
(defaults to 2)
--channel-map=CHANNELMAP Channel map to use instead of the default
--fix-format Take the sample format from the sink/source the stream is
being connected to.
--fix-rate Take the sampling rate from the sink/source the stream is
being connected to.
--fix-channels Take the number of channels and the channel map
from the sink/source the stream is being connected to.
--no-remix Don't upmix or downmix channels.
--no-remap Map channels by index instead of name.
--latency=BYTES Request the specified latency in bytes.
--process-time=BYTES Request the specified process time per request in bytes.
--latency-msec=MSEC Request the specified latency in msec.
--process-time-msec=MSEC Request the specified process time per request in msec.
--property=PROPERTY=VALUE Set the specified property to the specified value.
--raw Record/play raw PCM data.
--passthrough Passthrough data.
--file-format[=FFORMAT] Record/play formatted PCM data.
--list-file-formats List available file formats.
--monitor-stream=INDEX Record from the sink input with index INDEX.
```
#### parecord
```
root@2012000099:~# parecord -h
parecord [options]
-h, --help Show this help
--version Show version
-r, --record Create a connection for recording
-p, --playback Create a connection for playback
-v, --verbose Enable verbose operations
-s, --server=SERVER The name of the server to connect to
-d, --device=DEVICE The name of the sink/source to connect to
-n, --client-name=NAME How to call this client on the server
--stream-name=NAME How to call this stream on the server
--volume=VOLUME Specify the initial (linear) volume in range 0...65536
--rate=SAMPLERATE The sample rate in Hz (defaults to 44100)
--format=SAMPLEFORMAT The sample type, one of s16le, s16be, u8, float32le,
float32be, ulaw, alaw, s32le, s32be, s24le, s24be,
s24-32le, s24-32be (defaults to s16ne)
--channels=CHANNELS The number of channels, 1 for mono, 2 for stereo
(defaults to 2)
--channel-map=CHANNELMAP Channel map to use instead of the default
--fix-format Take the sample format from the sink/source the stream is
being connected to.
--fix-rate Take the sampling rate from the sink/source the stream is
being connected to.
--fix-channels Take the number of channels and the channel map
from the sink/source the stream is being connected to.
--no-remix Don't upmix or downmix channels.
--no-remap Map channels by index instead of name.
--latency=BYTES Request the specified latency in bytes.
--process-time=BYTES Request the specified process time per request in bytes.
--latency-msec=MSEC Request the specified latency in msec.
--process-time-msec=MSEC Request the specified process time per request in msec.
--property=PROPERTY=VALUE Set the specified property to the specified value.
--raw Record/play raw PCM data.
--passthrough Passthrough data.
--file-format[=FFORMAT] Record/play formatted PCM data.
--list-file-formats List available file formats.
--monitor-stream=INDEX Record from the sink input with index INDEX.
```
## 参考文档
<https://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/>