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.

Mic not working Alsamixer/Orange Pi Zero

Featured Replies

I want to record sound using Orange Pi Zero. I connected MIC1PIN in single header in Orange Pi Zero and GND to my mic(I'm using simple mic which is used for arduino). Aplay works fine, but when I tried to execute arecord it gives an error.

root@orangepizero:~# arecord -Dhw:0 -f cd test2.wav
Recording WAVE 'test2.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
arecord: pcm_read:2103: read error: Input/output error

When I execute arcord -l I got this,

root@orangepizero:~# arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 []
      Subdevices: 1/1
      Subdevice #0: subdevice #0

My .asoundrc file looks like this.

pcm.!default{
    type hw
    card 0
    device 0
}

ctl.!default{
    type hw
    card 0
}

I use this kind of mic.

K9YNE.jpg.3fcb967f0c913af9e4a0c93416ba1b2c.jpg

How can I sort this out? Thanks!

for playing espeak without showing a error I used the follwing command:
espeak -w /tmp/espeak.wav -s150 "Hello how are you today?"; aplay -D plughw:0,0 /tmp/espeak.wav 2>/dev/null

 

arecord does support the same options. How about trying the follwing arecord command? (with a space after -D):

arecord -D plughw:0,0 -f cd ./test2.wav

  • Author
11 hours ago, guidol said:

for playing espeak without showing a error I used the follwing command:
espeak -w /tmp/espeak.wav -s150 "Hello how are you today?"; aplay -D plughw:0,0 /tmp/espeak.wav 2>/dev/null

 

arecord does support the same options. How about trying the follwing arecord command? (with a space after -D):

arecord -D plughw:0,0 -f cd ./test2.wav

Hi!Thanks for the reply. arecord -D plughw:0,0 -f cd ./test2.wav command gives the same error (arecord: pcm_read:2103: read error: Input/output error)! :( Also espeak commands you mentioned above are also not working! Is that means the bug is in hardware? I use condenser mic which is used in Arduino projects.

  • Author

I went through on this topic and did some modifications according to that. It gives no error, but when I'm trying to play that audio file which I recorded, it gives me an error saying test2.wav: No such file or directory. 

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.