Skip to content

Instantly share code, notes, and snippets.

@ssato
Last active March 8, 2018 16:16
Show Gist options
  • Save ssato/51d911d1a85871b612126e3cdbd0aae3 to your computer and use it in GitHub Desktop.
Save ssato/51d911d1a85871b612126e3cdbd0aae3 to your computer and use it in GitHub Desktop.
#! /bin/bash
#
# Based on some scripts found at https://ubuntuforums.org/showthread.php?t=1813001
#
# Requirements: espeak and play (sox)
#
# Examples:
#   - cat /etc/issue | $0
#   - echo 'Danger, Robinson!' | $0
#   - rpm -qa --qf "%{n}\n" | sort | unqi | $0
#   - cat /dev/urandom | head -n 2 | $0
#   - hexdump $(which hexdump) | haed -n 1 | $0
#   - cat $0 | $0
#
espeak --stdout -s 160 -k 18 -a 200 -v female5 | play -t wav - \
chorus 0.4 0.8 20 0.5 0.10 2 -t \
echo 0.9 0.8 33 0.7 \
echo 0.7 0.7 10 0.2 \
echo 0.9 0.4 55 0.3 \
gain 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment