Wikipedia para siempre
TreeWeb::Artículos::PHP::Audio del traductor de Google
Permalink: http://www.treeweb.es/u/957/ 17/01/2011

Audio del traductor de Google

<?php $url = "http://translate.google.com/translate_tts?q=".$_GET['mensaje']."&tl=es&prev=input"; $ch = curl_init(); curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1" ); curl_setopt( $ch, CURLOPT_URL, $url ); $content = curl_exec( $ch ); $response = curl_getinfo( $ch ); curl_close ( $ch ); echo $response; ?>