All pastes #15440 Raw Edit

swift and asterisk

public text v1 · immutable
#15440 ·published 2005-06-21 23:39 UTC
rendered paste body
;;;;;;;;;;;;;;;;;;;
;install one of the demo's of ceptral and put this lines somewhere.
; Diane is the name of the voice. If you pick another voice you have to change the name in the line
; There are also options to have a plain text file read. You can read the news or watever as long as there is a plain text file to point to.
; use  -f textfile.txt instead of "plain text"
; You could download the news in a plain textfile using wget
;;;;;;;;;;;;;;;;;;;;                                             
                                                                 
exten => 404,1,Answer                                            
exten => 404,2,System(/opt/swift/bin/swift -n Diane "This is an example of using swift with asterisk" -o /tmp/tbook001.wav)
exten => 404,3,System(sox /tmp/tikka.wav -r 8000 -c 1 -s -w /usr/share/asterisk/sounds/tbook001.gsm resample -ql)
exten => 404,4,Playback(tbook001)                                
exten => 404,5,hangup