login | register
Wed 09 of Jul, 2008 [05:02 UTC]

voip-info.org

Discuss [0] History

Asterisk cmd swift

Created by: szunny,Last modification on Tue 22 of Apr, 2008 [04:08 UTC] by dmsessions

Swift


Synopsis

Swift is an Asterisk application module (linux, mac os-x) for using the Cepstral Swift Text-To-Speech (TTS) Engine in Asterisk.
Just write the text into your dialplan you want Asterisk to speak to a caller.
app_swift listens for DTMF (dialtones) from the caller while speaking.
You need to download and install one of the Cepstral Voices first.
Voices are available for Mac OS-X, Linux, Windows and WindowsCE in several languages like
English, Spanish, German, French, Italian in professional quality for a very reasonable price (~30US$).
You can use all Voices in demo mode until you have a license.

Description

 Swift([<Voice>^]the text to speak)


example:

     [menu]
     exten => s,1,Swift(This text is going to get spoken by the Swift engine to the caller)
     exten => s,2,Swift(You can press buttons on your keypad at any time)
     exten => 1,1,Swift(Diane^You've pressed 1) ; speak with us english female voice
     exten => 5,1,Swift(Matthias^Sie haben die 5 gedrückt) ; speak with german male voice
     exten => t,1,Swift(Anybody there?)
     exten => i,1,Swift(goodbye)
     exten => i,2,Hangup


Configuration swift.conf:


     [general]
     voice=Katrin ; set german female voice as default, otherwise use system default
     goto_exten=yes ; Set to yes to go to the extension when a key is pressed. Set to no to not go to the extension
     buffer_size=65535 ; Size of audio buffer in bytes. 8192 is roughly one second's worth of audio


Return values

Always returns 0.

Version info

  • Swift() is not part of the standard Asterisk distribution

See also



Comments