Ticket #14755: SayFortunes.sh

File SayFortunes.sh, 193 bytes (added by AGMS, 2 months ago)

Bash script that uses the Flite (pkgman install flite) to read aloud fortunes. Each fortune runs media player to say a generated wave file, testing media player cleanup code.

Line 
1#!/bin/bash
2while true
3do
4 fortune > /tmp/fort.txt
5 cat /tmp/fort.txt
6 flite -pw -voice awb -o "/tmp/clip.wav" /tmp/fort.txt
7 media_client play "/tmp/clip.wav" &> /dev/null
8 sleep 1s
9done