[ 
http://opencast.jira.com/browse/MH-7774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26959#comment-26959
 ] 

Rubén Pérez Vázquez commented on MH-7774:
-----------------------------------------

OK, the basic steps to control pulseaudio via CLI are these:

1- Pulseaudio must be installed. The sound server may not be installed if, as 
in Vigo, no GUI is installed in the capture agent. Just run sudo apt-get 
install pulseaudio to get this done.
2 - Pulseaudio must be running. Even though the server can be configured to run 
as a system-wide daemon, this is not recommended. Therefore we need to make 
sure a daemon is started within our session. This is true for graphical 
sessions in general, because the GUI takes care of that. In non-graphical 
sessions, it's better to make sure pulseaudio is up and running by typing the 
command: pulseaudio --start [NOTE YOU DON'T NEED TO BE THE ROOT USER --IN FACT 
YOU SHOULDN'T]
3 - The pacmd command connects to an existing pulseaudio server and opens an 
interactive prompt so that the user can issue commands to the server. Just run 
pacmd and then help to see a list of the available commands. If we want to send 
orders to the server in a non-interactive way, for instance in a script, we can 
use an echo 'orders' statement or use cat with a text file and pipe the output 
to the pacmd command (optionally we can redirect the output to avoid the 
greeting statement and the prompt), as in:

echo 'some order' | pacmd &> /dev/null
cat file_with_orders.txt | pacmd &> /dev/null

4 - The commands understood by pulseaudio are pretty self-explanatory. Just one 
tricky thing to remember: the volume amount is specified in hexadecimal format 
between 0x0 to 0x10000.
5 - If you run pacmd interactively, never type "exit" to leave the program. 
This command actually stops the server, not just the pacmd command.

Please place any comments or doubts in this issue so that I can 
explain/investigate them.

> Find out how to set mic/line levels from command line in pulse audio
> --------------------------------------------------------------------
>
>                 Key: MH-7774
>                 URL: http://opencast.jira.com/browse/MH-7774
>             Project: Matterhorn Project
>          Issue Type: Task
>          Components: Capture (Devices and Software)
>    Affects Versions: 1.1 
>            Reporter: Christopher Brooks
>            Assignee: Rubén Pérez Vázquez
>             Fix For: 1.3
>
>
> Please include the completion of this ticket in the comments on this ticket, 
> then we can move onto testing pulse audio and determining whether it is a 
> good replacement for alsasrc.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to