Home > Uncategorized > InitTTSCaptureStream of object ITTSSTream failed

InitTTSCaptureStream of object ITTSSTream failed

It’s very rarely, that you type an error message into google and get 0 results. It’s extremly discouraging to realize you are the only person in the world who has encountered this bug before. – Or at least the only person to take the time to talk about it on the web.
 
I’m stuggling with a Telephony application, Trying to use TAPI in .NET. I had it mostly working on a voice modem, making calls, playing audio, etc. But due to the limitations in the unimodem TSP – which are well documented, I decided to invest in some professional Telephony equipment, namely a Dialogic D/4PCI. It gets around the pitfalls of the voice modem TSP, but – the audio is scewed up.
 
I’m using code as follows:

playTerminal=currentCall.RequestTerminal("{0CB9914C-79CD-47dc-ADB0-327F47CEFB20}",

(int)MediaMode.MT_AUDIO,TERMINAL_DIRECTION.TD_CAPTURE);

//Create a playlist with the file sent as parameter

playback=(ITMediaPlayback)playTerminal;

Object[] playList = { String.Format(@"{0}TestWave.wav",Application.StartupPath) };

playback.PlayList=playList;

//

// //Assign terminal to call and starts playing

currentCall.SelectTerminalOnCall(playTerminal);

// … Then after the call is accepted…

ITMediaPlayback playback;

playback=(ITMediaPlayback)playTerminal;

Object[] playList = { fileName };

playback.PlayList=playList;

ITMediaControl mediaControl;

mediaControl=(ITMediaControl)playTerminal;

mediaControl.Start();

 

The audio quality is terrible, with stuttering, and excessive echo. I think, it’s something to do with the half-duplex nature of the 4/PCI. But to be honest I don’t know.

 

I even had a crack at working with some of the TAPI examples in the SAPI SDK – modifying the code to use my Dialogic card rather than the H323 line.

 

But I got stuck when I hit the error InitTTSCaptureStream of object ITTSSTream failed

And there is no information whatsoever on the net about it.

 

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: