1. #!/bin/bash
  2. i=""
  3. while [ "$i" != "q" ]
  4. do
  5. espeak-ng -vf2 -p 99 -s 80 "$i" --stdout \
  6. | sox -t wav - -q -t wav temp.wav pitch +500 2> /dev/null
  7. play "temp.wav" -c 1 rate 16k 2> /dev/null 0>&2 &
  8. read i
  9. done
Comments powered by Disqus