How to create a media file with TTS API

Last modified by Stéphane Laurière on 2014/04/08 18:55

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.

Tags:
Created by Stéphane Laurière on 2014/04/08 17:28

Partners

Orange

VOICES

EU - FP7

OW2

© Emerginov
Site maintained by OW2