Text-to-Speech-script Simple text to speech script with Google API. Open or run tts.php $ php tts.php and new audio files will be created in the current directory with the text contained in the PHP array within the file.