Browse Source

audio updates and notes

clementinecomputing 6 years ago
parent
commit
10dc643c9c
2 changed files with 24 additions and 7 deletions
  1. 8 7
      aux/deploy-busunit-interactive
  2. 16 0
      experiment/production/Misc-Notes.md

+ 8 - 7
aux/deploy-busunit-interactive

@@ -420,16 +420,17 @@ if [[ "$setupsound" =~ ^[yY]$ ]] ; then
   echo '  adding> snd-bcm2835'
   sudo bash -c 'echo "snd-bcm2835" >> /etc/modules'
 
+  # disabled for now. Force audio to go through 3.5mm jack from 'raspi-config'.
+  #
+  # ...
   # trying to mitigate the 'first two seconds cutoff of audio' problem
   # https://github.com/alexa-pi/AlexaPi/wiki/Devices#raspberry-pi
   #
-  tfn=`mktemp`
-  echo '@reboot vcgencmd force_audio hdmi 1' > $tfn
-
-  echo "adding `cat $tfn`"
-
-  sudo crontab $tfn
-  rm $tfn
+  #tfn=`mktemp`
+  #echo '@reboot vcgencmd force_audio hdmi 1' > $tfn
+  #echo "adding `cat $tfn`"
+  #sudo crontab $tfn
+  #rm $tfn
 
 fi
 

+ 16 - 0
experiment/production/Misc-Notes.md

@@ -67,6 +67,22 @@ With `/opt/splash.png`
 
 Might need to kill `fbi` when starting the kiosk.
 
+### Packages
+
+```
+sudo apt install -y sox espeak mplayer ffmpeg
+```
+
+### Sound
+
+Use `raspi-config` to force audio through the 3.5mm audio jack.
+
+There's an issue with the HDMI 'going to sleep' and cutting off
+the first two seconds of the audio if nothing is being played
+through it.
+The 3.5mm jack seems to not have that issue.
+
+
 ### Other References
 
 *  [cmdline.txt](https://www.raspberrypi.org/documentation/configuration/cmdline-txt.md)