Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-29-2008, 05:04 AM   #1
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
no audio device for play/playwave commands

Dear friends,

I used to use the command line play and playwave commands in bash scripts, to play a sound when a milestone is reached in my multi-phase backup script.

In fedora 8, after Pulse audio system is not working any more.

However, KDE/Gnome programs can play music just fine. MPlayer/Totem can play movies with audio without problems too.
The Fedora8 tool in the System/Preferences/Hardware/Sound can play any sample sounds in the Sounds tab of Sound Preferences.

Looks like only play and playwave commands are not working. The error message is:
[miguel@oldbit ~]$ playwave /usr/share/sounds/k3b_success1.wav 
Couldn't open audio: No available audio device
[miguel@oldbit ~]$ play /usr/share/sounds/k3b_success1.wav 
*** PULSEAUDIO: Unable to connect: Connection refused
play stio: Failed writing default: cannot open audio device
[miguel@oldbit ~]$
How can I play sounds with commands play/playwave in Fedora8/Pulse ?
Old 01-30-2008, 02:16 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,235

Rep: Reputation: 302Reputation: 302Reputation: 302Reputation: 302
Do you have alsa installed? Try 'aplay sound.wav'
Old 02-01-2008, 04:42 AM   #3
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Original Poster
Rep: Reputation: 64
fixed but not explained

I tried aplay, but I got a similar message.

I have tried to create a new user and for my surprise the play/aplay commands for this new user works !

Well, was not entirely a surprise, once I got a similar problem and I solved just by moving, piece by piece, my user environment from the one account to the working one.

So it is something in my environment, not in the system itself. A tried to clean as much I can the environments variables, but not luck. I think it can be a corrupted configuration file somewhere ?

Thank you !


pulse, sound

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Burnt Audio CD by K3B CANNOT play on external CD playing device, but can play on comp Linux - Software 14 05-27-2007 04:30 AM
LXer: Device Profile: Trinity Audio Group portable digital audio workstation LXer Syndicated Linux News 0 07-07-2006 01:03 AM
playwave problem yli_ren Fedora 1 09-30-2004 07:48 AM
playwave problem yli_ren Linux - Software 0 09-28-2004 09:31 AM
DVD plays but no audio (can play audio cd's though)? guitarnix Linux - Newbie 2 10-05-2003 07:52 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration