How to create a media file with TTS API

Emerginov use google TTS by default.

You can create a media file as follow:


$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 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.