Locked Generating Pure Tone & DTMF Tones

  • Sunday, January 08, 2006 10:02 PM
     
     

    I would like generate Pure Tones (Single Freq) and DTMF Tones in C# (using DirectX) .. Can anyone guide me in this direction.

    Thanks,

    --Yatharth

     

Answers

  • Wednesday, January 18, 2006 9:34 PM
     
     Answered
    Your best bet is to find a 3rd party that offers a library to generate DTMT-type tones.  You can find them using your favorite search engine on the internet.

All Replies

  • Wednesday, January 18, 2006 9:34 PM
     
     Answered
    Your best bet is to find a 3rd party that offers a library to generate DTMT-type tones.  You can find them using your favorite search engine on the internet.
  • Thursday, January 19, 2006 12:45 AM
     
     

     

    I know it is not really game programming, but as the company that I am currently working for has done some of this, here are some sample pages that might get you started.

    Sample Applications for TAPI in .Net
    ------------------------------------
    http://www.exceletel.com/products/TeleTools/SamplePrograms/Index.htm
    http://www.torry.net/pages.php?id=199&SID=a98f01a9d2ff194eeb70eb5f2dfe4249
    http://www.programmersheaven.com/zone15/cat724/

    And of course you shoudl also have a look at Google, and do some searches on TAPI programming. I have seen some more examples on www.gotdotnet.com

     

  • Monday, March 06, 2006 6:53 AM
     
     
    Hi,

    If you visit http://thecodeabode.blogspot.com/ you will get a set by step break down with sample code of how to generate pure DTMF tones in C# and store them as a wave, or play them directly through your soundcard......
  • Sunday, February 22, 2009 1:51 AM
     
     Proposed Answer
    I visited the website indicated (codeabove) and many links was broken. I did a class to generate a WAV file with DTMF. The explanation of DTMF was in portuguese, but all the code is in english.

    The sample to generate the DTMF for the number 55115554432 is:

    BasicTelephony.WriteWAVFile(8000, 16, 1, b.GenerateDTMF(txtNumero.Text, duracaoSilencio, duracaoTom, 8000,16))

    This method will return a MemoryStream with WAV Headers, if you don't want the WAV Header you use this sample:

    b.GenerateDTMF(txtNumero.Text, SilenceBetweenTones, ToneDuration, 8000, 16)

    The link form my library is:  http://www.guergolet.com.br/?p=45

    André Guergolet