JavaScript Examples Flite

From FreeSWITCH Wiki
Jump to: navigation, search

JavaScript example of Flite text to speech engine.

 if ( session.ready( ) ) {
    session.answer( );     
    session.execute("set", "tts_engine=flite");
    session.execute("set", "tts_voice=kal");
    session.execute("speak", "This is an example of flite text to speech engine.");
    session.execute("set", "playback_terminators=#");     
    session.hangup( );
 }