martes, 16 de marzo de 2010

Instalar Flite para Asterisk

Instalando festival noté un par de errores que luego corregiré en el post anterior, pero note que en voip-info.org mencionan una aplicación que funciona como un festival-lite y es Flite, aquí les dejó el comentario en ingles:

Flite (festival-lite) is a small, fast run-time synthesis engine developed at CMU and primarily designed for small embedded machines and/or large servers. Flite is designed as an alternative synthesis engine to Festival for voices built using the FestVox suite of voice building tools.
asterisk-flite is a Flite text-to-speech module for the Asterisk open-source PBX. This provides the "Flite" dialplan application, which allows you to use the Flite TTS Engine with Asterisk. It invokes the Flite TTS engine locally via the Flite C API, and uses it to render text to speech.

Su instalación es muy sencilla, en debian hacemos:

aptitude install flite flite-dev

Ahora debemos bajar el plugin para Asterisk:
wget http://cloud.github.com/downloads/zaf/Asterisk-Flite/Asterisk-Flite-1.6-0.1-beta2.tar.gz

lo descomprimimos:

tar -zxvf Asterisk-Flite-1.6-0.1-beta2.tar.gz

cd Asterisk-Flite

make && make install && make samples

Nota: las unicas dependencias que tiene este plugin son:


  • Asterisk 1.6.x header files

  • Flite libraries and header



Ahora solo falta reiniciar el Asterisk: /etc/init.d/asterisk restart

Editamos el extensions.conf  y ponemos algo como esto:

exten => 1234,1,Answer()
exten => 1234,n,Flite("This is a simple F lite test in english.",any)
;Read a text file from disk and pass it to flite
exten => 1234,n,ReadFile(MYTEXT=/path/myfile,200)
exten => 1234,n,Flite("${MYTEXT}",any)
exten => 1234,n,Hangup()


Eso sería todo lo probe y no me dió ningún problema la verdad, mas noche veré si se puede poner en español.

Saludos espero que les sirva de mucho, esto lo podemos mezclar con Bases de Datos y AGI.

No hay comentarios.:

Publicar un comentario