<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Pensando en Red &#187; mp3</title> <atom:link href="http://pensandoenred.com/tag/mp3/feed/" rel="self" type="application/rss+xml" /><link>http://pensandoenred.com</link> <description>nada es tan fácil como parece serlo</description> <lastBuildDate>Fri, 17 Feb 2012 21:28:20 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Recuperando viejas ideas &#8211; rsstopodcast.com</title><link>http://pensandoenred.com/2011/03/29/recuperando-viejas-ideas-rsstopodcast-com/</link> <comments>http://pensandoenred.com/2011/03/29/recuperando-viejas-ideas-rsstopodcast-com/#comments</comments> <pubDate>Tue, 29 Mar 2011 20:44:41 +0000</pubDate> <dc:creator>mariotux</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Software Libre]]></category> <category><![CDATA[festival]]></category> <category><![CDATA[mp3]]></category> <category><![CDATA[text to speech]]></category> <category><![CDATA[tts]]></category> <guid
isPermaLink="false">http://pensandoenred.com/?p=816</guid> <description><![CDATA[Llevo ya mucho tiempo hablando del proyecto de www.arreglamicarretera.com y aunque todavía tengo cuerda para rato, hoy toca comentar que he rescatado una vieja idea que tenía perdida en el cajón de los dominios. RSS To Podcast, ahora podéis probar el funcionamiento de unas voces sintéticas open source en http://api.rsstopodcast.com Un bug detectado es que [...]]]></description> <content:encoded><![CDATA[<p>Llevo ya mucho tiempo hablando del proyecto de www.arreglamicarretera.com y aunque todavía tengo cuerda para rato, hoy toca comentar que he rescatado una vieja idea que tenía perdida en el cajón de los dominios.</p><p><a
href="http://www.rsstopodcast.com">RSS To Podcast</a>, ahora podéis probar el funcionamiento de unas voces sintéticas open source en <a
href="http://api.rsstopodcast.com">http://api.rsstopodcast.com</a></p><p>Un bug detectado es que si navegas Google Chrome (muy probable si andas por estos lares) el fichero que se descarga lo tienes que renombrar a mp3.</p><p>En el formulario, escribimos un texto de prueba, seleccionamos idioma y luego enviamos el formulario. Tras el envío se descargará un fichero mp3 con el texto sintetizado.</p><p>Aunque en un principio este proyecto era más ambicioso, la idea ha sido simplificada para poder tener una versión lo antes posible.</p><p>A divertirse con las voces sintéticas! <img
src='http://pensandoenred.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://pensandoenred.com/2011/03/29/recuperando-viejas-ideas-rsstopodcast-com/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Sintetizar texto a voz con Festival en Web</title><link>http://pensandoenred.com/2009/12/04/sintetizar-texto-a-voz-con-festival-en-web/</link> <comments>http://pensandoenred.com/2009/12/04/sintetizar-texto-a-voz-con-festival-en-web/#comments</comments> <pubDate>Thu, 03 Dec 2009 22:58:24 +0000</pubDate> <dc:creator>mariotux</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[php]]></category> <category><![CDATA[festival]]></category> <category><![CDATA[mp3]]></category> <category><![CDATA[tts]]></category> <guid
isPermaLink="false">http://www.pensandoenred.com/?p=466</guid> <description><![CDATA[En este post doy por hecho que sabemos hacer la instalación del servicio de Festival en nuestro equipo linux, si no es así siempre podéis pasar por Festival, de texto a voz en linux. Después de unos post "filosóficos" hoy pasamos nuevamente a la parte ténica, en donde con un par de ficheros podremos generar [...]]]></description> <content:encoded><![CDATA[<p>En este post doy por hecho que sabemos hacer la instalación del servicio de Festival en nuestro equipo linux, si no es así siempre podéis pasar por <a
href="http://www.pensandoenred.com/2007/08/22/festival-de-texto-a-voz-en-linux/" target="_self">Festival, de texto a voz en linux</a>.</p><p>Después de unos post "filosóficos" hoy pasamos nuevamente a la parte ténica, en donde con un par de ficheros podremos generar un fichero mp3 sintetizado con Festival mediante un texto de un formulario web.</p><p>El ejemplo que expongo a continuación es una página web sencilla que tras rellenar el texto en un textarea lo envía a si misma y retorna la descarga de un fichero mp3 con el texto sintetizado, siempre que tengamos el servicio de festival configurado.</p><p>El ejemplo de página web sería:</p><pre class="brush: php; ">
&lt;?php
if($_POST[&#039;texto&#039;]){
   $filename = md5($_POST[&#039;texto&#039;]);
   $txtFile=$filename;
   $mp3File=$filename.&quot;.mp3&quot;;
   $fp = fopen($txtFile, &#039;w&#039;);
   fwrite($fp,$_POST[&#039;texto&#039;]);
   fclose($fp);
   exec(&quot;./lanza.sh $txtFile&quot;);
   if(file_exists($mp3File)){
      $fp = fopen($mp3File,&#039;r&#039;);
      if (filesize($mp3File)) {
        $mp3 = fread($fp, filesize($mp3File));
      }
      fclose($fp);
   }
   if(isset($mp3)){
      header(&#039;Content-Type: audio/x-mp3&#039;);
      header(&#039;Content-Disposition: attachment; filename=&quot;&#039;.$mp3File);
      header(&#039;Content-Length: &#039;. filesize($mp3File));
      echo $mp3;
      unlink($mp3File);
      unlink($txtFile);
   }
}else{
?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html&gt;
 &lt;head&gt;
   &lt;title&gt;Demo&lt;/title&gt;
 &lt;/head&gt;
&lt;body&gt;
 &lt;h1&gt;Demo&lt;/h1&gt;
 &lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
   &lt;textarea name=&quot;texto&quot; rows=&quot;10&quot; cols=&quot;50&quot;&gt;&lt;/textarea&gt;
   &lt;br /&gt;
   &lt;input type=&quot;submit&quot; name=&quot;enviar&quot; value=&quot;enviar&quot; /&gt;
 &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;?
}
?&gt;
</pre><p>Como podemos ver, lanzamos un script para generar el fichero mp3, que es la parte más importante ya que cualquier programador y más si hablamos de alguien experto en PHP puede observar que el código es realmente sencillo. Pero lo más divertido fue crear el script sh para generar el fichero mp3.</p><pre class="brush: c; ">
#!/bin/sh
TEXT=`cat $1`
PAR1=&quot;(Parameter.set &#039;Wavefiletype &#039;riff)n&quot;
PAR2=&quot;(let ((utt (Utterance Text &quot;$TEXT&quot;))) (begin (utt.synth utt) (utt.save.wave utt &quot;$1.wav&quot;))) n&quot;
echo Inicio festival!
echo $PAR1$PAR2 | festival -b --pipe --language spanish
lame -hf $1.wav $1.mp3
rm $1.wav
</pre><p>Aquí en el script, lo que hacemos es indicarle a Festival que la salida la queremos en un fichero Wav. De todas formas no tenemos todo resuelto! tenemos que generar el mp3, y con lame lo hacemos de una manera sencilla <img
src='http://pensandoenred.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p><p>Espero que os pueda ser de utilidad esta mini-receta, cualquier duda siempre podéis plasmarla en un comentario.</p> ]]></content:encoded> <wfw:commentRss>http://pensandoenred.com/2009/12/04/sintetizar-texto-a-voz-con-festival-en-web/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Como cortar archivos mp3 con Ubuntu</title><link>http://pensandoenred.com/2008/07/02/como-cortar-archivos-mp3-con-ubuntu/</link> <comments>http://pensandoenred.com/2008/07/02/como-cortar-archivos-mp3-con-ubuntu/#comments</comments> <pubDate>Wed, 02 Jul 2008 09:20:01 +0000</pubDate> <dc:creator>mariotux</dc:creator> <category><![CDATA[Configuraciones]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[mp3]]></category> <guid
isPermaLink="false">http://www.pensandoenred.com/?p=226</guid> <description><![CDATA[Si quieres cortar un trozo de un mp3 utilizando ubuntu/debian tienes que instalar el paquete poc-streamer. Este paquete contiene dos herramientas: mp3cue: mp3cue puede cortar un gran fichero mp3 de acuerdo con una de canciones contenidas en un archivo .cue mp3cut: Puede dividir o concatenar mp3 de acorde a los espacios de tiempo que se [...]]]></description> <content:encoded><![CDATA[<p>Si quieres cortar un trozo de un mp3 utilizando ubuntu/debian tienes que instalar el paquete poc-streamer. Este paquete contiene dos herramientas:</p><ul><li>mp3cue:  mp3cue puede cortar un gran fichero mp3 de acuerdo con una de canciones contenidas en un archivo .cue</li><li>mp3cut: Puede dividir o concatenar mp3 de acorde a los espacios de tiempo que se le indican.</li></ul><p>Para instalar el paquete poc-streamer ejecuta en consola:</p><blockquote><p>sudo aptitutde install poc-streamer</p></blockquote><p>Sintaxis de mp3cut</p><blockquote><p> mp3cut [ -o outputfile ] [ -T title ] [ -A <a
id="KonaLink2" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.ubuntugeek.com/how-to-cut-mp3-files-under-ubuntu.html#" target="_new"><span
style="font-weight: 400; font-size: 10.95px; position: static; color: #cc9933;"><span
class="kLink" style="border-bottom: 1px solid #cc9933; font-weight: 400; font-size: 10.95px; position: static; background-color: transparent; font-family: Verdana,Tahoma,Arial,sans-serif; color: #cc9933;">artist</span></span></a> ] [ -N album-name ] [ -t [hh:]mm:ss[+ms]-[hh:]mm:ss[+ms] ] mp3file [[ -t … ] mp3file1 …]</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://pensandoenred.com/2008/07/02/como-cortar-archivos-mp3-con-ubuntu/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
