How to create a media file with TTS API


Emerginov use google TTS by default.

You can create a media file as follow:

<?php
require_once('passwords.php');
require_once('Emerginov.php');

$Emerginov = new Emerginov($api_login, $api_password);
print_r($Emerginov->TextToSpeech("Hellow world, how are you", "media/test1.gsm"),"en");
print_r($Emerginov->TextToSpeech("Bonjour le monde, comment ça va", "media/test2.gsm"));
?>

You can use any google language, see http://translate.google.com/ for details.

By default if you do not precise, the language French will be used. See SDK PHP reference guide at the end of the user guide for additional options.