Envox CT ADE Development / RealSpeak Telecom

  • Thread starter Thread starter Jake K
  • Start date Start date
J

Jake K

Anyone here experienced in developing with Envox CT ADE and/or RealSpeak
Telecom? I have a problem that I am not sure how to solve.

Dialogic JCT/T1 (ISDN) card.
Envox CT ADE 9.1
RealSpeak Telecom 4
Visual Studio 2005

Basically, what is happening is I create an ADXVoice and ADXTTS object
listening on a channel and speak some text when a call is received. If I
hang up during the speaking of the text then immediately call back to the
same channel the text starts speaking where it left off (minus the call back
seconds).

Eg.

public int iTrunk = 0;
private ADXVoiceClass ADXVoice1 = null;
private ADXTTSClass ADXTTS1 = null;

private void Form1_Load(object sender, EventArgs e)
{
ADXVoice1 = new ADXVoiceClass();
ADXVoice1.TrunkAssign(iTrunk);
ADXTTS1 = new ADXTTSClass();
ADXTTS1.AssignCompatibleChannel(ADXTTSLib.RES_TYPE.RES_TYPE_Trunk,
iTrunk);
ADXTTS1.ListenTo(ADXTTSLib.RES_TYPE.RES_TYPE_Trunk, iTrunk);
ADXTTS1.SetPersonality("SAPI5_Person1");
ADXVoice1.IncomingCall += new
ADXVoiceLib._IADXVoiceEvents_IncomingCallEventHandler(OnIncomingCall);
ADXVoice1.CallerHangUp += new
ADXVoiceLib._IADXVoiceEvents_CallerHangUpEventHandler(OnCallerHangup);
}

private void OnIncomingCall()
{
ADXVoice1.AnswerCall();
Play_Hello();
}

private void Play_Hello()
{
ADXTTS1.SpeakString("This is a test to see what happens when a
disconnect occurs.", 0, "+");
ADXTTS1.SpeakString("I'll continue speaking to see if the next call
hears this same text.", 0, "+");
}

I suppose somewhere in the OnCallerHangup method I need to free the TTS
resource or something. I've been trying for a while but have been
unsuccessful. Anyone have any experience with Envox CT ADE / RealSpeak
Telecom? I'd certainly appreciate the feedback.

Thanks a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top