{"id":4549,"date":"2022-12-20T18:09:02","date_gmt":"2022-12-20T21:09:02","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pulse-cli-syntax-man5\/"},"modified":"2022-12-20T18:09:02","modified_gmt":"2022-12-20T21:09:02","slug":"pulse-cli-syntax-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pulse-cli-syntax-man5\/","title":{"rendered":"pulse-cli-syntax (man5)"},"content":{"rendered":"<h1 align=\"center\">pulse-cli-syntax<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#GENERAL COMMANDS\">GENERAL COMMANDS<\/a><br \/> <a href=\"#STATUS COMMANDS\">STATUS COMMANDS<\/a><br \/> <a href=\"#MODULE MANAGEMENT\">MODULE MANAGEMENT<\/a><br \/> <a href=\"#VOLUME COMMANDS\">VOLUME COMMANDS<\/a><br \/> <a href=\"#CONFIGURATION COMMANDS\">CONFIGURATION COMMANDS<\/a><br \/> <a href=\"#MOVING STREAMS\">MOVING STREAMS<\/a><br \/> <a href=\"#PROPERTY LISTS\">PROPERTY LISTS<\/a><br \/> <a href=\"#SAMPLE CACHE\">SAMPLE CACHE<\/a><br \/> <a href=\"#KILLING CLIENTS\/STREAMS\">KILLING CLIENTS\/STREAMS<\/a><br \/> <a href=\"#LOG COMMANDS\">LOG COMMANDS<\/a><br \/> <a href=\"#MISCELLANEOUS COMMANDS\">MISCELLANEOUS COMMANDS<\/a><br \/> <a href=\"#META COMMANDS\">META COMMANDS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pulse-cli-syntax \u2212 PulseAudio Command Line Interface Syntax<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>~\/.config\/pulse\/default.pa<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/pulse\/default.pa<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/pulse\/system.pa<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">PulseAudio provides a simple command line language used by configuration scripts, the pacmd interactive shell, and the modules module-cli and module-cli-protocol-{unix,tcp}. Empty lines and lines beginning with a hashmark (#) are silently ignored. Several commands are supported.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note that any boolean arguments can be given positively as \u20191\u2019, \u2019t\u2019, \u2019y\u2019, \u2019true\u2019, \u2019yes\u2019 or \u2019on\u2019. Likewise, negative values can be given as \u20190\u2019, \u2019f\u2019, \u2019n\u2019, \u2019false\u2019, \u2019no\u2019 or \u2019off\u2019. Case is ignored.<\/p>\n<h2>GENERAL COMMANDS <a name=\"GENERAL COMMANDS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p style=\"margin-top: 1em\"><b>help<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"67%\">\n<p style=\"margin-top: 1em\">Show a quick help on the commands available.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>STATUS COMMANDS <a name=\"STATUS COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>list-modules<\/b><\/p>\n<p style=\"margin-left:22%;\">Show all currently loaded modules with their arguments.<\/p>\n<p style=\"margin-left:11%;\"><b>list-cards<\/b><\/p>\n<p style=\"margin-left:22%;\">Show all currently registered cards<\/p>\n<p style=\"margin-left:11%;\"><b>list-sinks<\/b> or <b>list-sources<\/b><\/p>\n<p style=\"margin-left:22%;\">Show all currently registered sinks (resp. sources).<\/p>\n<p style=\"margin-left:11%;\"><b>list-clients<\/b><\/p>\n<p style=\"margin-left:22%;\">Show all currently active clients.<\/p>\n<p style=\"margin-left:11%;\"><b>list-sink-inputs<\/b> or <b>list-source-outputs<\/b><\/p>\n<p style=\"margin-left:22%;\">Show all currently active inputs to sinks a.k.a. playback streams (resp. outputs of sources a.k.a. recording streams).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>stat<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>Show some simple statistics about the allocated memory blocks and the space used by them.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>info<\/b> or <b>ls<\/b> or <b>list<\/b><\/p>\n<p style=\"margin-left:22%;\">A combination of all status commands described above (all three commands are synonyms).<\/p>\n<h2>MODULE MANAGEMENT <a name=\"MODULE MANAGEMENT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>load-module<\/b> <i>name<\/i> [<i>arguments&#8230;<\/i>]<\/p>\n<p style=\"margin-left:22%;\">Load a module specified by its name and arguments. For most modules it is OK to be loaded more than once.<\/p>\n<p style=\"margin-left:11%;\"><b>unload-module<\/b> <i>index|name<\/i><\/p>\n<p style=\"margin-left:22%;\">Unload a module, specified either by its index in the module list or its name.<\/p>\n<p style=\"margin-left:11%;\"><b>describe-module<\/b> <i>name<\/i><\/p>\n<p style=\"margin-left:22%;\">Give information about a module specified by its name.<\/p>\n<h2>VOLUME COMMANDS <a name=\"VOLUME COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>set-sink-volume|set-source-volume<\/b> <i>index|name volume<\/i><\/p>\n<p style=\"margin-left:22%;\">Set the volume of the specified sink (resp. source). You may specify the sink (resp. source) either by its index in the sink\/source list or by its name. The volume should be an integer value greater or equal than 0 (muted). Volume 65536 (0x10000) is \u2019normal\u2019 volume a.k.a. 100%. Values greater than this amplify the audio signal (with clipping).<\/p>\n<p style=\"margin-left:11%;\"><b>set-sink-mute|set-source-mute<\/b> <i>index|name boolean<\/i><\/p>\n<p style=\"margin-left:22%;\">Mute or unmute the specified sink (resp. source). You may specify the sink (resp. source) either by its index or by its name. The mute value is either 0 (not muted) or 1 (muted).<\/p>\n<p style=\"margin-left:11%;\"><b>set-sink-input-volume|set-source-output-volume<\/b> <i>index volume<\/i><\/p>\n<p style=\"margin-left:22%;\">Set the volume of a sink input (resp. source output) specified by its index. The same volume rules apply as with set-sink-volume.<\/p>\n<p style=\"margin-left:11%;\"><b>set-sink-input-mute|set-source-output-mute<\/b> <i>index boolean<\/i><\/p>\n<p style=\"margin-left:22%;\">Mute or unmute a sink input (resp. source output) specified by its index. The same mute rules apply as with set-sink-mute.<\/p>\n<h2>CONFIGURATION COMMANDS <a name=\"CONFIGURATION COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>set-default-sink|set-default-source<\/b> <i>index|name<\/i><\/p>\n<p style=\"margin-left:22%;\">Make a sink (resp. source) the default. You may specify the sink (resp. source) by its index in the sink (resp. source) list or by its name.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Note that defaults may be overridden by various policy modules or by specific stream configurations.<\/p>\n<p style=\"margin-left:11%;\"><b>set-card-profile<\/b> <i>index|name profile-name<\/i><\/p>\n<p style=\"margin-left:22%;\">Change the profile of a card.<\/p>\n<p style=\"margin-left:11%;\"><b>set-sink-port|set-source-port<\/b> <i>index|name port-name<\/i><\/p>\n<p style=\"margin-left:22%;\">Change the profile of a sink (resp. source).<\/p>\n<p style=\"margin-left:11%;\"><b>set-port-latency-offset<\/b> <i>card-index|card-name port-name offset<\/i><\/p>\n<p style=\"margin-left:22%;\">Change the latency offset of a port belonging to the specified card<\/p>\n<p style=\"margin-left:11%;\"><b>suspend-sink|suspend-source<\/b> <i>name|index true|false<\/i><\/p>\n<p style=\"margin-left:22%;\">Suspend or resume the specified sink or source (which may be specified either by its name or index), depending whether true (suspend) or false (resume) is passed as last argument. Suspending a sink will pause all playback and suspending a source will pause all capturing. Depending on the module implementing the sink or source this might have the effect that the underlying device is closed, making it available for other applications to use. The exact behaviour depends on the module.<\/p>\n<p style=\"margin-left:11%;\"><b>suspend<\/b> <i>boolean<\/i><\/p>\n<p style=\"margin-left:22%;\">Suspend all sinks and sources.<\/p>\n<h2>MOVING STREAMS <a name=\"MOVING STREAMS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>move-sink-input|move-source-output<\/b> <i>index sink-index|sink-name<\/i><\/p>\n<p style=\"margin-left:22%;\">Move sink input (resp. source output) to another sink (resp. source).<\/p>\n<h2>PROPERTY LISTS <a name=\"PROPERTY LISTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>update-sink-proplist|update-source-proplist<\/b> <i>index|name properties<\/i><\/p>\n<p style=\"margin-left:22%;\">Update the properties of a sink (resp. source) specified by name or index. The property is specified as e.g. device.description=&#8221;My Preferred Name&#8221;<\/p>\n<p style=\"margin-left:11%;\"><b>update-sink-input-proplist|update-source-output-proplist<\/b> <i>index <br \/> properties<\/i><\/p>\n<p style=\"margin-left:22%;\">Update the properties of a sink input (resp. source output) specified by index. The properties are specified as above.<\/p>\n<h2>SAMPLE CACHE <a name=\"SAMPLE CACHE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>list-samples<\/b><\/p>\n<p style=\"margin-left:22%;\">Lists the contents of the sample cache.<\/p>\n<p style=\"margin-left:11%;\"><b>play-sample<\/b> <i>name sink-index|sink-name<\/i><\/p>\n<p style=\"margin-left:22%;\">Play a sample cache entry to a sink.<\/p>\n<p style=\"margin-left:11%;\"><b>remove-sample<\/b> <i>name<\/i><\/p>\n<p style=\"margin-left:22%;\">Remove an entry from the sample cache.<\/p>\n<p style=\"margin-left:11%;\"><b>load-sample<\/b> <i>name filename<\/i><\/p>\n<p style=\"margin-left:22%;\">Load an audio file to the sample cache.<\/p>\n<p style=\"margin-left:11%;\"><b>load-sample-lazy<\/b> <i>name filename<\/i><\/p>\n<p style=\"margin-left:22%;\">Create a new entry in the sample cache, but don\u2019t load the sample immediately. The sample is loaded only when it is first used. After a certain idle time it is freed again.<\/p>\n<p style=\"margin-left:11%;\"><b>load-sample-dir-lazy<\/b> <i>path<\/i><\/p>\n<p style=\"margin-left:22%;\">Load all entries in the specified directory into the sample cache as lazy entries. A shell globbing expression (e.g. *.wav) may be appended to the path of the directory to add.<\/p>\n<h2>KILLING CLIENTS\/STREAMS <a name=\"KILLING CLIENTS\/STREAMS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>kill-client<\/b> <i>index<\/i><\/p>\n<p style=\"margin-left:22%;\">Remove a client forcibly from the server. There is no protection against the client reconnecting immediately.<\/p>\n<p style=\"margin-left:11%;\"><b>kill-sink-input|kill-source-output<\/b> <i>index<\/i><\/p>\n<p style=\"margin-left:22%;\">Remove a sink input (resp. source output) forcibly from the server. This will not remove the owning client or any other streams opened by the same client from the server.<\/p>\n<h2>LOG COMMANDS <a name=\"LOG COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>set-log-level<\/b> <i>numeric-level<\/i><\/p>\n<p style=\"margin-left:22%;\">Change the log level.<\/p>\n<p style=\"margin-left:11%;\"><b>set-log-meta<\/b> <i>boolean<\/i><\/p>\n<p style=\"margin-left:22%;\">Show source code location in log messages.<\/p>\n<p style=\"margin-left:11%;\"><b>set-log-target<\/b> <i>target<\/i><\/p>\n<p style=\"margin-left:22%;\">Change the log target (null, auto, journal, syslog, stderr, file:PATH, newfile:PATH).<\/p>\n<p style=\"margin-left:11%;\"><b>set-log-time<\/b> <i>boolean<\/i><\/p>\n<p style=\"margin-left:22%;\">Show timestamps in log messages.<\/p>\n<p style=\"margin-left:11%;\"><b>set-log-backtrace<\/b> <i>num-frames<\/i><\/p>\n<p style=\"margin-left:22%;\">Show backtrace in log messages.<\/p>\n<h2>MISCELLANEOUS COMMANDS <a name=\"MISCELLANEOUS COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>play-file<\/b> <i>filename sink-index|sink-name<\/i><\/p>\n<p style=\"margin-left:22%;\">Play an audio file to a sink.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>dump<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>Dump the daemon\u2019s current configuration in CLI commands.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>dump-volumes<\/b><\/p>\n<p style=\"margin-left:22%;\">Debug: Shows the current state of all volumes.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>shared<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>Debug: Show shared properties.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>exit<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>Terminate the daemon. If you want to terminate a CLI connection (&#8220;log out&#8221;) you might want to use ctrl+d<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>META COMMANDS <a name=\"META COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">In addition to the commands described above there are a few meta directives supported by the command line interpreter. <b><br \/> .include<\/b> <i>filename|folder<\/i><\/p>\n<p style=\"margin-left:22%;\">Executes the commands from the specified script file or in all of the *.pa files within the folder.<\/p>\n<p style=\"margin-left:11%;\"><b>.fail<\/b> and <b>.nofail<\/b><\/p>\n<p style=\"margin-left:22%;\">Enable (resp. disable) that following failing commands will cancel the execution of the current script file. This is ignored when used on the interactive command line.<\/p>\n<p style=\"margin-left:11%;\"><b>.ifexists<\/b> <i>filename<\/i><\/p>\n<p style=\"margin-left:22%;\">Execute the subsequent block of commands only if the specified file exists. Typically <i>filename<\/i> indicates a module. Relative paths are resolved using the module directory as the base. By using an absolute path, the existence of other files can be checked as well.<\/p>\n<p style=\"margin-left:11%;\"><b>.else<\/b> and <b>.endif<\/b><\/p>\n<p style=\"margin-left:22%;\">A block of commands is delimited by an <b>.else<\/b> or <b>.endif<\/b> meta command. Nesting conditional commands is not supported.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The PulseAudio Developers <pulseaudio-discuss (at) lists (dot) freedesktop (dot) org>; PulseAudio is available from <b>http:\/\/pulseaudio.org\/<\/b><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>default.pa(5)<\/b>, <b>pacmd(1)<\/b>, <b>pulseaudio(1)<\/b><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pulse-cli-syntax \u2212 PulseAudio Command Line Interface Syntax <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,1509],"class_list":["post-4549","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-pulse-cli-syntax"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4549"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4549\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}