gyKa / alarmpi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y git mpg123
git clone https://github.com/gyKa/alarmpi.git

Prepare USB audio

Create a file called /etc/asound.conf and insert this:

pcm.!default {
    type hw
    card <number of your card>
}
ctl.!default {
    type hw
    card <number of your card>
}

This will automatically change to the desired output. In my case is "1" for the USB Soundcard and "0" for the standard audio jack of the Pi. You can check that by using aplay -l command.

About


Languages

Language:Python 100.0%