Aurélio Radioamador Posted June 27, 2018 Posted June 27, 2018 Hi Dear Friends! I'm having trouble using the onboard analog soundcard from my OrangePi Zero +. I already enabled analog-in in armbian-config, but when I try to run some application that uses the sound card, it has an error. In this example I'm trying to use the direwolf app that serves to decode FSK audio. The error also repeats when I try to use svxlink.
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 http://ix.io/1fa5 My armbianmonitor diagnostic
guidol Posted June 27, 2018 Posted June 27, 2018 Did you see your analog soundcard at aplay -l Did you create a /etc/asound.conf for the default soundcard?
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 23 minutes ago, guidol said: Did you see your analog soundcard at aplay -l Did you create a /etc/asound.conf for the default soundcard? Yes, but the audio does not work. On my orange zero pi I had this problem I managed to solve using Armbian 5.30. But you do not have the Armbian 5.30 for Orange PI Zero Plus.
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 In version 5.30 is the sunxi-codec. Is not this problem? Can I use this audiocodec?
guidol Posted June 27, 2018 Posted June 27, 2018 19 minutes ago, Aurélio Radioamador said: In version 5.30 is the sunxi-codec. Is not this problem? Can I use this audiocodec? why use an old 5.30? there is a 5.46: https://dl.armbian.com/orangepizeroplus/archive/Armbian_5.46_Orangepizeroplus_Debian_stretch_next_4.14.44.7z
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 2 minutes ago, guidol said: why use an old 5.30? there is a 5.46: https://dl.armbian.com/orangepizeroplus/archive/Armbian_5.46_Orangepizeroplus_Debian_stretch_next_4.14.44.7z Thank for anwser , Mr. Guidol. But version 5.46 does not work analog-codec. On my Orange Pi Zero it was that way too. With the new version did not work the analog-codec, but with the old version 5.30 worked.
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 Do you want to try to access via ssh to my orangepizeroplus?
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 15 minutes ago, guidol said: why use an old 5.30? there is a 5.46: https://dl.armbian.com/orangepizeroplus/archive/Armbian_5.46_Orangepizeroplus_Debian_stretch_next_4.14.44.7z Armbian is perfect, but the audio system I need most for my project does not work.
guidol Posted June 27, 2018 Posted June 27, 2018 12 minutes ago, Aurélio Radioamador said: Thank for anwser , Mr. Guidol. But version 5.46 does not work analog-codec. Must be a specific problem of the Zero+ because on the normal OPi Zero and Zero Plus H5 I didnt got problems with analog-audio root@opi-zero-plus-h5(192.168.6.98):~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 /etc/asound.conf: pcm.!default { type hw card 0 device 0 } ctl.!default { type hw card 0 } Welcome to ARMBIAN 5.46 testing Ubuntu 18.04 LTS 4.14.48-sunxi64 Linux opi-zero-plus-h5 4.14.48-sunxi64 #14 SMP Thu Jun 7 11:34:46 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux Test with espeak: espeak -w /tmp/espeak.wav -s150 "Hello how are you today?"; aplay -D plughw:0,0 /tmp/espeak.wav 2>/dev/null
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 What I find strange is that with the other 2 img linux official from Orangepi Resources (Ubuntu and Debian) the audio worked, however I do not want to use those linux images because I really liked the armbian.
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 26 minutes ago, martinayotte said: Did you loaded the analog-codec overlay ? Did you loaded the analog-codec overlay ? Hi Mr martin, I enabled analog-codec in armbian-config and i create asound.conf ... Should I do something else? Thanks reply.
Aurélio Radioamador Posted June 27, 2018 Author Posted June 27, 2018 27 minutes ago, martinayotte said: Did you loaded the analog-codec overlay ? Did you loaded the analog-codec overlay ? Hi Mr martin, I enabled analog-codec in armbian-config and i create asound.conf ... Should I do something else? Thanks reply.
Aurélio Radioamador Posted June 28, 2018 Author Posted June 28, 2018 4 hours ago, guidol said: Test with espeak: espeak -w /tmp/espeak.wav -s150 "Hello how are you today?"; aplay -D plughw:0,0 /tmp/espeak.wav 2>/dev/null And analog input ? You do test If work? Here not work input and output .. My board is Orange Pi zero plus and armbian 5.46 debian ...
Aurélio Radioamador Posted June 28, 2018 Author Posted June 28, 2018 Good Morning! I have tested here and found the following: The audio output is working perfectly. Only the microphone audio input is not working. And I need to use the microphone audio input from the card in my project.
Aurélio Radioamador Posted June 28, 2018 Author Posted June 28, 2018 root@orangepizeroplus:~# arecord -f cd -D hw:0,0 -d 20 test.wav Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo arecord: pcm_read:2103: read error: Input/output error
Aurélio Radioamador Posted June 28, 2018 Author Posted June 28, 2018 WOW!!! I'm very very very happy.. Problem solved. For Mainline, do this 1) alsamixer 2) press TAB (Make sure it falls to F4: CAPTURE) 3) Move to Mic1 (Use arrow keys) 4) Press SPACE and (L R Capture will appear) I just needed to enable LINE IN on alxamixer. 1
alfaktulu Posted December 5, 2018 Posted December 5, 2018 On 6/27/2018 at 4:33 PM, guidol said: Must be a specific problem of the Zero+ because on the normal OPi Zero and Zero Plus H5 I didnt got problems with analog-audio root@opi-zero-plus-h5(192.168.6.98):~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 /etc/asound.conf: pcm.!default { type hw card 0 device 0 } ctl.!default { type hw card 0 } Welcome to ARMBIAN 5.46 testing Ubuntu 18.04 LTS 4.14.48-sunxi64 Linux opi-zero-plus-h5 4.14.48-sunxi64 #14 SMP Thu Jun 7 11:34:46 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux Test with espeak: espeak -w /tmp/espeak.wav -s150 "Hello how are you today?"; aplay -D plughw:0,0 /tmp/espeak.wav 2>/dev/null Hello: I' have a orange pi zero with stretch so, and always I use ESPEAK, but now show me the next error: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock And it sounds bad!! really bad! What's wrong between espeak and stretch??? Regards.
guidol Posted December 5, 2018 Posted December 5, 2018 For sounds espeak like on every other computer. I do redirecting the "errors" via 2>/dev/null out of sight Do you use the expansion-pcb or only wires for conncting to the audio pins?
alfaktulu Posted December 8, 2018 Posted December 8, 2018 I use expansion-pcb, but another OPZ I can only run it with sudo. What's wrong?? Stretch works fine, but don't for espeak-ng! It does not sound good espeak-ng. thanks for your answer.
Recommended Posts