Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange Pi Zero with audio (ARMBIAN 5.38)

Featured Replies

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

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...

  • Author

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

 

  • Author
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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.