Skip to content

Instantly share code, notes, and snippets.

@ipefixe
Last active March 29, 2017 20:34
Show Gist options
  • Save ipefixe/fc025fe61b9064c85f37b0b51074f14d to your computer and use it in GitHub Desktop.
Save ipefixe/fc025fe61b9064c85f37b0b51074f14d to your computer and use it in GitHub Desktop.
Copying the behavior of the "SAY" command of Mac
#!/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)"'
@ipefixe
Copy link
Author

ipefixe commented Mar 29, 2017

For an other language, change fr-FR by one of these:

  • en-US
  • en-GB
  • es-ES
  • de-DE
  • it-IT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment