|
1 month ago | |
---|---|---|
bin | 2 years ago | |
etc/systemd/system | 2 years ago | |
sounds | 2 years ago | |
toolkit | 2 years ago | |
README.md | 1 month ago | |
hw.jpg | 1 month ago |
Linux box with a loudspeaker and an emergency light to be used for announcements and notifications.
TBD
Run as root:
cp toolkit/* /usr/local/bin/
cp etc/systemd/system /etc/systemd/system
systemctl enable --now system-activity-light.service
systemctl enable --now human-activity-sensor.service
sudo armbian-config
# System > Hardware > [*] analog-codec
apt install mplayer espeak-ng
# upstream:
#git clone https://github.com/orangepi-xunlong/wiringOP
# enhanced:
git clone https://github.com/Dejvino/wiringOP
cd wiringOP
./build clean
./build
cat ~/.asoundrc
pcm.!default plug:dmix
## Festival
# reading
...
# to file
text2wave text.txt > wave.wav
## ESpeak
# voices:
ls /usr/lib/arm-linux-gnueabihf/espeak-data/voices/
# reading
espeak -f text.txt -p 40 -s 160 -v "en-us"
# to file
espeak -f text.txt -p 40 -s 160 -k15 -g 1 -w wave.wav
# using SSML (e.g.: https://www.xml.com/pub/a/2004/10/20/ssml.html)
espeak -f ssml.txt -m
sox infile.wav outfile.wav downsample echo 0.5 1 1 1
stat /var/tmp/human_last_seen --format=%Y