Skip to content

Instantly share code, notes, and snippets.

@dmongeau
Created October 12, 2012 15:32
Show Gist options
  • Save dmongeau/3879796 to your computer and use it in GitHub Desktop.
Save dmongeau/3879796 to your computer and use it in GitHub Desktop.
Text to speech
<?php
header('Content-type: audio/mpeg;');
system('espeak -v fr '.escapeshellarg($_REQUEST['text']).' --stdout | lame --quiet - -');
exit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment