slametps / MMM-PrayerTime

This an extension for the [MagicMirror](https://github.com/MichMich/MagicMirror). It will display prayer time (in local time).
MIT License
20 stars 10 forks source link

Azan not playing at all #32

Closed Cihangir7000 closed 4 years ago

Cihangir7000 commented 4 years ago

I am using raspberry pi 4 and have latest MagicMirror, I have installed this module, it works but it’s not playing any azan at all. What to do ? Best regards

slametps commented 4 years ago

Do you have omxplayer installed?

Cihangir7000 commented 4 years ago

Yes I have installed it. Still it don’t give any effect I have checked the sound of the pi, it works, also played the azan in the program, but still cannot find out why it wont give azan.

slametps commented 4 years ago

can you hear adzan by executing following command in shell?

/usr/bin/omxplayer -o both modules/MMM-PrayerTime/res/adzan.mp3

Cihangir7000 commented 4 years ago

Thank you so much for feedback, can you also tell me please , does omxplayer should be installed in a specific directory, I tried to run this in terminal but I got error File "modules/MMM-PrayerTime/res/adzan.mp3" not found. I did this :- pi@raspberrypi:~/MagicMirror $ /usr/bin/omxplayer -o both /home/pi/MagicMirror/modules/MMM-PrayerTime/res/adzan.mp3 Audio codec mp3float channels 2 samplerate 16000 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0

Cihangir7000 commented 4 years ago

Hello slametps, I have now tired this way :- /usr/bin/omxplayer -o both /home/pi/MagicMirror/modules/MMM-PrayerTime/res/adzan.mp3 And this gives med this result :- Audio codec mp3float channels 2 samplerate 16000 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0 have a nice day ;) No sound at all ! I want to tell you that I am using "RASPIAUDIO.COM Audio DAC HAT Sound Card (Audio+Speaker+MIC) for Raspberry Pi4 /Pi Zero / Pi3 / Pi3B / Pi3B+ / Pi2 https://www.raspiaudio.com/raspiaudio-aiy

slametps commented 4 years ago

Is you raspi able to play other sound/mp3? It is raspi issue. FYI, i have no experience with that sound card.

Cihangir7000 commented 4 years ago

although issue remains but I agree that it's a raspi issue.