Mod flite

From FreeSWITCH Wiki
Revision as of 22:12, 21 February 2009 by Nikko (Talk | contribs)

Jump to: navigation, search
  • Flite (aka Festival Lite) is a small embeddable TTS (Text to Speech) engine that's totally free.
  • Works on FreeBSD, Mac, Linux and Windows.
  • Don't load mod_cepstral and mod_flite at the same time. (symbol collision)
  • Voice can be kal for 8khz or kal16 for 16khz

Installing mod_flite

  • in modules.conf, uncomment asr_tts/mod_flite. Comment out asr_tts/mod_cepstral. Both modules cannot be used together.
  • Run Make, Make install
  • in freeswitch/conf/autoload_configs/modules.conf.xml, uncomment <load module="mod_flite"/>. Comment out <load module="mod_cepstral"/>

Using mod_flite

    <extension name="flite">                                                                                                                                
      <condition field="destination_number" expression="^8886$">                                                                                                 
        <action application="set" data="tts_engine=flite"/>                                                                                                     
        <action application="set" data="tts_voice=kal"/>                                                                                                        
        <action application="speak" data="This is flite on FreeSWITCH"/>