Login   Register  
PHP Classes
elePHPant
Icontem

File: example_1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jacek Wloka  >  Text To Speech  >  example_1.php  >  Download  
File: example_1.php
Role: Example script
Content type: text/plain
Description: example 1
Class: Text To Speech
Convert test to speech using Expressivo service
Author: By
Last change: Overall, the code update
Date: 2008-08-08 07:14
Size: 1,015 bytes
 

Contents

Class file image Download
<?php

/*========================*\

 * s_TS
 * Written by: AS
 * Mialto: as@twoja-strona.net
 * Date: 2007-08-25

\*========================*/

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' date('r'));
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0'FALSE);
header('Pragma: no-cache');

header("Content-type: audio/mpeg");
header("Content-Disposition: attachment; filename=\"test.mp3\"");

include(
'class.sts.php');

/*========================*\ 

max length 390 signs 

You can change it by adding: 
s_TS ($text, $language="eng", $limit=390, $max_str_limit=false) 
s_TS ($text, "eng", 1000, false) 
Inquiries will be sent in a loop. Received data from the speech will be merged into a single whole. 

$language = 'pl_jacek', 'pl_ewa', 'eng', 'rum'; 

\*========================*/

$text 'My PHP Classes page.';

$s_ts = &new s_TS($text'eng');
echo 
$s_ts->print_bufor();

?>