Skip to content

Commit

Permalink
still trying to fix overlapping speech
Browse files Browse the repository at this point in the history
  • Loading branch information
lancehaynie committed Aug 21, 2017
1 parent 3827afd commit cb1e1cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/tts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo $pid > "$pidfile"
for pidcheck in $(pidof -x tts.sh); do
if [ $pidcheck != $$ ]; then
echo "TTS process is currently running, waiting for message to finish." >> /opt/jarvis/logs/tts.log
sleep 5
sleep 10
exec bash "$0" $*
fi
done
Expand Down Expand Up @@ -63,5 +63,4 @@ for key in "${!SHORT[@]}"
mpg123 -a hw:0,0 -q "http://$server:$port/read?voiceId=$voice&text=$NEXTURL&outputFormat=mp3"
echo "TTS Message: $INPUT" >> /opt/jarvis/logs/tts.log
done
sleep 5
exit 0

0 comments on commit cb1e1cc

Please sign in to comment.