Login   Register  
PHP Classes
elePHPant
Icontem

File: example.write.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bakr Alsharif  >  Numeric TTS  >  example.write.php  >  Download  
File: example.write.php
Role: Example script
Content type: text/plain
Description: Write function example
Class: Numeric TTS
Generate audio to spell numbers with voices
Author: By
Last change:
Date: 2006-07-02 12:29
Size: 1,388 bytes
 

Contents

Class file image Download
<?php
//
// +-----------------------------------+
// |         Numeric TTS v 1.0         |
// |      http://www.SysTurn.com       |
// +-----------------------------------+
//
//
//   This program is free software; you can redistribute it and/or modify
//   it under the terms of the ISLAMIC RULES and GNU Lesser General Public
//   License either version 2, or (at your option) any later version.
//
//   ISLAMIC RULES should be followed and respected if they differ
//   than terms of the GNU LESSER GENERAL PUBLIC LICENSE
//
//   This program is distributed in the hope that it will be useful,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   GNU General Public License for more details.
//
//   You should have received a copy of the license with this software;
//   If not, please contact support @ S y s T u r n .com to receive a copy.
//
    
require_once('class.numericTTS.php');

    
$tts = new NumericTTS;
    
    
$tts->setVoice('female');
    
//$reader->setVoice('male');
    //$tts->setVoice('female_ar');
    //$tts->setVoice('female_ar2');
    //$tts->setVoice('male_ar');
    //$tts->setVoice('male_ar2');
    
    // Use the dash "-" or space " " to add silence e.g. "1-2-5"
    
$tts->write('2406952070123015450215465402130''output.wav');

?>