153a5a1b3Sopenharmony_ci<?xml version="1.0"?><!--*-nxml-*--> 253a5a1b3Sopenharmony_ci<!DOCTYPE manpage SYSTEM "xmltoman.dtd"> 353a5a1b3Sopenharmony_ci<?xml-stylesheet type="text/xsl" href="xmltoman.xsl" ?> 453a5a1b3Sopenharmony_ci 553a5a1b3Sopenharmony_ci<!-- 653a5a1b3Sopenharmony_ciThis file is part of PulseAudio. 753a5a1b3Sopenharmony_ci 853a5a1b3Sopenharmony_ciPulseAudio is free software; you can redistribute it and/or modify it 953a5a1b3Sopenharmony_ciunder the terms of the GNU Lesser General Public License as 1053a5a1b3Sopenharmony_cipublished by the Free Software Foundation; either version 2.1 of the 1153a5a1b3Sopenharmony_ciLicense, or (at your option) any later version. 1253a5a1b3Sopenharmony_ci 1353a5a1b3Sopenharmony_ciPulseAudio is distributed in the hope that it will be useful, but WITHOUT 1453a5a1b3Sopenharmony_ciANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1553a5a1b3Sopenharmony_cior FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 1653a5a1b3Sopenharmony_ciPublic License for more details. 1753a5a1b3Sopenharmony_ci 1853a5a1b3Sopenharmony_ciYou should have received a copy of the GNU Lesser General Public 1953a5a1b3Sopenharmony_ciLicense along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 2053a5a1b3Sopenharmony_ci--> 2153a5a1b3Sopenharmony_ci 2253a5a1b3Sopenharmony_ci<manpage name="pacat" section="1" desc="Play back or record raw or encoded audio streams on a PulseAudio sound server"> 2353a5a1b3Sopenharmony_ci 2453a5a1b3Sopenharmony_ci <synopsis> 2553a5a1b3Sopenharmony_ci <cmd>paplay [<arg>options</arg>] [<arg>FILE</arg>]</cmd> 2653a5a1b3Sopenharmony_ci <cmd>parecord [<arg>options</arg>] [<arg>FILE</arg>]</cmd> 2753a5a1b3Sopenharmony_ci <cmd>pacat [<arg>options</arg>] [<arg>FILE</arg>]</cmd> 2853a5a1b3Sopenharmony_ci <cmd>parec [<arg>options</arg>] [<arg>FILE</arg>]</cmd> 2953a5a1b3Sopenharmony_ci <cmd>pamon [<arg>options</arg>] [<arg>FILE</arg>]</cmd> 3053a5a1b3Sopenharmony_ci <cmd>pacat <opt>--help</opt></cmd> 3153a5a1b3Sopenharmony_ci <cmd>pacat <opt>--version</opt></cmd> 3253a5a1b3Sopenharmony_ci </synopsis> 3353a5a1b3Sopenharmony_ci 3453a5a1b3Sopenharmony_ci <description> 3553a5a1b3Sopenharmony_ci <p><file>pacat</file> is a simple tool for playing back or 3653a5a1b3Sopenharmony_ci capturing raw or encoded audio files on a PulseAudio sound 3753a5a1b3Sopenharmony_ci server. It understands all audio file formats supported by 3853a5a1b3Sopenharmony_ci <file>libsndfile</file>.</p> 3953a5a1b3Sopenharmony_ci </description> 4053a5a1b3Sopenharmony_ci 4153a5a1b3Sopenharmony_ci <options> 4253a5a1b3Sopenharmony_ci 4353a5a1b3Sopenharmony_ci <option> 4453a5a1b3Sopenharmony_ci <p><opt>-h | --help</opt></p> 4553a5a1b3Sopenharmony_ci 4653a5a1b3Sopenharmony_ci <optdesc><p>Show help.</p></optdesc> 4753a5a1b3Sopenharmony_ci </option> 4853a5a1b3Sopenharmony_ci 4953a5a1b3Sopenharmony_ci <option> 5053a5a1b3Sopenharmony_ci <p><opt>--version</opt></p> 5153a5a1b3Sopenharmony_ci 5253a5a1b3Sopenharmony_ci <optdesc><p>Show version information.</p></optdesc> 5353a5a1b3Sopenharmony_ci </option> 5453a5a1b3Sopenharmony_ci 5553a5a1b3Sopenharmony_ci <option> 5653a5a1b3Sopenharmony_ci <p><opt>-r | --record</opt></p> 5753a5a1b3Sopenharmony_ci 5853a5a1b3Sopenharmony_ci <optdesc><p>Capture audio data and write it to the specified file or to STDOUT if none is specified. If the tool is called under the name <file>parec</file> this is the default.</p></optdesc> 5953a5a1b3Sopenharmony_ci </option> 6053a5a1b3Sopenharmony_ci 6153a5a1b3Sopenharmony_ci <option> 6253a5a1b3Sopenharmony_ci <p><opt>-p | --playback</opt></p> 6353a5a1b3Sopenharmony_ci 6453a5a1b3Sopenharmony_ci <optdesc><p>Read audio data from the specified file or STDIN if none is specified, and play it back. If the tool is called under the name <file>pacat</file> this is the default.</p></optdesc> 6553a5a1b3Sopenharmony_ci </option> 6653a5a1b3Sopenharmony_ci 6753a5a1b3Sopenharmony_ci <option> 6853a5a1b3Sopenharmony_ci <p><opt>-v | --verbose</opt></p> 6953a5a1b3Sopenharmony_ci 7053a5a1b3Sopenharmony_ci <optdesc><p>Enable verbose operation. Dumps the current playback time to STDERR during playback/capturing.</p></optdesc> 7153a5a1b3Sopenharmony_ci </option> 7253a5a1b3Sopenharmony_ci 7353a5a1b3Sopenharmony_ci <option> 7453a5a1b3Sopenharmony_ci <p><opt>-s | --server</opt><arg>=SERVER</arg></p> 7553a5a1b3Sopenharmony_ci 7653a5a1b3Sopenharmony_ci <optdesc><p>Choose the server to connect to.</p></optdesc> 7753a5a1b3Sopenharmony_ci </option> 7853a5a1b3Sopenharmony_ci 7953a5a1b3Sopenharmony_ci <option> 8053a5a1b3Sopenharmony_ci <p><opt>-d | --device</opt><arg>=SINKORSOURCE</arg></p> 8153a5a1b3Sopenharmony_ci 8253a5a1b3Sopenharmony_ci <optdesc><p>Specify the symbolic name of the sink/source to play/record this stream on/from. The special names @DEFAULT_SINK@, @DEFAULT_SOURCE@ and @DEFAULT_MONITOR@ can be used to specify the default sink, source and monitor respectively.</p></optdesc> 8353a5a1b3Sopenharmony_ci </option> 8453a5a1b3Sopenharmony_ci 8553a5a1b3Sopenharmony_ci <option> 8653a5a1b3Sopenharmony_ci <p><opt>--monitor-stream</opt><arg>=INDEX</arg></p> 8753a5a1b3Sopenharmony_ci 8853a5a1b3Sopenharmony_ci <optdesc><p>Record from the sink input with index INDEX.</p></optdesc> 8953a5a1b3Sopenharmony_ci </option> 9053a5a1b3Sopenharmony_ci 9153a5a1b3Sopenharmony_ci <option> 9253a5a1b3Sopenharmony_ci <p><opt>-n | --client-name</opt><arg>=NAME</arg></p> 9353a5a1b3Sopenharmony_ci 9453a5a1b3Sopenharmony_ci <optdesc><p>Specify the client name <file>paplay</file> shall pass to the server when connecting.</p></optdesc> 9553a5a1b3Sopenharmony_ci </option> 9653a5a1b3Sopenharmony_ci 9753a5a1b3Sopenharmony_ci <option> 9853a5a1b3Sopenharmony_ci <p><opt>--stream-name</opt><arg>=NAME</arg></p> 9953a5a1b3Sopenharmony_ci 10053a5a1b3Sopenharmony_ci <optdesc><p>Specify the stream name <file>paplay</file> shall pass to the server when creating the stream.</p></optdesc> 10153a5a1b3Sopenharmony_ci </option> 10253a5a1b3Sopenharmony_ci 10353a5a1b3Sopenharmony_ci <option> 10453a5a1b3Sopenharmony_ci <p><opt>--volume</opt><arg>=VOLUME</arg></p> 10553a5a1b3Sopenharmony_ci 10653a5a1b3Sopenharmony_ci <optdesc><p>Specify the initial playback volume to use. Choose a value between 0 (silent) and 65536 (100% volume).</p></optdesc> 10753a5a1b3Sopenharmony_ci </option> 10853a5a1b3Sopenharmony_ci 10953a5a1b3Sopenharmony_ci <option> 11053a5a1b3Sopenharmony_ci <p><opt>--rate</opt><arg>=SAMPLERATE</arg></p> 11153a5a1b3Sopenharmony_ci 11253a5a1b3Sopenharmony_ci <optdesc><p>Capture or play back audio with the specified sample rate. Defaults to 44100 Hz.</p></optdesc> 11353a5a1b3Sopenharmony_ci </option> 11453a5a1b3Sopenharmony_ci 11553a5a1b3Sopenharmony_ci <option> 11653a5a1b3Sopenharmony_ci <p><opt>--format</opt><arg>=FORMAT</arg></p> 11753a5a1b3Sopenharmony_ci 11853a5a1b3Sopenharmony_ci <optdesc><p>Capture or play back audio with the specified sample 11953a5a1b3Sopenharmony_ci format. See 12053a5a1b3Sopenharmony_ci https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SupportedAudioFormats/ 12153a5a1b3Sopenharmony_ci for supported values. Defaults to s16ne.</p></optdesc> 12253a5a1b3Sopenharmony_ci </option> 12353a5a1b3Sopenharmony_ci 12453a5a1b3Sopenharmony_ci <option> 12553a5a1b3Sopenharmony_ci <p><opt>--channels</opt><arg>=CHANNELS</arg></p> 12653a5a1b3Sopenharmony_ci 12753a5a1b3Sopenharmony_ci <optdesc><p>Capture or play back audio with the specified number 12853a5a1b3Sopenharmony_ci of channels. If more than two channels are used it is 12953a5a1b3Sopenharmony_ci recommended to use the <opt>--channel-map</opt> option 13053a5a1b3Sopenharmony_ci below. Defaults to 2.</p></optdesc> 13153a5a1b3Sopenharmony_ci </option> 13253a5a1b3Sopenharmony_ci 13353a5a1b3Sopenharmony_ci <option> 13453a5a1b3Sopenharmony_ci <p><opt>--channel-map</opt><arg>=CHANNELMAP</arg></p> 13553a5a1b3Sopenharmony_ci 13653a5a1b3Sopenharmony_ci <optdesc><p>Explicitly choose a channel map when playing back 13753a5a1b3Sopenharmony_ci this stream. The argument should be a comma separated list of 13853a5a1b3Sopenharmony_ci channel names: <opt>front-left</opt>, <opt>front-right</opt>, 13953a5a1b3Sopenharmony_ci <opt>mono</opt>, <opt>front-center</opt>, <opt>rear-left</opt>, 14053a5a1b3Sopenharmony_ci <opt>rear-right</opt>, <opt>rear-center</opt>, <opt>lfe</opt>, 14153a5a1b3Sopenharmony_ci <opt>front-left-of-center</opt>, 14253a5a1b3Sopenharmony_ci <opt>front-right-of-center</opt>, <opt>side-left</opt>, 14353a5a1b3Sopenharmony_ci <opt>side-right</opt>, <opt>top-center</opt>, 14453a5a1b3Sopenharmony_ci <opt>top-front-center</opt>, <opt>top-front-left</opt>, 14553a5a1b3Sopenharmony_ci <opt>top-front-right</opt>, <opt>top-rear-left</opt>, 14653a5a1b3Sopenharmony_ci <opt>top-rear-right</opt>, <opt>top-rear-center</opt>, or any of 14753a5a1b3Sopenharmony_ci the 32 auxiliary channel names <opt>aux0</opt> to 14853a5a1b3Sopenharmony_ci <opt>aux31</opt>.</p></optdesc> 14953a5a1b3Sopenharmony_ci </option> 15053a5a1b3Sopenharmony_ci 15153a5a1b3Sopenharmony_ci <option> 15253a5a1b3Sopenharmony_ci <p><opt>--fix-format</opt></p> 15353a5a1b3Sopenharmony_ci <optdesc><p>If passed, the sample format of the stream is changed to the native format of the sink the stream is connected to.</p></optdesc> 15453a5a1b3Sopenharmony_ci </option> 15553a5a1b3Sopenharmony_ci 15653a5a1b3Sopenharmony_ci <option> 15753a5a1b3Sopenharmony_ci <p><opt>--fix-rate</opt></p> 15853a5a1b3Sopenharmony_ci <optdesc><p>If passed, the sampling rate of the stream is changed to the native rate of the sink the stream is connected to.</p></optdesc> 15953a5a1b3Sopenharmony_ci </option> 16053a5a1b3Sopenharmony_ci 16153a5a1b3Sopenharmony_ci <option> 16253a5a1b3Sopenharmony_ci <p><opt>--fix-channels</opt></p> 16353a5a1b3Sopenharmony_ci <optdesc><p>If passed, the number of channels and the channel map of the stream is changed to the native number of channels and the native channel map of the sink the stream is connected to.</p></optdesc> 16453a5a1b3Sopenharmony_ci </option> 16553a5a1b3Sopenharmony_ci 16653a5a1b3Sopenharmony_ci <option> 16753a5a1b3Sopenharmony_ci <p><opt>--no-remix</opt></p> 16853a5a1b3Sopenharmony_ci <optdesc><p>Never upmix or downmix channels.</p></optdesc> 16953a5a1b3Sopenharmony_ci </option> 17053a5a1b3Sopenharmony_ci 17153a5a1b3Sopenharmony_ci <option> 17253a5a1b3Sopenharmony_ci <p><opt>--no-remap</opt></p> 17353a5a1b3Sopenharmony_ci <optdesc><p>Never remap channels. Instead of mapping channels by their name this will match them solely by their index/order.</p></optdesc> 17453a5a1b3Sopenharmony_ci </option> 17553a5a1b3Sopenharmony_ci 17653a5a1b3Sopenharmony_ci <option> 17753a5a1b3Sopenharmony_ci <p><opt>--latency</opt><arg>=BYTES</arg></p> 17853a5a1b3Sopenharmony_ci <optdesc><p>Explicitly configure the latency, with a time 17953a5a1b3Sopenharmony_ci specified in bytes in the selected sample format. If left out 18053a5a1b3Sopenharmony_ci the server will pick the latency, usually relatively high for 18153a5a1b3Sopenharmony_ci power saving reasons. Use either this option or 18253a5a1b3Sopenharmony_ci <opt>--latency-msec</opt>, but not both.</p></optdesc> 18353a5a1b3Sopenharmony_ci </option> 18453a5a1b3Sopenharmony_ci 18553a5a1b3Sopenharmony_ci <option> 18653a5a1b3Sopenharmony_ci <p><opt>--latency-msec</opt><arg>=MSEC</arg></p> 18753a5a1b3Sopenharmony_ci <optdesc><p>Explicitly configure the latency, with a time 18853a5a1b3Sopenharmony_ci specified in milliseconds. If left out the server will pick the 18953a5a1b3Sopenharmony_ci latency, usually relatively high for power saving reasons. Use 19053a5a1b3Sopenharmony_ci either this option or <opt>--latency</opt>, but not 19153a5a1b3Sopenharmony_ci both.</p></optdesc> 19253a5a1b3Sopenharmony_ci </option> 19353a5a1b3Sopenharmony_ci 19453a5a1b3Sopenharmony_ci <option> 19553a5a1b3Sopenharmony_ci <p><opt>--process-time</opt><arg>=BYTES</arg></p> 19653a5a1b3Sopenharmony_ci <optdesc><p>Explicitly configure the process time, with a time 19753a5a1b3Sopenharmony_ci specified in bytes in the selected sample format. If left out 19853a5a1b3Sopenharmony_ci the server will pick the process time. Use either this option or 19953a5a1b3Sopenharmony_ci <opt>--process-time-msec</opt>, but not both.</p></optdesc> 20053a5a1b3Sopenharmony_ci </option> 20153a5a1b3Sopenharmony_ci 20253a5a1b3Sopenharmony_ci <option> 20353a5a1b3Sopenharmony_ci <p><opt>--process-time-msec</opt><arg>=MSEC</arg></p> 20453a5a1b3Sopenharmony_ci <optdesc><p>Explicitly configure the process time, with a time 20553a5a1b3Sopenharmony_ci specified in milliseconds. If left out the server will pick the 20653a5a1b3Sopenharmony_ci process time. Use either this option or <opt>--process-time</opt>, 20753a5a1b3Sopenharmony_ci but not both.</p></optdesc> 20853a5a1b3Sopenharmony_ci </option> 20953a5a1b3Sopenharmony_ci 21053a5a1b3Sopenharmony_ci <option> 21153a5a1b3Sopenharmony_ci <p><opt>--property</opt><arg>=PROPERTY=VALUE</arg></p> 21253a5a1b3Sopenharmony_ci <optdesc><p>Attach a property to the client and stream. May be 21353a5a1b3Sopenharmony_ci used multiple times</p></optdesc> 21453a5a1b3Sopenharmony_ci </option> 21553a5a1b3Sopenharmony_ci 21653a5a1b3Sopenharmony_ci <option> 21753a5a1b3Sopenharmony_ci <p><opt>--raw</opt></p> 21853a5a1b3Sopenharmony_ci <optdesc><p>Play/record raw audio data. This is the default if 21953a5a1b3Sopenharmony_ci this program is invoked as <file>pacat</file>, <file>parec</file> or 22053a5a1b3Sopenharmony_ci <file>pamon</file>.</p></optdesc> 22153a5a1b3Sopenharmony_ci </option> 22253a5a1b3Sopenharmony_ci 22353a5a1b3Sopenharmony_ci <option> 22453a5a1b3Sopenharmony_ci <p><opt>--file-format</opt><arg>[=FFORMAT]</arg></p> 22553a5a1b3Sopenharmony_ci <optdesc><p>Play/record encoded audio data in the file format 22653a5a1b3Sopenharmony_ci specified. This is the default if this program is invoked as 22753a5a1b3Sopenharmony_ci <file>paplay</file> and <file>parecord</file>.</p></optdesc> 22853a5a1b3Sopenharmony_ci </option> 22953a5a1b3Sopenharmony_ci 23053a5a1b3Sopenharmony_ci <option> 23153a5a1b3Sopenharmony_ci <p><opt>--list-file-formats</opt></p> 23253a5a1b3Sopenharmony_ci <optdesc><p>List supported file formats.</p></optdesc> 23353a5a1b3Sopenharmony_ci </option> 23453a5a1b3Sopenharmony_ci 23553a5a1b3Sopenharmony_ci </options> 23653a5a1b3Sopenharmony_ci 23753a5a1b3Sopenharmony_ci <section name="Limitations"> 23853a5a1b3Sopenharmony_ci <p>Due to a limitation in <file>libsndfile</file> 23953a5a1b3Sopenharmony_ci <file>paplay</file> currently does not always set the correct channel 24053a5a1b3Sopenharmony_ci mapping for playback of multichannel (i.e. surround) audio files, even 24153a5a1b3Sopenharmony_ci if the channel mapping information is available in the audio file.</p> 24253a5a1b3Sopenharmony_ci </section> 24353a5a1b3Sopenharmony_ci 24453a5a1b3Sopenharmony_ci <section name="Authors"> 24553a5a1b3Sopenharmony_ci <p>The PulseAudio Developers <@PACKAGE_BUGREPORT@>; PulseAudio is available from <url href="@PACKAGE_URL@"/></p> 24653a5a1b3Sopenharmony_ci </section> 24753a5a1b3Sopenharmony_ci 24853a5a1b3Sopenharmony_ci <section name="See also"> 24953a5a1b3Sopenharmony_ci <p> 25053a5a1b3Sopenharmony_ci <manref name="pulseaudio" section="1"/>, <manref name="pactl" section="1"/> 25153a5a1b3Sopenharmony_ci </p> 25253a5a1b3Sopenharmony_ci </section> 25353a5a1b3Sopenharmony_ci 25453a5a1b3Sopenharmony_ci</manpage> 255