VihangaA Posted May 12, 2018 Posted May 12, 2018 HI! Im new to Orange Pi Zero. I want to connect a speaker to my Orange Pi Zero. I went through some websites and forums, there saying that use pin 7 and 8 to speaker. I connected pin 7 to + and pin 8 to -. Then I entered 'speaker-test'. But it doesn't get any sound. root@orangepizero:~# speaker-test speaker-test 1.1.3 Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 256 to 262144 Period size range from 128 to 32768 Using max buffer size 262144 Periods = 4 was set period_size = 32768 was set buffer_size = 262144 0 - Front Left Time per period = 2.744307 0 - Front Left Time per period = 2.782264 0 - Front Left So how can I test audio in my Orange Pi Zero? Thank you
pzw Posted May 12, 2018 Posted May 12, 2018 Which header are you connecting to? Single row or double row? You need to connect between pin 7 or pin 8 and pin 2 on the single row header...
VihangaA Posted May 13, 2018 Author Posted May 13, 2018 Hi psz! Thanks for the reply. I connected speaker using pin 8 and pin 2 in single header, did speaker-test. But it didnt work. (also tried pin 7 with pin 2). When I tried to play an audio I got this. root@orangepizero:~# aplay song.mp3 Playing raw data 'song.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
VihangaA Posted May 15, 2018 Author Posted May 15, 2018 14 hours ago, pzw said: I don't think aplay supports MP3. Use mpg123 for that.. yeah, at the end I had to install mpg123. Now it works. also had to connect an amplifier to the speaker. 1
Recommended Posts