<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://manuais.iessanclemente.net/index.php?action=history&amp;feed=atom&amp;title=Instalaci%C3%B3n_de_Festival_-_sintetizador_de_voz</id>
	<title>Instalación de Festival - sintetizador de voz - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://manuais.iessanclemente.net/index.php?action=history&amp;feed=atom&amp;title=Instalaci%C3%B3n_de_Festival_-_sintetizador_de_voz"/>
	<link rel="alternate" type="text/html" href="https://manuais.iessanclemente.net/index.php?title=Instalaci%C3%B3n_de_Festival_-_sintetizador_de_voz&amp;action=history"/>
	<updated>2026-10-21T07:27:16Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://manuais.iessanclemente.net/index.php?title=Instalaci%C3%B3n_de_Festival_-_sintetizador_de_voz&amp;diff=11496&amp;oldid=prev</id>
		<title>Veiga en 13:18 5 may 2009</title>
		<link rel="alternate" type="text/html" href="https://manuais.iessanclemente.net/index.php?title=Instalaci%C3%B3n_de_Festival_-_sintetizador_de_voz&amp;diff=11496&amp;oldid=prev"/>
		<updated>2009-05-05T13:18:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Para instalar o sintetizador de voz para poder usalo no Asterisk faremos dende CentOS:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
yum install festival&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Para arrancar o sintetizador en modo debug:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
festival --server&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cando nos aseguremos de que Festival acepta as solicitudes sen problemas poderemos arrancalo con:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
festival_server 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Chamando a Festival dende o dialplan ==&lt;br /&gt;
&lt;br /&gt;
Agora que xa temos configurado Festival e o servidor está funcionando, llamaremos directamente a Festival dende o dialplan:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
exten =&amp;gt; 123,1,Answer()&lt;br /&gt;
exten =&amp;gt; 123,2,Festival(Asterisk e Festival estan traballando xuntos)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sempre temos que chamar a aplicación Answer() antes de chamar a Festival(), para asegurarnos de que o canal está establecido.&lt;br /&gt;
&lt;br /&gt;
Cando Asterisk conecta a Festival, deberíamos ver unha saída como a seguinte:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
festival --server&lt;br /&gt;
server Sun May 1 18:38:51 2005 : Festival server started on port 1314&lt;br /&gt;
client(1) Sun May 1 18:39:20 2005 : accepted from voip.local&lt;br /&gt;
client(1) Sun May 1 18:39:21 2005 : disconnected&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Si vemos unha saída como a seguinte, isto quere dicir que temos que engadir ó arquivo festival.scm o noso host:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
festival --server&lt;br /&gt;
server Sun May 1 18:30:52 2005 : Festival server started on port 1314&lt;br /&gt;
client(1) Sun May 1 18:32:32 2005 : rejected from voip.local not in access list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Outro xeito de empregar Festival con Asterisk ==&lt;br /&gt;
&lt;br /&gt;
Algunha xente da comunidade Asterisk reportou casos de éxito enviando texto á utilidade text2wave de Festival. Por exemplo:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
exten =&amp;gt; 124,1,Answer()&lt;br /&gt;
exten =&amp;gt; 124,2,System(echo &amp;quot;This is a test of Festival&amp;quot; | /usr/bin/text2wave&lt;br /&gt;
-scale 1.5 -F 8000 -o /tmp/festival.wav)&lt;br /&gt;
exten =&amp;gt; 124,3,Playback(/tmp/festival)&lt;br /&gt;
exten =&amp;gt; 124,4,System(rm /tmp/festival.wav)&lt;br /&gt;
exten =&amp;gt; 124,5,Hangup()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Este método tamén permite chamar a outro tipo de sintetizadores como por exemplo o popular Cepstral http://www.cepstral.com, que é un derivado comercial non demasiado caro con voces de boa calidade. Para o seguinte exemplo asumimos que cepstral está instalado en /usr/local/cepstral/:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
exten =&amp;gt; 125,1,Answer()&lt;br /&gt;
exten =&amp;gt; 125,2,System(/usr/local/cepstral/bin/swift -o /tmp/swift.wav&lt;br /&gt;
&amp;quot;This is a test of Cepstral&amp;quot;)&lt;br /&gt;
exten =&amp;gt; 125,3,Playback(/tmp/swift)&lt;br /&gt;
exten =&amp;gt; 125,4,System(rm /tmp/swift.wav)&lt;br /&gt;
exten =&amp;gt; 125,5,Hangup()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Veiga</name></author>
	</entry>
</feed>