LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

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

Rep: Reputation: 63
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:
Code:
[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
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,203

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

Original Poster
Rep: Reputation: 63
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 !
 
  


Reply

Tags
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 robin.com.au 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


All times are GMT -5. The time now is 12:36 AM.

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