Last active
February 12, 2016 02:31
-
-
Save lvm/9a6d420b74a4a1cbaa2a to your computer and use it in GitHub Desktop.
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
import System.Cmd | |
-- espeak: msg, voice, amp, pitch, speed | |
let espeak' m v a p s = system $ "espeak -v " ++ v ++ " -a " ++ a ++ " -p " ++ p ++ " -s " ++ s ++ " \"" ++ m ++ "\"" | |
shespeak' m v a p s = system $ "espeak -v " ++ v ++ "+f1 -a " ++ a ++ " -p " ++ p ++ " -s " ++ s ++ " \"" ++ m ++ "\"" | |
whisper' m v a p s = system $ "espeak -v " ++ v ++ "+whisper -a " ++ a ++ " -p " ++ p ++ " -s " ++ s ++ " \"" ++ m ++ "\"" | |
croak' m v a p s = system $ "espeak -v " ++ v ++ "+croak -a " ++ a ++ " -p " ++ p ++ " -s " ++ s ++ " \"" ++ m ++ "\"" | |
espeak m = espeak' m "en" "25" "50" "160" | |
shespeak m = shespeak' m "en" "25" "50" "160" | |
whisper m = whisper' m "en" "25" "50" "160" | |
croak m = croak' m "en" "25" "50" "160" | |
espeak "we, are, the ro,bots" | |
espeak' "boing, bum chak, chh" "es" "55" "50" "150" | |
espeak' "1, 2" "it" "55" "10" "150" | |
espeak' "3, 4" "es" "55" "10" "130" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment