Need a how-to setup sound

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Need a how-to setup sound

Postby jca001 » Fri Feb 24, 2012 5:20 am

Has anybody setup a USB Sound device so WAV files can be played from a shell script?

I have done some searching but can not find what I am looking for. Most people seem to be using their USB Sound device to play music. I need to play WAV files and/or Text to speech. Most things I have found assume you are running X11 and are/or using a music player of some kind. I need to be able to put a command in a shell script. An example I found was:

aplay -Dpulse ring.wav

But I get the follwowng error:

ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

aplay: main:608: audio open error: Connection refused

I have tried to run pulseaudio --start

But that complains it should not be run as root. If this needs to be put in a rc script, it will probably fail there since it will be running as root.

So what have others done to get alsa and pulseaudio running so command line calls can be made to play WAV files?

I need to know what packages to install via pacman and what to put in configuration files and how to make it start at boot time.
-----
Thanks: Jack Allen
jca001
 
Posts: 12
Joined: Sun Jan 29, 2012 4:14 pm

Re: Need a how-to setup sound

Postby moonman » Fri Feb 24, 2012 5:28 am

Read through pulseaudio documentation, I think to be able to run pulseaudio as root in the config file (/etc/pulse/daemon.conf ???) you need to change system-instance to yes. Then maybe allow connections from anywhere? I can't be anymore of help to you since I am not running this kind of setup. :oops:

Try running vnc if all the tools are for x11, that may make it easier to set up.

http://www.pulseaudio.org/wiki/SystemWideInstance
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests