Hello,
I was trying to run some Python script that outputs audio on the Emlid Raspian Image and I keep running into the problem of “no avalible audio device” on the line, pygame.mixer.init() . Also when trying to run amixer or alsamixer alone it will tell me no such file or directory found and I have tried to update but it says it is already current. Any ideas on why this is happening? The alterations to the image possibly? Thank you.
You need to edit /boot/config.txt
and namely uncomment dtparam=audio=on
I just installed python-pygame and wrote a simple script to check out if that’d worked.
The script:
import pygame
pygame.mixer.init()
The fix has indeed helped!
Just tried that and it worked perfect!