5

Is there any way I can dynamically generate uplink DTMF tone (ie the receiver hears it)?

When I looked at the android source code I saw a function called startDTMF() which is exactly what I need, but I couldn't find any API that allows me to access that function...

I then thought of using ToneGenerator and tried to inject the sound to the mic stream, and again I couldn't find a way to achieve this...

Any help is appreciated.

Chris
  • 8,527
  • 10
  • 34
  • 51
Michae1
  • 51
  • 1
  • 2

2 Answers2

0

Perhaps the android.media.ToneGenerator class in the SDK can help?

Roman Nurik
  • 29,665
  • 7
  • 84
  • 82
  • 2
    Yes I tried that, but it's only good for generating downlink dtmf tone (ie what YOU hear). As I mentioned I tried to find a way to inject the audio to the mic stream but no luck... :( – Michae1 Feb 10 '10 at 01:08
  • Ah, I see, sorry for the misunderstanding! – Roman Nurik Feb 10 '10 at 01:52
  • For completeness, [here's the Android doc](http://developer.android.com/reference/android/media/ToneGenerator.html) where it specifically states: "This API is not for generating tones over the uplink audio path." Too bad, because it would be perfect. – Paul Lammertsma Jan 20 '11 at 23:47
0

tel:1234,123

this can help. , generates a 4 sec delay so you may use this at places sometimes... but still we need to get some thing from sdk lets hope Android guys find something up!

Abhinava
  • 1,030
  • 9
  • 19