How to change Audio configurations

Aug 20, 2013 at 11:07 AM
Hi i am new to itapi3 api,
I am using simple auto attendant application. This application is running fine but the phone playing voice is not clear some distraction is coming along with voice. Recording phone voice is worse is not clear. How can i overcome this give me some suggestions. is there any way to change audio properties. In default properties are configured as PCM 8-bit,11025Hz,88kbps,mono, but i want to change PCM 16-bit,8000Hz
i want use TAudioFormat class and passing the parameters as follows

TAudioFormat(int wavFormat =128, int channels=1, int samplesPerSecond=8000, int avgBytesPerSecond=16000, int blockAlign=2, int bitsPerSample=16);

How to assign this properties to the record terminal? or else is there any way to record audio with quality?

Thanks in Advance.

Regards with,
A.Ashok kumar
Aug 28, 2013 at 6:47 PM

Set the MediaFormat property on the TTerminal. It takes an AM_MEDIA_TYPE which has all the properties you are looking for. Here's the MSDN documentation on the structure:

So, create one of these, set all the properties and then assign it to the TTerminal you are using to manage the stream.

good luck,