LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-23-2012, 09:45 PM   #1
Pappy Goodwill
LQ Newbie
 
Registered: Jun 2011
Location: Afton, OK
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
no sound out of aplay


Raspberry Pi, Debian Wheezy/sid, Still not getting any sound out of aplay. I think I have the command right: aplay filename -t wav -r 44100 -c 2 -D bcm2835. tested on monitor audio input and 3 different pairs of earbuds.
 
Old 12-25-2012, 01:21 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,773

Rep: Reputation: 197Reputation: 197
Is filename a .wav file?
Code:
aplay -t wav /path/to/audio.wav
Will play a .wav, you can't play a .mp3 that way.

Can you play sounds with any other media player? Is your audio hardware working and set up?
 
1 members found this post helpful.
Old 12-25-2012, 04:43 PM   #3
clocker
Member
 
Registered: Sep 2011
Distribution: fedora, redhat, mint
Posts: 87

Rep: Reputation: Disabled
To cut the story short, confirm its not a hardware problem then install vlc and play any audio file of your choice.
 
Old 12-27-2012, 08:47 PM   #4
Pappy Goodwill
LQ Newbie
 
Registered: Jun 2011
Location: Afton, OK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: Disabled
teckk: yes "filename" is a wav file. I match the type (-t) with the filename type. I can play any of the files with Windows Media and iTunes on a PC. They are on an external USB drive plugged into the USB port on the Raspberry Pi. (It's powered by a USB hub separate from the Raspberry) I'm plugged into the 1/8" stereo jack on the Raspberry and into the Audio In jacks (RCA) on my monitor. (Tried earbuds too) I'm logging on to the Raspberry through PuTTY on my PC and working on the command line. (Haven't got X tunnels dug yet)I get no sound out of any type of file.

clocker: I may resort to vlc. First I have to determine if I truly do have a hardware problem or just loose nut on the keyboard.
 
Old 12-28-2012, 10:15 AM   #5
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,773

Rep: Reputation: 197Reputation: 197
Does aplay give you an error? Or you can't hear any sound?
You have the mixer turned up?
Also I'm told that the debian OS for that little board comes with omxplayer.
 
Old 01-01-2013, 02:07 PM   #6
Pappy Goodwill
LQ Newbie
 
Registered: Jun 2011
Location: Afton, OK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: Disabled
I'm begining to suspect I need a little more study on the amixer aspect.
Stay tuned for further details.
 
Old 01-03-2013, 02:33 AM   #7
trijit
Member
 
Registered: Sep 2010
Location: Kolkata
Distribution: Ubuntu
Posts: 34

Rep: Reputation: 3
Quote:
Originally Posted by Pappy Goodwill View Post
Raspberry Pi, Debian Wheezy/sid, Still not getting any sound out of aplay. I think I have the command right: aplay filename -t wav -r 44100 -c 2 -D bcm2835. tested on monitor audio input and 3 different pairs of earbuds.
what's "alsamixer" showing?
 
Old 01-04-2013, 08:30 AM   #8
Pappy Goodwill
LQ Newbie
 
Registered: Jun 2011
Location: Afton, OK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: Disabled
Alsamixer

AH! Progress! it's showing 84%
 
Old 01-05-2013, 09:00 PM   #9
Pappy Goodwill
LQ Newbie
 
Registered: Jun 2011
Location: Afton, OK
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: Disabled
aplay works now

Put my files on a flash drive. Tried to play them this morning, didn't work. Tried them again this evening and it played the wave file just fine. The midi and mp3 just get me raw noise, but hey- it's better than silence! Haven't a clue why. Thanks to everyone for their input.
 
Old 01-09-2013, 04:53 PM   #10
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,773

Rep: Reputation: 197Reputation: 197
aplay won't play a .mid or .mp3, see post 2.

http://linux.die.net/man/1/aplay

You'll need a midi player for .mid files. You'll need lame installed and a player that will play mp3 files.

And have you tried omxplayer that comes with debian OS.
 
  


Reply


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
Gnome = no sound, but aplay/firefox/vlc work w/ alsa nicky7 Fedora 4 08-21-2009 09:03 AM
ALC861 sound problem, aplay device busy with ESD CSniper Debian 0 10-13-2007 09:38 AM
aplay does nothing fisheromen1031 Linux - Newbie 3 09-19-2005 09:01 PM
alsa ; compiling aplay.c vose Programming 0 01-13-2005 02:42 AM
New email sound Thunderbird with aplay? Moloko Linux - Software 0 01-02-2005 03:34 PM


All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
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