Skip to content
Roberto edited this page Mar 18, 2017 · 5 revisions

Setup of analog audio

Execute:

amixer cset numid=3 1

Edit file asound.conf

sudo nano /etc/asound.conf

add the following:

pcm.!default {

type hw

card 0

}

ctl.!default {

type hw

card 0

}

create file /etc/modprobe.d/alsa-base.conf

sudo nano /etc/modprobe.d/alsa-base.conf

with the following content:

options snd_usb_audio index=0

options snd_bcm2835 index=1

options snd slots=snd_usb_audio,snd_bcm2835

then reboot

Setup pyaudio

sudo apt-get install python-pyaudio

sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev

Setup text to speech

sudo apt-get install espeak

test:

espeak -ven+f3 -k5 -s150 "I've just picked up a fault in the AE35 unit"