LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   no sound out of aplay (http://www.linuxquestions.org/questions/linux-newbie-8/no-sound-out-of-aplay-4175442741/)

Pappy Goodwill 12-23-2012 09:45 PM

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.

teckk 12-25-2012 01:21 PM

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?

clocker 12-25-2012 04:43 PM

To cut the story short, confirm its not a hardware problem then install vlc and play any audio file of your choice.

Pappy Goodwill 12-27-2012 08:47 PM

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.

teckk 12-28-2012 10:15 AM

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.

Pappy Goodwill 01-01-2013 02:07 PM

I'm begining to suspect I need a little more study on the amixer aspect.
Stay tuned for further details.

trijit 01-03-2013 02:33 AM

Quote:

Originally Posted by Pappy Goodwill (Post 4855814)
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?

Pappy Goodwill 01-04-2013 08:30 AM

Alsamixer
 
AH! Progress! it's showing 84%

Pappy Goodwill 01-05-2013 09:00 PM

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.

teckk 01-09-2013 04:53 PM

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.


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