Login   Register  
PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Radovan Janjic  >  PHP Text to Speech Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Text to Speech Class
Generate speech audio to say a given text
Author: By
Last change:
Date: 1 year ago
Size: 329 bytes


Class file image Download

* PHP_Text2Speech Class example

include 'PHP_Text2Speech.class.php';

$t2s = new PHP_Text2Speech;

<audio controls="controls" autoplay="autoplay">
  <source src="<?php echo $t2s->speak('If you hear this sount it means that you are using PHP text to speech class.'); ?>" type="audio/mp3" />