Testing with Vicidial
Posted:
Mon Apr 01, 2013 1:56 pm
by ctc_olsen
Hi. I think we already have this set up but how to we test if text to speech is working already?
- Code: Select all
asterisk -rx "core show application swift"
-= Info about application 'Swift' =-
[Synopsis]
Speak text through Swift text-to-speech engine.
[Description]
Swift([<Voice>^]text) Speaks the given text through the Swift TTS engine.
Returns -1 on hangup or 0 otherwise. User can exit by pressing any key.
- Code: Select all
swift -V
Cepstral Swift v6.0.1, March 2012
Default Voice: Callie-8kHz v6.0.0
Language: US English v5.1.0
Lexicon: unknown v0.0.0
Concurrency: 1 Port(s) Registered
0 Port(s) In Use
Distribution: No audio distribution license was found.
Saving audio to a file is disabled.
Copyright (C) 2000-20012, Cepstral LLC.
Re: Testing with Vicidial
Posted:
Mon Apr 01, 2013 2:39 pm
by Weiyun
Hi,
To use Swift TTS engine in the Asterisk PBX, you need to setup a dialplan.
By default, the dialplan file is located at /etc/asterisk/extensions.conf
Here is a dialplan example:
[some_context]
exten =>2000,1,NoOp()
same =>n, Swift(This is a test of Cepstral's TTS in Asterisk)
same =>n, Hangup()
--Cepstral Support
Re: Testing with Vicidial
Posted:
Tue Apr 02, 2013 1:41 pm
by ctc_olsen
Sorry but I don't understand.
[some_context]
exten =>2000,1,NoOp()
same =>n, Swift(This is a test of Cepstral's TTS in Asterisk)
same =>n, Hangup()
Which part should I set this up? Can you please give a sample scenario?
Re: Testing with Vicidial
Posted:
Wed Apr 03, 2013 8:57 am
by Weiyun
Hi,
I assume you installed an Asterisk box and a Swift voice, but you don't know how to set it up.
If you've never worked with Asterisk PBX before, I suggest a book to you, "Asterisk The Definitive Guide".
Google it, and you can find the pdf to download. This book would be very helpful to you to set up the Asterisk box.
In default, you can find "sip.conf" and "extensions.conf" in the folder /etc/asterisk
In "sip.conf" is where you define users, and in "extersions.conf" is where you set up the dialplan.
So, when a user calls in, the call would be processed according to the dialplan.
For example,
In an office, there are two users, one's extension number is 1000, and the other is 2000.
Above all, you need to setup the two users on two SIP phones or two softphones (a computer program).
Then, you need to configure the network, firewall, etc.
Now, you can define these two users and their extension numbers in the "sip.conf",
and you assign each user the context "in_office".
[1000]
type=friend
host=dynamic
secret=1234
context=in_office
[2000]
type=friend
host=dynamic
secret=1234
context=in_office
Meanwhile, in the dialplan "extensions.conf", you need to have
[in_office]
exten =>2000,1,NoOp()
same =>n, Swift(This is a test of Cepstral's TTS in Asterisk)
same =>n, Dial(2000)
same =>n, Hangup()
So, when user 1000 calls number 2000, the Asterisk box would pickup the call, and first return the Swift voice, and then forward the call to user 2000's phone. If user 2000 picks up, they can talk; if not, after a while, the Asterisk box would hangup the call.
This is the simplist example. The Asterisk PBX can do much more than that. But it's beyond our scope to assist you.
However, you can always refer to that book I recommand.
Last but not the least, you should be clear what you want to achieve using the Asterisk box and Swift voice, and start from there.
--Cepstral Support