Created
August 10, 2017 05:27
-
-
Save i-sync/a2522ff663b69b8dd64ee09f0e29566a to your computer and use it in GitHub Desktop.
half and hour play corresponding time voice file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
filePath=/home/pi/timeaudio | |
#time=`date | awk -F \ {'print $4'} | awk -F : {'print $1'}` | |
time=`date +%H%M` | |
audioFile="$filePath/$time.mp3" | |
echo $audioFile | |
player=/usr/bin/mplayer | |
$player $audioFile | |
#$player >> /tmp/1.log | |
#echo $audioFile >> /tmp/1.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment