Last active
March 29, 2017 20:34
-
-
Save ipefixe/fc025fe61b9064c85f37b0b51074f14d to your computer and use it in GitHub Desktop.
Copying the behavior of the "SAY" command of Mac
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
#!/bin/bash | |
function say { # Similar to the cli say on Mac | |
pico2wave -l fr-FR -w speech.wav "$@" | |
play speech.wav &> /dev/null | |
rm speech.wav | |
} | |
alias clock='say "Il est $(date +%H) heure $(date +%M)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For an other language, change fr-FR by one of these: