Return to LanScape's home page Go back a page...       Active TopicsActive Topics   Display List of Forum MembersMember List   Knowledge Base SearchSearch   HelpHelp  RegisterRegister  LoginLogin

LanScape VOIP Media Engine™ - Pre-Sales Technical Support
 LanScape Support Forum -> LanScape VOIP Media Engine™ - Pre-Sales Technical Support
Subject Topic: DTMF and RX Audio Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bitherder
Intermediate
Intermediate


Joined: August 14 2007
Location: United States
Posts: 9
Posted: August 14 2007 at 10:58am | IP Logged Quote bitherder

The docs say DTMF detection must use 8KHz audio. Our application needs this feature to be implemented within LanScape. The app also needs to examine received audio as 11KHz PCM data.

Can LanScape Media Engine do both? That is, are the sample rates for those two operations independent of each other?

Is the conversion of format handled within the DTMF and rxaudio functions, or do we explicitly convert before applying data to the two functions?
Back to Top View bitherder's Profile Search for other posts by bitherder
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: August 15 2007 at 8:01am | IP Logged Quote support

Hi bitherder,


Thanks for posting your questions.


<<< You
The docs say DTMF detection must use 8KHz audio. Our application needs this feature to be implemented within LanScape. The app also needs to examine received audio as 11KHz PCM data. Can LanScape Media Engine do both?

Support >>>
Yes. A good way to accomplish this would be to open a receive IVR channel for the phone lines. You do this by calling the OpenRxIvrChannel() API proc sometime after the media engine has been initialized. One of the parameters to the API proc will allow you to specify the bandwidth of the received audio you would like to have. See the ReceiveIvrDataType parameter. You would set this parameter to AUDIO_BW_PCM_11K. When a call is active, your callback procedure will be passed received audio data using 20Ms 11k PCM sample blocks. Your app can then use the 11k PCM sample block however it wants.

You must then pass the 11k sample blocks through a format/rate converter to “down sample” the 11k audio sample blocks to 8k PCM. You do this by using the format and rate conversion support in the media engine. See the CreateFormatRateConverter() API proc in the Software developer’s reference for more info. Once you have the 20Ms 8k PCM sample block, you can then feed them into a DTMF decoder your app creates. See the CreateDtmfDecoder()API proc in the developer’s reference for more info.

Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum






Contact LanScape Hear what the Lawyers have to say How youm may use this site Read your privacy rights